summaryrefslogtreecommitdiffstats
path: root/man2/chown.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/chown.2')
-rw-r--r--man2/chown.230
1 files changed, 15 insertions, 15 deletions
diff --git a/man2/chown.2 b/man2/chown.2
index ffba3acaf..6ab2836b4 100644
--- a/man2/chown.2
+++ b/man2/chown.2
@@ -38,7 +38,7 @@ Standard C library
.P
.RS -4
Feature Test Macro Requirements for glibc (see
-.BR feature_test_macros (7)):
+.MR feature_test_macros 7 ):
.RE
.P
.BR fchown (),
@@ -166,7 +166,7 @@ If
is an empty string, operate on the file referred to by
.I dirfd
(which may have been obtained using the
-.BR open (2)
+.MR open 2
.B O_PATH
flag).
In this case,
@@ -194,7 +194,7 @@ dereferences symbolic links, like
.BR chown ().)
.P
See
-.BR openat (2)
+.MR openat 2
for an explanation of the need for
.BR fchownat ().
.SH RETURN VALUE
@@ -213,7 +213,7 @@ are listed below.
.B EACCES
Search permission is denied on a component of the path prefix.
(See also
-.BR path_resolution (7).)
+.MR path_resolution 7 .)
.TP
.B EBADF
.RB ( fchown ())
@@ -273,7 +273,7 @@ The calling process did not have the required permissions
.B EPERM
The file is marked immutable or append-only.
(See
-.BR ioctl_iflags (2).)
+.MR ioctl_iflags 2 .)
.TP
.B EROFS
The named file resides on a read-only filesystem.
@@ -304,9 +304,9 @@ glibc 2.4.
.SH NOTES
.SS Ownership of new files
When a new file is created (by, for example,
-.BR open (2)
+.MR open 2
or
-.BR mkdir (2)),
+.MR mkdir 2 ),
its owner is made the same as the filesystem user ID of the
creating process.
The group of the file depends on a range of factors,
@@ -322,7 +322,7 @@ and
.B "\-o\ nogrpid"
(or, synonymously
.BR "\-o\ sysvgroups" )
-.BR mount (8)
+.MR mount 8
options, then the rules are as follows:
.IP \[bu] 3
If the filesystem is mounted with
@@ -419,7 +419,7 @@ its second command-line argument to the value specified in its
first command-line argument.
The new owner can be specified either as a numeric user ID,
or as a username (which is converted to a user ID by using
-.BR getpwnam (3)
+.MR getpwnam 3
to perform a lookup in the system password file).
.SS Program source
.\" SRC BEGIN (chown.c)
@@ -463,9 +463,9 @@ main(int argc, char *argv[])
.EE
.\" SRC END
.SH SEE ALSO
-.BR chgrp (1),
-.BR chown (1),
-.BR chmod (2),
-.BR flock (2),
-.BR path_resolution (7),
-.BR symlink (7)
+.MR chgrp 1 ,
+.MR chown 1 ,
+.MR chmod 2 ,
+.MR flock 2 ,
+.MR path_resolution 7 ,
+.MR symlink 7