freebsd-nq/lib/libc/gen
Josef Karthauser 18c0eeddf7 Historically file flags (schg, uschg, etc) have been converted from
string to u_long and back using two functions, flags_to_string and
string_to_flags, which co-existed with 'ls'.  As time has progressed
more and more other tools have used these private functions to
manipulate the file flags.

Recently I moved these functions from /usr/src/bin/ls to libutil,
but after some discussion with bde it's been decided that they
really ought to go in libc.

There are two already existing libc functions for manipulating file
modes:  setmode and getmode.  In keeping with these flags_to_string
has been renamed getflags and string_to_flags to setflags.

The manual page could probably be improved upon ;)
2000-01-27 21:17:01 +00:00
..
__xuname.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
_rand48.c
_spinlock_stub.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
alarm.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
alarm.c
arc4random.3 mdoc(7)'fy 1999-10-30 15:12:25 +00:00
arc4random.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
assert.c
clock.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
clock.c
closedir.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
confstr.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
confstr.c
crypt.c $Header$ -> $FreeBSD$ 1999-08-28 05:11:36 +00:00
ctermid.3 Provide and document ctermid_r function. 1999-11-28 23:28:49 +00:00
ctermid.c Provide and document ctermid_r function. 1999-11-28 23:28:49 +00:00
daemon.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
daemon.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
devname.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
devname.c Make devname(3) return something more intelligent than NULL if it doesn't 1999-07-18 10:19:48 +00:00
directory.3 Provide a man page for Alfreds lovely readdir_r function. Also 1999-11-29 06:12:22 +00:00
disklabel.c Add unsigned char cast to isdigit 1999-11-04 04:46:18 +00:00
dladdr.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
dlfcn.c Add a new function dllockinit() for registering thread locking 1999-12-27 04:44:04 +00:00
dllockinit.3 Remove the warning that this interface shouldn't be used yet. Fix 2000-01-09 21:01:39 +00:00
dlopen.3 It is no longer necessary to prepend underscores to external symbols under 1999-11-02 18:18:26 +00:00
drand48.c
erand48.c
err.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
err.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
errlst.c Add missing strings. 1999-04-24 18:28:24 +00:00
exec.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
exec.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
fnmatch.3 mdoc(7)'fy 1999-10-30 15:12:25 +00:00
fnmatch.c
frexp.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
fstab.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
ftok.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ftok.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
fts-compat.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
fts-compat.h
fts.3 fts_pathlen and fts_namelen are u_short, not short 1999-11-15 03:29:19 +00:00
fts.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
getbootfile.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getbootfile.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getbsize.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getbsize.c Fixed printf format errors. 1998-08-02 14:41:34 +00:00
getcap.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getcap.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
getcwd.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getcwd.c Explicitly use sigemptyset to clear a sigset_t. Explicit 1999-09-28 13:24:13 +00:00
getdiskbyname.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getdomainname.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getdomainname.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getfsent.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getgrent.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getgrent.c Replace memory leaking instances of realloc with non-leaking reallocf. 1998-09-16 04:17:47 +00:00
getgrouplist.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getgrouplist.c
gethostname.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
gethostname.c
getloadavg.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getloadavg.c
getlogin.c Provide the getlogin_r function. 1999-11-28 22:41:38 +00:00
getmntinfo.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getmntinfo.c
getnetgrent.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getnetgrent.c Add unsigned char cast to isspace arg 1999-11-04 04:16:28 +00:00
getobjformat.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getobjformat.c Initialize a var to quiet -Wall. 1999-12-18 04:47:43 +00:00
getosreldate.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getpagesize.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getpagesize.c
getpass.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getpass.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
getpwent.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getpwent.c YP/NIS code: remove unnecessary endgrent() calls which can cause fail on 1999-10-16 12:31:49 +00:00
getttyent.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getttyent.c Add unsigned char cast to isspace arg 1999-11-04 04:16:28 +00:00
getusershell.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getusershell.c Add unsigned char cast to isspace arg 1999-11-04 04:16:28 +00:00
getvfsbyname.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getvfsbyname.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getvfsent.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getvfsent.c vfsload maps into kldload only now, no more fork/exec of modload(8). 1999-04-19 14:28:45 +00:00
glob.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
glob.c NetBSD kernels don't have issetugid(), so #ifdef this out when 1998-02-20 07:54:56 +00:00
initgroups.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
initgroups.c
isatty.c Implement compile time debug mode for thread locks. 1998-06-09 08:32:23 +00:00
isinf.3 Document isnanf() for checking if a float is NaN (``Not-a-Number'') and 2000-01-19 04:58:39 +00:00
jrand48.c
lcong48.c
ldexp.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
lockf.3 Remove useless section. 1999-11-09 00:28:34 +00:00
lockf.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
lrand48.c
Makefile.inc Historically file flags (schg, uschg, etc) have been converted from 2000-01-27 21:17:01 +00:00
modf.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
mrand48.c
msgctl.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
msgctl.c
msgget.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
msgget.c
msgrcv.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
msgrcv.c
msgsnd.3 Correct placement of $FreeBSD$ CVS identifier. 2000-01-13 14:27:44 +00:00
msgsnd.c
nice.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
nice.c Remove extern int errno and #include <errno.h> to get the proper definition. 1998-05-05 22:04:13 +00:00
nlist.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
nlist.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
nrand48.c
ntp_gettime.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
opendir.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
pause.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
pause.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
popen.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
popen.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
psignal.3 Fixed wrong prototype and missing include for strsignal(3). strsignal() 1999-12-23 16:29:58 +00:00
psignal.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
pw_scan.c Replace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS in 1999-12-02 16:39:15 +00:00
pw_scan.h Add to pwd_mkdb a -q option to silence warnings about large IDs. Add a 1999-11-15 16:45:37 +00:00
pwcache.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
pwcache.c
raise.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
raise.c
rand48.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
rand48.h
readdir.c style fixes, remove extra braces. 1999-11-29 19:12:50 +00:00
rewinddir.c
scandir.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
scandir.c Fix a memory leak 1998-10-07 01:30:02 +00:00
seed48.c
seekdir.c
semconfig.c
semctl.c Fix this so that it compiles in the !__STDC__ case. 1998-06-06 18:52:43 +00:00
semget.c
semop.c
setdomainname.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
setflags.3 Historically file flags (schg, uschg, etc) have been converted from 2000-01-27 21:17:01 +00:00
setflags.c Historically file flags (schg, uschg, etc) have been converted from 2000-01-27 21:17:01 +00:00
setflagsbyname.3 Historically file flags (schg, uschg, etc) have been converted from 2000-01-27 21:17:01 +00:00
setflagsbyname.c Historically file flags (schg, uschg, etc) have been converted from 2000-01-27 21:17:01 +00:00
sethostname.c
setjmp.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
setjmperr.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
setmode.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
setmode.c Add unsigned char cast to isdigit 1999-11-04 04:46:18 +00:00
setproctitle.3 Make setproctitle(NULL) restore all of the original arguments 1999-11-17 21:12:17 +00:00
setproctitle.c Make setproctitle(NULL) restore all of the original arguments 1999-11-17 21:12:17 +00:00
shmat.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
shmctl.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
shmdt.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
shmget.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
siginterrupt.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
siginterrupt.c
siglist.c Add a strsignal(3) (like strerror(3)) for libc compatability with other 1999-05-18 04:48:58 +00:00
signal.3 - add reference to siginterrupt(3) 1999-09-06 15:15:51 +00:00
signal.c
sigsetops.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
sigsetops.c o Add $FreeBSD$ as a rcsid instead of in a comment 1999-10-02 19:37:14 +00:00
sleep.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
sleep.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
srand48.c
stringlist.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
stringlist.c Replace memory leaking instances of realloc with non-leaking reallocf. 1998-09-16 04:17:47 +00:00
strtofflags.3 Historically file flags (schg, uschg, etc) have been converted from 2000-01-27 21:17:01 +00:00
strtofflags.c Historically file flags (schg, uschg, etc) have been converted from 2000-01-27 21:17:01 +00:00
sysconf.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
sysconf.c Add a trivial mechanism for returning a useful default value if one is 1998-06-01 20:58:03 +00:00
sysctl.3 Document KERN_QUANTUM under CTL_KERN 2000-01-19 05:32:27 +00:00
sysctl.c Make the implementation and documentation agree. Specifically: 1999-01-06 18:11:53 +00:00
sysctlbyname.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
syslog.3 "S" comes before "U"... 1999-10-25 03:51:01 +00:00
syslog.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
tcgetpgrp.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
tcsendbreak.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
tcsetattr.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
tcsetpgrp.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
telldir.c
termios.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
time.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
time.c
times.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
times.c
timezone.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
timezone.c Eliminate sprintf 1998-01-21 21:46:36 +00:00
ttyname.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ttyname.c Implement compile time debug mode for thread locks. 1998-06-09 08:32:23 +00:00
ttyslot.c
tzset.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ualarm.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ualarm.c
uname.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
uname.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
unvis.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
unvis.c
usleep.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
usleep.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
utime.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
utime.c
valloc.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
valloc.c Fix a cast from a pointer to a long instead of an int which was enough 1998-01-24 20:57:38 +00:00
vis.3 $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
vis.c
wait3.c
wait.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00
waitpid.c Add three-tier symbol naming in support of POSIX thread cancellation 2000-01-12 09:23:48 +00:00