Quellcode durchsuchen

Add missing header file for daemon.c, add missing functions into unistd.h.
I still need to implement getlogin.c fpathconf.c, but they are required
for IEEE Std. 1003.13-1998 POSIX_FILE_SYSTEM conformance and we don't
have them yet. But we will very very soon. :-)
-Erik

Eric Andersen vor 23 Jahren
Ursprung
Commit
e89dc919b2
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 2 2
      libc/unistd/Makefile
  2. 1 0
      libc/unistd/daemon.c

+ 2 - 2
libc/unistd/Makefile

@@ -25,8 +25,8 @@ include $(TOPDIR)Rules.mak
 LIBC=$(TOPDIR)libc.a
 DIRS:=
 
-CSRC=execl.c execlp.c execv.c execvep.c execvp.c getcwd.c getopt.c \
-	sleep.c getpass.c sysconf_src.c getopt_vars.c daemon.c
+CSRC=execl.c execlp.c execv.c execvep.c execvp.c execle.c getcwd.c getopt.c \
+	sleep.c getpass.c sysconf_src.c getopt_vars.c daemon.c getlogin.c fpathconf.c
 
 # TESTING -- comment this out if it breaks for you
 ifeq ($(TARGET_ARCH), $(NATIVE_ARCH))

+ 1 - 0
libc/unistd/daemon.c

@@ -26,6 +26,7 @@
  * Original copyright notice is retained at the end of this file.
  */
 
+#include <stdio.h>
 #include <features.h>
 #include <fcntl.h>
 #include <paths.h>