diff options
author | 2005-08-10 01:16:01 +0000 | |
---|---|---|
committer | 2005-08-10 01:16:01 +0000 | |
commit | 980f959bbde3bfd51a1b2f08152fefa56d167544 (patch) | |
tree | e7876ed0dc38698d715f6bda011956074567d5c1 /lib/libc/sys/chflags.2 | |
parent | - punctuation & wording (diff) | |
download | wireguard-openbsd-980f959bbde3bfd51a1b2f08152fefa56d167544.tar.xz wireguard-openbsd-980f959bbde3bfd51a1b2f08152fefa56d167544.zip |
- macros
- chflags() also returns EINVAL for invalid flags
- chflags() also returns EINVAL for attempts to change flags
on devices as non-superuser
ok jmc
Diffstat (limited to 'lib/libc/sys/chflags.2')
-rw-r--r-- | lib/libc/sys/chflags.2 | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/lib/libc/sys/chflags.2 b/lib/libc/sys/chflags.2 index b5f02c47be0..cb61b1562ee 100644 --- a/lib/libc/sys/chflags.2 +++ b/lib/libc/sys/chflags.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chflags.2,v 1.18 2003/06/02 20:18:39 millert Exp $ +.\" $OpenBSD: chflags.2,v 1.19 2005/08/10 01:16:01 jaredy Exp $ .\" $NetBSD: chflags.2,v 1.6 1995/02/27 12:32:03 cgd Exp $ .\" .\" Copyright (c) 1989, 1993 @@ -57,30 +57,30 @@ The flags specified are formed by the following values .Pp .Bl -tag -width "SF_IMMUTABLE" -compact -offset indent -.It UF_NODUMP +.It Dv UF_NODUMP Do not dump the file. -.It UF_IMMUTABLE +.It Dv UF_IMMUTABLE The file may not be changed. -.It UF_APPEND +.It Dv UF_APPEND The file may only be appended to. .\".It ARCHIVED .\"File is archived. -.It SF_IMMUTABLE +.It Dv SF_IMMUTABLE The file may not be changed. -.It SF_APPEND +.It Dv SF_APPEND The file may only be appended to. .El .Pp The -.Dq UF_IMMUTABLE +.Dv UF_IMMUTABLE and -.Dq UF_APPEND +.Dv UF_APPEND flags may be set or unset by either the owner of a file or the superuser. .Pp The -.Dq SF_IMMUTABLE +.Dv SF_IMMUTABLE and -.Dq SF_APPEND +.Dv SF_APPEND flags may only be set or unset by the superuser. They may be set at any time, but normally may only be unset when the system is in single-user mode. @@ -127,6 +127,13 @@ points outside the process's allocated address space. An .Tn I/O error occurred while reading from or writing to the file system. +.It Bq Er EINVAL +The +.Fa flags +value is invalid. +.It Bq Er EINVAL +The descriptor references a block or character device and the effective +user ID is not the superuser. .El .Pp .Fn fchflags @@ -138,9 +145,12 @@ The descriptor is not valid. .Fa fd refers to a socket, not to a file. .It Bq Er EINVAL -Only the superuser can change flags on block and character devices. +The descriptor references a block or character device and the effective +user ID is not the superuser. .It Bq Er EINVAL -The flags value is invalid. +The +.Fa flags +value is invalid. .It Bq Er EPERM The effective user ID does not match the owner of the file and the effective user ID is not the superuser, or the effective user ID |