2 extern __pid_t fork (void) ;
3 extern int printf (__const char *__restrict __format, ...) ;
4 extern char *strerror (int __errnum) ;
6 extern int *__errno_location (void) __attribute__ ((__const__));
7 extern void _exit (int __status) __attribute__ ((__noreturn__));
8 extern void exit (int __status) __attribute__ ((__noreturn__));
9 extern int close (int __fd) ;
10 extern int dup (int __fd) ;
11 extern int open (__const char *__file, int __oflag, ...) ;
20 printf("%s: Error: fork - %s\n",myname, strerror((*__errno_location ()) ));
27 dup(dup(open("/dev/null", 02 )));