Correct use of .Nm. Add DIAGNOSTICS section. Add rcsid

This commit is contained in:
Philippe Charnier 1999-11-21 16:11:56 +00:00
parent 959b26f66f
commit dd562b0ebb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53507
4 changed files with 24 additions and 16 deletions

View File

@ -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 .

View File

@ -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 <sys/types.h>

View File

@ -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 .

View File

@ -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 <sys/types.h>