summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-09-23 17:45:51 +0000
committermike <mike@FreeBSD.org>2002-09-23 17:45:51 +0000
commite3273ff5b0022b8d058b3f317c0778568a5c5f11 (patch)
tree3f1529390b129ebee6a87da08c17231bebf3e590 /include/unistd.h
parenta6b32a877e18330dc811d7f76a14164a331d1cf7 (diff)
downloadFreeBSD-src-e3273ff5b0022b8d058b3f317c0778568a5c5f11.zip
FreeBSD-src-e3273ff5b0022b8d058b3f317c0778568a5c5f11.tar.gz
o Move select() helper macros from <sys/types.h> to <sys/select.h>.
o Include <sys/select.h> from <sys/types.h> in the __BSD_VISIBLE case, so applications and base software can be slowly updated. o Prototype select() in <sys/select.h>. It was previously only prototyped in <unistd.h>. o Add some XXX's to <sys/types.h>. Reviewed by: -standards
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 9227c63..977e9b1 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -489,7 +489,12 @@ int rresvport(int *);
int rresvport_af(int *, int);
int ruserok(const char *, int, const char *, const char *);
void *sbrk(intptr_t);
+#if __BSD_VISIBLE
+#ifndef _SELECT_DECLARED
+#define _SELECT_DECLARED
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
+#endif
+#endif
int setdomainname(const char *, int);
int setgroups(int, const gid_t *);
void sethostid(long);
OpenPOWER on IntegriCloud