From 7ca3da8493015555ea81974a4036bde78b67a897 Mon Sep 17 00:00:00 2001 From: frodo Date: Mon, 5 Oct 2015 10:11:33 +0300 Subject: [PATCH] add error file --- error.log | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 error.log diff --git a/error.log b/error.log new file mode 100644 index 0000000..53e07f7 --- /dev/null +++ b/error.log @@ -0,0 +1,19 @@ +os_home_work_1.c:10:11: warning: implicit declaration of function 'fork' is invalid in C99 + [-Wimplicit-function-declaration] + if((pid=fork()) == 0) + ^ +os_home_work_1.c:13:10: warning: implicit declaration of function 'getpid' is invalid in C99 + [-Wimplicit-function-declaration] + gcvt(getpid(), 12, str3); + ^ +os_home_work_1.c:17:33: warning: implicit declaration of function 'getppid' is invalid in C99 + [-Wimplicit-function-declaration] + fprintf(f, "Parent: %d;\n", getppid()); + ^ +os_home_work_1.c:28:10: error: too few arguments to function call, expected 1, have 0 + wait(); + ~~~~ ^ +/usr/include/sys/wait.h:248:1: note: 'wait' declared here +pid_t wait(int *) __DARWIN_ALIAS_C(wait); +^ +3 warnings and 1 error generated. \ No newline at end of file