diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-10-14 14:20:25 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-10-14 14:20:25 +0000 |
commit | 2271c5e90704e3cde5dc3a6de99ee34af82b5b00 (patch) | |
tree | 1ecbf455e8114041e1cc0ea9398cf1b7526b0a77 | |
parent | fbeba11ffeafc545d586c1392f9557479dba54ea (diff) |
sync with <sys/stat.h>;
from simon barner (freebsd pr #57153);
ok millert deraadt
-rw-r--r-- | lib/libc/sys/stat.2 | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/libc/sys/stat.2 b/lib/libc/sys/stat.2 index 79ecf5d8e16..900aa61ef67 100644 --- a/lib/libc/sys/stat.2 +++ b/lib/libc/sys/stat.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: stat.2,v 1.21 2006/10/05 07:08:18 jmc Exp $ +.\" $OpenBSD: stat.2,v 1.22 2006/10/14 14:20:24 jmc Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -159,7 +159,7 @@ The status information word .Fa st_mode has the following bits: .Bd -literal -offset indent -#define S_IFMT 0170000 /* type of file */ +#define S_IFMT 0170000 /* type of file mask */ #define S_IFIFO 0010000 /* named pipe (fifo) */ #define S_IFCHR 0020000 /* character special */ #define S_IFDIR 0040000 /* directory */ @@ -170,9 +170,18 @@ has the following bits: #define S_ISUID 0004000 /* set-user-ID on execution */ #define S_ISGID 0002000 /* set-group-ID on execution */ #define S_ISVTX 0001000 /* save swapped text even after use */ -#define S_IRUSR 0000400 /* read permission, owner */ -#define S_IWUSR 0000200 /* write permission, owner */ -#define S_IXUSR 0000100 /* execute/search permission, owner */ +#define S_IRWXU 0000700 /* RWX mask for owner */ +#define S_IRUSR 0000400 /* R for owner */ +#define S_IWUSR 0000200 /* W for owner */ +#define S_IXUSR 0000100 /* X for owner */ +#define S_IRWXG 0000070 /* RWX mask for group */ +#define S_IRGRP 0000040 /* R for group */ +#define S_IWGRP 0000020 /* W for group */ +#define S_IXGRP 0000010 /* X for group */ +#define S_IRWXO 0000007 /* RWX mask for other */ +#define S_IROTH 0000004 /* R for other */ +#define S_IWOTH 0000002 /* W for other */ +#define S_IXOTH 0000001 /* X for other */ .Ed .Pp The following macros test a file's type. |