diff options
author | mux <mux@FreeBSD.org> | 2002-05-05 23:51:32 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2002-05-05 23:51:32 +0000 |
commit | e603f7d95f6cd45a20cf55273ae40d9a7ea20c22 (patch) | |
tree | 48ea7a4beffaf7e8376572ddf85702a6427d0561 /lib/libc/sys/chflags.2 | |
parent | b2f5ccfa53b23c3e6406e04932e9bcf5bed60eaa (diff) | |
download | FreeBSD-src-e603f7d95f6cd45a20cf55273ae40d9a7ea20c22.zip FreeBSD-src-e603f7d95f6cd45a20cf55273ae40d9a7ea20c22.tar.gz |
Document the lchflags(2) syscall.
Diffstat (limited to 'lib/libc/sys/chflags.2')
-rw-r--r-- | lib/libc/sys/chflags.2 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libc/sys/chflags.2 b/lib/libc/sys/chflags.2 index dae7efd..11cb734 100644 --- a/lib/libc/sys/chflags.2 +++ b/lib/libc/sys/chflags.2 @@ -37,6 +37,7 @@ .Os .Sh NAME .Nm chflags , +.Nm lchflags , .Nm fchflags .Nd set file flags .Sh LIBRARY @@ -47,6 +48,8 @@ .Ft int .Fn chflags "const char *path" "u_long flags" .Ft int +.Fn lchflags "const char *path" "int flags" +.Ft int .Fn fchflags "int fd" "u_long flags" .Sh DESCRIPTION The file whose name @@ -57,6 +60,16 @@ or referenced by the descriptor has its flags changed to .Fa flags . .Pp +The +.Fn lchflags +system call is like +.Fn chflags +except in the case where the named file is a symbolic link, +in which case +.Fn lchflags +will change the flags of the link itself, +rather than the file it points to. +.Pp The flags specified are formed by .Em or Ns 'ing the following values |