]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Renamed RESTRICTIONS section to NOTES, or moved text in a RESTRICTIONS
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 16 May 2007 05:33:35 +0000 (05:33 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 16 May 2007 05:33:35 +0000 (05:33 +0000)
section under existing NOTES section.

man2/access.2
man2/chown.2
man2/lseek.2
man2/open.2
man2/read.2
man5/utmp.5

index 808cead005913047a478e29c6b1d7eb83ebd0ecd..7eac383e2bb54714633cc44c56e8310ac5e2c03c 100644 (file)
@@ -165,7 +165,7 @@ the underlying file system.
 Since kernel 2.6.20,
 .BR access ()
 honours this flag.
-.SH RESTRICTIONS
+.SH NOTES
 .BR access ()
 returns an error if any of the access types in the requested call
 fails, even if other types might be successful.
@@ -175,6 +175,7 @@ may not work correctly on NFS file systems with UID mapping enabled,
 because UID mapping is done on the server and hidden from the client,
 which checks permissions.
 .PP
+.BR Warning:
 Using
 .BR access ()
 to check if a user is authorized to e.g. open a file before actually
index a444d559aafe933d65938a2e596605520013fece..f2db41f76b34d554a05d34b408c90ad8c70fb274 100644 (file)
@@ -139,6 +139,19 @@ See above.
 .B EROFS
 See above.
 .SH NOTES
+The
+.BR chown ()
+semantics are deliberately violated on NFS file systems
+which have UID mapping enabled.
+Additionally, the semantics of all system
+calls which access the file contents are violated, because
+.BR chown ()
+may cause immediate access revocation on already open files.
+Client side
+caching may lead to a delay between the time where ownership have
+been changed to allow access for a user and the time where the file can
+actually be accessed by the user on other clients.
+
 In versions of Linux prior to 2.1.81 (and distinct from 2.1.46),
 .BR chown ()
 did not follow symbolic links.
@@ -170,19 +183,6 @@ used by the superuser (that is, ordinary users cannot give away files).
 .\" fchown():
 .\" SVr4 documents additional EINVAL, EIO, EINTR, and ENOLINK
 .\" error conditions.
-.SH RESTRICTIONS
-The
-.BR chown ()
-semantics are deliberately violated on NFS file systems
-which have UID mapping enabled.
-Additionally, the semantics of all system
-calls which access the file contents are violated, because
-.BR chown ()
-may cause immediate access revocation on already open files.
-Client side
-caching may lead to a delay between the time where ownership have
-been changed to allow access for a user and the time where the file can
-actually be accessed by the user on other clients.
 .SH "SEE ALSO"
 .BR chmod (2),
 .BR fchownat (2),
index 1180fe0139b20edde259a03663ea5be7814ac522..f2beef0d2c3d46e2f4e812634a6ff9d93885b175 100644 (file)
@@ -115,21 +115,21 @@ The resulting file offset cannot be represented in an
 is associated with a pipe, socket, or FIFO.
 .SH "CONFORMING TO"
 SVr4, 4.3BSD, POSIX.1-2001.
-.SH RESTRICTIONS
+.SH NOTES
+This document's use of
+.I whence
+is incorrect English, but maintained for historical reasons.
+
 Some devices are incapable of seeking and POSIX does not specify which
 devices must support
 .BR lseek ().
 
-Linux specific restrictions: using
+On Linux, using
 .BR lseek ()
 on a tty device returns
 \fBESPIPE\fP.
 .\" Other systems return the number of written characters,
 .\" using SEEK_SET to set the counter. (Of written characters.)
-.SH NOTES
-This document's use of
-.I whence
-is incorrect English, but maintained for historical reasons.
 
 When converting old code, substitute values for \fIwhence\fP with the
 following macros:
index b9e6a26c1a068831347c6ef8d7e1ec97870562e2..2b6efd4f20b382efc607ed9af42b35d5716df626 100644 (file)
@@ -281,7 +281,7 @@ Any
 .BR write (2)s
 on the resulting file descriptor will block the calling process until
 the data has been physically written to the underlying hardware.
-.IR "But see RESTRICTIONS below" .
+.IR "But see NOTES below" .
 .TP
 .B O_TRUNC
 If the file already exists and is a regular file and the open mode allows
@@ -370,6 +370,15 @@ return the new file descriptor, or \-1 if an error occurred
 .I errno
 is set appropriately).
 .SH NOTES
+There are many infelicities in the protocol underlying NFS, affecting
+amongst others
+.BR O_SYNC " and " O_NDELAY .
+
+POSIX provides for three different variants of synchronised I/O,
+corresponding to the flags \fBO_SYNC\fR, \fBO_DSYNC\fR and
+\fBO_RSYNC\fR.
+Currently (2.1.130) these are all synonymous under Linux.
+
 Note that
 .BR open ()
 can open device special files, but
@@ -571,15 +580,6 @@ use
 to enable this flag.
 .\" FIXME Check bugzilla report on open(O_ASYNC)
 .\" See http://bugzilla.kernel.org/show_bug.cgi?id=5993
-.SH RESTRICTIONS
-There are many infelicities in the protocol underlying NFS, affecting
-amongst others
-.BR O_SYNC " and " O_NDELAY .
-
-POSIX provides for three different variants of synchronised I/O,
-corresponding to the flags \fBO_SYNC\fR, \fBO_DSYNC\fR and
-\fBO_RSYNC\fR.
-Currently (2.1.130) these are all synonymous under Linux.
 .SH "SEE ALSO"
 .BR close (2),
 .BR dup (2),
index f77113dcb4ca392a249255755b433d30abb98e0f..598eaffcb729fa855b1d99463b9d42d7c0524201 100644 (file)
@@ -124,7 +124,7 @@ to return \-1 (with
 set to EINTR) or to return the number of bytes already read.
 .SH "CONFORMING TO"
 SVr4, 4.3BSD, POSIX.1-2001.
-.SH RESTRICTIONS
+.SH NOTES
 On NFS file systems, reading small amounts of data will only update the
 time stamp the first time, subsequent calls may not do so.
 This is caused
index 1b9f0767b74792d9814a436728084a60ace557ca..5e2cbb591902d0242297f71805f301274c024abf 100644 (file)
@@ -273,7 +273,7 @@ binaries using the old libc5 struct will corrupt
 Debian systems include a patched libc5 which uses the new utmp format.
 The problem still exists with wtmp since it's accessed directly in
 libc5.
-.SH RESTRICTIONS
+.SH NOTES
 The file format is machine dependent, so it is recommended that it be
 processed only on the machine architecture where it was created.
 .PP