diff options
author | joe <joe@FreeBSD.org> | 2000-06-17 01:43:56 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2000-06-17 01:43:56 +0000 |
commit | af432f252ad14b44f8e6262bc3bc32b902774708 (patch) | |
tree | 755e9ba7136f3467a7b98a5f4ddf3122bd090db6 /lib/libc/gen/strtofflags.3 | |
parent | 27d76a0d0fc67fafb473a28b631653cc5913e873 (diff) | |
download | FreeBSD-src-af432f252ad14b44f8e6262bc3bc32b902774708.zip FreeBSD-src-af432f252ad14b44f8e6262bc3bc32b902774708.tar.gz |
The "def" arg for fflagstostr is too specialized for ls. The caller
can easily translate from "" to whatever it wants to print if no
flags are set. (ls prints "-" and mtree prints "none".)
Suggested by: bde
Diffstat (limited to 'lib/libc/gen/strtofflags.3')
-rw-r--r-- | lib/libc/gen/strtofflags.3 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/gen/strtofflags.3 b/lib/libc/gen/strtofflags.3 index c12551a..f287c17 100644 --- a/lib/libc/gen/strtofflags.3 +++ b/lib/libc/gen/strtofflags.3 @@ -44,7 +44,7 @@ .Sh SYNOPSIS .Fd #include <unistd.h> .Ft char * -.Fn fflagstostr "u_long flags" "char *def" +.Fn fflagstostr "u_long flags" .Ft int .Fn strtofflags "char **stringp" "u_long *setp" "u_long *clrp" .Sh DESCRIPTION @@ -52,9 +52,7 @@ The .Fn fflagstostr function returns a comma separated string of the file flags represented by .Fa flags . -If no flags are set the string -.Fa def -is returned instead. +If no flags are set a zero length string is returned. .Pp The .Fn strtofflags |