Commit Graph

475 Commits

Author SHA1 Message Date
Michael Kerrisk c2dd39b4ec Add SEE also referring to fts.3. 2006-05-22 23:06:10 +00:00
Michael Kerrisk ba9456cb7f Add SEE also referring to ftw.3. 2006-05-22 23:05:57 +00:00
Michael Kerrisk 5cc68ff071 ffix 2006-05-22 22:07:20 +00:00
Michael Kerrisk 38aa9aec8b ffix 2006-05-22 21:46:10 +00:00
Michael Kerrisk c00a8870eb Clarify that O_EXCL is an open(2) flag. 2006-05-22 21:32:54 +00:00
Michael Kerrisk 3721893add Minor fixes 2006-05-22 19:59:23 +00:00
Michael Kerrisk 9b33650560 wfix 2006-05-22 19:44:47 +00:00
Michael Kerrisk 3e2984b2dd A few fixes. 2006-05-22 08:53:01 +00:00
Michael Kerrisk 7cd244034d s/sigev_signal/sigev_signo/ 2006-05-22 08:27:25 +00:00
Michael Kerrisk 911db49ef9 Fix prototype decln for 'attr'. 2006-05-22 08:25:00 +00:00
Michael Kerrisk b2781acd29 New link to strchr.3. 2006-05-18 23:21:30 +00:00
Michael Kerrisk a0bf357742 Add change log entry for last mod. 2006-05-18 23:20:58 +00:00
Michael Kerrisk c76f15b3ee strchrnul is now documented. 2006-05-18 23:08:17 +00:00
Michael Kerrisk e9d27e13de Add description of strchrnul(). 2006-05-18 23:06:18 +00:00
Michael Kerrisk 2df47dc8f1 Various minor clarifications. 2006-05-18 22:24:03 +00:00
Michael Kerrisk aa52d7769a Added SEE ALSO referring to rpmatch.3. 2006-05-18 21:50:21 +00:00
Michael Kerrisk 451d74fc7e wfix 2006-05-18 21:49:40 +00:00
Michael Kerrisk 6a39becbff Various minor changes. 2006-05-18 21:48:40 +00:00
Michael Kerrisk f3fad5f6b4 Add missing ".so" 2006-05-18 05:22:50 +00:00
Michael Kerrisk 9c2c8eec07 New links to sched_setaffinity.2 2006-05-18 05:17:46 +00:00
Michael Kerrisk 1d6d6d04b2 New links to sigsetops.3. 2006-05-18 05:08:01 +00:00
Michael Kerrisk e21b701fd2 Fix .TH line. 2006-05-17 21:49:21 +00:00
Michael Kerrisk fb84c583f7 wfix 2006-05-17 21:33:53 +00:00
Michael Kerrisk 5f58593e11 ffix 2006-05-17 21:32:42 +00:00
Michael Kerrisk 7707efd2fa New links to select.2 2006-05-17 20:38:15 +00:00
Michael Kerrisk d142e38fbb Add SEE ALSO to stdio.3 2006-05-17 20:07:31 +00:00
Michael Kerrisk a2337ea31e Add SEE ALSO to unlocked_stdio.3 2006-05-17 20:07:21 +00:00
Michael Kerrisk a26a803b4a Remove freadable, fwriteable, fwriting 2006-05-17 20:05:58 +00:00
Michael Kerrisk 4ff5a07b8d ffix 2006-05-17 19:37:53 +00:00
Michael Kerrisk b95582c7c8 ffix 2006-05-16 20:05:19 +00:00
Michael Kerrisk c3b8df7000 wfix 2006-05-15 20:52:20 +00:00
Michael Kerrisk 21038fa244 wfix 2006-05-15 09:23:14 +00:00
Michael Kerrisk a8e7c990dc Rename ftm.7 to feature_test_macros.7 2006-05-15 09:13:10 +00:00
Michael Kerrisk 8699b7dd38 wfix 2006-05-14 21:41:45 +00:00
Michael Kerrisk 3ed4fcbd33 tfix 2006-05-13 21:52:39 +00:00
Michael Kerrisk 0bfd9487fa New link to mq_getattr.3 2006-05-12 19:10:51 +00:00
Michael Kerrisk e2c271700e New link to mq_send.3 2006-05-12 19:10:31 +00:00
Michael Kerrisk 4673d55157 New link to mq_send.3 2006-05-12 19:10:14 +00:00
Michael Kerrisk d2b5344454 New page for rpmatch(3) 2006-05-12 18:49:41 +00:00
Michael Kerrisk 42b099302d Clarify meaning of IXANY.
Clarify relationship of MIN with VMIN and TIME with VTIME.
Noted that CIBAUD, OFDEL, and DELECHO are not implemented on Linux.
Added explanatory paragraph for phrases "not in POSIX" and
"XSI".
2006-05-08 21:37:17 +00:00
Michael Kerrisk 2d2c82e101 wfix 2006-05-08 21:27:27 +00:00
Michael Kerrisk 7c5bd0ebc2 Add missing "const" qualifies to cast in EXAMPLE.
Slight rewording of comments in EXAMPLE.
2006-05-08 06:41:59 +00:00
Michael Kerrisk bcd70adc0e Document 'm' (mmap) flag.
Document 'c' (notcancel) flag.
2006-05-03 23:52:08 +00:00
Michael Kerrisk 22e3b8b11c Add SEE ALSO references to new *at.2 pages 2006-05-02 00:03:35 +00:00
Michael Kerrisk 4f43f21f30 Rewrote RETURN VALUE discussion.
Updated CONFORMING TO.
Removed BUGS.
2006-05-01 05:53:15 +00:00
Michael Kerrisk 8888a90efe Various small changes. 2006-05-01 02:26:44 +00:00
Michael Kerrisk 9fcfcba05f Added SEE ALSO entry referring to setlocale.3 2006-05-01 01:52:57 +00:00
Michael Kerrisk 4c5dd86906 New page for adjtime(3). 2006-05-01 00:14:40 +00:00
Michael Kerrisk 6f57dde7d2 wfix 2006-05-01 00:05:18 +00:00
Michael Kerrisk 16e1b4721c wfix 2006-04-30 21:11:57 +00:00
Michael Kerrisk 7fe9faa251 Rewrote references to program_invocation_name 2006-04-28 20:03:47 +00:00
Michael Kerrisk 36e6dea5bc New link to new program_invocation_name.3. 2006-04-28 20:00:50 +00:00
Michael Kerrisk 900064d47c New page describing program_invocation_name and
program_invocation_short_name variables.
2006-04-28 19:59:46 +00:00
Michael Kerrisk a914ecb389 Remove documented functions 2006-04-28 19:56:45 +00:00
Michael Kerrisk 6ff9cf67aa minor changes 2006-04-28 19:19:03 +00:00
Michael Kerrisk e2daf71dbb New link to new error.3 2006-04-28 18:37:17 +00:00
Michael Kerrisk c768efc691 wfix 2006-04-28 08:18:23 +00:00
Michael Kerrisk 0143e6bcbc minor changes 2006-04-28 06:51:09 +00:00
Michael Kerrisk 37b6aec337 Add SEE ALSO referring to new error.3 2006-04-28 06:47:38 +00:00
Michael Kerrisk 921166c474 New page describing error () and error_at_line() 2006-04-28 06:44:37 +00:00
Michael Kerrisk eafd5ce11f Added SEE ALSO referring to new time.7 2006-04-26 07:26:36 +00:00
Michael Kerrisk 7f4f95858a The range of tm_sec is 0..60 (not 0..61). 2006-04-26 05:49:35 +00:00
Michael Kerrisk 6c98e32416 ffix 2006-04-26 05:49:24 +00:00
Michael Kerrisk bb47b54bfb Add SEE ALSO pointing to getline.3. 2006-04-25 21:31:05 +00:00
Michael Kerrisk cbd3458862 Updated FIXME 2006-04-23 23:34:59 +00:00
Michael Kerrisk 92452da5db ffix 2006-04-23 23:33:10 +00:00
Michael Kerrisk 66679b1f0f 4.x BSD --> 4.xBSD 2006-04-23 23:29:16 +00:00
Michael Kerrisk 96a67b1111 Remove old FIXME 2006-04-23 23:15:26 +00:00
Michael Kerrisk 21008754d7 New page. 2006-04-22 03:56:18 +00:00
Michael Kerrisk a5537674fd wfix 2006-04-21 19:07:17 +00:00
Michael Kerrisk 516f0680e4 Update FIXME 2006-04-21 19:01:55 +00:00
Michael Kerrisk 6dff8403b8 wfix 2006-04-21 19:01:43 +00:00
Michael Kerrisk 50e5322c85 Added SEE ALSO reference to ftm.7 2006-04-21 06:49:34 +00:00
Michael Kerrisk fb961f311e Simplified wording about requirement for _BSD_SOURCE macro. 2006-04-21 06:28:54 +00:00
Michael Kerrisk 2c5e151c7f ipc.7 --> svipc.7 2006-04-21 03:53:43 +00:00
Michael Kerrisk af5b2ef2cc fifo.4 --> fifo.7 2006-04-21 01:46:04 +00:00
Michael Kerrisk a8bda63671 complex.5 --> complex.7 2006-04-21 01:24:06 +00:00
Michael Kerrisk aa949e2d59 environ.5 --> environ.7 2006-04-21 00:45:46 +00:00
Michael Kerrisk 922436594f ipc.5 --> ipc.7 2006-04-21 00:38:38 +00:00
Michael Kerrisk 0acd0e5775 minor changes 2006-04-20 21:56:03 +00:00
Michael Kerrisk b776661a65 Updated FIXME 2006-04-20 20:20:01 +00:00
Michael Kerrisk 97b6cd4152 Add FIXME 2006-04-19 22:56:37 +00:00
Michael Kerrisk af8d55f9ce DESCRIPTION does not need to say "temporary file name" just "temporary
file", since the name is in any case unavailable to the user.
See Debian bug 363518

In DESCRIPTION:
Change /automatically deleted when the program terminates normally/
to     /automatically deleted when the program terminates/
since that is the reality.
2006-04-19 21:19:30 +00:00
Michael Kerrisk 690db71bff Fix typo in description 2006-04-19 20:33:31 +00:00
Michael Kerrisk c75ec721fb Add text noting that disabling output buffering using setbuf()
may be useful to catch errors on output operations.
2006-04-19 02:47:51 +00:00
Michael Kerrisk 5a1cae6b28 Added EXAMPLE section pointing to strtol.3, which provides an example
of the use of the analogous strtol() function.
2006-04-19 01:33:09 +00:00
Michael Kerrisk 56aee8683e Added an example program. 2006-04-19 01:31:51 +00:00
Michael Kerrisk fefe023ea5 Describe correct handling or errno in order to
distinguish error from success after the call.
2006-04-19 00:58:37 +00:00
Michael Kerrisk f1158c074c wfix 2006-04-18 09:02:55 +00:00
Michael Kerrisk 869ebe5b84 Document the feature test macros required to expose various flags.
Clarify speed argument for cfsetispeed() text.
Note that LOBLK is not implemented on Linux.
Clarify arguments for cfsetspeed().
Various formatting changes
2006-04-15 00:39:29 +00:00
Michael Kerrisk e7b0c1f1d7 Minor changes 2006-04-06 05:18:28 +00:00
Michael Kerrisk 91bf3fab3a New page for new mkfifoat.3. 2006-04-05 05:36:09 +00:00
Michael Kerrisk 641220734e Added SEE ALSO to new mkfifoat.3. 2006-04-05 05:34:56 +00:00
Michael Kerrisk 2c731798aa Pages describing POSIX semaphores API 2006-03-25 20:42:27 +00:00
Michael Kerrisk f3cbdba966 FIXME ffix 2006-03-23 03:29:05 +00:00
Michael Kerrisk 218e46f883 Small FIXME formatting fixes 2006-03-23 02:13:08 +00:00
Michael Kerrisk 777f5a9ef7 Updated FIXMEs 2006-03-20 04:46:28 +00:00
Michael Kerrisk f8bb81c576 spfix 2006-03-20 03:13:48 +00:00
Michael Kerrisk 7bc7af37cf Clean up description of EEXIST error.
Debian bug 357893
2006-03-20 03:13:41 +00:00
Michael Kerrisk 739b9bb1b3 spfix 2006-03-20 01:31:53 +00:00
Michael Kerrisk d18b568465 Add needed "#define _XOPEN_SOURCE" 2006-03-19 21:49:15 +00:00
Michael Kerrisk 96d64e9889 ffix 2006-03-19 21:32:39 +00:00
Michael Kerrisk f2665a55f6 Added comment on a glibc header bug 2006-03-12 00:14:51 +00:00
Michael Kerrisk 14eb7ff62e Link to shm_open.3 2006-03-09 04:37:30 +00:00
Michael Kerrisk b3d291f066 Removed some page names that are now documented. 2006-03-09 04:12:30 +00:00
Michael Kerrisk 4ed33e00ac Added SEE ALSO for fexecve.3 2006-03-06 04:55:51 +00:00
Michael Kerrisk 37ca720250 New page 2006-03-06 04:55:27 +00:00
Michael Kerrisk a6c95320cf Only available elsewhere on the BSDs. 2006-03-06 04:34:13 +00:00
Michael Kerrisk 9e1632fd75 futimes(3) 2006-03-06 02:43:48 +00:00
Michael Kerrisk c7da82ff53 ffix 2006-03-05 22:59:17 +00:00
Michael Kerrisk 06ec542b7f Updated FIXME 2006-03-05 20:44:02 +00:00
Michael Kerrisk 37f5831230 tfix 2006-03-02 03:11:54 +00:00
Michael Kerrisk 08140a81ac Minor changes 2006-03-02 02:04:20 +00:00
Michael Kerrisk 1cd27447fe New page. 2006-03-01 04:10:55 +00:00
Michael Kerrisk 80a99f39e6 New pages for POSIX message queues API 2006-03-01 03:21:20 +00:00
Michael Kerrisk efa25b17c6 Modify formatting of copyright notices 2006-02-15 23:19:08 +00:00
Michael Kerrisk 1130df606b Amend copyright notices, in particular those where I had significant
authorship.
2006-02-15 23:15:29 +00:00
Michael Kerrisk 73dc32f064 Expand explanation of FNM_PATHNAME. 2006-02-14 05:03:56 +00:00
Michael Kerrisk ef50679c63 Chage "file name" to "filename" 2006-02-12 22:23:18 +00:00
Michael Kerrisk 2d7195b8fb Change "path name" to "pathname" 2006-02-12 22:19:08 +00:00
Michael Kerrisk 2c5f10893e Change "file name" to "filename" 2006-02-12 22:15:41 +00:00
Michael Kerrisk 0febdb5ca1 Fix up discussion of EAGAIN/EACCESS errors. 2006-02-10 20:27:59 +00:00
Michael Kerrisk c533af9d27 Reformatted FIXMEs 2006-02-10 18:46:42 +00:00
Michael Kerrisk 1709027cdd Added SEE ALSO pointers to wide character equivalent functions 2006-02-09 20:57:44 +00:00
Michael Kerrisk dcec8eb551 Formatting fixes 2006-02-09 20:29:51 +00:00
Michael Kerrisk 9ff08aad91 Formatting fixes 2006-02-09 20:24:53 +00:00
Michael Kerrisk a0ddea8773 Add Linux-specific errors, and mark individual errors as being present
in POSIX or C99

Hello Kurt,

Thanks for your message.

> man3/errno.3 was missing some errors. 

Indeed.

> This patch updates errno.3 based
> on /usr/include/linux/errno.h as of 2.6.16-rc2. 

I do not quite understand that last: /usr/include/linux/errno.h is a 
userland file -- it probably won't tie up too well to a 
specific kernel version (or am I missing something?).

> I also synced the error
> description in the man page with the error descriptions from the header
> file.

This generates some useful info, but also some things that are incorrect.
For example, since you are talking about a glibc header, does a 
particular error even occur on Linux.  (See some examples below.)

I think you also overlooked the fact that the page says that the listed 
errors are defined by POSIX.1-2001.  So it is not sufficient to just 
add new errors to the list.  On the other hand, it is irritating
that the current page does not list Linux-specific errors.
And you patch has finally pushed me to do something I've been 
thinking of for a while.  So I've changed the page to mark the 
errors that are POSIX, and added the Linux-specifc errors, 
integrating some of your patch.

> The patch was diffed against manpages-2.22.

Thanks -- many people forget to mention that detail.

> --- errno.3.orig    2005-12-14 07:09:39.000000000 -0500
> +++ errno.3    2006-02-06 23:45:52.000000000 -0500
> @@ -23,9 +23,11 @@
>  .\" 5 Oct 2002, Modified by Michael Kerrisk <mtk-manpages@gmx.net>
>  .\"     Updated for POSIX 1003.1 2001
>  .\" 2004-12-17 Martin Schulze <joey@infodrom.org>, mtk
> -.\"    Removed errno declaration prototype, added notes
> +.\"        Removed errno declaration prototype, added notes
> +.\" 7 Feb 2006, Modified by Kurt Wall <kwall@kurtwerks.com>
> +.\"     Add missing errors, sync to linux-2.6.16-rc2
>  .\"
> -.TH ERRNO 3 2004-12-17 "" "Library functions"
> +.TH ERRNO 3 2006-02-07 "" "Library functions"
>  .SH NAME
>  errno \- number of last error
>  .SH SYNOPSIS
> @@ -71,61 +73,95 @@
>  .\" FIXME The following list is far from complete
>  .TP
>  .B E2BIG
> -Arg list too long
> +Argument list too long

ok

>  .TP
>  .B EACCES
>  Permission denied
>  .TP
>  .B EADDRINUSE
> -Address in use
> +Address already in use

ok

>  .TP
>  .B EADDRNOTAVAIL
> -Address not available
> +Cannot assign requested address

ok

> +.TP
> +.B EADV
> +Advertise error

This is a HURD error.  As far as I can tell it does not occur on Linux.

>  .TP
>  .B EAFNOSUPPORT
> -Address family not supported
> +Address family not supported by protocol

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B EAGAIN
> -Resource temporarily unavailable
> +Try again

This is wrong.  (i.e., it does not match POSIX and/or 
what perror(3) produces)

>  .TP
>  .B EALREADY
> -Connection already in progress
> +Operation already in progress

POSIX differs.  I stayed with POSIX.

> +.TP
> +.B EBADE
> +Invalid exchange

ok

>  .TP
>  .B EBADF
> -Bad file descriptor
> +Bad file number

This is wrong.

> +.TP
> +.B EBADFD
> +File descriptor in bad state

ok

>  .TP
>  .B EBADMSG
> -Bad message
> +Not a data message

This is wrong.

> +.TP
> +.B EBADR
> +Invalid request descriptor

ok

> +.TP
> +.B EBADRQC
> +Invalid request code

ok

> +.TP
> +.B EBADSLT
> +Invalid slot

ok

> +.TP
> +.B EBFONT
> +Bad font file format

As far as I can tell, this is not used on Linux.  Let me know 
if you find otherwise. (I didn't add it)

>  .TP
>  .B EBUSY
> -Resource busy
> +Device or resource busy

ok

>  .TP
>  .B ECANCELED
> -Operation canceled
> +Operation Canceled

Please review the output of automated scripts!
(not changed)

>  .TP
>  .B ECHILD
>  No child processes
>  .TP
> +.B ECHRNG
> +Channel number out of range

ok

> +.TP
> +.B ECOMM
> +Communication error on send

ok

> +.TP
>  .B ECONNABORTED
> -Connection aborted
> +Software caused connection abort

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B ECONNREFUSED
>  Connection refused
>  .TP
>  .B ECONNRESET
> -Connection reset
> +Connection reset by peer

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B EDEADLK
> -Resource deadlock avoided
> +Resource deadlock would occur

POSIX differs.  I stayed with POSIX.

> +.TP
> +.B EDEADLOCK
> +Resource deadlock would occur (might be the same value as
> +.BR EDEADLK)

I wrote just "Synonym for EDEADLK"

>  .TP
>  .B EDESTADDRREQ
>  Destination address required
>  .TP
>  .B EDOM
> -Domain error
> +Math argument out of domain of func

? Garbled

I wrote the POSIX defn: Mathematics argument out of domain of function

> +.TP
> +.B EDOTDOT
> +RFS specific error

This is defined, but appears not to be used.
(I didn't add it)

>  .TP
>  .B EDQUOT
> -Reserved
> +Quota exceeded

POSIX says "Reserved."  In this case better to go with
"Disk quota exceeded"

>  .TP
>  .B EEXIST
>  File exists
> @@ -136,8 +172,11 @@
>  .B EFBIG
>  File too large
>  .TP
> +.B EHOSTDOWN
> +Host is down

ok

> +.TP
>  .B EHOSTUNREACH
> -Host is unreachable
> +No route to host

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B EIDRM
>  Identifier removed
> @@ -146,25 +185,70 @@
>  Illegal byte sequence
>  .TP
>  .B EINPROGRESS
> -Operation in progress
> +Operation now in progress

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B EINTR
> -Interrupted function call
> +Interrupted system call

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B EINVAL
>  Invalid argument
>  .TP
>  .B EIO
> -Input/output error
> +I/O error

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B EISCONN
> -Socket is connected
> +Transport endpoint is already connected

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B EISDIR
>  Is a directory
>  .TP
> +.B EISNAM
> +Is a named type file

ok

> +.TP
> +.B EKEYEXPIRED
> +Key has expired

ok

> +.TP
> +.B EKEYREJECTED
> +Key was rejected by service

ok

> +.TP
> +.B EKEYREVOKED
> +Key has been revoked

ok

> +.TP
> +.B EL2HLT
> +Level 2 halted

ok

> +.TP
> +.B EL2NSYNC
> +Level 2 not synchronized

ok

> +.TP
> +.B EL3HLT
> +Level 3 halted

ok

> +.TP
> +.B EL3RST
> +Level 3 reset

ok

> +.TP
> +.B ELIBACC
> +Can not access a needed shared library

ok

> +.TP
> +.B ELIBBAD
> +Accessing a corrupted shared library

ok

> +.TP
> +.B ELIBEXEC
> +Cannot exec a shared library directly

ok

> +.TP
> +.B ELIBMAX
> +Attempting to link in too many shared libraries

ok

> +.TP
> +.B ELIBSCN
> +.lib section in a.out corrupted

ok

> +.TP
> +.B ELNRNG
> +Link number out of range

This is defined, but appears not to be used.
(I didn't add it)

> +.TP
>  .B ELOOP
> -Too many levels of symbolic links
> +Too many symbolic links encountered

this is wrong

> +.TP
> +.B EMEDIUMTYPE
> +Wrong medium type
>  .TP
>  .B EMFILE
>  Too many open files
> @@ -173,32 +257,41 @@
>  Too many links
>  .TP
>  .B EMSGSIZE
> -Inappropriate message buffer length
> +Message too long

ok

>  .TP
>  .B EMULTIHOP
> -Reserved
> +Multihop attempted

ok
POSIX says "Reserved."  In this case better to go with
Linux.

>  .TP
>  .B ENAMETOOLONG
> -Filename too long
> +File name too long

Scripted output?
(no change)

> +.TP
> +.B ENAVAIL
> +No XENIX semaphores available

This is defined, but appears not to be used.
(I didn't add it)

>  .TP
>  .B ENETDOWN
>  Network is down
>  .TP
>  .B ENETRESET
> -Connection aborted by network
> +Network dropped connection because of reset

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B ENETUNREACH
> -Network unreachable
> +Network is unreachable

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B ENFILE
> -Too many open files in system
> +File table overflow

This is wrong

> +.TP
> +.B ENOANO
> +No anode

This is defined, but appears not to be used.
(I didn't add it)

>  .TP
>  .B ENOBUFS
>  No buffer space available
> +.TP
> +.B ENOCSI
> +No CSI structure available

This is defined, but appears not to be used.
(I didn't add it)

>  .\" ENODATA is part of XSR option
>  .TP
>  .B ENODATA
> -No message is available on the STREAM head read queue
> +No data available

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B ENODEV
>  No such device
> @@ -209,17 +302,29 @@
>  .B ENOEXEC
>  Exec format error
>  .TP
> +.B ENOKEY
> +Required key not available

ok

> +.TP
>  .B ENOLCK
> -No locks available
> +No record locks available

This is wrong

>  .TP
>  .B ENOLINK
> -Reserved
> +Link has been severed

ok
POSIX says "Reserved."  In this case better to go with
Linux.

> +.TP
> +.B ENOMEDIUM
> +No medium found

ok

>  .TP
>  .B ENOMEM
> -Not enough space
> +Out of memory

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B ENOMSG
> -No message of the desired type
> +No message of desired type

POSIX differs.  I stayed with POSIX.

> +.TP
> +.B ENONET
> +Machine is not on the network

ok

> +.TP
> +.B ENOPKG
> +Package not installed

ok

>  .TP
>  .B ENOPROTOOPT
>  Protocol not available
> @@ -229,17 +334,20 @@
>  .\" ENOSR is part of XSR option
>  .TP
>  .B ENOSR
> -No STREAM resources
> +Out of streams resources

POSIX differs.  I stayed with POSIX.

>  .\" ENOSTR is part of XSR option
>  .TP
>  .B ENOSTR
> -Not a STREAM
> +Device not a stream

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B ENOSYS
>  Function not implemented
>  .TP
> +.B ENOTBLK
> +Block device required
> +.TP

ok

>  .B ENOTCONN
> -The socket is not connected
> +Transport endpoint is not connected

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B ENOTDIR
>  Not a directory
> @@ -247,27 +355,33 @@
>  .B ENOTEMPTY
>  Directory not empty
>  .TP
> -.B ENOTSOCK
> -Not a socket
> +.B ENOTNAM
> +Not a XENIX named type file

This is defined, but appears not to be used.
(I didn't add it)

>  .TP
> -.B ENOTSUP
> -Not supported

No!  This exists.


> +.B ENOTSOCK
> +Socket operation on non-socket
>  .TP
>  .B ENOTTY
> -Inappropriate I/O control operation
> +Not a typewriter

this is wrong

> +.TP
> +.B ENOTUNIQ
> +Name not unique on network

ok

>  .TP
>  .B ENXIO
>  No such device or address
>  .TP
>  .B EOPNOTSUPP
> -Operation not supported on socket
> +Operation not supported on transport endpoint

POSIX differs.  I stayed with POSIX.

(In passing ENOTSUP and EOPNOTSUPP have the same value on Linux;
POSIX.1 does not permit this.)

>  .TP
>  .B EOVERFLOW
> -Value too large to be stored in data type
> +Value too large for defined data type

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B EPERM
>  Operation not permitted
>  .TP
> +.B EPFNOSUPPORT
> +Protocol family not supported

ok

> +.TP
>  .B EPIPE
>  Broken pipe
>  .TP
> @@ -281,39 +395,76 @@
>  Protocol wrong type for socket
>  .TP
>  .B ERANGE
> -Result too large
> +Math result not representable

POSIX differs.  I stayed with POSIX.

> +.TP
> +.B EREMCHG
> +Remote address changed

ok

> +.TP
> +.B EREMOTE
> +Object is remote

ok

> +.TP
> +.B EREMOTEIO
> +Remote I/O error

ok

> +.TP
> +.B ERESTART
> +Interrupted system call should be restarted

ok

>  .TP
>  .B EROFS
>  Read-only file system
>  .TP
> +.B ESHUTDOWN
> +Cannot send after transport endpoint shutdown

ok

> +.TP
> +.B ESOCKTNOSUPPORT
> +Socket type not supported

ok

> +.TP
>  .B ESPIPE
> -Invalid seek
> +Illegal seek

POSIX differs.  I stayed with POSIX.

>  .TP
>  .B ESRCH
>  No such process
>  .TP
> +.B ESRMNT
> +Srmount error

This is defined, but appears not to be used.
(I didn't add it)

> +.TP
>  .B ESTALE
> -Stale file handle
> +Stale NFS file handle

Tricky -- you are right about the error message, 
but the message itself is wrong, because the error 
can occur on other file sytems also.
(not changed)

>  .\" Can occur for NFS and for other file systems
>  .\" ETIME is part of XSR option
>  .TP
> +.B ESTRPIPE
> +Streams pipe error

ok

> +.TP
>  .B ETIME
> -STREAM 
> -.BR ioctl () 
> -timeout
> +Timer expired

POSIX differs, but Linux doesn't have streams, and the error is 
used for various purposes.  Changed as you proposed.

>  .TP
>  .B ETIMEDOUT
> -Operation timed out
> +Connection timed out

ok

> +.TP
> +.B ETOOMANYREFS
> +Too many references: cannot splice

This is defined, but appears not to be used.
(I didn't add it)

>  .TP
>  .B ETXTBSY
>  Text file busy
>  .TP
> -.B EWOULDBLOCK
> -Operation would block (may be same value as
> -.BR EAGAIN )

Absolutely not!!

> +.B EUCLEAN
> +Structure needs cleaning

ok

> +.TP
> +.B EUNATCH
> +Protocol driver not attached

ok

> +.TP
> +.B EUSERS
> +Too many users

ok

> +.TP
> +.B EWOULDBLOCK    
> +Operation would block (might be same value as
> +.BR EAGAIN)

okay (except formatting was not quite right: .BR EAGAIN )

>  .TP
>  .B EXDEV
> -Improper link
> +Cross-device link
> +.TP
> +.B EXFULL
> +Exchange full

ok
2006-02-08 18:26:38 +00:00
Michael Kerrisk 92057f4dbc Updated FIXMEs 2006-02-08 09:44:13 +00:00
Michael Kerrisk 23b3fc77bb Added cross-ref to locale.7 for 'struct lconv' defn.
Other minor wording changes.
2006-02-07 23:32:50 +00:00
Michael Kerrisk 48e1940d60 wfix 2006-02-07 22:54:01 +00:00
Michael Kerrisk 0087e7c432 Added SEE ALSO ref for nl_langinfo.3
As per Debian bug 351831.
2006-02-07 20:57:53 +00:00
Michael Kerrisk 6e888f06d1 Minor formatting & wording fixes. 2006-02-05 08:57:26 +00:00
Michael Kerrisk 43daf87dcd Minor formatting & wording fixes. 2006-02-05 08:54:26 +00:00
Michael Kerrisk 803ef3359c tfix 2006-01-23 06:43:04 +00:00
Michael Kerrisk 3f266a435b s/string must begin/string may begin/ 2006-01-19 18:45:50 +00:00
Michael Kerrisk 6e592244a8 Slight rewording of recent added text 2006-01-17 20:13:03 +00:00
Michael Kerrisk d0ac4fb3e2 Make clear that when calling getopt_long() and there are no
short options, then 'optstring' should be "" not NULL.
2006-01-16 22:48:21 +00:00
Michael Kerrisk 660dd25fee In glibc 2.0.92, openpty() was modified to return
Unix 98 ptys instead of BSD ptys.
2006-01-16 22:07:42 +00:00
Michael Kerrisk 48a1cb4903 Small rewording under EXAMPLE. 2006-01-16 19:48:56 +00:00
Michael Kerrisk cd6d114a27 new link to mmap.2 2006-01-15 20:40:32 +00:00
Michael Kerrisk a3a1166783 Some rewordings of recently added text 2006-01-15 01:08:56 +00:00
Michael Kerrisk 788be12467 Clarify how strcmp() should be used as the 'compar'
function by providing an example.
2006-01-14 18:25:27 +00:00
Michael Kerrisk ab95e95e01 Formatting fix 2006-01-14 17:14:10 +00:00
Michael Kerrisk 0ed29c540c Noted use of atexit() to register a function that is
automatically called when a library is unloaded.
2006-01-14 05:37:06 +00:00
Michael Kerrisk bba0618959 Added description of RTLD_DEEPBIND. 2006-01-14 05:14:39 +00:00
Michael Kerrisk 336e88f0f8 Rewrote discussion of dlopen() 'flag' argument;
added description of RTLD_NOLOAD and RTLD_DELETE.
2006-01-14 04:29:47 +00:00
Michael Kerrisk f6a5acc97f Add RETURN VALUE section. 2006-01-13 09:58:42 +00:00
Michael Kerrisk 80b50848d0 Replace "SYSV" by "System V" 2006-01-13 09:44:53 +00:00
Michael Kerrisk aa651b3950 Replace "SysV" by "System V" 2006-01-13 09:39:55 +00:00
Michael Kerrisk 845f2c47c6 Grammar/formatting fixes 2006-01-13 09:34:01 +00:00