]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
Reordered sections to be more consistent, in some cases renaming
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 18 May 2007 16:06:42 +0000 (16:06 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 18 May 2007 16:06:42 +0000 (16:06 +0000)
sections or shifting paragraphs between sections.

88 files changed:
Changes
Changes.old
man-pages-2.53.Announce
man-pages-2.53.lsm
man2/accept.2
man2/access.2
man2/alarm.2
man2/arch_prctl.2
man2/bind.2
man2/cacheflush.2
man2/chdir.2
man2/chown.2
man2/clone.2
man2/create_module.2
man2/dup.2
man2/epoll_wait.2
man2/faccessat.2
man2/fchmodat.2
man2/fchownat.2
man2/fcntl.2
man2/fdatasync.2
man2/fstatat.2
man2/fsync.2
man2/futex.2
man2/futimesat.2
man2/get_kernel_syms.2
man2/get_mempolicy.2
man2/get_thread_area.2
man2/getcontext.2
man2/getdtablesize.2
man2/getgroups.2
man2/getitimer.2
man2/getpriority.2
man2/getrlimit.2
man2/gettimeofday.2
man2/intro.2
man2/io_destroy.2
man2/io_getevents.2
man2/io_setup.2
man2/io_submit.2
man2/ioctl.2
man2/ioprio_set.2
man2/kill.2
man2/killpg.2
man2/link.2
man2/linkat.2
man2/listen.2
man2/lookup_dcookie.2
man2/madvise.2
man2/mbind.2
man2/mincore.2
man2/mkdirat.2
man2/mknodat.2
man2/mlock.2
man2/mmap.2
man2/mmap2.2
man2/mremap.2
man2/msgctl.2
man2/msgget.2
man2/nanosleep.2
man2/open.2
man2/openat.2
man2/pivot_root.2
man2/poll.2
man2/posix_fadvise.2
man2/prctl.2
man2/pread.2
man2/ptrace.2
man2/readlinkat.2
man2/remap_file_pages.2
man2/renameat.2
man2/sched_setaffinity.2
man2/select.2
man2/semctl.2
man2/semget.2
man2/semop.2
man2/set_mempolicy.2
man2/set_thread_area.2
man2/setfsgid.2
man2/setresuid.2
man2/setreuid.2
man2/setsid.2
man2/shmctl.2
man2/shmget.2
man2/shmop.2
man3/difftime.3
man3/getrpcent.3
man8/ld.so.8

diff --git a/Changes b/Changes
index 886612250d3dfc52e0fafca109f5f94f4b7d3c56..f4f83ffc0d0f7e7fbf36ce4cdd95fa80da21203f 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,6 +1,6 @@
-==================== Changes in man-pages-2.52 ====================
+==================== Changes in man-pages-2.53 ====================
 
-Released: 2007-05-29
+Released: 2007-??-??
 
     "A foolish consistency is the hobgoblin of little minds, adored by 
      little statesmen and philosophers and divines"
@@ -10,210 +10,10 @@ Released: 2007-05-29
     "But damn it, these man pages are a mess!"
 
 
-Contributors
-------------
-
-The following people contributed notes, ideas, or patches that have
-been incorporated in changes in this release:
-
-
-Apologies if I missed anyone!
-
-
 Global changes
 --------------
 
-Most of the changes below are about bringing greater consistency
-to manual pages, including reducing the side wange of .SH 
-Section headings.
-
-Typographical or grammatical errors have been corrected in several
-places.
-
-Various pages
-    mtk
-        Make 'manual' component of .TH line "Linux Programmer's Manual"
-        Reason: consistency.
-
-Various pages
-    mtk
-        Changed date in .TH line into form YYYY-DD-MM.
-        Reason: consistency.
-
-Various pages
-    mtk
-        Some .SH header lines were made into .SS lines.  (One of the aims
-        here is to reduce the number of non-standard .SH lines.)
-
-Various pages
-    mtk
-        Change title .SH sections named "NOTE" to "NOTES", in some cases
-        also changing the location of the section within the page.
-        Reason: consistency.
-
-Various pages
-    mtk
-        Commented out .SH AUTHOR sections; the right place for 
-        documentation authoriship sections is usually comments at the 
-        top of the page source.
-
-Various pages
-    mtk
-        Changed .SH HISTORY to .SH VERSIONS.
-        Reason: in many cases, HISTORY was being used to describe 
-        Linux/glibc version innformation, as was already done for 
-        VERSIONS sections in other pages.
-
-Various pages
-    mtk
-       Removed HISTORY section, or moved it as a subsection or paragraphs
-       under another section e.g., NOTES.
-       Reason: there are too many arbitrary section (.SH) names, and
-       a HISTORY section never was consistently used across Linux 
-       manual pages.
-
-Various pages
-    mtk
-        Moved SEE ALSO section to be last section on the page
-        Reason: consistency -- and this where SEE ALSO should be!
-
-Various pages
-    mtk
-        Relocated GLIBC NOTES as subsection under NOTES
-        Reason: reduce number of arbitrary section (.SH) names.
-
-Various pages
-    mtk
-        Relocated LINUX NOTES as subsection under NOTES
-        Reason: reduce number of arbitrary section (.SH) names.
-
-Various pages
-    mtk
-        Renamed some "AVAILABILIY" sections to "VERSIONS".
-        Reason: consistency.
-
-Various pages
-    mtk
-        Renamed some "DIAGNOSTICS" sections to "RETURN VALUE".
-        Reason: consistency.
-
-getopt.3
-tzselect.8
-    mtk
-        s/\.SH ENVIRONMENT VARIABLES/.SH ENVIRONMENT/
-        Reason: consistency.
-
-intro.2
-select.2
-sysctl.2
-bsearch.3
-dlopen.3
-envz_add.3
-fmtmsg.3
-getgrent_r.3
-getgrouplist.3
-getpwent_r.3
-getutent.3
-hsearch.3
-rtime.3
-strptime.3
-tsearch.3
-vcs.4
-wordexp.3
-    mtk
-        s/return 0/exit(EXIT_FAILURE)/ in main() of function example 
-        program.
-        Reason: consistency.
-
-mprotect.2
-select_tut.2
-dlopen.3
-getgrent_r.3
-getopt.3
-getpwent_r.3
-hsearch.3
-select_tut.2
-tsearch.3
-    mtk
-        Use symbolic constants (EXIT_SUCCESS, EXIT_FAILURE) in calls 
-        to exit().
-        Reason: consistency.
-
-access.2
-chown.2
-lseek.2
-open.2
-read.2
-utmp.5
-    mtk
-        Renamed RESTRICTIONS section to NOTES, or moved text in a 
-        RESTRICTIONS section under existing NOTES section.
-        Reason: consistency, and reduce number of arbitrary section (.SH)
-        names.
-
 
 Changes to individual pages
 ---------------------------
 
-capget.2
-    mtk
-        s/\.SH FURTHER INFORMATION/.SH NOTES/
-
-dup.2
-    mtk
-        s/\.SH WARNING/.SH NOTES/
-
-kill.2
-    Renamed LINUX HISTORY section to LINUX NOTES, and relocated 
-    within page.
-
-select_tut.2
-    mtk
-        Relocated example program and made its .SH title "EXAMPLE".
-
-sigaltstack.2
-    mtk
-        Move code example into its own EXAMPLE secton.
-
-sigreturn.2
-    mtk
-        s/\.SH WARNING/.SH NOTES/
-
-setuid.2
-    mtk
-        s/\.SH "LINUX-SPECIFIC REMARKS"/.SH LINUX NOTES/
-
-shmget.2
-    mtk
-        Remove section about effect of fork()/exec()/exit(); shmop.2 
-        contains the same text, and it only needs to be said once.
-
-shmop.2
-    mtk
-         Minor rewording under DESCRIPTION.
-
-daemon.3
-    mtk
-        Minor wording and formatting changes.
-
-encrypt.3
-    mtk
-        Removed statement that glibc unconditionally exposes declarations
-        of encrypt() and setkey(), since portable applications must
-        use <unistd.h> and define _XOPEN_SOURCE to obtain the declarations
-        of setkey() and encrypt().  Adjusted example program accordingly.
-
-mkstemp.3
-    mtk
-        Slight rewording.
-
-LDP.7
-    mtk
-        Minor wording and formatting changes.
-
-man.7
-    mtk
-        Substantial rewrite, revising and extending the discussion
-        about desired conventions for writing pages.
-        There will be further updates to this page in the next few 
-        man-pages releases.
index b237935d4a9084a5a1adbc37d055c4183f548a0e..142516aa19754d1ba0fbf3693dfe9890f9a77d4e 100644 (file)
@@ -6272,3 +6272,214 @@ sem_wait.3
 stdarg.3
     mtk
         Add "va_start", "va_arg", "va_end", "va_copy" to .SH NAME line.
+
+
+==================== Changes in man-pages-2.52 ====================
+
+Released: 2007-05-29
+
+    "A foolish consistency is the hobgoblin of little minds, adored by 
+     little statesmen and philosophers and divines"
+
+         Ralph Waldo Emerson (1803-1882)
+
+    "But damn it, these man pages are a mess!"
+
+
+Global changes
+--------------
+
+Most of the changes below are about bringing greater consistency
+to manual pages, including reducing the side wange of .SH 
+Section headings.
+
+Typographical or grammatical errors have been corrected in several
+places.
+
+Various pages
+    mtk
+        Make 'manual' component of .TH line "Linux Programmer's Manual"
+        Reason: consistency.
+
+Various pages
+    mtk
+        Changed date in .TH line into form YYYY-DD-MM.
+        Reason: consistency.
+
+Various pages
+    mtk
+        Some .SH header lines were made into .SS lines.  (One of the aims
+        here is to reduce the number of non-standard .SH lines.)
+
+Various pages
+    mtk
+        Change title .SH sections named "NOTE" to "NOTES", in some cases
+        also changing the location of the section within the page.
+        Reason: consistency.
+
+Various pages
+    mtk
+        Commented out .SH AUTHOR sections; the right place for 
+        documentation authoriship sections is usually comments at the 
+        top of the page source.
+
+Various pages
+    mtk
+        Changed .SH HISTORY to .SH VERSIONS.
+        Reason: in many cases, HISTORY was being used to describe 
+        Linux/glibc version innformation, as was already done for 
+        VERSIONS sections in other pages.
+
+Various pages
+    mtk
+       Removed HISTORY section, or moved it as a subsection or paragraphs
+       under another section e.g., NOTES.
+       Reason: there are too many arbitrary section (.SH) names, and
+       a HISTORY section never was consistently used across Linux 
+       manual pages.
+
+Various pages
+    mtk
+        Moved SEE ALSO section to be last section on the page
+        Reason: consistency -- and this where SEE ALSO should be!
+
+Various pages
+    mtk
+        Relocated GLIBC NOTES as subsection under NOTES
+        Reason: reduce number of arbitrary section (.SH) names.
+
+Various pages
+    mtk
+        Relocated LINUX NOTES as subsection under NOTES
+        Reason: reduce number of arbitrary section (.SH) names.
+
+Various pages
+    mtk
+        Renamed some "AVAILABILIY" sections to "VERSIONS".
+        Reason: consistency.
+
+Various pages
+    mtk
+        Renamed some "DIAGNOSTICS" sections to "RETURN VALUE".
+        Reason: consistency.
+
+getopt.3
+tzselect.8
+    mtk
+        s/\.SH ENVIRONMENT VARIABLES/.SH ENVIRONMENT/
+        Reason: consistency.
+
+intro.2
+select.2
+sysctl.2
+bsearch.3
+dlopen.3
+envz_add.3
+fmtmsg.3
+getgrent_r.3
+getgrouplist.3
+getpwent_r.3
+getutent.3
+hsearch.3
+rtime.3
+strptime.3
+tsearch.3
+vcs.4
+wordexp.3
+    mtk
+        s/return 0/exit(EXIT_FAILURE)/ in main() of function example 
+        program.
+        Reason: consistency.
+
+mprotect.2
+select_tut.2
+dlopen.3
+getgrent_r.3
+getopt.3
+getpwent_r.3
+hsearch.3
+select_tut.2
+tsearch.3
+    mtk
+        Use symbolic constants (EXIT_SUCCESS, EXIT_FAILURE) in calls 
+        to exit().
+        Reason: consistency.
+
+access.2
+chown.2
+lseek.2
+open.2
+read.2
+utmp.5
+    mtk
+        Renamed RESTRICTIONS section to NOTES, or moved text in a 
+        RESTRICTIONS section under existing NOTES section.
+        Reason: consistency, and reduce number of arbitrary section (.SH)
+        names.
+
+
+Changes to individual pages
+---------------------------
+
+capget.2
+    mtk
+        s/\.SH FURTHER INFORMATION/.SH NOTES/
+
+dup.2
+    mtk
+        s/\.SH WARNING/.SH NOTES/
+
+kill.2
+    Renamed LINUX HISTORY section to LINUX NOTES, and relocated 
+    within page.
+
+select_tut.2
+    mtk
+        Relocated example program and made its .SH title "EXAMPLE".
+
+sigaltstack.2
+    mtk
+        Move code example into its own EXAMPLE secton.
+
+sigreturn.2
+    mtk
+        s/\.SH WARNING/.SH NOTES/
+
+setuid.2
+    mtk
+        s/\.SH "LINUX-SPECIFIC REMARKS"/.SH LINUX NOTES/
+
+shmget.2
+    mtk
+        Remove section about effect of fork()/exec()/exit(); shmop.2 
+        contains the same text, and it only needs to be said once.
+
+shmop.2
+    mtk
+         Minor rewording under DESCRIPTION.
+
+daemon.3
+    mtk
+        Minor wording and formatting changes.
+
+encrypt.3
+    mtk
+        Removed statement that glibc unconditionally exposes declarations
+        of encrypt() and setkey(), since portable applications must
+        use <unistd.h> and define _XOPEN_SOURCE to obtain the declarations
+        of setkey() and encrypt().  Adjusted example program accordingly.
+
+mkstemp.3
+    mtk
+        Slight rewording.
+
+LDP.7
+    mtk
+        Minor wording and formatting changes.
+
+man.7
+    mtk
+        Substantial rewrite, revising and extending the discussion
+        about desired conventions for writing pages.
+        There will be further updates to this page in the next few 
+        man-pages releases.
index 21a20a2f6ad85e7b8c38163e519d0a4ac7c3ac80..01cb82aa2bb5488b9c604b34b748a0b7bbeacf98 100644 (file)
@@ -1,7 +1,7 @@
 RELEASE
 The Linux man page maintainer proudly announces. . .
 
-    man-pages-2.52.tar.gz - man pages for Linux
+    man-pages-2.53.tar.gz - man pages for Linux
 
 Differences from the previous manual pages release are listed in
 the file "Changes".
index 7033efa921c6ff4a3a30ef4bd3d778cdc27007f8..194f5499af938757074952726937bb82dbba9a36 100644 (file)
@@ -1,13 +1,13 @@
 Begin3
 Title:          Section 2, 3, 4, 5 and 7 man pages for Linux
-Version:        2.52
-Entered-date:   2007-05-29
+Version:        2.53
+Entered-date:   2007-??-??
 Description:    Linux and POSIX manual pages
 Keywords:       man pages
 Author:         several
 Maintained-by:  Michael Kerrisk <mtk-manpages@gmx.net>
 Primary-site:   ftp://ftp.kernel.org/pub/linux/docs/manpages
-                2599k man-pages-2.52.tar.gz
+                ????k man-pages-2.53.tar.gz
 Alternate-site: ftp://ftp.win.tue.nl/pub/linux-local/manpages
 Copying-policy: several; for the POSIX pages, see the file POSIX-COPYRIGHT;
                the other pages are all freely distributable as long as
index 030ed8be88b9d49efd0d76918b9f9365fdec788d..fe3abd9a4c76443a345881320eb290fd41c8a6c3 100644 (file)
@@ -126,27 +126,6 @@ implied by closing the new socket.
 Currently only
 DECNet
 has these semantics on Linux.
-.SH NOTES
-There may not always be a connection waiting after a
-.B SIGIO
-is delivered or
-.BR select (2)
-or
-.BR poll (2)
-return a readability event because the connection might have been
-removed by an asynchronous network error or another thread before
-.BR accept ()
-is called.
-If this happens then the call will block waiting for the next
-connection to arrive.
-To ensure that
-.BR accept ()
-never blocks, the passed socket
-.I sockfd
-needs to have the
-.B O_NONBLOCK
-flag set (see
-.BR socket (7)).
 .SH "RETURN VALUE"
 On success,
 .BR accept ()
@@ -276,6 +255,27 @@ of file status flags and always explicitly set all required flags on
 the socket returned from
 .BR accept ().
 .SH NOTES
+There may not always be a connection waiting after a
+.B SIGIO
+is delivered or
+.BR select (2)
+or
+.BR poll (2)
+return a readability event because the connection might have been
+removed by an asynchronous network error or another thread before
+.BR accept ()
+is called.
+If this happens then the call will block waiting for the next
+connection to arrive.
+To ensure that
+.BR accept ()
+never blocks, the passed socket
+.I sockfd
+needs to have the
+.B O_NONBLOCK
+flag set (see
+.BR socket (7)).
+.SS The socklen_t type
 The third argument of
 .BR accept ()
 was originally declared as an `int *' (and is that under libc4 and libc5
index 9b970c5dadfc7f3d5c87db1c56ee836ca5bcbff6..d97cb0fea31fdd80bfe023dceff36cd450443b4e 100644 (file)
@@ -154,18 +154,8 @@ Insufficient kernel memory was available.
 .B ETXTBSY
 Write access was requested to an executable which is being
 executed.
-.SH "NOTES"
-.SS Linux Notes
-In kernels before 2.6.20,
-.BR access ()
-ignored the effect of the
-.B MS_NOEXEC
-flag if it was used to
-.BR mount (2)
-the underlying file system.
-Since kernel 2.6.20,
-.BR access ()
-honours this flag.
+.SH "CONFORMING TO"
+SVr4, 4.3BSD, POSIX.1-2001.
 .SH NOTES
 .BR access ()
 returns an error if any of the access types in the requested call
@@ -184,8 +174,17 @@ doing so using
 .BR open (2)
 creates a security hole, because the user might exploit the short time
 interval between checking and opening the file to manipulate it.
-.SH "CONFORMING TO"
-SVr4, 4.3BSD, POSIX.1-2001.
+.SS Linux Notes
+In kernels before 2.6.20,
+.BR access ()
+ignored the effect of the
+.B MS_NOEXEC
+flag if it was used to
+.BR mount (2)
+the underlying file system.
+Since kernel 2.6.20,
+.BR access ()
+honours this flag.
 .SH "SEE ALSO"
 .BR chmod (2),
 .BR chown (2),
index 97840544ac50f1fe11f5e678a1043d0e067d602f..6b94c90a5e044ea931e93f8ac7d3cd4ee0057963 100644 (file)
@@ -58,6 +58,8 @@ is cancelled.
 returns the number of seconds remaining until any previously scheduled
 alarm was due to be delivered, or zero if there was no previously
 scheduled alarm.
+.SH "CONFORMING TO"
+SVr4, POSIX.1-2001, 4.3BSD
 .SH NOTES
 .BR alarm ()
 and
@@ -76,8 +78,6 @@ is a bad idea.
 
 Scheduling delays can, as ever, cause the execution of the process to
 be delayed by an arbitrary amount of time.
-.SH "CONFORMING TO"
-SVr4, POSIX.1-2001, 4.3BSD
 .SH "SEE ALSO"
 .BR gettimeofday (2),
 .BR pause (2),
index d6f7619b47ff75fcefdec2f13546bb5d47502552..2d9617474fb38d2bbe1b0c50d72f76e7cb58a7ca 100644 (file)
@@ -70,6 +70,25 @@ register of the current thread in the
 pointed to by the
 .I address
 parameter.
+.SH ERRORS
+.TP
+.B EFAULT
+.I addr
+points to an unmapped address or is outside the process address space.
+.TP
+.B EINVAL
+.I code
+is not a valid subcommand.
+.TP
+.B EPERM
+.I addr
+is outside the process address space.
+.\" .SH AUTHOR
+.\" Man page written by Andi Kleen.
+.SH "CONFORMING TO"
+.BR arch_prctl ()
+is a Linux/x86-64 extension and should not be used in programs intended
+to be portable.
 .SH NOTES
 .BR arch_prctl ()
 is only supported on Linux/x86-64 for 64bit programs currently.
@@ -102,25 +121,6 @@ This may be fixed in future glibc versions.
 
 .I FS
 may be already used by the threading library.
-.SH ERRORS
-.TP
-.B EFAULT
-.I addr
-points to an unmapped address or is outside the process address space.
-.TP
-.B EINVAL
-.I code
-is not a valid subcommand.
-.TP
-.B EPERM
-.I addr
-is outside the process address space.
-.\" .SH AUTHOR
-.\" Man page written by Andi Kleen.
-.SH "CONFORMING TO"
-.BR arch_prctl ()
-is a Linux/x86-64 extension and should not be used in programs intended
-to be portable.
 .SH "SEE ALSO"
 .BR mmap (2),
 .BR modify_ldt (2),
index 9a6d03faaac5be7c30cf60b2f7b0f32c98573b43..01d258cccf0d71c24de33a92bc3729e6db07a5dc 100644 (file)
@@ -258,8 +258,6 @@ A component of the path prefix is not a directory.
 .TP
 .B EROFS
 The socket inode would reside on a read-only file system.
-.SH BUGS
-The transparent proxy options are not described.
 .SH "CONFORMING TO"
 SVr4, 4.4BSD, POSIX.1-2001 (the
 .BR bind ()
@@ -283,6 +281,8 @@ Some POSIX confusion resulted in the present
 also used by glibc.
 See also
 .BR accept (2).
+.SH BUGS
+The transparent proxy options are not described.
 .SH "SEE ALSO"
 .BR accept (2),
 .BR connect (2),
index 7155a6d25d9ab1b734394c52cdcbacfc9c46665c..a65b98aae14ef0e2fc415a3d397d0a0fa0ee3e58 100644 (file)
@@ -58,6 +58,9 @@ Some or all of the address range addr to (addr+nbytes-1) is not accessible.
 .TP
 .B EINVAL
 cache parameter is not one of ICACHE, DCACHE, or BCACHE.
+.SH NOTES
+This system call is only available on MIPS based systems.
+It should not be used in programs intended to be portable.
 .SH BUGS
 The current implementation ignores the
 .I addr
@@ -65,6 +68,3 @@ and
 .I nbytes
 arguments.
 Therefore, the whole cache is always flushed.
-.SH NOTES
-This system call is only available on MIPS based systems.
-It should not be used in programs intended to be portable.
index 1352ca2c807602384d72ed240aec068c72d4168c..9a245698326b818c79ce26df6ef388b59b0488cc 100644 (file)
@@ -105,6 +105,8 @@ Search permission was denied on the directory open on
 .B EBADF
 .I fd
 is not a valid file descriptor.
+.SH "CONFORMING TO"
+SVr4, 4.4BSD, POSIX.1-2001.
 .SH NOTES
 A child process created via
 .BR fork (2)
@@ -119,8 +121,6 @@ is only available if
 is defined, or
 .B _XOPEN_SOURCE
 is defined with the value 500.
-.SH "CONFORMING TO"
-SVr4, 4.4BSD, POSIX.1-2001.
 .SH "SEE ALSO"
 .BR chroot (2),
 .BR path_resolution (2),
index f2db41f76b34d554a05d34b408c90ad8c70fb274..46aac4b1ee61577cddbe94b618af039dc778000e 100644 (file)
@@ -138,6 +138,17 @@ See above.
 .TP
 .B EROFS
 See above.
+.SH "CONFORMING TO"
+4.4BSD, SVr4, POSIX.1-2001.
+
+The 4.4BSD version can only be
+used by the superuser (that is, ordinary users cannot give away files).
+.\" chown():
+.\" SVr4 documents EINVAL, EINTR, ENOLINK and EMULTIHOP returns, but no
+.\" ENOMEM.  POSIX.1 does not document ENOMEM or ELOOP error conditions.
+.\" fchown():
+.\" SVr4 documents additional EINVAL, EIO, EINTR, and ENOLINK
+.\" error conditions.
 .SH NOTES
 The
 .BR chown ()
@@ -172,17 +183,6 @@ The prototype for
 is only available if
 .B _BSD_SOURCE
 is defined.
-.SH "CONFORMING TO"
-4.4BSD, SVr4, POSIX.1-2001.
-
-The 4.4BSD version can only be
-used by the superuser (that is, ordinary users cannot give away files).
-.\" chown():
-.\" SVr4 documents EINVAL, EINTR, ENOLINK and EMULTIHOP returns, but no
-.\" ENOMEM.  POSIX.1 does not document ENOMEM or ELOOP error conditions.
-.\" fchown():
-.\" SVr4 documents additional EINVAL, EIO, EINTR, and ENOLINK
-.\" error conditions.
 .SH "SEE ALSO"
 .BR chmod (2),
 .BR fchownat (2),
index a236a2dd45d0534c8f47261ca1913eeab4d3b0df..6b56be27583dc8a612fd5a57102a9aef19cefdff 100644 (file)
@@ -634,6 +634,13 @@ in libc5.
 glibc2 provides
 .BR clone ()
 as described in this manual page.
+.SH "CONFORMING TO"
+The
+.BR clone ()
+and
+.B sys_clone
+calls are Linux specific and should not be used in programs
+intended to be portable.
 .SH NOTES
 In the kernel 2.4.x series,
 .B CLONE_THREAD
@@ -681,13 +688,6 @@ and
 .I stack_size
 specifies the size of the stack pointed to by
 .IR child_stack_base .
-.SH "CONFORMING TO"
-The
-.BR clone ()
-and
-.B sys_clone
-calls are Linux specific and should not be used in programs
-intended to be portable.
 .SH BUGS
 Versions of the GNU C library that include the NPTL threading library
 contain a wrapper function for
index 7e9beee0e5f5ac16554375eb383b5060b0dc943a..10dedb877a0a070342933a8e2f025c4058f436b0 100644 (file)
@@ -45,13 +45,13 @@ The caller was not privileged
 (did not have the
 .B CAP_SYS_MODULE
 capability).
-.SH "CONFORMING TO"
-.BR create_module ()
-is Linux specific.
 .SH VERSIONS
 This system call is only present on Linux up until kernel 2.4;
 it was removed in Linux 2.6.
 .\" Removed in Linux-2.5.48
+.SH "CONFORMING TO"
+.BR create_module ()
+is Linux specific.
 .SH "SEE ALSO"
 .BR init_module (2),
 .BR delete_module (2),
index 6e0e45aee4c311315d349a74dca329837596a876..b4635eba29119b0aba27d2a38baf6e49103e2129 100644 (file)
@@ -103,6 +103,11 @@ call was interrupted by a signal.
 .B EMFILE
 The process already has the maximum number of file
 descriptors open and tried to open a new one.
+.SH "CONFORMING TO"
+SVr4, 4.3BSD, POSIX.1-2001.
+.\" SVr4 documents additional
+.\" EINTR and ENOLINK error conditions.  POSIX.1 adds EINTR.
+.\" The EBUSY return is Linux specific.
 .SH NOTES
 The error returned by
 .BR dup2 ()
@@ -128,11 +133,6 @@ A careful programmer will not use
 without closing
 .I newfd
 first.
-.SH "CONFORMING TO"
-SVr4, 4.3BSD, POSIX.1-2001.
-.\" SVr4 documents additional
-.\" EINTR and ENOLINK error conditions.  POSIX.1 adds EINTR.
-.\" The EBUSY return is Linux specific.
 .SH "SEE ALSO"
 .BR close (2),
 .BR fcntl (2),
index 9637475f9fffc4c40bc916a593d39af89329aded..985e7a75415e5868948698a8acda50c0c6f9e9bc 100644 (file)
@@ -126,14 +126,6 @@ executing the following calls:
     sigprocmask(SIG_SETMASK, &origmask, NULL);
 .fi
 
-.SH VERSIONS
-.BR epoll_pwait ()
-was added to Linux in kernel 2.6.19.
-.SH NOTES
-.SS Glibc Notes
-Support for 
-.BR epoll_pwait ()
-is provided starting with glibc 2.6.
 .SH "RETURN VALUE"
 When successful,
 .BR epoll_wait (2)
@@ -170,6 +162,13 @@ is not an
 file descriptor, or
 .I maxevents
 is less than or equal to zero.
+.SH VERSIONS
+.BR epoll_pwait ()
+was added to Linux in kernel 2.6.19.
+
+Glibc support for 
+.BR epoll_pwait ()
+is provided starting with version 2.6.
 .SH CONFORMING TO
 .BR epoll_wait (2)
 is Linux specific, and was introduced in kernel 2.5.44.
index 140710546c778ca6ecafa24dd15dc23d35b24e83..2257e2952e6de20c3370b39bb49a6dec3f430a4c 100644 (file)
@@ -114,6 +114,12 @@ Invalid flag specified in
 is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
+.SH VERSIONS
+.BR faccessat ()
+was added to Linux in kernel 2.6.16.
+.SH "CONFORMING TO"
+This system call is non-standard but is proposed
+for inclusion in a future revision of POSIX.1.
 .SH NOTES
 See
 .BR openat (2)
@@ -129,12 +135,6 @@ flags are actually implemented within the glibc wrapper function for
 If either of these flags are specified, then the wrapper function employs
 .BR fstatat (2)
 to determine access permissions.
-.SH VERSIONS
-.BR faccessat ()
-was added to Linux in kernel 2.6.16.
-.SH "CONFORMING TO"
-This system call is non-standard but is proposed
-for inclusion in a future revision of POSIX.1.
 .SH "SEE ALSO"
 .BR access (2),
 .BR openat (2),
index 38ffadb7c4fbdb39cf46abf347f31f27a90173b7..882a9757997a747bc390ce681bec2e42d7c8f664 100644 (file)
@@ -113,17 +113,17 @@ is a file descriptor referring to a file other than a directory.
 specified
 .BR AT_SYMLINK_NOFOLLOW ,
 which is not supported.
+.SH VERSIONS
+.BR fchmodat ()
+was added to Linux in kernel 2.6.16.
+.SH "CONFORMING TO"
+This system call is non-standard but is proposed
+for inclusion in a future revision of POSIX.1.
 .SH NOTES
 See
 .BR openat (2)
 for an explanation of the need for
 .BR fchmodat ().
-.SH "CONFORMING TO"
-This system call is non-standard but is proposed
-for inclusion in a future revision of POSIX.1.
-.SH VERSIONS
-.BR fchmodat ()
-was added to Linux in kernel 2.6.16.
 .SH "SEE ALSO"
 .BR chmod (2),
 .BR openat (2),
index 0724cf28cdaf01baccdfa2d8b764984b0e542fdd..4857d4340dd979442bf51d3bf74034f9c4d189a1 100644 (file)
@@ -111,18 +111,18 @@ Invalid flag specified in
 is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
+.SH VERSIONS
+.BR fchownat ()
+was added to Linux in kernel 2.6.16.
+.SH "CONFORMING TO"
+This system call is non-standard but is proposed
+for inclusion in a future revision of POSIX.1.
+A similar system call exists on Solaris.
 .SH NOTES
 See
 .BR openat (2)
 for an explanation of the need for
 .BR fchownat ().
-.SH "CONFORMING TO"
-This system call is non-standard but is proposed
-for inclusion in a future revision of POSIX.1.
-A similar system call exists on Solaris.
-.SH VERSIONS
-.BR fchownat ()
-was added to Linux in kernel 2.6.16.
 .SH "SEE ALSO"
 .BR chown (2),
 .BR openat (2),
index cf7ecd1d3145d7fc19458febfd3d916451904745..dde15eab19d873a01661edc430f34d4fa26c6f8d 100644 (file)
@@ -865,6 +865,17 @@ protocol failed (e.g. locking over NFS).
 Attempted to clear the
 .B O_APPEND
 flag on a file that has the append-only attribute set.
+.SH "CONFORMING TO"
+SVr4, 4.3BSD, POSIX.1-2001.
+Only the operations F_DUPFD,
+F_GETFD, F_SETFD, F_GETFL, F_SETFL, F_GETLK, F_SETLK, F_SETLKW,
+F_GETOWN, and F_SETOWN are specified in POSIX.1-2001.
+
+F_GETSIG, F_SETSIG, F_NOTIFY, F_GETLEASE, and F_SETLEASE
+are Linux specific.
+(Define the _GNU_SOURCE macro to obtain these definitions.)
+.\" .PP
+.\" SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
 .SH NOTES
 The errors returned by
 .BR dup2 (2)
@@ -930,17 +941,6 @@ even when the owner process (group) is one that the caller
 has permission to send signals to.
 Despite this error return, the file descriptor owner is set,
 and signals will be sent to the owner.
-.SH "CONFORMING TO"
-SVr4, 4.3BSD, POSIX.1-2001.
-Only the operations F_DUPFD,
-F_GETFD, F_SETFD, F_GETFL, F_SETFL, F_GETLK, F_SETLK, F_SETLKW,
-F_GETOWN, and F_SETOWN are specified in POSIX.1-2001.
-
-F_GETSIG, F_SETSIG, F_NOTIFY, F_GETLEASE, and F_SETLEASE
-are Linux specific.
-(Define the _GNU_SOURCE macro to obtain these definitions.)
-.\" .PP
-.\" SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
 .SH "SEE ALSO"
 .BR dup2 (2),
 .BR flock (2),
index ff8678194ad1eff19dc47dbd14dd942a6b56f95f..05837531dcfe03661727a07ce24db3b71f78758a 100644 (file)
@@ -74,11 +74,6 @@ An error occurred during synchronization.
 .BR EROFS ", " EINVAL
 .I fd
 is bound to a special file which does not support synchronization.
-.SH BUGS
-Currently (Linux 2.2)
-.BR fdatasync ()
-is equivalent to
-.BR fsync (2).
 .SH AVAILABILITY
 On POSIX systems on which
 .BR fdatasync ()
@@ -92,6 +87,12 @@ i defined in <unistd.h> to a value greater than 0.
 .\" glibc defines them to 1.
 .SH "CONFORMING TO"
 POSIX.1-2001.
+.SH BUGS
+.\" FIXME The following is no longer true
+Currently (Linux 2.2)
+.BR fdatasync ()
+is equivalent to
+.BR fsync (2).
 .SH "SEE ALSO"
 .BR fsync (2),
 .BR sync_file_range (2)
index d02796e65b0071e258302c57c84329d97ff63256..46aa08a010d237efc6fac4148ed358ccdbe5983f 100644 (file)
@@ -111,18 +111,18 @@ Invalid flag specified in
 is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
+.SH VERSIONS
+.BR fstatat ()
+was added to Linux in kernel 2.6.16.
+.SH "CONFORMING TO"
+This system call is non-standard but is proposed
+for inclusion in a future revision of POSIX.1.
+A similar system call exists on Solaris.
 .SH NOTES
 See
 .BR openat (2)
 for an explanation of the need for
 .BR fstatat ().
-.SH "CONFORMING TO"
-This system call is non-standard but is proposed
-for inclusion in a future revision of POSIX.1.
-A similar system call exists on Solaris.
-.SH VERSIONS
-.BR fstatat ()
-was added to Linux in kernel 2.6.16.
 .SH "SEE ALSO"
 .BR openat (2),
 .BR path_resolution (2),
index 834e0bb4a8595bcaedf701e7ac947d0a73d8c280..ac45d2903082fdfeca278b066ab69998ba463ef2 100644 (file)
@@ -105,6 +105,8 @@ An error occurred during synchronization.
 .BR EROFS ", " EINVAL
 .I fd
 is bound to a special file which does not support synchronization.
+.SH "CONFORMING TO"
+4.3BSD, POSIX.1-2001
 .SH NOTES
 If the underlying hard disk has write caching enabled, then
 the data may not really be on permanent storage when
@@ -128,8 +130,6 @@ An alternative might be to use the
 .I O_SYNC
 flag to
 .BR open (2).
-.SH "CONFORMING TO"
-4.3BSD, POSIX.1-2001
 .SH "SEE ALSO"
 .BR bdflush (2),
 .BR open (2),
index 710ebb47b7e27722c24add9ed058350110b68f4f..38cb52b93117e244c0ced29d380b32b80d9dc1f7 100644 (file)
@@ -199,6 +199,18 @@ An operation was not defined or error in page alignment.
 .TP
 .B ENFILE
 The system limit on the total number of open files has been reached.
+.SH "VERSIONS"
+.PP
+Initial futex support was merged in Linux 2.5.7 but with different semantics
+from what was described above.
+A 4-parameter system call with the semantics
+given here was introduced in Linux 2.5.40.
+In Linux 2.5.70 one parameter
+was added.
+In Linux 2.6.7 a sixth parameter was added \(em messy, especially
+on the s390 architecture.
+.SH "CONFORMING TO"
+This system call is Linux specific.
 .SH "NOTES"
 .PP
 To reiterate, bare futexes are not intended as an easy to use abstraction
@@ -212,18 +224,6 @@ read the sources of the futex userspace library referenced below.
 .\" Matthew Kirkwood, Ingo Molnar (Red Hat)
 .\" and Rusty Russell (IBM Linux Technology Center).
 .\" This page written by bert hubert.
-.SH "VERSIONS"
-.PP
-Initial futex support was merged in Linux 2.5.7 but with different semantics
-from what was described above.
-A 4-parameter system call with the semantics
-given here was introduced in Linux 2.5.40.
-In Linux 2.5.70 one parameter
-was added.
-In Linux 2.6.7 a sixth parameter was added \(em messy, especially
-on the s390 architecture.
-.SH "CONFORMING TO"
-This system call is Linux specific.
 .SH "SEE ALSO"
 .PP
 .BR futex (7),
index 614366c174fa7245789bce04e7e101ec563488b1..d2e64703bc26dc2f1d8d3015de23f6036f5a6347 100644 (file)
@@ -93,6 +93,9 @@ is not a valid file descriptor.
 is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
+.SH VERSIONS
+.BR futimesat ()
+was added to Linux in kernel 2.6.16.
 .SH "CONFORMING TO"
 This system call is non-standard but is proposed
 for inclusion in a future revision of POSIX.1.
@@ -106,9 +109,6 @@ is NULL, then the glibc
 wrapper function updates the times for the file referred to by
 .IR dirfd .
 .\" The Solaris futimesat() also has this strangeness.
-.SH VERSIONS
-.BR futimesat ()
-was added to Linux in kernel 2.6.16.
 .SH "SEE ALSO"
 .BR path_resolution (2),
 .BR stat (2),
index 69d43d5c2dec34ec4c85a6681c9d26f709bdfa83..50e3193f6e9796b25d2cd8ecaa19eb16f772f49a 100644 (file)
@@ -44,6 +44,10 @@ order in which they were loaded.
 Returns the number of symbols copied to
 .IR table .
 There is no possible error return.
+.SH VERSIONS
+This system call is only present on Linux up until kernel 2.4;
+it was removed in Linux 2.6.
+.\" Removed in Linux-2.5.48
 .SH "CONFORMING TO"
 .BR get_kernel_syms ()
 is Linux specific.
@@ -60,10 +64,6 @@ favor of
 .BR query_module (2)
 (which is itself nowadays deprecated
 in favor of other interfaces described on its manual page).
-.SH VERSIONS
-This system call is only present on Linux up until kernel 2.4;
-it was removed in Linux 2.6.
-.\" Removed in Linux-2.5.48
 .SH "SEE ALSO"
 .BR create_module (2),
 .BR delete_module (2),
index 8644c4745a03f8fb9be4eb7eda1c1a30b9f46f87..4ac24b703b40306d0e6c8b4e8845b4e8bf63b52b 100644 (file)
@@ -143,6 +143,8 @@ is set to indicate the error.
 .\" .I addr
 .\" is NULL.
 .\" (And there are other EINVAL cases.)
+.SH CONFORMING TO
+This system call is Linux specific.
 .SH NOTES
 This manual page is incomplete:
 it does not document the details the
@@ -157,8 +159,6 @@ future kernel versions.
 .SS "Versions and Library Support"
 See
 .BR mbind (2).
-.SH CONFORMING TO
-This system call is Linux specific.
 .SH SEE ALSO
 .BR mbind (2),
 .BR set_mempolicy (2),
index 4fa072c8fa992e135131c3d32dcbfdcb58a2bbbe..e752109094e81bf06fd8b884de1791056317614c 100644 (file)
@@ -34,14 +34,14 @@ appropriately.
 .TP
 .B EINVAL
 \fIu_info->\fR\fIentry_number\fR is out of bounds.
-.SH "CONFORMING TO"
-.BR get_thread_area ()
-is Linux specific and should not be used in programs
-that are intended to be portable.
 .SH VERSIONS
 A version of
 .BR get_thread_area ()
 first appeared in Linux 2.5.32.
+.SH "CONFORMING TO"
+.BR get_thread_area ()
+is Linux specific and should not be used in programs
+that are intended to be portable.
 .SH "SEE ALSO"
 .BR modify_ldt (2),
 .BR set_thread_area (2)
index 7b3cfc1bf9b97f8dd4d02fa99d5f700759a95de3..28858b287468d256630dc8797eab215bf25071db 100644 (file)
@@ -121,6 +121,8 @@ On error, both return \-1 and set \fIerrno\fP
 appropriately.
 .SH ERRORS
 None defined.
+.SH "CONFORMING TO"
+SUSv2, POSIX.1-2001.
 .SH NOTES
 The earliest incarnation of this mechanism was the
 .BR setjmp (3)/ longjmp (3) 
@@ -149,8 +151,6 @@ Use
 or
 .BR setcontext ()
 instead.
-.SH "CONFORMING TO"
-SUSv2, POSIX.1-2001.
 .SH "SEE ALSO"
 .BR sigaction (2),
 .BR sigaltstack (2),
index 0a2755d981d74a9e9079fae564c7a7d4de56f761..8bb1d3e4529ae7f434b5a01b26398b6c853f66d9 100644 (file)
@@ -37,6 +37,14 @@ returns the maximum number of files a process can have open,
 one more than the largest possible value for a file descriptor.
 .SH "RETURN VALUE"
 The current limit on the number of open files per process.
+.SH "CONFORMING TO"
+SVr4, 4.4BSD (the
+.BR getdtablesize ()
+function first appeared in 4.2BSD).
+It is not specified in POSIX.1-2001;
+portable applications should employ
+.I sysconf(_SC_OPEN_MAX)
+instead of this call.
 .SH NOTES
 .BR getdtablesize ()
 is implemented as a libc library function.
@@ -50,14 +58,6 @@ when that fails.
 The libc4 and libc5 versions return
 .B OPEN_MAX
 (set to 256 since Linux 0.98.4).
-.SH "CONFORMING TO"
-SVr4, 4.4BSD (the
-.BR getdtablesize ()
-function first appeared in 4.2BSD).
-It is not specified in POSIX.1-2001;
-portable applications should employ
-.I sysconf(_SC_OPEN_MAX)
-instead of this call.
 .SH "SEE ALSO"
 .BR close (2),
 .BR dup (2),
index 9e83b890d49d300146edc6d1fe8e80867e93ac3c..a26a45f424392de5b5c0bebc74ffab50f6d60f8c 100644 (file)
@@ -97,6 +97,14 @@ is less than the number of supplementary group IDs, but is not zero.
 .B EPERM
 The calling process has insufficient privilege to call
 .BR setgroups ().
+.SH "CONFORMING TO"
+SVr4, 4.3BSD.
+The
+.BR getgroups ()
+function is in POSIX.1-2001.
+Since
+.BR setgroups ()
+requires privilege, it is not covered by POSIX.1-2001.
 .SH NOTES
 A process can have up to at least NGROUPS_MAX supplementary group IDs
 in addition to the effective group ID.
@@ -120,14 +128,6 @@ The prototype for
 is only available if
 .B _BSD_SOURCE
 is defined.
-.SH "CONFORMING TO"
-SVr4, 4.3BSD.
-The
-.BR getgroups ()
-function is in POSIX.1-2001.
-Since
-.BR setgroups ()
-requires privilege, it is not covered by POSIX.1-2001.
 .SH "SEE ALSO"
 .BR getgid (2),
 .BR setgid (2),
index 3bc74685c3d5e8e2c949f5d288f3fa49b47d88f6..e935770d5d936d012166ff5229cd161cd97e594d 100644 (file)
@@ -131,14 +131,14 @@ is not one of
 .BR ITIMER_VIRTUAL ,
 or
 .BR ITIMER_PROF .
+.SH "CONFORMING TO"
+POSIX.1-2001, SVr4, 4.4BSD (this call first appeared in 4.2BSD).
 .SH NOTES
 A child created via
 .BR fork (2)
 does not inherit its parent's interval timers.
 Interval timers are preserved across an
 .BR execve (2).
-.SH "CONFORMING TO"
-POSIX.1-2001, SVr4, 4.4BSD (this call first appeared in 4.2BSD).
 .SH BUGS
 The generation and delivery of a signal are distinct, and
 only one instance of each of the signals listed above may be pending
index 9c4dc1d428021822e9c818ff5f6e73b1f2f0b840..05313e610e21bc02df6cfc42102d4f48942f4369 100644 (file)
@@ -152,6 +152,9 @@ to set a process priority outside the range of the
 soft resource limit of the target process; see
 .BR getrlimit (2)
 for details.
+.SH "CONFORMING TO"
+SVr4, 4.4BSD (these function calls first appeared in 4.2BSD),
+POSIX.1-2001.
 .SH NOTES
 A child created by
 .BR fork (2)
@@ -201,9 +204,6 @@ structure with fields of type
 .I struct timeval
 defined in
 .IR <sys/time.h> .)
-.SH "CONFORMING TO"
-SVr4, 4.4BSD (these function calls first appeared in 4.2BSD),
-POSIX.1-2001.
 .SH "SEE ALSO"
 .BR nice (1),
 .BR fork (2),
index 3d1ed4e5f24aaed45a3d19ca3f01fd892e5e0722..4df053a3a3308dac70674f27727818f59ec2603d 100644 (file)
@@ -360,6 +360,28 @@ Or, the process tried to use
 to increase
 the soft or hard RLIMIT_NOFILE limit above the current kernel
 maximum (NR_OPEN).
+.SH CONFORMING TO
+SVr4, 4.3BSD, POSIX.1-2001.
+.BR RLIMIT_MEMLOCK
+and
+.BR RLIMIT_NPROC
+derive from BSD and are not specified in POSIX.1-2001;
+they are present on the BSDs and Linux, but on few other implementations.
+.BR RLIMIT_RSS
+derives from BSD and is not specified in POSIX.1-2001;
+it is nevertheless present on most implementations.
+.BR RLIMIT_MSGQUEUE ,
+.BR RLIMIT_NICE ,
+.BR RLIMIT_RTPRIO ,
+and
+.B RLIMIT_SIGPENDING
+are Linux specific.
+.SH NOTES
+A child process created via
+.BR fork (2)
+inherits its parents resource limits.
+Resource limits are preserved across
+.BR execve (2).
 .SH BUGS
 In older Linux kernels, the
 .B SIGXCPU
@@ -401,28 +423,6 @@ when
 .IR rlim->rlim_cur
 was greater than
 .IR rlim->rlim_max .
-.SH NOTES
-A child process created via
-.BR fork (2)
-inherits its parents resource limits.
-Resource limits are preserved across
-.BR execve (2).
-.SH "CONFORMING TO"
-SVr4, 4.3BSD, POSIX.1-2001.
-.BR RLIMIT_MEMLOCK
-and
-.BR RLIMIT_NPROC
-derive from BSD and are not specified in POSIX.1-2001;
-they are present on the BSDs and Linux, but on few other implementations.
-.BR RLIMIT_RSS
-derives from BSD and is not specified in POSIX.1-2001;
-it is nevertheless present on most implementations.
-.BR RLIMIT_MSGQUEUE ,
-.BR RLIMIT_NICE ,
-.BR RLIMIT_RTPRIO ,
-and
-.B RLIMIT_SIGPENDING
-are Linux specific.
 .SH "SEE ALSO"
 .BR dup (2),
 .BR fcntl (2),
index 0857aa86cb17efb0cecf46488920136c1d5a4a4f..92eb9c4e8527a3e81a0b7e18708634bbe54d0ada 100644 (file)
@@ -212,6 +212,12 @@ The calling process has insufficient privilege to call
 under Linux the
 .B CAP_SYS_TIME
 capability is required.
+.SH "CONFORMING TO"
+SVr4, 4.3BSD.
+POSIX.1-2001 describes
+.BR gettimeofday ()
+but not
+.BR settimeofday ().
 .SH NOTES
 The prototype for
 .BR settimeofday ()
@@ -228,12 +234,6 @@ is defined.
 Traditionally, the fields of
 .I struct timeval
 were longs.
-.SH "CONFORMING TO"
-SVr4, 4.3BSD.
-POSIX.1-2001 describes
-.BR gettimeofday ()
-but not
-.BR settimeofday ().
 .SH "SEE ALSO"
 .BR date (1),
 .BR adjtimex (2),
index 5cfb04701a69b559556d8909880a5f0c0198f25d..bbbcd45911734ac6ed9f346282fa8716f8b9f70a 100644 (file)
@@ -127,6 +127,11 @@ Memory in buffers = 5066752
 Swap: total 27881472 / free 24698880
 Number of processes = 40
 .fi
+.SH "CONFORMING TO"
+Certain codes are used to indicate Unix variants and standards to
+which calls in the section conform.
+See
+.BR standards (7).
 .SH NOTES
 The _syscall() macros DO NOT produce a prototype.
 You may have to
@@ -167,11 +172,6 @@ Some architectures, notably ia64, do not provide the _syscall macros.
 On these architectures,
 .BR syscall (2)
 must be used.
-.SH "CONFORMING TO"
-Certain codes are used to indicate Unix variants and standards to
-which calls in the section conform.
-See
-.BR standards (7).
 .SH FILES
 .I /usr/include/linux/unistd.h
 .SH "SEE ALSO"
index 3d7ac7089859a2e6ad87978b497bf0dbdc459a7d..4a9abc441e6e118cd5ae70d1482fc780f7803a7c 100644 (file)
@@ -59,14 +59,14 @@ The context pointed to is invalid.
 .B ENOSYS
 .BR io_destroy ()
 is not implemented on this architecture.
+.SH "VERSIONS"
+.PP
+The asynchronous I/O system calls first appeared in Linux 2.5, August 2002.
 .SH "CONFORMING TO"
 .PP
 .BR io_destroy ()
 is Linux specific and should not be used in programs
 that are intended to be portable.
-.SH "VERSIONS"
-.PP
-The asynchronous I/O system calls first appeared in Linux 2.5, August 2002.
 .SH "SEE ALSO"
 .PP
 .BR io_setup (2),
index 43aa4be564bfe32c317c0a8eaef6f204d573982a..2d25a53669277f10550d035a58e1b6c70ad45e7f 100644 (file)
@@ -68,14 +68,14 @@ Either \fIevents\fR or \fItimeout\fR is an invalid pointer.
 .B ENOSYS
 .BR io_getevents ()
 is not implemented on this architecture.
+.SH "VERSIONS"
+.PP
+The asynchronous I/O system calls first appeared in Linux 2.5, August 2002.
 .SH "CONFORMING TO"
 .PP
 .BR io_getevents ()
 is Linux specific and should not be used in
 programs that are intended to be portable.
-.SH "VERSIONS"
-.PP
-The asynchronous I/O system calls first appeared in Linux 2.5, August 2002.
 .SH "SEE ALSO"
 .PP
 .BR io_setup (2),
index ff5549f0d8d9261131b112e4a9cded65cc3fcc26..b165150a5f4fb43126b9d7ce48f8a9c09645765b 100644 (file)
@@ -67,14 +67,14 @@ The specified \fInr_events\fR exceeds the user's limit of available events.
 .B ENOSYS
 .BR io_setup ()
 is not implemented on this architecture.
+.SH "VERSIONS"
+.PP
+The asynchronous I/O system calls first appeared in Linux 2.5, August 2002.
 .SH "CONFORMING TO"
 .PP
 .BR io_setup ()
 is Linux specific and should not be used in programs
 that are intended to be portable.
-.SH "VERSIONS"
-.PP
-The asynchronous I/O system calls first appeared in Linux 2.5, August 2002.
 .SH "SEE ALSO"
 .PP
 .BR io_destroy (2),
index c1fc96ebbd44317d0d29708fd792dd0398bb3d29..65d90f14f85cd1b02b37febe1f41ed1e8619effc 100644 (file)
@@ -69,14 +69,14 @@ Insufficient resources are available to queue any \fIiocb\fRs.
 .B ENOSYS
 .BR io_submit ()
 is not implemented on this architecture.
+.SH "VERSIONS"
+.PP
+The asynchronous I/O system calls first appeared in Linux 2.5, August 2002.
 .SH "CONFORMING TO"
 .PP
 .BR io_submit ()
 is Linux specific and should not be used in
 programs that are intended to be portable.
-.SH "VERSIONS"
-.PP
-The asynchronous I/O system calls first appeared in Linux 2.5, August 2002.
 .SH "SEE ALSO"
 .PP
 .BR io_setup (2),
index dca3a5931e881c88175c7c8c090710f12b33b681..b6ab65c9f7bc5adc0edb0e98856a14475a04316d 100644 (file)
@@ -112,13 +112,7 @@ The specified request does not apply to the kind of object that the
 descriptor
 .I d
 references.
-.SH NOTES
-In order to use this call, one needs an open file descriptor.
-Often the
-.BR open (2)
-call has unwanted side effects, that can be avoided under Linux
-by giving it the O_NONBLOCK flag.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
 No single standard.
 Arguments, returns, and semantics of
 .BR ioctl (2)
@@ -133,6 +127,12 @@ calls.
 The
 .BR ioctl ()
 function call appeared in Version 7 AT&T Unix.
+.SH NOTES
+In order to use this call, one needs an open file descriptor.
+Often the
+.BR open (2)
+call has unwanted side effects, that can be avoided under Linux
+by giving it the O_NONBLOCK flag.
 .SH "SEE ALSO"
 .BR execve (2),
 .BR fcntl (2),
index bd7a5c709836c985256635dfac788bf6ff79a9ea..fc006706f355a2885b99971e86c57f41c1f8430c 100644 (file)
@@ -186,6 +186,11 @@ or
 Refer to the NOTES section for available scheduler
 classes and priority levels for
 .IR ioprio .
+.SH VERSIONS
+These system calls have been available on Linux since
+kernel 2.6.13.
+.SH "CONFORMING TO"
+These system calls are Linux specific.
 .SH NOTES
 These system calls only have an effect when used
 in conjunction with an I/O scheduler that supports I/O priorities.
@@ -311,11 +316,6 @@ Glibc does not yet provide a suitable header file defining
 the function prototypes and macros described on this page.
 Suitable definitions can be found in
 .IR linux/ioprio.h .
-.SH VERSIONS
-These system calls have been available on Linux since
-kernel 2.6.13.
-.SH "CONFORMING TO"
-These system calls are Linux specific.
 .SH "SEE ALSO"
 .BR getpriority "(2), " open "(2), " capabilities (7)
 .sp
index 79a548026c9f8b77b7b38237553c89bc3e178152..52c4496f7f8b1a087ba4e326ee27e4b76e1916a0 100644 (file)
@@ -102,6 +102,8 @@ a process which already committed termination, but
 has not yet been
 .BR wait (2)ed
 for.
+.SH "CONFORMING TO"
+SVr4, 4.3BSD, POSIX.1-2001
 .SH NOTES
 The only signals that can be sent process ID 1, the
 .I init
@@ -149,8 +151,6 @@ if the caller did have permission to send the signal to \fIany\fP (rather
 than \fIall\fP) of the members of the process group.
 Notwithstanding this error return, the signal was still delivered
 to all of the processes for which the caller had permission to signal.
-.SH "CONFORMING TO"
-SVr4, 4.3BSD, POSIX.1-2001
 .SH "SEE ALSO"
 .BR _exit (2),
 .BR killpg (2),
index 7f57c9b7a8ac4f49b7c5613c5e8d5a70b25dde5d..bcc1ea4bde6b3c12c50dad76d256849696dbca12 100644 (file)
@@ -93,6 +93,10 @@ No process can be found in the process group specified by
 .B ESRCH
 The process group was given as 0 but the sending process does not
 have a process group.
+.SH "CONFORMING TO"
+SVr4, 4.4BSD (The
+.BR killpg ()
+function call first appeared in 4BSD), POSIX.1-2001.
 .SH NOTES
 There are various differences between the permission checking
 in BSD-type systems and System V-type systems.
@@ -103,10 +107,6 @@ value EPERM: BSD documents that no signal is sent and EPERM returned
 when the permission check failed for at least one target process,
 while POSIX documents EPERM only when the permission check failed
 for all target processes.
-.SH "CONFORMING TO"
-SVr4, 4.4BSD (The
-.BR killpg ()
-function call first appeared in 4BSD), POSIX.1-2001.
 .SH "SEE ALSO"
 .BR getpgrp (2),
 .BR kill (2),
index 4e780c8f03fa2d450bf7f20c321398bfc5dff279..4dd494766c2172fa4547e57de89f40faa3e1d581 100644 (file)
@@ -125,6 +125,11 @@ are not on the same mounted filesystem.
 .BR link (2)
 does not work across different mount points,
 even if the same filesystem is mounted on both.)
+.SH "CONFORMING TO"
+SVr4, 4.3BSD, POSIX.1-2001 (except as noted above).
+.\" SVr4 documents additional ENOLINK and
+.\" EMULTIHOP error conditions; POSIX.1 does not document ELOOP.
+.\" X/OPEN does not document EFAULT, ENOMEM or EIO.
 .SH NOTES
 Hard links, as created by
 .BR link (),
@@ -153,11 +158,6 @@ Some other implementations behave in the same manner as Linux.
 .\" behaves like Linux, and contributors to a March 2005
 .\" thread in the Austin mailing list reported that some
 .\" other (System V) implementations did/do the same -- MTK, Apr 05
-.SH "CONFORMING TO"
-SVr4, 4.3BSD, POSIX.1-2001 (except as noted above).
-.\" SVr4 documents additional ENOLINK and
-.\" EMULTIHOP error conditions; POSIX.1 does not document ELOOP.
-.\" X/OPEN does not document EFAULT, ENOMEM or EIO.
 .SH BUGS
 On NFS file systems, the return code may be wrong in case the NFS server
 performs the link creation and dies before it can say so.
index b48ca39502f8ff39d6892fb9dda130911e1c10b0..ce6e86afb2a0e9e7aa1bce3b384a460a1b172459 100644 (file)
@@ -123,17 +123,17 @@ or similar for
 .I newpath
 and
 .IR newdirfd
+.SH VERSIONS
+.BR linkat ()
+was added to Linux in kernel 2.6.16.
+.SH "CONFORMING TO"
+This system call is non-standard but is proposed
+for inclusion in a future revision of POSIX.1.
 .SH NOTES
 See
 .BR openat (2)
 for an explanation of the need for
 .BR linkat ().
-.SH "CONFORMING TO"
-This system call is non-standard but is proposed
-for inclusion in a future revision of POSIX.1.
-.SH VERSIONS
-.BR linkat ()
-was added to Linux in kernel 2.6.16.
 .SH "SEE ALSO"
 .BR link (2),
 .BR openat (2),
index e952a141aade5077e65dd0593e556227b84e87bf..14d5597952dfb6fd93bf8a6f51d7d2831d0a4172 100644 (file)
@@ -70,23 +70,6 @@ may receive an error with an indication of
 .B ECONNREFUSED
 or, if the underlying protocol supports retransmission, the request may be
 ignored so that retries succeed.
-.SH NOTES
-The behaviour of the
-.I backlog
-parameter on TCP sockets changed with Linux 2.2.
-Now it specifies the queue length for
-.I completely
-established sockets waiting to be accepted, instead of the number of incomplete
-connection requests.
-The maximum length of the queue for incomplete sockets
-can be set using the
-.B tcp_max_syn_backlog
-sysctl.
-When syncookies are enabled there is no logical maximum
-length and this sysctl setting is ignored.
-See
-.BR tcp (7)
-for more information.
 .SH "RETURN VALUE"
 On success, zero is returned.
 On error, \-1 is returned, and
@@ -116,6 +99,23 @@ operation.
 The
 .BR listen ()
 function call first appeared in 4.2BSD.
+.SH NOTES
+The behaviour of the
+.I backlog
+parameter on TCP sockets changed with Linux 2.2.
+Now it specifies the queue length for
+.I completely
+established sockets waiting to be accepted, instead of the number of incomplete
+connection requests.
+The maximum length of the queue for incomplete sockets
+can be set using the
+.B tcp_max_syn_backlog
+sysctl.
+When syncookies are enabled there is no logical maximum
+length and this sysctl setting is ignored.
+See
+.BR tcp (7)
+for more information.
 .SH BUGS
 If the socket is of type
 .BR AF_INET ,
index fa372069f3c4866c5e559ffe113bc9b909fe94dd..9b3e7af4fae4c646cae6f90fc8a966d9f005ad0f 100644 (file)
@@ -42,13 +42,6 @@ For
 .BR lookup_dcookie ()
 to return successfully,
 the kernel must still hold a cookie reference to the directory entry.
-.SH "NOTES"
-.BR lookup_dcookie ()
-is a special-purpose system call, currently used only by the oprofile profiler.
-It relies on a kernel driver to register cookies for directory entries.
-
-The path returned may be suffixed by the string " (deleted)" if the directory
-entry has been removed.
 .SH "RETURN VALUE"
 On success,
 .BR lookup_dcookie ()
@@ -79,9 +72,16 @@ required to look up cookie values.
 .TP
 .B ERANGE
 The buffer was not large enough to hold the path of the directory entry.
-.SH "CONFORMING TO"
-.BR lookup_dcookie ()
-is Linux specific.
 .SH VERSIONS
 Available since Linux 2.5.43.
 The ENAMETOOLONG error return was added in 2.5.70.
+.SH "CONFORMING TO"
+.BR lookup_dcookie ()
+is Linux specific.
+.SH "NOTES"
+.BR lookup_dcookie ()
+is a special-purpose system call, currently used only by the oprofile profiler.
+It relies on a kernel driver to register cookies for directory entries.
+
+The path returned may be suffixed by the string " (deleted)" if the directory
+entry has been removed.
index 32633ae1bd43c9cb6edb82bd8946f1764f40262d..43fcd6d1882b98863a6366f1956fd615775c11ad 100644 (file)
@@ -166,6 +166,21 @@ maximum resident set size.
 .B ENOMEM
 Addresses in the specified range are not currently
 mapped, or are outside the address space of the process.
+.SH "CONFORMING TO"
+POSIX.1b.
+POSIX.1-2001 describes
+.BR posix_madvise (3)
+with constants POSIX_MADV_NORMAL, etc.,
+with a behaviour close to that described here.
+There is a similar
+.BR posix_fadvise (3)
+for file access.
+
+.BR MADV_REMOVE ,
+.BR MADV_DONTFORK ,
+and
+.BR MADV_DOFORK
+are Linux specific.
 .SH NOTES
 .SS "Linux Notes"
 .LP
@@ -190,21 +205,6 @@ from the system call, as it should).
 .\" The
 .\" .BR madvise ()
 .\" function first appeared in 4.4BSD.
-.SH "CONFORMING TO"
-POSIX.1b.
-POSIX.1-2001 describes
-.BR posix_madvise (3)
-with constants POSIX_MADV_NORMAL, etc.,
-with a behaviour close to that described here.
-There is a similar
-.BR posix_fadvise (3)
-for file access.
-
-.BR MADV_REMOVE ,
-.BR MADV_DONTFORK ,
-and
-.BR MADV_DOFORK
-are Linux specific.
 .SH "SEE ALSO"
 .BR getrlimit (2),
 .BR mincore (2),
index 8c8320310f04bd7a1f95995bb5b9e67f2e3d548d..142d00b02072f6c3837f0bcae077486f69a0c11c 100644 (file)
@@ -192,6 +192,8 @@ System out of memory.
 .B MPOL_MF_STRICT
 was specified and an existing page was already on a node
 that does not follow the policy.
+.SH CONFORMING TO
+This system call is Linux specific.
 .SH NOTES
 NUMA policy is not supported on file mappings.
 
@@ -256,8 +258,6 @@ package.
 This package also has the
 .I numaif.h
 header.
-.SH CONFORMING TO
-This system call is Linux specific.
 .SH SEE ALSO
 .BR numa (3),
 .BR numactl (8),
index a25999e43e61401040d6faf295ecaf7b01543070..5889b54f24f1780524b0d13c0ed118c2f4cad891 100644 (file)
@@ -118,6 +118,18 @@ to
 +
 .I length
 contained unmapped memory.
+.SH VERSIONS
+Available since Linux 2.3.99pre1 and glibc 2.2.
+.SH "CONFORMING TO"
+.BR mincore ()
+is not specified in POSIX.1-2001,
+and it is not available on all Unix implementations.
+.\" It is on at least NetBSD, FreeBSD, OpenBSD, Solaris 8,
+.\" AIX 5.1, SunOS 4.1
+.\" .SH HISTORY
+.\" The
+.\" .BR mincore ()
+.\" function first appeared in 4.4BSD.
 .SH BUGS
 Before kernel 2.6.21,
 .BR mincore ()
@@ -140,18 +152,6 @@ mappings, or for non-linear mappings (established using
 .\" .B mincore
 .\" always fails with the error
 .\" .BR ENOMEM .
-.SH "CONFORMING TO"
-.BR mincore ()
-is not specified in POSIX.1-2001,
-and it is not available on all Unix implementations.
-.\" It is on at least NetBSD, FreeBSD, OpenBSD, Solaris 8,
-.\" AIX 5.1, SunOS 4.1
-.\" .SH HISTORY
-.\" The
-.\" .BR mincore ()
-.\" function first appeared in 4.4BSD.
-.SH VERSIONS
-Available since Linux 2.3.99pre1 and glibc 2.2.
 .SH "SEE ALSO"
 .BR mlock (2),
 .BR mmap (2)
index ab665b264fc748856ed682317ccba9450512d68f..aaec3687ad8234777069fde51445995d49bc4a3c 100644 (file)
@@ -91,17 +91,17 @@ is not a valid file descriptor.
 is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
+.SH VERSIONS
+.BR mkdirat ()
+was added to Linux in kernel 2.6.16.
+.SH "CONFORMING TO"
+This system call is non-standard but is proposed
+for inclusion in a future revision of POSIX.1.
 .SH NOTES
 See
 .BR openat (2)
 for an explanation of the need for
 .BR mkdirat ().
-.SH "CONFORMING TO"
-This system call is non-standard but is proposed
-for inclusion in a future revision of POSIX.1.
-.SH VERSIONS
-.BR mkdirat ()
-was added to Linux in kernel 2.6.16.
 .SH "SEE ALSO"
 .BR mkdir (2),
 .BR openat (2),
index 8e3bee22438726a76ec90a9c397cf1041e6856fe..937e3866b09278284cabcd603936fdcaba6ef9a4 100644 (file)
@@ -93,17 +93,17 @@ is not a valid file descriptor.
 is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
+.SH VERSIONS
+.BR mknodat ()
+was added to Linux in kernel 2.6.16.
+.SH "CONFORMING TO"
+This system call is non-standard but is proposed
+for inclusion in a future revision of POSIX.1.
 .SH NOTES
 See
 .BR openat (2)
 for an explanation of the need for
 .BR mknodat ().
-.SH "CONFORMING TO"
-This system call is non-standard but is proposed
-for inclusion in a future revision of POSIX.1.
-.SH VERSIONS
-.BR mknodat ()
-was added to Linux in kernel 2.6.16.
 .SH "SEE ALSO"
 .BR mknod (2),
 .BR openat (2),
index 8148788664dc152440df8e91c18464536f8a9125..0586465524dfb8fdaacd6f877b4bf46f5d396768 100644 (file)
@@ -116,6 +116,106 @@ signal to the process.
 .BR munlockall ()
 unlocks all pages mapped into the address space of the
 calling process.
+.SH "RETURN VALUE"
+On success these system calls return 0.
+On error, \-1 is returned,
+.I errno
+is set appropriately, and no changes are made to any locks in the
+address space of the process.
+.SH ERRORS
+.TP
+.B ENOMEM
+(Linux 2.6.9 and later) the caller had a non-zero
+.B RLIMIT_MEMLOCK
+soft resource limit, but tried to lock more memory than the limit
+permitted.
+This limit is not enforced if the process is privileged
+.RB ( CAP_IPC_LOCK ).
+.TP
+.B ENOMEM
+(Linux 2.4 and earlier) the calling process tried to lock more than
+half of RAM.
+.\" In the case of mlock(), this check is somewhat buggy: it doesn't
+.\" take into account whether the to-be-locked range overlaps with
+.\" already locked pages.  Thus, suppose we allocate
+.\" (num_physpages / 4 + 1) of memory, and lock those pages once using
+.\" mlock(), and then lock the *same* page range a second time.
+.\" In the case, the second mlock() call will fail, since the check
+.\" calculates that the process is trying to lock (num_physpages / 2 + 2)
+.\" pages, which of course is not true.  (MTK, Nov 04, kernel 2.4.28)
+.TP
+.B EPERM
+(Linux 2.6.9 and later) the caller was not privileged
+.RB ( CAP_IPC_LOCK )
+and its
+.B RLIMIT_MEMLOCK
+soft resource limit was 0.
+.TP
+.B EPERM
+(Linux 2.6.8 and earlier)
+The calling process has insufficient privilege to call
+.BR munlockall ().
+Under Linux the
+.B CAP_IPC_LOCK
+capability is required.
+.\"SVr4 documents an additional EAGAIN error code.
+.LP
+For
+.BR mlock ()
+and
+.BR munlock ():
+.TP
+.B EINVAL
+.I len
+was negative.
+.TP
+.B EINVAL
+(Not on Linux)
+.I addr
+was not a multiple of the page size.
+.TP
+.B ENOMEM
+Some of the specified address range does not correspond to mapped
+pages in the address space of the process.
+.LP
+For
+.BR mlockall ():
+.TP
+.B EINVAL
+Unknown \fIflags\fP were specified.
+.LP
+For
+.BR munlockall ():
+.TP
+.B EPERM
+(Linux 2.6.8 and earlier) The caller was not privileged
+.RB ( CAP_IPC_LOCK ).
+.SH "CONFORMING TO"
+POSIX.1-2001, SVr4
+.SH AVAILABILITY
+On POSIX systems on which
+.BR mlock ()
+and
+.BR munlock ()
+are available,
+.B _POSIX_MEMLOCK_RANGE
+is defined in <unistd.h> and the number of bytes in a page
+can be determined from the constant
+.B PAGESIZE
+(if defined) in <limits.h> or by calling
+.IR sysconf(_SC_PAGESIZE) .
+
+On POSIX systems on which
+.BR mlockall ()
+and
+.BR munlockall ()
+are available,
+.B _POSIX_MEMLOCK
+is defined in <unistd.h> to a value greater than 0. (See also
+.BR sysconf (3).)
+.\" POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
+.\" -1: unavailable, 0: ask using sysconf().
+.\" glibc defines it to 1.
 .SH "NOTES"
 Memory locking has two main applications: real-time algorithms and
 high-security data processing.
@@ -194,80 +294,6 @@ that a privileged process can lock and the
 .B RLIMIT_MEMLOCK
 soft resource limit instead defines a limit on how much memory an
 unprivileged process may lock.
-.SH "RETURN VALUE"
-On success these system calls return 0.
-On error, \-1 is returned,
-.I errno
-is set appropriately, and no changes are made to any locks in the
-address space of the process.
-.SH ERRORS
-.TP
-.B ENOMEM
-(Linux 2.6.9 and later) the caller had a non-zero
-.B RLIMIT_MEMLOCK
-soft resource limit, but tried to lock more memory than the limit
-permitted.
-This limit is not enforced if the process is privileged
-.RB ( CAP_IPC_LOCK ).
-.TP
-.B ENOMEM
-(Linux 2.4 and earlier) the calling process tried to lock more than
-half of RAM.
-.\" In the case of mlock(), this check is somewhat buggy: it doesn't
-.\" take into account whether the to-be-locked range overlaps with
-.\" already locked pages.  Thus, suppose we allocate
-.\" (num_physpages / 4 + 1) of memory, and lock those pages once using
-.\" mlock(), and then lock the *same* page range a second time.
-.\" In the case, the second mlock() call will fail, since the check
-.\" calculates that the process is trying to lock (num_physpages / 2 + 2)
-.\" pages, which of course is not true.  (MTK, Nov 04, kernel 2.4.28)
-.TP
-.B EPERM
-(Linux 2.6.9 and later) the caller was not privileged
-.RB ( CAP_IPC_LOCK )
-and its
-.B RLIMIT_MEMLOCK
-soft resource limit was 0.
-.TP
-.B EPERM
-(Linux 2.6.8 and earlier)
-The calling process has insufficient privilege to call
-.BR munlockall ().
-Under Linux the
-.B CAP_IPC_LOCK
-capability is required.
-.\"SVr4 documents an additional EAGAIN error code.
-.LP
-For
-.BR mlock ()
-and
-.BR munlock ():
-.TP
-.B EINVAL
-.I len
-was negative.
-.TP
-.B EINVAL
-(Not on Linux)
-.I addr
-was not a multiple of the page size.
-.TP
-.B ENOMEM
-Some of the specified address range does not correspond to mapped
-pages in the address space of the process.
-.LP
-For
-.BR mlockall ():
-.TP
-.B EINVAL
-Unknown \fIflags\fP were specified.
-.LP
-For
-.BR munlockall ():
-.TP
-.B EPERM
-(Linux 2.6.8 and earlier) The caller was not privileged
-.RB ( CAP_IPC_LOCK ).
 .SH "BUGS"
 In the 2.4 series Linux kernels up to and including 2.4.17,
 a bug caused the
@@ -293,32 +319,6 @@ resource limit is encountered.
 .\" http://marc.theaimsgroup.com/?l=linux-kernel&m=113801392825023&w=2
 .\" "Rationale for RLIMIT_MEMLOCK"
 .\" 23 Jan 2006
-.SH AVAILABILITY
-On POSIX systems on which
-.BR mlock ()
-and
-.BR munlock ()
-are available,
-.B _POSIX_MEMLOCK_RANGE
-is defined in <unistd.h> and the number of bytes in a page
-can be determined from the constant
-.B PAGESIZE
-(if defined) in <limits.h> or by calling
-.IR sysconf(_SC_PAGESIZE) .
-
-On POSIX systems on which
-.BR mlockall ()
-and
-.BR munlockall ()
-are available,
-.B _POSIX_MEMLOCK
-is defined in <unistd.h> to a value greater than 0. (See also
-.BR sysconf (3).)
-.\" POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
-.\" -1: unavailable, 0: ask using sysconf().
-.\" glibc defines it to 1.
-.SH "CONFORMING TO"
-POSIX.1-2001, SVr4
 .SH "SEE ALSO"
 .BR mmap (2),
 .BR shmctl (2),
index 4f10e1251c5022276191f456416da4b850d417ea..8f6a9ff2d9687512a964bdabfb3f1b19ee0eec79 100644 (file)
@@ -329,15 +329,6 @@ returns 0, on failure \-1, and
 .I errno
 is set (probably to
 .BR EINVAL ).
-.SH NOTES
-It is architecture dependent whether
-.B PROT_READ
-implies
-.B PROT_EXEC
-or not.
-Portable programs should always set
-.B PROT_EXEC
-if they intend to execute code in the new mapping.
 .SH ERRORS
 .TP
 .B EACCES
@@ -446,6 +437,15 @@ is defined in <unistd.h> to a value greater than 0. (See also
 SVr4, 4.4BSD, POSIX.1-2001.
 .\" SVr4 documents additional error codes ENXIO and ENODEV.
 .\" SUSv2 documents additional error codes EMFILE and EOVERFLOW.
+.SH NOTES
+It is architecture dependent whether
+.B PROT_READ
+implies
+.B PROT_EXEC
+or not.
+Portable programs should always set
+.B PROT_EXEC
+if they intend to execute code in the new mapping.
 .SH BUGS
 On Linux there are no guarantees like those suggested above under
 .BR MAP_NORESERVE .
index c28efbb29ba05920e03edcd4c767a90be86f85ee..2be801f1b1366e6149a496706cb7ae91afe16826 100644 (file)
@@ -68,6 +68,8 @@ is set appropriately.
 .B EFAULT
 Problem with getting the
 data from userspace.
+.SH "CONFORMING TO"
+This system call is Linux specific.
 .SH NOTES
 .BR mmap2 ()
 is available since Linux 2.3.31.
@@ -77,8 +79,6 @@ On 32-bit systems,
 is used to implement the
 .BR mmap64 ()
 function that is part of the LFS (Large File Summit).
-.SH "CONFORMING TO"
-This system call is Linux specific.
 .SH "SEE ALSO"
 .BR getpagesize (2),
 .BR mmap (2),
index 2f9093baa1c8316cd6350bb54ec1f6d1088ae412..f4e28d443e5ef628d036b68fdb8ec3d9cc18ade9 100644 (file)
@@ -173,6 +173,12 @@ The memory area cannot be expanded at the current virtual address, and the
 .B MREMAP_MAYMOVE
 flag is not set in \fIflags\fP.
 Or, there is not enough (virtual) memory available.
+.SH "CONFORMING TO"
+This call is Linux specific, and should not be used in programs
+intended to be portable.  4.2BSD had a (never actually implemented)
+.BR mremap (2)
+call with completely different semantics.
+.\" FIXME perhaps remove above statement about 4.2BSD.
 .SH NOTES
 Prior to version 2.4, glibc did not expose the definition of
 .BR MREMAP_FIXED ,
@@ -181,11 +187,6 @@ and the prototype for
 did not allow for the
 .I new_address
 argument.
-.SH "CONFORMING TO"
-This call is Linux specific, and should not be used in programs
-intended to be portable.  4.2BSD had a (never actually implemented)
-.BR mremap (2)
-call with completely different semantics.
 .SH "SEE ALSO"
 .BR brk (2),
 .BR getpagesize (2),
index 757d9a4e0b04440f65c40fa47c4adeea3b7eac23..a8034ec30cc40cb73964e9e51259bbbcc00a2dd9 100644 (file)
@@ -305,6 +305,9 @@ of the message queue,
 and the process is not privileged (Linux: it does not have the
 .B CAP_SYS_ADMIN
 capability).
+.SH "CONFORMING TO"
+SVr4, POSIX.1-2001.
+.\" SVID does not document the EIDRM error condition.
 .SH NOTES
 The
 .BR IPC_INFO ,
@@ -322,9 +325,6 @@ and have become longs under Linux 2.4. To take advantage of this,
 a recompilation under glibc-2.1.91 or later should suffice.
 (The kernel distinguishes old and new calls by an IPC_64 flag in
 .IR cmd .)
-.SH "CONFORMING TO"
-SVr4, POSIX.1-2001.
-.\" SVID does not document the EIDRM error condition.
 .SH "SEE ALSO"
 .BR msgget (2),
 .BR msgrcv (2),
index cd59f6d58fd8825836a4c058e425f278af16744a..33edf874fd354cfeeabe5439ec2c19576f85d131 100644 (file)
@@ -182,6 +182,8 @@ A message queue has to be created but the system limit for the maximum
 number of message queues
 .RB ( MSGMNI )
 would be exceeded.
+.SH "CONFORMING TO"
+SVr4, POSIX.1-2001.
 .SH NOTES
 .B IPC_PRIVATE
 isn't a flag field but a
@@ -209,8 +211,6 @@ on a message queue scheduled for deletion.
 .SH BUGS
 The name choice IPC_PRIVATE was perhaps unfortunate, IPC_NEW
 would more clearly show its function.
-.SH "CONFORMING TO"
-SVr4, POSIX.1-2001.
 .SH "SEE ALSO"
 .BR msgctl (2),
 .BR msgrcv (2),
index 6a95baf618f2d99336b13110bf9cfe35b3e4dace..6207f6206ccca4545c4149087f3f17a1511e664e 100644 (file)
@@ -108,6 +108,8 @@ The value in the
 field was not in the range 0 to 999999999 or
 .I tv_sec
 was negative.
+.SH "CONFORMING TO"
+POSIX.1-2001.
 .SH BUGS
 The current implementation of
 .BR nanosleep ()
@@ -145,8 +147,6 @@ after the process is resumed by a SIGCONT signal.
 If the system call is subsequently restarted,
 then the time that the process spent in the stopped state is
 \fInot\fP counted against the sleep interval.
-.SH "CONFORMING TO"
-POSIX.1-2001.
 .SH "SEE ALSO"
 .BR sched_setscheduler (2),
 .BR timer_create (2),
index 2b6efd4f20b382efc607ed9af42b35d5716df626..3360cf040efbcf835e4b1ae5bcc97473116e2f94 100644 (file)
@@ -369,46 +369,6 @@ return the new file descriptor, or \-1 if an error occurred
 (in which case,
 .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
-.BR creat ()
-cannot create them; use
-.BR mknod (2)
-instead.
-.LP
-On NFS file systems with UID mapping enabled,
-.BR open ()
-may
-return a file descriptor but e.g.
-.BR read (2)
-requests are denied
-with \fBEACCES\fP.
-This is because the client performs
-.BR open ()
-by checking the
-permissions, but UID mapping is performed by the server upon
-read and write requests.
-
-If the file is newly created, its st_atime, st_ctime, st_mtime fields
-(respectively, time of last access, time of last status change, and
-time of last modification; see
-.BR stat (2))
-are set
-to the current time, and so are the st_ctime and st_mtime fields of the
-parent directory.
-Otherwise, if the file is modified because of the O_TRUNC flag,
-its st_ctime and st_mtime fields are set to the current time.
 .SH ERRORS
 .TP
 .B EACCES
@@ -523,12 +483,6 @@ The
 flag was specified, and an incompatible lease was held on the file
 (see
 .BR fcntl (2)).
-.SH NOTES
-Under Linux, the O_NONBLOCK flag indicates that one wants to open
-but does not necessarily have the intention to read or write.
-This is typically used to open devices in order to get a file descriptor
-for use with
-.BR ioctl (2).
 .SH "CONFORMING TO"
 SVr4, 4.3BSD, POSIX.1-2001.
 The
@@ -540,6 +494,14 @@ flags are Linux specific.
 One may have to define the
 .B _GNU_SOURCE
 macro to get their definitions.
+.SH NOTES
+Under Linux, the 
+.B O_NONBLOCK
+flag indicates that one wants to open
+but does not necessarily have the intention to read or write.
+This is typically used to open devices in order to get a file descriptor
+for use with
+.BR ioctl (2).
 .LP
 The (undefined) effect of
 .B O_RDONLY | O_TRUNC
@@ -565,6 +527,55 @@ Older Linux kernels simply ignore this flag.
 One may have to define the
 .B _GNU_SOURCE
 macro to get its definition.
+.PP
+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
+.BR creat ()
+cannot create them; use
+.BR mknod (2)
+instead.
+.LP
+On NFS file systems with UID mapping enabled,
+.BR open ()
+may
+return a file descriptor but e.g.
+.BR read (2)
+requests are denied
+with \fBEACCES\fP.
+This is because the client performs
+.BR open ()
+by checking the
+permissions, but UID mapping is performed by the server upon
+read and write requests.
+
+If the file is newly created, its
+.IR st_atime , 
+.IR st_ctime ,
+.I st_mtime
+fields
+(respectively, time of last access, time of last status change, and
+time of last modification; see
+.BR stat (2))
+are set
+to the current time, and so are the
+.I st_ctime
+and 
+.I st_mtime
+fields of the
+parent directory.
+Otherwise, if the file is modified because of the 
+.B O_TRUNC
+flag, its st_ctime and st_mtime fields are set to the current time.
 .SH BUGS
 "The thing that has always disturbed me about O_DIRECT is that the whole
 interface is just stupid, and was probably designed by a deranged monkey
index 49911bee0c8209e070750647bf2abd29948f24a8..1506ee7ed9098c7f029e9e0d0e73478ee537fe7c 100644 (file)
@@ -93,6 +93,25 @@ is not a valid file descriptor.
 is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
+.SH VERSIONS
+.BR openat ()
+was added to Linux in kernel 2.6.16.
+.SH "CONFORMING TO"
+This system call is non-standard but is proposed
+for inclusion in a future revision of POSIX.1.
+A similar system call exists on Solaris.
+.\" The 'at' suffix in Solaris is actually double sensed.  It
+.\" primarily referred to "extended *at*tributes", which are
+.\" handled by Solaris' O_XATTR flag, but was also intended
+.\" to refer to the notion of "at a relative location".
+.\"
+.\" See the following for a discussion of the inconsistent
+.\" naming of the *at() functions:
+.\" http://www.opengroup.org/austin/mailarchives/ag/msg09103.html
+.\" Subject:   RE: The naming of at()s is a difficult matter
+.\" From:      Don Cragun
+.\" Date:      Tue, 14 Feb 2006 14:56:50 -0800 (PST)
+.\"
 .SH NOTES
 .BR openat ()
 and other similar system calls suffixed "at" are supported
@@ -124,25 +143,6 @@ directory", via file descriptor(s) maintained by the application.
 on the use of
 .IR /proc/self/fd/ dirfd,
 but less efficiently.)
-.SH "CONFORMING TO"
-This system call is non-standard but is proposed
-for inclusion in a future revision of POSIX.1.
-A similar system call exists on Solaris.
-.\" The 'at' suffix in Solaris is actually double sensed.  It
-.\" primarily referred to "extended *at*tributes", which are
-.\" handled by Solaris' O_XATTR flag, but was also intended
-.\" to refer to the notion of "at a relative location".
-.\"
-.\" See the following for a discussion of the inconsistent
-.\" naming of the *at() functions:
-.\" http://www.opengroup.org/austin/mailarchives/ag/msg09103.html
-.\" Subject:   RE: The naming of at()s is a difficult matter
-.\" From:      Don Cragun
-.\" Date:      Tue, 14 Feb 2006 14:56:50 -0800 (PST)
-.\"
-.SH VERSIONS
-.BR openat ()
-was added to Linux in kernel 2.6.16.
 .SH "SEE ALSO"
 .BR faccessat (2),
 .BR fchmodat (2),
index 6ebc34fd4280b626c473c2f0db7e371b313eb6d2..3913dfbf7af78f72672098a0804b9018efc0205f 100644 (file)
@@ -93,7 +93,7 @@ or
 .BR pivot_root (),
 see also below), not the old root directory, but the
 mount point of that file system is mounted on \fIput_old\fP.
-.SH NOTES
+
 \fInew_root\fP does not have to be a mount point.
 In this case,
 \fI/proc/mounts\fP will show the mount point of the file system containing
@@ -122,6 +122,12 @@ or a file system is already mounted on \fIput_old\fP.
 The current process does not have the
 .B CAP_SYS_ADMIN
 capability.
+.SH VERSIONS
+.BR pivot_root ()
+was introduced in Linux 2.3.41.
+.SH "CONFORMING TO"
+.BR pivot_root ()
+is Linux specific and hence is not portable.
 .SH BUGS
 .BR pivot_root ()
 should not have to change root and cwd of all other
@@ -131,12 +137,6 @@ Some of the more obscure uses of
 .BR pivot_root ()
 may quickly lead to
 insanity.
-.SH "CONFORMING TO"
-.BR pivot_root ()
-is Linux specific and hence is not portable.
-.SH VERSIONS
-.BR pivot_root ()
-was introduced in Linux 2.3.41.
 .SH "SEE ALSO"
 .BR chdir (2),
 .BR chroot (2),
index 271416074735726bcc6c68f983c7f3f50f9d3fa4..c49b2ec0593eb04ba7ab98915bccc0d240ec093d 100644 (file)
@@ -263,16 +263,6 @@ value exceeds the RLIMIT_NOFILE value.
 .TP
 .B ENOMEM
 There was no space to allocate file descriptor tables.
-.SH BUGS
-See the discussion of spurious readiness notifications under the
-BUGS section of
-.BR select (2).
-.SH "CONFORMING TO"
-.BR poll ()
-conforms to POSIX.1-2001.
-.BR ppoll ()
-is Linux specific.
-.\" NetBSD 3.0 has a pollts() which is like Linux ppoll().
 .SH VERSIONS
 The
 .BR poll ()
@@ -291,6 +281,12 @@ system call was added to Linux in kernel 2.6.16.
 The
 .BR ppoll ()
 library call was added in glibc 2.4.
+.SH "CONFORMING TO"
+.BR poll ()
+conforms to POSIX.1-2001.
+.BR ppoll ()
+is Linux specific.
+.\" NetBSD 3.0 has a pollts() which is like Linux ppoll().
 .SH NOTES
 Some implementations define the non-standard constant
 .B INFTIM
@@ -311,6 +307,10 @@ Thus, the glibc
 function does not modify its
 .I timeout
 argument.
+.SH BUGS
+See the discussion of spurious readiness notifications under the
+BUGS section of
+.BR select (2).
 .SH "SEE ALSO"
 .BR select (2),
 .BR select_tut (2),
index 34c6742b3d22a24c53c90bb63b7792a93cc412d0..899500fff0d93e8de4e047d694f992dd3a949487 100644 (file)
@@ -83,11 +83,21 @@ An invalid value was specified for \fIadvice\fP.
 .B ESPIPE
 The specified file descriptor refers to a pipe or FIFO. (Linux actually
 returns EINVAL in this case.)
-.SH NOTES
+.SH VERSIONS
 .BR posix_fadvise ()
 appeared in kernel 2.5.60.
 .\" Actually as fadvise64() -- MTK
-
+.SH "CONFORMING TO"
+POSIX.1-2001.
+Note that the type of the
+.I len
+parameter was changed from
+.I size_t
+to
+.I off_t
+in POSIX.1-2003 TC1.
+.SH NOTES
+VERSIONS
 Under Linux, \fBPOSIX_FADV_NORMAL\fP sets the readahead window to the
 default size for the backing device; \fBPOSIX_FADV_SEQUENTIAL\fP doubles
 this size, and \fBPOSIX_FADV_RANDOM\fP disables file readahead entirely.
@@ -120,15 +130,6 @@ call
 or
 .BR fdatasync (2)
 first.
-.SH "CONFORMING TO"
-POSIX.1-2001.
-Note that the type of the
-.I len
-parameter was changed from
-.I size_t
-to
-.I off_t
-in POSIX.1-2003 TC1.
 .SH BUGS
 In kernels before 2.6.6, if
 .I len
index d306b897822af4e77a85b889a8cb576a9ed67cd0..b604187633394881dfa620824c8a1af632f02930 100644 (file)
@@ -204,6 +204,11 @@ is not recognized, or it is
 and
 .I arg2
 is not zero or a signal number.
+.SH VERSIONS
+The
+.BR prctl ()
+system call was introduced in Linux 2.1.57.
+.\" The library interface was added in glibc 2.0.6
 .SH "CONFORMING TO"
 This call is Linux specific.
 IRIX has a
@@ -218,11 +223,6 @@ and options to get the maximum number of processes per user,
 get the maximum number of processors the calling process can use,
 find out whether a specified process is currently blocked,
 get or set the maximum stack size, etc.
-.SH VERSIONS
-The
-.BR prctl ()
-system call was introduced in Linux 2.1.57.
-.\" The library interface was added in glibc 2.0.6
 .SH "SEE ALSO"
 .BR signal (2),
 .BR core (5)
index 60867263c0e788080e48673614b3a189a64a3b89..5135a17e221aebdd2c94099c086613ffc97aab37 100644 (file)
@@ -83,8 +83,6 @@ to any error specified for
 .BR write (2)
 or
 .BR lseek (2).
-.SH "CONFORMING TO"
-POSIX.1-2001.
 .SH VERSIONS
 The
 .BR pread ()
@@ -95,6 +93,8 @@ version 2.1.60; the entries in the i386 system call table were added
 in 2.1.69.
 The libc support (including emulation on older kernels
 without the system calls) was added in glibc 2.1.
+.SH "CONFORMING TO"
+POSIX.1-2001.
 .SH "SEE ALSO"
 .BR lseek (2),
 .BR read (2),
index 8db4f6b62261d5378db81d184377a2ef69114b32..d6f64ee4024dda7c7e8c4a8bbe995917f95c76cc 100644 (file)
@@ -386,13 +386,6 @@ Since the value returned by a successful PTRACE_PEEK*
 request may be \-1, the caller must check
 .I errno
 after such requests to determine whether or not an error occurred.
-.SH BUGS
-On hosts with 2.6 kernel headers, PTRACE_SETOPTIONS is declared
-with a different value than the one for 2.4.
-This leads to applications compiled with such
-headers failing when run on 2.4 kernels.
-This can be worked around by redefining PTRACE_SETOPTIONS to
-PTRACE_OLDSETOPTIONS, if that is defined.
 .SH ERRORS
 .TP
 .B EBUSY
@@ -432,6 +425,13 @@ The specified process does not exist, or is not currently being traced
 by the caller, or is not stopped (for requests that require that).
 .SH "CONFORMING TO"
 SVr4, 4.3BSD
+.SH BUGS
+On hosts with 2.6 kernel headers, PTRACE_SETOPTIONS is declared
+with a different value than the one for 2.4.
+This leads to applications compiled with such
+headers failing when run on 2.4 kernels.
+This can be worked around by redefining PTRACE_SETOPTIONS to
+PTRACE_OLDSETOPTIONS, if that is defined.
 .SH "SEE ALSO"
 .BR gdb (1),
 .BR strace (1),
index d07d2d4e7a62cbebbf6c9034d90b5af4277da46c..6d84cc64ad3548f0862df472de3417808e6d0543 100644 (file)
@@ -93,17 +93,17 @@ is not a valid file descriptor.
 is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
+.SH VERSIONS
+.BR readlinkat ()
+was added to Linux in kernel 2.6.16.
+.SH "CONFORMING TO"
+This system call is non-standard but is proposed
+for inclusion in a future revision of POSIX.1.
 .SH NOTES
 See
 .BR openat (2)
 for an explanation of the need for
 .BR readlinkat ().
-.SH "CONFORMING TO"
-This system call is non-standard but is proposed
-for inclusion in a future revision of POSIX.1.
-.SH VERSIONS
-.BR readlinkat ()
-was added to Linux in kernel 2.6.16.
 .SH "SEE ALSO"
 .BR openat (2),
 .BR path_resolution (2),
index 0f5be6452c0be2ea42e2318bbf6d750af33cea01..5e16dd366ac96873c4184b91844469753cb2f8e3 100644 (file)
@@ -123,10 +123,6 @@ returns 0.
 On error, \-1 is returned, and
 .I errno
 is set appropriately.
-.SH NOTES
-The
-.BR remap_file_pages ()
-system call appeared in Linux 2.5.46.
 .SH ERRORS
 .TP
 .B EINVAL
@@ -144,6 +140,10 @@ or
 .I pgoff
 is invalid.
 .\" And possibly others from vma->vm_ops->populate()
+.SH VERSIONS
+The
+.BR remap_file_pages ()
+system call appeared in Linux 2.5.46.
 .SH "CONFORMING TO"
 The
 .BR remap_file_pages ()
index c82f0857e86060e82b1da347b60d07780c084df9..194d4c814d2d38d0123a5b8d6efcd3a31102faf9 100644 (file)
@@ -106,17 +106,17 @@ or similar for
 .I newpath
 and
 .IR newdirfd
+.SH VERSIONS
+.BR renameat ()
+was added to Linux in kernel 2.6.16.
+.SH "CONFORMING TO"
+This system call is non-standard but is proposed
+for inclusion in a future revision of POSIX.1.
 .SH NOTES
 See
 .BR openat (2)
 for an explanation of the need for
 .BR renameat ().
-.SH "CONFORMING TO"
-This system call is non-standard but is proposed
-for inclusion in a future revision of POSIX.1.
-.SH VERSIONS
-.BR renameat ()
-was added to Linux in kernel 2.6.16.
 .SH "SEE ALSO"
 .BR openat (2),
 .BR rename (2),
index 0d6146372e0fb632c83606833afc612836a277a9..f1056e253b3e8fc7ba9ca05f6a055452759fb411 100644 (file)
@@ -165,6 +165,16 @@ capability.
 .TP
 .B ESRCH
 The process whose ID is \fIpid\fR could not be found.
+.SH VERSIONS
+The CPU affinity system calls were introduced in Linux kernel 2.5.8.
+The library interfaces were introduced in glibc 2.3.
+Initially, the glibc interfaces included a
+.I cpusetsize
+argument.
+In glibc 2.3.3, the
+.I cpusetsize
+argument was removed, but this argument was restored in glibc 2.3.4.
+.fi
 .SH "CONFORMING TO"
 These system calls are Linux specific.
 .SH "NOTES"
@@ -194,16 +204,6 @@ system call returns the size (in bytes) of the
 .I cpumask_t
 data type that is used internally by the kernel to
 represent the CPU set bitmask.
-.SH VERSIONS
-The CPU affinity system calls were introduced in Linux kernel 2.5.8.
-The library interfaces were introduced in glibc 2.3.
-Initially, the glibc interfaces included a
-.I cpusetsize
-argument.
-In glibc 2.3.3, the
-.I cpusetsize
-argument was removed, but this argument was restored in glibc 2.3.4.
-.fi
 .SH "SEE ALSO"
 .BR clone (2),
 .BR getpriority (2),
index fe992a62bc9eca6e65458e39593c7de9740b5975..6622b99daf77f73aa029241333d9022a86237db0 100644 (file)
@@ -344,6 +344,12 @@ main(void)
     exit(EXIT_SUCCESS);
 }
 .fi
+.SH VERSIONS
+.BR pselect ()
+was added to Linux in kernel 2.6.16.
+Prior to this,
+.BR pselect ()
+was emulated in glibc (but see BUGS).
 .SH "CONFORMING TO"
 .BR select ()
 conforms to POSIX.1-2001 and
@@ -438,12 +444,6 @@ Thus, the glibc
 .BR pselect ()
 function does not modify its timeout argument;
 this is the behaviour required by POSIX.1-2001.
-.SH VERSIONS
-.BR pselect ()
-was added to Linux in kernel 2.6.16.
-Prior to this,
-.BR pselect ()
-was emulated in glibc (but see BUGS).
 .SH BUGS
 Glibc 2.0 provided a version of
 .BR pselect ()
index a709b748a6ba3d10d77e24e30678a936716602ae..dfc3ae9e94ecc445ea4b84248c239484d89880c7 100644 (file)
@@ -455,6 +455,9 @@ and the value to which
 is to be set (for some semaphore of the set) is less than 0
 or greater than the implementation limit
 .BR SEMVMX .
+.SH "CONFORMING TO"
+SVr4, POSIX.1-2001.
+.\" SVr4 documents more error conditions EINVAL and EOVERFLOW.
 .SH NOTES
 The
 .BR IPC_INFO ,
@@ -499,9 +502,6 @@ Under Linux,
 .BR semctl ()
 is not a system call, but is implemented via the system call
 .BR ipc (2).
-.SH "CONFORMING TO"
-SVr4, POSIX.1-2001.
-.\" SVr4 documents more error conditions EINVAL and EOVERFLOW.
 .SH "SEE ALSO"
 .BR ipc (2),
 .BR semget (2),
index ae9a3cba1bb6af2a8ece72437c2d3a78f2a5cf5a..6afea49733a85a004bf7a25c9246b35e7d341960 100644 (file)
@@ -217,6 +217,10 @@ number of semaphore sets
 or the system wide maximum number of semaphores
 .RB ( SEMMNS ),
 would be exceeded.
+.SH "CONFORMING TO"
+SVr4, POSIX.1-2001.
+.\" SVr4 documents additional error conditions EFBIG, E2BIG, EAGAIN,
+.\" ERANGE, EFAULT.
 .SH NOTES
 .B IPC_PRIVATE
 isn't a flag field but a
@@ -272,10 +276,6 @@ in the associated data structure retrieved by a
 .BR semctl (2)
 .B IPC_STAT
 operation can be used to avoid races.)
-.SH "CONFORMING TO"
-SVr4, POSIX.1-2001.
-.\" SVr4 documents additional error conditions EFBIG, E2BIG, EAGAIN,
-.\" ERANGE, EFAULT.
 .SH "SEE ALSO"
 .BR semctl (2),
 .BR semop (2),
index a7dc48a9443515533757bcd707ae7d41b4f44fd2..fc65c0543ea174850bbe0773bf2beef9cce337a7 100644 (file)
@@ -380,6 +380,9 @@ is greater than
 .BR SEMVMX ,
 the implementation dependent maximum value for
 .IR semval .
+.SH "CONFORMING TO"
+SVr4, POSIX.1-2001.
+.\" SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC.
 .SH NOTES
 The
 .I sem_undo
@@ -472,9 +475,6 @@ This bug is fixed in kernel 2.6.11.
 .\" http://marc.theaimsgroup.com/?l=linux-kernel&m=110260821123863&w=2
 .\" the fix:
 .\" http://marc.theaimsgroup.com/?l=linux-kernel&m=110261701025794&w=2
-.SH "CONFORMING TO"
-SVr4, POSIX.1-2001.
-.\" SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC.
 .SH "SEE ALSO"
 .BR semctl (2),
 .BR semget (2),
index 5e5d13847bcc3578f492bb0a61e8e3c7fd4a4f48..2dc5f4c73048d44187458d43dc87803d87239d9b 100644 (file)
@@ -105,8 +105,6 @@ and is inherited by child processes created using
 .BR fork (2)
 or
 .BR clone (2).
-.SH NOTES
-Process policy is not remembered if the page is swapped out.
 .SH RETURN VALUE
 On success,
 .BR set_mempolicy ()
@@ -125,6 +123,8 @@ See
 .BR mbind (2).
 .SH CONFORMING TO
 This system call is Linux specific.
+.SH NOTES
+Process policy is not remembered if the page is swapped out.
 .SH SEE ALSO
 .BR mbind (2),
 .BR get_mempolicy (2),
index c85bfd1f5855b2c92118c7e32ce5d9868a59288c..337793abb98a66a12b57bee8ed7105285f95cf52 100644 (file)
@@ -52,13 +52,13 @@ set appropriately.
 .TP
 .B ESRCH
 A free TLS entry could not be located.
-.SH "CONFORMING TO"
-.BR set_thread_area ()
-is Linux specific and should not be used in programs that are intended
-to be portable.
 .SH "VERSIONS"
 A version of
 .BR set_thread_area ()
 first appeared in Linux 2.5.29.
+.SH "CONFORMING TO"
+.BR set_thread_area ()
+is Linux specific and should not be used in programs that are intended
+to be portable.
 .SH "SEE ALSO"
 .BR get_thread_area (2).
index 0908df8934152b6bb793829c50accf009a9529a1..17d51ce52b60ff4d881e2f239e301fefa2da0319 100644 (file)
@@ -75,14 +75,6 @@ is returned.
 is Linux specific and should not be used in programs intended
 to be portable.
 It is present since Linux 1.1.44 and in libc since libc 4.7.6.
-.SH BUGS
-No error messages of any kind are returned to the caller.
-At the very
-least,
-.B EPERM
-should be returned when the call fails (because the caller lacks the
-.B CAP_SETGID
-capability).
 .SH NOTES
 When glibc determines that the argument is not a valid group ID,
 it will return \-1 and set \fIerrno\fP to EINVAL without attempting
@@ -91,6 +83,14 @@ the system call.
 Note that at the time this system call was introduced, a process
 could send a signal to a process with the same effective user ID.
 Today signal permission handling is slightly different.
+.SH BUGS
+No error messages of any kind are returned to the caller.
+At the very
+least,
+.B EPERM
+should be returned when the call fails (because the caller lacks the
+.B CAP_SETGID
+capability).
 .SH "SEE ALSO"
 .BR kill (2),
 .BR setfsuid (2),
index 3305985d69a6b55d4b7de8e98c42a6f5a7eec0c6..ee932698904b2031722abdcae398ba79245ec40a 100644 (file)
@@ -76,11 +76,11 @@ bring that user ID over its NPROC rlimit.
 .B EPERM
 The calling process is not privileged (did not have the CAP_SETUID
 capability) and tried to change the IDs to values that are not permitted.
+.SH VERSIONS
+These calls are available under Linux since Linux 2.1.44.
 .SH "CONFORMING TO"
 These calls are non-standard;
 they also appear on HP-UX and some of the BSDs.
-.SH VERSIONS
-It is available under Linux since Linux 2.1.44.
 .SH NOTES
 Under HP-UX and FreeBSD the prototype is found in
 .IR <unistd.h> .
index d723a1024c65dfd34acc785fcc19f157bef3da35..4977ab84016328368b73b207cbab5d5caa926de2 100644 (file)
@@ -98,16 +98,16 @@ swapping the effective user (group) ID with the real user (group) ID,
 or (ii) setting one to the value of the other or (iii) setting the
 effective user (group) ID to the value of the
 saved set-user-ID (saved set-group-ID) was specified.
-.SH NOTES
-Setting the effective user (group) ID to the
-saved set-user-ID (saved set-group-ID) is
-possible since Linux 1.1.37 (1.1.38).
 .SH "CONFORMING TO"
 POSIX.1-2001, 4.3BSD (the
 .BR setreuid ()
 and
 .BR setregid ()
 function calls first appeared in 4.2BSD).
+.SH NOTES
+Setting the effective user (group) ID to the
+saved set-user-ID (saved set-group-ID) is
+possible since Linux 1.1.37 (1.1.38).
 .SH "SEE ALSO"
 .BR getgid (2),
 .BR getuid (2),
index 05437659fb95281750a7b539e43c99d881ee435d..db60c6832b08ab1a727e87d3c2153ced8421c27b 100644 (file)
@@ -59,6 +59,8 @@ equals the PID of the calling process.
 Thus, in particular,
 .BR setsid ()
 fails if the calling process is already a process group leader.
+.SH "CONFORMING TO"
+SVr4, POSIX.1-2001.
 .SH NOTES
 A child created via
 .BR fork (2)
@@ -76,8 +78,6 @@ and
 .BR _exit (2),
 and have the child do
 .BR setsid ().
-.SH "CONFORMING TO"
-SVr4, POSIX.1-2001.
 .SH "SEE ALSO"
 .BR setpgid (2),
 .BR setpgrp (2),
index 1a49e218e2f5b2a85caec76a7087db261e68cd97..7d77af1081765ff6287382c219d920c04626f292 100644 (file)
@@ -354,6 +354,11 @@ capability).
 (Since Linux 2.6.9, this error can also occur if the
 .BR RLIMIT_MEMLOCK
 is 0 and the caller is not privileged.)
+.SH "CONFORMING TO"
+SVr4, POSIX.1-2001.
+.\" SVr4 documents additional error conditions EINVAL,
+.\" ENOENT, ENOSPC, ENOMEM, EEXIST.  Neither SVr4 nor SVID documents
+.\" an EIDRM error condition.
 .SH NOTES
 The
 .BR IPC_INFO ,
@@ -380,11 +385,6 @@ To take advantage of this,
 a recompilation under glibc-2.1.91 or later should suffice.
 (The kernel distinguishes old and new calls by an IPC_64 flag in
 .IR cmd .)
-.SH "CONFORMING TO"
-SVr4, POSIX.1-2001.
-.\" SVr4 documents additional error conditions EINVAL,
-.\" ENOENT, ENOSPC, ENOMEM, EEXIST.  Neither SVr4 nor SVID documents
-.\" an EIDRM error condition.
 .SH "SEE ALSO"
 .BR mlock (2),
 .BR setrlimit (2),
index f19c6dc91baa8a73187f83c922e73078e3f265bd..66ae9d729f17a2d909cc723f4334edfe09714eef 100644 (file)
@@ -223,6 +223,12 @@ The
 flag was specified, but the caller was not privileged (did not have the
 .B CAP_IPC_LOCK
 capability).
+.SH "CONFORMING TO"
+SVr4, POSIX.1-2001.
+.\" SVr4 documents an additional error condition EEXIST.
+
+.B SHM_HUGETLB
+is a non-portable Linux extension.
 .SH NOTES
 .B IPC_PRIVATE
 isn't a flag field but a
@@ -273,12 +279,6 @@ on a shared memory segment scheduled for deletion.
 .SH BUGS
 The name choice IPC_PRIVATE was perhaps unfortunate, IPC_NEW
 would more clearly show its function.
-.SH "CONFORMING TO"
-SVr4, POSIX.1-2001.
-.\" SVr4 documents an additional error condition EEXIST.
-
-.B SHM_HUGETLB
-is a non-portable Linux extension.
 .SH "SEE ALSO"
 .BR shmat (2),
 .BR shmctl (2),
index 70b025fc22b347bef38f587c2fd65599a0b22255..5b888fa0a3b722c189d5c0d5daffab182dde31f8 100644 (file)
@@ -227,6 +227,25 @@ or,
 .\" The following since 2.6.17-rc1:
 .I shmaddr
 is not aligned on a page boundary.
+.SH "CONFORMING TO"
+SVr4, POSIX.1-2001.
+.\" SVr4 documents an additional error condition EMFILE.
+
+In SVID 3 (or perhaps earlier)
+the type of the \fIshmaddr\fP argument was changed from
+.I "char *"
+into
+.IR "const void *" ,
+and the returned type of
+.BR shmat ()
+from
+.I "char *"
+into
+.IR "void *" .
+(Linux libc4 and libc5 have the
+.I "char *"
+prototypes; glibc2 has
+.IR "void *" .)
 .SH NOTES
 Using
 .BR shmat ()
@@ -264,25 +283,6 @@ value is
 The implementation places no intrinsic limit on the per\-process maximum
 number of shared memory segments
 .RB ( SHMSEG ).
-.SH "CONFORMING TO"
-SVr4, POSIX.1-2001.
-.\" SVr4 documents an additional error condition EMFILE.
-
-In SVID 3 (or perhaps earlier)
-the type of the \fIshmaddr\fP argument was changed from
-.I "char *"
-into
-.IR "const void *" ,
-and the returned type of
-.BR shmat ()
-from
-.I "char *"
-into
-.IR "void *" .
-(Linux libc4 and libc5 have the
-.I "char *"
-prototypes; glibc2 has
-.IR "void *" .)
 .SH "SEE ALSO"
 .BR brk (2),
 .BR mmap (2),
index cd3837b7a8092a7fc4b85b925cfae8379eb87fb3..601f0223afd40586e350f0b15e2e501b701779cd 100644 (file)
@@ -61,8 +61,6 @@ On other systems, the data type
 .I time_t
 might use some other encoding
 where subtraction doesn't work directly.
-.SH "CONFORMING TO"
-SVr4, 4.3BSD, POSIX.1-2001.
 .SH "SEE ALSO"
 .BR date (1),
 .BR gettimeofday (2),
index 562fb61ed61170b1268ae47d507cfef8ba52b0eb..068407f6a0d7ac2303f702530e9a0ac564c71967 100644 (file)
@@ -93,9 +93,6 @@ program number is found, or until end-of-file is encountered.
 .TP 20
 .I /etc/rpc
 .PD
-.SH "CONFORMING TO"
-Not in POSIX.1-2001.
-Present on the BSDs, Solaris, and many other systems.
 .SH RETURN VALUE
 .LP
 A
@@ -109,6 +106,9 @@ All information
 is contained in a static area
 so it must be copied if it is
 to be saved.
+.SH "CONFORMING TO"
+Not in POSIX.1-2001.
+Present on the BSDs, Solaris, and many other systems.
 .SH "SEE ALSO"
 .BR rpc (5),
 .BR rpcinfo (8),
index 610d442e226a81c436a393c5f6c6c2fc7eb8778f..0bb54531f5b1b703e7f304a70c8f6d35fc0f2cfb 100644 (file)
@@ -2,6 +2,16 @@
 .TH LD.SO 8 2001-12-16 "" "Linux Programmer's Manual"
 .SH NAME
 ld.so, ld-linux.so* \- dynamic linker/loader
+.SH SYNOPSIS
+The dynamic linker can be run either indirectly through running some
+dynamically linked program or library (in which case no command line options
+to the dynamic linker can be passed and, in the ELF case, the dynamic linker
+which is stored in the
+.B .interp
+section of the program is executed) or directly by running:
+.P
+.I /lib/ld-linux.so.*
+[OPTIONS] [PROGRAM [ARGUMENTS]]
 .SH DESCRIPTION
 The programs
 .B ld.so
@@ -60,16 +70,6 @@ and then
 If the binary was linked with
 .B \-z nodeflib
 linker option, this step is skipped.
-.SH SYNOPSIS
-The dynamic linker can be run either indirectly through running some
-dynamically linked program or library (in which case no command line options
-to the dynamic linker can be passed and, in the ELF case, the dynamic linker
-which is stored in the
-.B .interp
-section of the program is executed) or directly by running:
-.P
-.I /lib/ld-linux.so.*
-[OPTIONS] [PROGRAM [ARGUMENTS]]
 .SH OPTIONS
 .TP
 .B \-\-list