From c0bb1ba1b133ed442500055f2498e256c3b5698f Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 2 Aug 2011 19:21:29 +0200 Subject: [PATCH] closefrom() as library call --- lib/nbsd_libc/sys-minix/Makefile.inc | 2 +- nbsd_include/unistd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nbsd_libc/sys-minix/Makefile.inc b/lib/nbsd_libc/sys-minix/Makefile.inc index df94abf65..ee855cc46 100644 --- a/lib/nbsd_libc/sys-minix/Makefile.inc +++ b/lib/nbsd_libc/sys-minix/Makefile.inc @@ -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 \ diff --git a/nbsd_include/unistd.h b/nbsd_include/unistd.h index 9eda37fc2..986c0b909 100644 --- a/nbsd_include/unistd.h +++ b/nbsd_include/unistd.h @@ -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); -- 2.44.0