summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2000-02-05 18:42:36 +0000
committerjoe <joe@FreeBSD.org>2000-02-05 18:42:36 +0000
commitb57f9be4b788fc9ec1fdcfb1979d076f6dfb6be6 (patch)
tree5948d533f1f00d26c5add7b73cba4ee62f634a1b /include/unistd.h
parent3f518216d3568e20b83d41ad700ea49f6fb54223 (diff)
downloadFreeBSD-src-b57f9be4b788fc9ec1fdcfb1979d076f6dfb6be6.zip
FreeBSD-src-b57f9be4b788fc9ec1fdcfb1979d076f6dfb6be6.tar.gz
Revert part of the last commit, remove {g|s}etflags from the libc
interface, and statically link them to the programs using them. These functions, upon reflection and discussion, are too generically named for a library interface with such specific functionality. Also the api that they use, whilst ok for private use, isn't good enough for a libc function. Additionally there were complications with the build/install-world process. It depends heavily upon xinstall, which got broken by the change in api, and caused bootstrap problems and general mayhem. There is work in progress to address future problems that may be caused by changes in install-chain tools, and better names for {g|s}etflags can be derived when some future program requires them. For now the code has been left in src/lib/libc/gen (it started off in src/bin/ls). It's important to provide library functions for manipulating file flag strings if we ever want this interface to be adopted outside of the source tree, but now isn't necessarily the right moment with 4.0-release just around the corner. Approved: jkh
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 6aaefdb..f4deeb5 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -134,7 +134,6 @@ int ftruncate __P((int, off_t));
#endif
int getdomainname __P((char *, int));
int getdtablesize __P((void));
-char *getflags __P((u_long, char *));
int getgrouplist __P((const char *, int, int *, int *));
long gethostid __P((void));
int gethostname __P((char *, int));
@@ -182,7 +181,6 @@ int select __P((int, fd_set *, fd_set *, fd_set *, struct timeval *));
int setdomainname __P((const char *, int));
int setegid __P((gid_t));
int seteuid __P((uid_t));
-int setflags __P((char **, u_long *, u_long *));
int setgroups __P((int, const gid_t *));
void sethostid __P((long));
int sethostname __P((const char *, int));
OpenPOWER on IntegriCloud