]> Zhao Yanbai Git Server - minix.git/commitdiff
closefrom() as library call
authorBen Gras <ben@minix3.org>
Tue, 2 Aug 2011 17:21:29 +0000 (19:21 +0200)
committerBen Gras <ben@minix3.org>
Tue, 2 Aug 2011 20:16:58 +0000 (22:16 +0200)
lib/nbsd_libc/sys-minix/Makefile.inc
nbsd_include/unistd.h

index df94abf6564ebdd18ed9f6f6ba1a9b4a2423b60c..ee855cc467efbf55427cba078d20d21b1090ba17 100644 (file)
@@ -1,6 +1,6 @@
 .PATH: ${.CURDIR}/sys-minix
 
-SRCS+=         accept.c access.c bind.c brk.c sbrk.c compat.S \
+SRCS+=         accept.c access.c bind.c brk.c sbrk.c m_closefrom.c compat.S \
        chdir.c chmod.c fchmod.c chown.c fchown.c chroot.c close.c \
        connect.c dup.c dup2.c execve.c fcntl.c flock.c fpathconf.c fork.c \
        fstatfs.c fstatvfs.c fsync.c ftruncate.c getdents.c getegid.c getgid.c \
index 9eda37fc283c99864a0d04358e4f3418c7aaf64f..986c0b909dff43505e954f908a73d699063ba7a2 100644 (file)
@@ -318,8 +318,8 @@ int lseek64(int fd, u64_t _offset, int _whence, u64_t *_newpos);
 #if defined(_NETBSD_SOURCE)
 #ifndef __minix
 int     acct(const char *);
-int     closefrom(int);
 #endif /* !__minix */
+int     closefrom(int);
 int     des_cipher(const char *, char *, long, int);
 int     des_setkey(const char *);
 void    endusershell(void);