From d09776075b30af9572566b18a6ec882ff363cc32 Mon Sep 17 00:00:00 2001 From: charnier Date: Sun, 21 Nov 1999 16:11:56 +0000 Subject: Correct use of .Nm. Add DIAGNOSTICS section. Add rcsid --- usr.bin/chflags/chflags.1 | 14 +++++++------- usr.bin/chflags/chflags.c | 6 +++++- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'usr.bin/chflags') diff --git a/usr.bin/chflags/chflags.1 b/usr.bin/chflags/chflags.1 index d6b64be..a76f8c2 100644 --- a/usr.bin/chflags/chflags.1 +++ b/usr.bin/chflags/chflags.1 @@ -48,17 +48,17 @@ .Op Fl H | Fl L | Fl P .Oc .Ar flags -.Ar file ... +.Ar .Sh DESCRIPTION The -.Nm chflags +.Nm utility modifies the file flags of the listed files as specified by the .Ar flags operand. .Pp The options are as follows: -.Bl -tag -width Ds +.Bl -tag -width indent .It Fl H If the .Fl R @@ -107,7 +107,7 @@ Symbolic links do not have flags, so unless the or .Fl L option is set, -.Nm chflags +.Nm on a symbolic link always succeeds and has no effect. The .Fl H , @@ -121,9 +121,9 @@ In addition, these options override each other and the command's actions are determined by the last one specified. .Pp You can use "ls -lo" to see the flags of existing files. -.Pp +.Sh DIAGNOSTICS The -.Nm chflags +.Nm utility exits 0 on success, and >0 if an error occurs. .Sh SEE ALSO .Xr ls 1 , @@ -133,6 +133,6 @@ utility exits 0 on success, and >0 if an error occurs. .Xr symlink 7 .Sh HISTORY The -.Nm chflags +.Nm command first appeared in .Bx 4.4 . diff --git a/usr.bin/chflags/chflags.c b/usr.bin/chflags/chflags.c index 6646094..2f4a96e 100644 --- a/usr.bin/chflags/chflags.c +++ b/usr.bin/chflags/chflags.c @@ -38,7 +38,11 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint -static const char sccsid[] = "@(#)chflags.c 8.5 (Berkeley) 4/1/94"; +#if 0 +static char sccsid[] = "@(#)chflags.c 8.5 (Berkeley) 4/1/94"; +#endif +static const char rcsid[] = + "$FreeBSD$"; #endif /* not lint */ #include -- cgit v1.1