diff options
author | joe <joe@FreeBSD.org> | 2000-06-17 01:28:13 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2000-06-17 01:28:13 +0000 |
commit | 27d76a0d0fc67fafb473a28b631653cc5913e873 (patch) | |
tree | cf8297611d1a6558cc629093ad2153c6facbf940 /lib/libc/gen/strtofflags.3 | |
parent | 610da3502ab493b7d58d308232c0999c3cacfba9 (diff) | |
download | FreeBSD-src-27d76a0d0fc67fafb473a28b631653cc5913e873.zip FreeBSD-src-27d76a0d0fc67fafb473a28b631653cc5913e873.tar.gz |
Return of the evil file flags! The {s|g}etflags functions were
renamed to {s|g}etflagsbyname, which received objections. They're
now called strtofflags (string to file flags) and fflagstostr (file
flags to string).
Suggested by: bde
Diffstat (limited to 'lib/libc/gen/strtofflags.3')
-rw-r--r-- | lib/libc/gen/strtofflags.3 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libc/gen/strtofflags.3 b/lib/libc/gen/strtofflags.3 index b4461ac..c12551a 100644 --- a/lib/libc/gen/strtofflags.3 +++ b/lib/libc/gen/strtofflags.3 @@ -33,23 +33,23 @@ .\" $FreeBSD$ .\" .Dd January 1, 2000 -.Dt SETFLAGS 3 +.Dt STRTOFFLAGS 3 .Os .Sh NAME -.Nm getflags , -.Nm setflags +.Nm fflagstostr , +.Nm strtofflags .Nd modify file flag bits .Sh LIBRARY .Lb libc .Sh SYNOPSIS .Fd #include <unistd.h> .Ft char * -.Fn getflags "u_long flags" "char *def" +.Fn fflagstostr "u_long flags" "char *def" .Ft int -.Fn setflags "char **stringp" "u_long *setp" "u_long *clrp" +.Fn strtofflags "char **stringp" "u_long *setp" "u_long *clrp" .Sh DESCRIPTION The -.Fn getflags +.Fn fflagstostr function returns a comma separated string of the file flags represented by .Fa flags . If no flags are set the string @@ -57,14 +57,14 @@ If no flags are set the string is returned instead. .Pp The -.Fn setflags +.Fn strtofflags function takes a string of file flags, as described in .Xr chflags 1 , parses it, and returns the 'set' flags and 'clear' flags such as would be given as arguments to .Xr chflags 2 . On success -.Fn setflags +.Fn strtofflags returns 0, otherwise it returns non-zero and .Fa stringp is left pointing to the offending token. @@ -73,8 +73,8 @@ is left pointing to the offending token. .Xr chflags 2 , .Sh HISTORY The -.Fn getflags +.Fn strtofflags and -.Fn setflags +.Fn fflagstostr functions first appeared in .Fx 4.0 . |