Commit Graph

11450 Commits

Author SHA1 Message Date
Michael Kerrisk 257fc8d281 Ready for 3.72 2014-09-07 05:04:14 -07:00
Michael Kerrisk 3fd38c0c45 Removed trailing white space at end of lines 2014-09-07 05:04:07 -07:00
Michael Kerrisk 62c76ace78 memusage.1, memusagestat.1, connect.2, fcntl.2, poll.2, errno.3, rtnetlink.3, inotify.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-07 05:03:19 -07:00
Michael Kerrisk 1b679f0a8f Changes: Ready for 3.72
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-07 05:03:19 -07:00
Holger Hans Peter Freyther cb7c2ea700 rtnetlink.3: Fix parameters for the send() call in the example
Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 19:47:32 +02:00
Rusty Russell d2e7d1bb58 poll.2, select.2: fix erroneous description of "available for write".
POSIX says: "POLLOUT Normal data may be written without
blocking.".  This is "may" is misleading, see the POSIX
write page:

    Write requests to a pipe or FIFO shall be handled in the
    same way as a regular file with the following exceptions:
    ...
    If the O_NONBLOCK flag is clear, a write request may cause
    the thread to block, but on normal completion it shall
    return nbyte.
    ...
    When attempting to write to a file descriptor (other than a
    pipe or FIFO) that supports non-blocking writes and cannot
    accept the data immediately:

    If the O_NONBLOCK flag is clear, write() shall block the
    calling thread until the data can be accepted.

    If the O_NONBLOCK flag is set, write() shall not block the
    thread. If some data can be written without blocking the
    thread, write() shall write what it can and return the
    number of bytes written. Otherwise, it shall return -1 and
    set errno to [EAGAIN].

The net result is that write() of more than 1 byte on a
socket, pipe or FIFO which is "ready" may block: write()
(unlike read!) will attempt to write the entire buffer and
only return a short write under exceptional circumstances.

Indeed, this is the behaviour we see in Linux:

897626152d
https://plus.google.com/103188246877163594460/posts/BkTGTMHDFgZ

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 19:36:03 +02:00
Sorin Dumitru eb67122e5f packet.7: Fix include file
It looks like most of the socket options from this man pages
are not defined in <netpacket/packet.h>. They are defined in
<linux/if_packet.h> so we should include that one.

Note from mtk: it looks like <netpacket/packet.h> was based
on some ancient version of <linux/if_packet.h> that has not
been updated. Since linux/if_packet.h is under the "uapi" tree
the proposed patch seems the bext fix.

Signed-off-by: Sorin Dumitru <sdumitru@ixiacom.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 19:22:39 +02:00
Christian von Roques f36a14687b open.2: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 19:07:04 +02:00
Michael Kerrisk 9af134cdeb getrlimit.2, mmap.2, stat.2, unimplemented.2, dbopen.3, ecvt_r.3, fopen.3, fts.3, getcontext.3, qecvt.3, ip.7, ld.so.8: grfix: Add Oxford comma
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:57:07 +02:00
Michael Kerrisk 229c33a1d3 perf_event_open.2: srcfix: add FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:52:05 +02:00
Michael Kerrisk 93aed9843f memusage.1, memusagestat.1: Move EXAMPLE from memusagestat.1 to memusage.1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:31:27 +02:00
Michael Kerrisk f170e1cc6c memusagestat.1: Add memusage output to example
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:31:27 +02:00
Michael Kerrisk a863cb3a4c memusagestat.1: Various additions and improvements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:31:27 +02:00
Peter Schiffer 16e05f30d6 memusagestat.1: New page for glibc memusagestat(1) command
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:31:27 +02:00
Michael Kerrisk 983700efea memusage.1: Add notes on additional fields displayed for realloc() and mremap()
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:31:27 +02:00
Michael Kerrisk 41deb515fd memusage.1: Add some text on table produced by memusage
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:31:21 +02:00
Michael Kerrisk 26ae4cd949 memusage.1: Various additions and improvements
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:30:53 +02:00
Peter Schiffer 5018c1976f memusage.1: New page for glibc memusage(1) command
Submitted by Jan Chaloupka.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:30:53 +02:00
Michael Kerrisk ad7e766958 mtrace.1: SEE ALSO: Add memusage(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:30:53 +02:00
Michael Kerrisk a92781491a mtrace.1: Minor tweaks
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:30:53 +02:00
Michael Kerrisk c8624d68b2 malloc.3: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-09-01 17:30:53 +02:00
Michael Kerrisk a6db4e3810 locale.1: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-30 15:54:37 +02:00
Michael Kerrisk 1b369cc6fa ldd.1: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-30 15:54:37 +02:00
Michael Kerrisk 4c9b32475f sprof.1: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-30 15:54:36 +02:00
Michael Kerrisk 24bc93cb63 mtrace.1: Minor fixes and rewordings
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-30 15:54:36 +02:00
Peter Schiffer 770e7545eb mtrace.1: New page describing the glibc mtrace(1) command
Page submitted by Jan Chaloupka.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-30 15:54:32 +02:00
Michael Kerrisk 858bbaaacb inotify.7: IN_CLOSE_WRITE occurs only for files (not monitored directory)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-29 19:15:38 +02:00
Michael Kerrisk f279ad490b inotify.7: IN_ACCESS occurs only for files inside directories
IN_ACCESS does not occur for monitored directory.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-29 19:11:35 +02:00
Michael Kerrisk e06fc20c37 inotify.7: IN_MODIFY is generated for files only (not monitored directories)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-29 19:06:26 +02:00
Michael Kerrisk 7465ffa6bb inotify.7: IN_OPEN and IN_CLOSE_NOWRITE can also occur for directories
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-29 18:58:33 +02:00
Michael Kerrisk 00f3b66d62 errno.3: SEE ALSO: add errno(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-25 18:40:57 +02:00
Mike Frysinger ae57731070 getpwnam(3): ffix
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-22 17:53:25 -05:00
Michael Haardt 977e3384e5 connect.2: Note that a new socket should be used if connect() fails
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-21 17:07:18 -05:00
Michael Kerrisk bea08fec7e adjtimex.2, bind.2, cacheflush.2, clone.2, fallocate.2, fanotify_init.2, fanotify_mark.2, flock.2, futex.2, getdents.2, getpriority.2, getrlimit.2, gettid.2, gettimeofday.2, ioprio_set.2, kexec_load.2, migrate_pages.2, modify_ldt.2, mount.2, move_pages.2, mprotect.2, msgop.2, nfsservctl.2, perf_event_open.2, pread.2, ptrace.2, recvmmsg.2, rename.2, restart_syscall.2, sched_setattr.2, send.2, shmop.2, shutdown.2, sigaction.2, signalfd.2, syscalls.2, timer_create.2, timerfd_create.2, tkill.2, vmsplice.2, wait.2, aio_init.3, confstr.3, exit.3, fmemopen.3, fopen.3, getaddrinfo.3, getauxval.3, getspnam.3, isalpha.3, isatty.3, mallinfo.3, malloc.3, mallopt.3, psignal.3, pthread_attr_setinheritsched.3, qecvt.3, queue.3, rtnetlink.3, strerror.3, strftime.3, toupper.3, towlower.3, towupper.3, initrd.4, locale.5, proc.5, bootparam.7, capabilities.7, ddp.7, fanotify.7, icmp.7, inotify.7, ip.7, ipv6.7, netdevice.7, netlink.7, path_resolution.7, rtld-audit.7, rtnetlink.7, sched.7, signal.7, socket.7, svipc.7, tcp.7, unix.7, ld.so.8: srcfix: Update FIXMEs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-21 16:47:44 -05:00
Michael Kerrisk d62018316a Update usage message 2014-08-21 16:47:28 -05:00
Michael Kerrisk 9bcc9e428c fcntl.2: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-21 13:48:32 -05:00
Michael Kerrisk 37c240d14c fcntl.2: One must define _GNU_SOURCE to get the F_OFD_* definitions
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-21 13:47:25 -05:00
Michael Kerrisk 9bbf6fbf5a swapon.2: srcfix: add FIXME
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-21 11:29:26 -05:00
Michael Kerrisk bca08408ee Changes.old: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-20 18:39:54 -05:00
Michael Kerrisk b60a8f50cd Start of man-pages-3.72: updating Changes and Changes.old 2014-08-19 12:11:14 -05:00
Michael Kerrisk 855b7dd11f Start of man-pages-3.72: updating .Announce and .lsm files 2014-08-19 12:11:14 -05:00
Michael Kerrisk b6c673a169 Start of man-pages-3.72: renaming .Announce and .lsm files 2014-08-19 12:11:14 -05:00
Michael Kerrisk 2bc55ae6f8 Ready for 3.71 2014-08-19 12:01:29 -05:00
Michael Kerrisk ef4f4031ca Removed trailing white space at end of lines 2014-08-19 12:01:21 -05:00
Michael Kerrisk 72152722e9 Changes: Expanded tabs 2014-08-19 12:01:21 -05:00
Michael Kerrisk 8980a50087 access.2, bdflush.2, bind.2, brk.2, chmod.2, chown.2, clone.2, epoll_wait.2, execve.2, fsync.2, getgroups.2, gethostname.2, getpagesize.2, getpriority.2, getrlimit.2, ioperm.2, kexec_load.2, link.2, mkdir.2, mmap.2, msgop.2, perf_event_open.2, process_vm_readv.2, ptrace.2, readlink.2, readv.2, recv.2, rename.2, sched_setaffinity.2, select.2, send.2, seteuid.2, signal.2, sigwaitinfo.2, stat.2, symlink.2, sync.2, sync_file_range.2, sysinfo.2, timer_create.2, uname.2, unlink.2, utime.2, wait.2, abs.3, atoi.3, catopen.3, cerf.3, cexp2.3, clearenv.3, clog2.3, ctime.3, des_crypt.3, ecvt.3, fgetgrent.3, flockfile.3, fseeko.3, ftime.3, ftok.3, ftw.3, getauxval.3, getcwd.3, getdtablesize.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, getline.3, getpass.3, getutent.3, glob.3, insque.3, lseek64.3, memmem.3, mkstemp.3, mktemp.3, on_exit.3, openpty.3, putenv.3, qecvt.3, realpath.3, remove.3, setbuf.3, sigpause.3, strftime.3, strptime.3, strstr.3, strtod.3, tzset.3, updwtmp.3, xcrypt.3, core.5, utmp.5, capabilities.7, charsets.7, environ.7, ipv6.7, man-pages.7, packet.7, vdso.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-19 11:55:41 -05:00
Michael Kerrisk 9da7b16499 Changes: Ready for 3.71
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-19 11:36:39 -05:00
Michael Kerrisk af81e9cd97 isfdtype.3: New page documenting isfdtype(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:24:32 -05:00
Michael Kerrisk 94ed3bb9c6 getgrouplist.3: SEE ALSO: add group_member(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:20:49 -05:00
Michael Kerrisk e1c083b606 getgroups.2: SEE ALSO: add group_member(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-08-18 17:20:49 -05:00