Commit Graph

1370 Commits

Author SHA1 Message Date
Michael Kerrisk 2a243c9e6a inotify.7, rtld-audit.7: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-18 18:56:07 +01:00
Michael Kerrisk 6f5ce08575 scanf.3, aio.7: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-18 18:53:39 +01:00
Michael Kerrisk 6a86fae5bd sched_setscheduler.2, mallinfo.3, pthread_setname_np.3, nss.5, boot.7, numa.7, udplite.7: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-18 18:50:48 +01:00
Michael Kerrisk 6b4dbb25e9 delete_module.2, epoll_create.2, getpeername.2, getpriority.2, getrlimit.2, getunwind.2, init_module.2, kcmp.2, mmap.2, perf_event_open.2, perfmonctl.2, prctl.2, s390_runtime_instr.2, timerfd_create.2, vfork.2, getaddrinfo_a.3, getenv.3, if_nameindex.3, if_nametoindex.3, mcheck.3, pthread_setname_np.3, scanf.3, cciss.4, hpsa.4, core.5, gai.conf.5, networks.5, nscd.conf.5, nss.5, aio.7, arp.7, numa.7, socket.7, udplite.7: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-18 18:45:32 +01:00
Michael Kerrisk 7aa48d58c5 man-pages.7: Minor rewording in DESCRIPTION
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-18 16:05:06 +01:00
Michael Kerrisk a6e088090b rtld-audit.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-18 15:52:12 +01:00
Michael Kerrisk b0a6a72e8d ip.7: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-14 01:24:47 +01:00
Michael Kerrisk c534b25d95 ip.7: Minor fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-12 22:50:57 +01:00
Flavio Leitner 0a03fceb09 ip.7: Improve explanation about calling listen() or connect()
Problem:
When connect(2) is executed, the local port number may duplicate.

How reproducible:
When using parameter "net.ipv4.ip_local_port_range", a client may use
the same port to connect to the different sessions on the localhost.

Steps to Reproduce:
1.Change "net.ipv4.ip_local_port_range".
  [Example]
  net.ipv4.ip_local_port_range = 32768 32770

2.Connect to any two ports of LISTEN by telnet command.
  [Example]
  # netstat -antp | grep LISTEN
  tcp        0      0 0.0.0.0:139                 0.0.0.0:*                   LISTEN      2828/smbd
  tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      2800/vsftpd
  #
  # telnet 127.0.0.1 139
  # telnet 127.0.0.1 21
  # telnet 127.0.0.1 21

3.Duplication of a local transmission port.
  [Example]
  # netstat -antp
  tcp        0      0 127.0.0.1:32769      127.0.0.1:139      ESTABLISHED 18147/telnet
  tcp        0      0 127.0.0.1:32769      127.0.0.1:21       ESTABLISHED 18157/telnet

Actual results:
The local port number may duplicate.

Expected results:
The local port number doesn't duplicate.

Additional info:
[Investigation]
"man 7 ip" contains following text:
-----------------------------------------------------------------
When listen(2) or connect(2) are called on an unbound socket, it
is automatically bound to a random  free  port  with the local
address set to INADDR_ANY.
-----------------------------------------------------------------

Although indicated as "it is automatically bound to a random free
port", the port number which is not free like in a reproduce
procedure may be bound.  Therefore, based on the description of
this "man 7 ip", it can be judged that it is bug to use the local
port where the process duplicated.

--- Comment by Leitner, Flavio on 2/7/2012 2:55 PM ---

It's allowed to have multiple tasks using the same port (as a
result of calling connect(2)) as long as the other connection
information (4-tuple) differs to resolve the conflict.  Thus,
it must be an unique 4-tuple consisting of source and
destination IP addresses and port numbers to not conflict.

In the example, the dest port is different.
          tcp        0      0 127.0.0.1:32769      127.0.0.1:139      ESTABLISHED 18147/telnet
          tcp        0      0 127.0.0.1:32769      127.0.0.1:21       ESTABLISHED 18157/telnet

Reported-by: Peter Schiffer <pschiffe@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-12 22:50:57 +01:00
Michael Kerrisk 7484d5a7dd getrlimit.2, setgid.2, timerfd_create.2, wait.2, getenv.3, if_nameindex.3, scanf.3, aio.7, numa.7, rtld-audit.7, udplite.7: Fix order of SH sections
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-12 11:49:39 +01:00
Michael Kerrisk 96d1766a79 fork.2, getpriority.2, ioprio_set.2, sched_setparam.2, sched_setscheduler.2, shmop.2, sigaction.2, unimplemented.2, makecontext.3, sysconf.3, resolv.conf.5, cpuset.7, ip.7, svipc.7, termio.7, zdump.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-12 03:51:12 +01:00
Michael Kerrisk 4d627d0fd1 termio.7: SEE ALSO: add reset(1), setterm(1), stty(1), tty(4)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-12 00:23:34 +01:00
Michael Kerrisk 02e306d9e5 svipc.7: SEE ALSO: add ipcmk(1), ipcrm(1), ipcs(1)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-11 23:57:06 +01:00
Michael Kerrisk 343606a031 ip.7: Minor fixes
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-10 04:34:36 +01:00
Radek Pazdera 2a98c8e66d ip.7: Add source-specific multicast sockopts
This patch adds documentation of several source-specific multicast
socket options that were added to kernel with implementation
of IGMPv3 in 2.5.68.

The following socket options were added:
  IP_ADD_SOURCE_MEMBERSHIP
  IP_DROP_SOURCE_MEMBERSHIP
  IP_BLOCK_SOURCE
  IP_UNBLOCK_SOURCE
  IP_MSFILTER

Information Sources:
  * RFC 3376 - Internet Group Management Protocol, Version 3
      http://tools.ietf.org/html/rfc3376
  * RFC 3678 - Socket Interface Extensions for Multicast Source
    Filters
      http://tools.ietf.org/html/rfc3678
  * Kernel source tree
      net/ipv4/ip_sockglue.c
      net/ipv4/igmp.c
  * Test programs used in Linux Network Stack Test
      http://git.fedorahosted.org/git/?p=lnst.git
      test_tools/multicast/

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-10 04:34:36 +01:00
Simon Paillard 0a61a4f401 cpuset.7: add missing 'cpuset.' prefix for some flags
See kernel commit e21a05cb408bb9f244f11a0813d4b355dad0822e

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-02-08 10:07:18 +01:00
Michael Kerrisk d6aaae47b6 man-pages.7: Update description of Section 7
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-01-17 20:49:21 +01:00
Michael Kerrisk 1285ff3d2d lseek.2, read.2, setsid.2, vhangup.2, getttyent.3, login.3, openpty.3, console_codes.4, console_ioctl.4, securetty.5, signal.7: Global fix: s/tty/terminal/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-31 21:54:44 +01:00
David Prévot 437b953c23 ipv6.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-23 20:03:04 +01:00
Michael Kerrisk 38b6e5b098 capabilities.7: Add kcmp(2) under CAP_SYS_PTRACE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-22 08:06:24 +01:00
Michael Kerrisk e6d86b417f Removed trailing white space at end of lines 2012-12-20 18:17:09 +01:00
Michael Kerrisk 2970eb3bb4 ipv6.7: Minor fix to Gao Feng's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-17 22:01:22 +01:00
Gao Feng 032e1ba5c0 ipv6.7: Add description of getsockopt() for IPV6_MTU
In IPv4,IP_MTU is only supported by getsockopt.
In IPv6, we can use IPV6_MTU to set socket's MTU,
but the return value of getsockopt() is the path MTU.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-17 20:15:06 +01:00
Michael Kerrisk c6a7484a2d ipv6.7: srcfix: Added/updated FIXMEs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-15 19:18:26 +01:00
Michael Kerrisk f645fea8c0 ip.7: srcfix: Added/updated FIXMEs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-15 19:18:26 +01:00
Michael Kerrisk 08df16d409 tcp.7: srcfix: Added/updated FIXMEs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-15 19:18:19 +01:00
Michael Kerrisk b1b84b7a5c socket.7: Document 'sockaddr' and 'sockaddr_storage' types
Reported-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-15 19:17:48 +01:00
Michael Kerrisk 8cd5dce111 socket.7: srcfix: updated FIXMEs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-14 18:25:20 +01:00
Michael Kerrisk 6455a3f2c6 capabilities.7: Correct URL for POSIX.1e draft
Reported-by: Rens van der Heijden <rens.vanderheijden@uni-ulm.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-12-09 11:26:50 +01:00
Michael Kerrisk 3036baf00e rtnetlink.7: Update description of IFLA_STATS to Linux 2.6+ reality
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526778

Reported-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-11 13:01:19 +01:00
Michael Kerrisk 94c0ab851a rtnetlink.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-11 12:58:41 +01:00
Andi Kleen f327722042 socket.7: Explain effect of SO_SNDTIMEO for connect()
When SO_SNDTIMEO is set before connect(), then connect()
may return EWOULDBLOCK when the timeout fires.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-09 06:59:57 +01:00
David Prévot 3685fa98f3 time.7: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-09 06:52:09 +01:00
Michael Kerrisk 0d3bd76037 clock_getres.2, clock_nanosleep.2, ipv6.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-07 14:23:14 +01:00
David Prévot b33062e53b ipv6.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-11-02 06:57:34 +01:00
Michael Kerrisk f8090b56ca time.7: Add a subsection on timer slack
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-28 07:37:42 +01:00
Bert Hubert d796c68d5a ipv6.7: Document IPV6_RECVPKTINFO
Notes from Bert Hubert:
    Recently PowerDNS needed to support the getting of the
    original destination address of packets received on ::.
    Following the advice in ipv6(7) generated an error on
    setsockopt().

    Some googling confirmed that setsockopt() with
    IPV6_PKTINFO indeed does not work, but we found that
    IPV6_RECVPKTINFO did.

   Our experiences are detailed in
   http://bert-hubert.blogspot.nl/2012/10/on-binding-datagram-udp-sockets-to-any.html

    Please find attached a quite naive patch to ipv6.7 that at
    least fixes 'my' problem, but does not document if
    IPV6_PKTINFO ever worked as a flag. It does document that
    IPV6_RECVPKTINFO is available since 2.6.13.

    Please let me know if this patch is acceptable, or if you
    want me to dig deeper into the IPV6_PKTINFO situation.

Notes from mtk:
    Drop mention of IPV6_PKTINFO; that's IPV6_2292PKTINFO nowadays
    (and needs to be documented). And, confusingly, there's nowadays
    an IPV6_PKTINFO that is a quite different thig.

    With kernel commit 333fad5364d6b457c8d837f7d05802d2aaf8a961
    (Sep 2005) PV6_PKTINFO disappeared from the
    getsockopt/setsockopt API, and IPV6_2292PKTINFO took its place.
    Meanwhile, IPV6_RECVPKTINFO was added.

    Then kernel commit b24a2516d10751d7ed5afb58420df25370c9dffb
    (Dec 2008) added IPV6_PKTINFO back to the
    getsockopt/getsockopt API, but with what looks to be a
    rather different meaning (it takes a 'struct in6_pktinfo'
    as the third arg).

    This seems consistent (if confusing) with the RFCs:
    http://www.ietf.org/rfc/rfc2292.txt
    http://www.ietf.org/rfc/rfc3542.txt (obsoletes 2292)

    Both of those RFCs define an IPV6_PKTINO sockopt, but the
    former takes an int arg, and the latter takes a
    'struct in6_pktinfo'.

    So, my summary of your patch is that it's correct. (But I think
    that IPV6_RECVPKTINFO is present since 2.6.14, not 2.6.13.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:53:50 +02:00
Michael Kerrisk 977768444c man-pages.7: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:53:48 +02:00
Michael Kerrisk 472926d803 man-pages.7: Note rules for capitalization in NAME section
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:53:48 +02:00
Michael Kerrisk f68512e9fe intro.1, add_key.2, get_mempolicy.2, get_thread_area.2, intro.2, keyctl.2, mbind.2, request_key.2, set_thread_area.2, clock.3, cmsg.3, getcwd.3, getpw.3, intro.3, malloc.3, posix_memalign.3, shm_open.3, sleep.3, sysconf.3, intro.4, sd.4, intro.5, locale.5, slabinfo.5, intro.6, boot.7, bootparam.7, futex.7, glob.7, hier.7, intro.7, libc.7, locale.7, mq_overview.7, netlink.7, sem_overview.7, shm_overview.7, unix.7, intro.8: Global fix: Use consistent capitalization in NAME section
The line(s) in the NAME section should only use capitals
where English usage dictates that. Otherwise, use
lowercase throughout.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:53:48 +02:00
Michael Kerrisk a437cdbc24 netdevice.7: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:53:47 +02:00
Michael Kerrisk 7fac88a949 eventfd.2, futex.2, mmap2.2, open.2, pciconfig_read.2, ptrace.2, reboot.2, request_key.2, sched_rr_get_interval.2, splice.2, stat.2, sync_file_range.2, syscalls.2, timer_create.2, vm86.2, pthread_attr_setscope.3, core.5, proc.5, aio.7, futex.7, netlink.7, time.7: Global fix: "userspace" ==> "user space" or "user-space"
Existing pages variously use "userspace or "user space".
But, "userspace" is not quite an English word.
So change "userspace" to "user space" or, when used
attributively, "user-space".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-24 14:53:33 +02:00
Michael Kerrisk 4eaa04c556 Removed trailing white space at end of lines 2012-10-15 11:13:31 +02:00
Michael Kerrisk b473be57b9 timer_settime.2, man-pages.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-15 11:13:02 +02:00
Yuri Kozlov ca9464ab67 ddp.7: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-15 11:11:21 +02:00
Michael Kerrisk 10fe548528 capabilities.7: Document interaction of CAP_SYSLOG and /proc/sys/kernel/kptr_restrict
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-15 08:57:09 +02:00
Michael Kerrisk f567c52d80 ip.7: SEE ALSO: Add icmp(7)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-10 11:10:45 +02:00
Michael Kerrisk e28830e42e ip.7: SEE ALSO: Add ipv6(7)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-10-10 11:10:05 +02:00
Michael Kerrisk 31a6818e3c time.1, atexit.3, bsearch.3, dlopen.3, envz_add.3, errno.3, fmtmsg.3, getgrent_r.3, getline.3, getmntent.3, getnameinfo.3, getpass.3, getpwent_r.3, gets.3, isalpha.3, printf.3, puts.3, recno.3, scandir.3, stdarg.3, sysconf.3, termios.3, wordexp.3, null.4, core.5, dir_colors.5, issue.5, proc.5, termcap.5, utmp.5, ascii.7, cpuset.7, glob.7, man-pages.7, man.7, mdoc.7, mdoc.samples.7, regex.7: Revert 9f8e673e62 (whose global s%\\e%\\\\% caused problems)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-26 23:56:54 +02:00
Michael Kerrisk ca8a0bd25b sched_get_priority_max.2, sched_setparam.2, sched_setaffinity.2, sched_setscheduler.2, timer_create.2, malloc.3, pthread_attr_init.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_attr_setscope.3, pthread_attr_setstack.3, pthread_getattr_np.3, pthread_cancel.3, pthread_create.3, pthread_setschedparam.3, pthread_setschedprio.3, aio.7, time.7: Global ffix: disable justification and hyphenation in SEE ALSO
For a better visual result, disable justification and hyphenation
in SEE ALSO where page names are long.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-25 06:39:39 +02:00
Michael Kerrisk c92b6bb51d man-pages.7: Add some advice about disabling hyphenation in SEE ALSO
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-25 06:19:44 +02:00
Michael Kerrisk 9f8e673e62 time.1, atexit.3, bsearch.3, dlopen.3, envz_add.3, errno.3, fmtmsg.3, getgrent_r.3, getline.3, getmntent.3, getnameinfo.3, getpass.3, getpwent_r.3, gets.3, isalpha.3, printf.3, puts.3, recno.3, scandir.3, stdarg.3, sysconf.3, termios.3, wordexp.3, null.4, core.5, dir_colors.5, issue.5, proc.5, termcap.5, utmp.5, ascii.7, cpuset.7, glob.7, man-pages.7, man.7, mdoc.7, mdoc.samples.7, regex.7: Global fix: use \\ rather than \e for literal backslash
Reported-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-24 10:23:07 +02:00
Michael Kerrisk 6c1544c132 syscalls.2, uname.2, boot.7: Global fix: s/OS/operating system/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-24 10:05:20 +02:00
Michael Kerrisk 66a9882e46 bdflush.2, get_robust_list.2, kexec_load.2, madvise.2, mmap.2, mount.2, prctl.2, query_module.2, rt_sigqueueinfo.2, shmget.2, sigaction.2, syscalls.2, umount.2, malloc.3, hpsa.4, initrd.4, proc.5, bootparam.7, icmp.7, netlink.7, signal.7: Global fix: use "Linux kernel source" consistently
Rather than "kernel source".

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-24 10:02:34 +02:00
David Prévot 173fe7e792 arch_prctl.2, fcntl.2, flock.2, get_robust_list.2, getpriority.2, ioprio_set.2, migrate_pages.2, mmap.2, mremap.2, msync.2, sched_get_priority_max.2, sched_rr_get_interval.2, sched_setparam.2, sched_setscheduler.2, sched_yield.2, select.2, socket.2, subpage_prot.2, unshare.2, btree.3, dbopen.3, dl_iterate_phdr.3, dlopen.3, getnameinfo.3, hash.3, lockf.3, netlink.3, recno.3, rpc.3, xdr.3, cciss.4, console_ioctl.4, hpsa.4, initrd.4, msr.4, rtc.4, st.4, hosts.5, services.5, tzfile.5, aio.7, arp.7, capabilities.7, cpuset.7, feature_test_macros.7, futex.7, inotify.7, ip.7, ipv6.7, iso_8859-16.7, iso_8859-2.7, koi8-r.7, math_error.7, netlink.7, packet.7, pthreads.7, raw.7, spufs.7, udplite.7, uri.7, x25.7: Global fix: Various consistency fixes for SEE ALSO
Coauthored-by: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-24 09:53:22 +02:00
Michael Kerrisk bc636d8ab1 inotify.7: tfix
Reported-by: Anatoli Klassen <anatoli@aksoft.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-24 07:15:03 +02:00
Michael Kerrisk 2e2c032fe3 iso_8859-1.7: Minor fixes
Reported-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-14 21:17:05 +02:00
Michael Kerrisk bf42aad4a7 mprotect.2, syscall.2, realpath.3, iso_8859-1.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-14 00:37:33 +02:00
Bjarni Ingi Gislason 383d58e9c7 iso_8859-1.7: Explanation of SOFT HYPHEN and the code for it
<groff: iso_8859-2.7>:89: warning: can't find special character `shc'

This is the only "iso_8859-*.7" file that has this (now)
undefined character.  The code in column four in "iso_8859-1.7" is
"0x2D" ("HYPHEN, MINUS SIGN" or "HYPHEN-MINUS") instead of "0xAD".
See Debian bug 156154 (or package "manpages").

There should be an explanation for this graphic character and the
code should be 0xAD in iso_8859-1.7 (as in all others), even
though "[gn]roff" does not display a "HYPHEN" in that position of
the table.

The line with "SOFT HYPHEN" gets a footnote and a short
explanation.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-14 00:10:43 +02:00
Sami Kerola 608bf95023 capget.2, futex.2, sched_setscheduler.2, spu_create.2, spu_run.2, vfork.2, getnameinfo.3, netlink.3, cciss.4, console_codes.4, dsp56k.4, hpsa.4, sk98lin.4, filesystems.5, protocols.5, aio.7, capabilities.7, charsets.7, feature_test_macros.7, futex.7, hier.7, iso_8859-16.7, iso_8859-2.7, koi8-r.7, libc.7, man.7, netlink.7, numa.7, standards.7, unicode.7, units.7, uri.7, x25.7: Global fix: use UR macro where applicable
The syntax .UR http://example.com paired with .UE will create
links which one can interact, if the pager allows that.  One
way to see the effect is ask the man(1) command to use browser
display, e.g.:

    man -H man7/uri.7

("\:" is optional groff syntax to permit hyphenless line breaks.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-13 10:02:36 +02:00
David Prévot 7e0721e3ed futex.7: ffix
uri(7) documents that "Older documents suggested inserting the
prefix 'URL:' just before the URI, but this form has never
caught on." and advise to "enclosed in angle brackets" (and a
few other alternatives).

This patch removes an instance of 'URL:' from the page.

Reported-By: Denis Barbier <bouzim@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-03 10:33:49 +02:00
Michael Kerrisk 13f78d96ad getdents.2, select_tut.2, atof.3, atoi.3, pthread_create.3, pthread_sigmask.3, rtime.3, setbuf.3, tsearch.3, netlink.7: Remove unneeded casts
Reported-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-03 10:33:49 +02:00
Simon Paillard b8896b6e14 netlink.7: Change description of "*_pid" fields to "Port ID"
As reported by Herbert Xu, these should not be considered as PIDs.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=383296

Reported-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-03 10:33:40 +02:00
Michael Kerrisk 10d2beb5f9 glob.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-07-28 08:14:50 +02:00
Michael Kerrisk c998e004b1 glob.7: Update bash(1) command used to obtain classical globbing behavior
The man page formerly noted the bash(1) v1 command to do this.

Reported-by: Aaron Peschel <aaron.peschel@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-07-28 08:14:32 +02:00
Michael Kerrisk 3de2d3be31 socket.7: srcfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-07-23 15:00:23 +02:00
Michael Kerrisk 9339d7498c capabilities.7: Document CAP_BLOCK_SUSPEND
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-07-19 12:51:28 +02:00
Bjarni Ingi Gislason 4568aa3c33 glob.7: Change 8 bit characters to 7 bit representation
Fixes rendering errors for accented 'a' characters.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-07-19 12:51:28 +02:00
Michael Kerrisk d68a52c402 rtld-audit.7: tfix
Reported-by: Ulrich Drepper <drepper@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-07-19 12:51:28 +02:00
Martin H cf0a1f7cdc socket.7: Document SO_MARK socket option
Commit 4a19ec5800fc3bb64e2d87c4d9fdd9e636086fe0 in Jan 2008 added
the new SO_MARK socket option.

This patch is based on text from the commit message.

See https://bugzilla.kernel.org/show_bug.cgi?id=16461.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-07-19 12:51:27 +02:00
Bjarni Ingi Gislason 0a2d769764 mdoc.7: Fixing a warning and a table
Fis warning from "groff -ww ..." (or "man --warnings=w ..."):

    <groff: mdoc.7>:294: warning:
    tab character in unquoted macro argument

In one table the distance between columns is too small in the
"ps" output.  (Bug in the groff "doc.tmac" macro?)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-07-19 12:51:27 +02:00
Bjarni Ingi Gislason 15a1234317 mdoc.samples.7: Fix warnings from [ng]roff, corrections
From "man -ww ..." (groff -ww ...):

    <standard input>:541: warning:
    tab character in unquoted macro argument
    [+3 similar warnings]
    <standard input>:813: warning: macro `Pu' not defined
    Usage: .Rv -std in sections 2 and 3 only (#1669)
    mdoc warning: A .Bl directive has no matching .El (#1821)

String "Pu" defined as a row of punctuation characters.
".Bl" and ".El" fixed.
Some arguments, that start with a period or are the name of a
macro, protected with "\&".
Variable name for macro ".Rv" corrected.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-07-19 12:51:19 +02:00
Bjarni Ingi Gislason 3421b826df netlink.7: Line in table is too long
Fix warning from "man ..." ("nroff -ww ..."):

    nroff: netlink.7: warning: around line 195:
    table wider than line width

Horizontal line incorporated into table.
No right adjustment of text blocks in tables.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673875

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-06-08 03:10:26 +12:00
Bjarni Ingi Gislason 361ccbe1f3 rtnetlink.7: Line in table too long
Fix warning from "man ..." ("nroff -ww ..."):

    nroff: rtnetlink.7: warning: around line 415:
    table wider than line width

Column gutter reduced to fit line length.
Right adjustment in text blocks removed in tables.
Some header made centered in tables.
One table put on same page.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674051

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-06-08 03:10:26 +12:00
Jim Hill 40a1b471a4 pts.4, pty.7: spfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-06-08 03:10:25 +12:00
Michael Kerrisk 26a85bf20e svipc.7: SYNOPSIS: Remove include of <sys/types.h> and <sys/ipc.h>
Including <sys/types.h> and <sys/ipc.h> isn't needed on Linux
and isn't really relevant for the explanation on this page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-06-08 03:10:25 +12:00
Michael Kerrisk 548be2a60e msgctl.2, semctl.2, shmctl.2, svipc.7: Don't mention that ipc_perm is defined in <sys/ipc.h>
There's no need to mention that the 'ipc_perm' structure
is defined in <sys/ipc.h>. That's an implementation detail,
and furthermore <sys/ipc.h> is itself included by the other
System V IPC header files. The current text might lead the
reader to conclude that they must include <sys/ipc.h>, which
is not the case (it is required neither on Linux, nor by the
standards).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-06-08 03:10:25 +12:00
Bjarni Ingi Gislason 718588ebd2 netdevice.7: Line in table too long
Fix warning from "man ..." ("nroff -ww ..."):

    nroff: netdevice.7: warning: around line 98:
    table wider than line width

Fix: No right adjustment in text blocks in tables.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673873

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-06-08 03:10:25 +12:00
Bjarni Ingi Gislason 6d909d223c suffixes.7: srcfix: Fix warnings from "grotty"
man(1) on the present page yields errors:

    grotty: ... character above first line discarded

The culprit is "Dl 0 -xxxx" (vertical line) where "xxxx" is
one line (40 nroff units) too long.  Or there is a bug in
"grotty".  "nroff" or "tbl" makes an empty line where a page is.

The patch fixes the problem by setting the page length to
a large value.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673436

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-06-08 03:10:25 +12:00
Michael Kerrisk 2c5f8c8c44 sem_close.3, sem_destroy.3, sem_getvalue.3, sem_init.3, sem_open.3, sem_post.3, sem_unlink.3, sem_wait.3, sem_overview.7: Note that "cc -pthread" is required; "-lrt" no longer works
See https://bugs.launchpad.net/ubuntu/+source/manpages/+bug/874418

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-06-08 03:10:11 +12:00
Michael Kerrisk 0ab8aeecc5 Removed trailing white space at end of lines 2012-05-11 08:13:04 +12:00
Michael Kerrisk eae2dfceab futimesat.2, mount.2, confstr.3, iconv.3, makedev.3, malloc.3, strcasecmp.3, strcat.3, strcmp.3, strcpy.3, strdup.3, strftime.3, strnlen.3, strpbrk.3, strspn.3, strtok.3, strxfrm.3, sk98lin.4, icmp.7, ipv6.7, packet.7, raw.7, rtnetlink.7, unix.7, x25.7, ldconfig.8, nscd.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-11 08:09:28 +12:00
Bjarni Ingi Gislason 6402e2db64 cp1251.7: table too wide
From "nroff -ww -t ...":

    warning: around line 44: table wider than line width

Columns are made narrower (column gutter decreased).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-10 11:57:03 +12:00
Bjarni Ingi Gislason 5e01552447 ascii.7: Indent for "troff" makes table too wide
Fix following from "groff -t -ww ...":

    warning: around line 53: table wider than line width

Extra indent for "troff" makes the table look misplaced
(default "ps" output).

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-10 11:57:03 +12:00
Michael Kerrisk 22cb22c9f8 ascii.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-10 11:57:03 +12:00
Akihiro MOTOKI 51c5c66262 capabilities.7: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-08 09:16:44 +12:00
Michael Kerrisk 9581cf786d utf-8.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:18 +12:00
Michael Kerrisk e2ef00a522 unicode.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:18 +12:00
Michael Kerrisk 02f95a3178 socket.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:18 +12:00
Michael Kerrisk d762e01876 man-pages.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:18 +12:00
Michael Kerrisk 004e0245ac locale.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:18 +12:00
Michael Kerrisk e513843459 environ.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:18 +12:00
Michael Kerrisk 41fa59c0ea credentials.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:18 +12:00
Michael Kerrisk fb3969cd9d bootparam.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:18 +12:00
Michael Kerrisk dd9a6f3d1f boot.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:18 +12:00
Michael Kerrisk d88487cc40 pthreads.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:17 +12:00
Michael Kerrisk a96d136b6e koi8-r.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:17 +12:00
Michael Kerrisk bb0e6cec48 charsets.7: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:17 +12:00
Michael Kerrisk 15079abb25 scanf.3, system.3, initrd.4, sk98lin.4, mdoc.samples.7, nscd.8: grfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:17 +12:00
David Prévot d6902b5248 unix.7: tfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07 15:30:17 +12:00