1 ==================== Changes in man-pages-3.52 ====================
3 Released: 2013-07-04, Munich
9 The following people contributed patches/fixes or (noted in brackets
10 in the changelog below) reports, notes, and ideas that have been
11 incorporated in changes in this release:
13 Adrian Bunk <bunk@kernel.org>
14 Andrea Remondini <andrea@undeadlinks.com>
15 Anthony Foiani <anthony.foiani@gmail.com>
16 Brian Norris <computersforpeace@gmail.com>
17 Cyril Hrubis <chrubis@suse.cz>
18 Dan Jacobson <jidanni@jidanni.org>
19 David Prévot <taffit@debian.org>
20 Eric S. Raymond <esr@thyrsus.com>
21 Georg Sauthoff <mail@georg.so>
22 Jeff Moyer <jmoyer@redhat.com>
23 Jérémie Galarneau <jeremie.galarneau@efficios.com>
24 Jon Grant <jg@jguk.org>
25 Manuel Traut <manut@linutronix.de>
26 Марк Коренберг <socketpair@gmail.com>
27 Michael Kerrisk <mtk.manpages@gmail.com>
28 Mike Frysinger <vapier@gentoo.org>
29 Pavel Emelyanov <xemul@parallels.com>
30 Peng Haitao <penght@cn.fujitsu.com>
31 Peter LaDow <petela@gocougs.wsu.edu>
32 Petr Gajdos <pgajdos@suse.cz>
33 Regid <regid23@nt1.in>
34 Siddhesh Poyarekar <siddhesh@redhat.com>
35 Simone Piccardi <piccardi@truelite.it>
36 Simon Paillard <spaillard@debian.org>
37 Vince Weaver <vincent.weaver@maine.edu>
38 Yuri Kozlov <yuray@komyakino.ru>
40 Apologies if I missed anyone!
43 Newly documented interfaces in existing pages
44 ---------------------------------------------
48 Add PERF_IOC_FLAG_GROUP documentation
49 The perf_event_open() ENABLE/DISABLE/RESET ioctls can take an
50 argument, PERF_IOC_FLAG_GROUP. This wasn't documented at all
51 until about a year ago (despite the support being there from
52 the beginning) so I missed this when initially writing
56 Pavel Emelyanov, Michael Kerrisk
57 Document SO_PEEK_OFF option
58 Since Linux 3.4 there appeared an ability to specify the
59 offset in bytes from which the data will be MSG_PEEK-ed.
60 Describe this socket option in the socket(7) page, where
61 all the other socket options are described.
69 Convert inline formatting (\fX...\fP) to dot-directive formatting
78 Michael Kerrisk [Jon Grant]
79 Clarify that terminating null byte is '\0'
82 Changes to individual pages
83 ---------------------------
87 Add envp to the Linux notes about NULL pointers
88 During the review of static analysis results, we discovered a
89 functional, but non-portable, use of execve(). For example:
91 char *cmd[] = { "/path/to/some/file", NULL };
92 execve(cmd[0], cmd, NULL);
94 The call succeeds. Yet, the static analysis tool (rightly)
95 pointed out that envp could be dereferenced. But digging into
96 glibc and the kernel, it appears that like argv, envp when NULL
97 is treated as if it were an empty list.
99 So, to clear things up, I'm submitting this patch to update the
100 man page to indicate that envp is treated like argv.
104 RETURN VALUE: mention that 'errno' is set on error
107 Cyril Hrubis [Jeff Moyer]
108 Clarify the nr_events parameter
109 Currently the io_setup.2 man page describes what the kernel really
110 does, i.e., that the resulting context may be able to hold more
111 than the 'nr_event's operations because the memory allocated in
112 kernel is rounded to be multiple of page size.
114 It is better not to expose this implementation detail and
115 simply state that the resulting context is suitable for
116 'nr_events' operations.
120 Clarify the perf_event_open() wakeup_events/wakeup_watermark fields
121 Clarify the perf_event_open() wakeup_events/wakeup_watermark
122 fields a bit, based on info from kernel commit cfeb1d90a1b1.
124 Update to match the Linux 3.10 release
125 This patch updates the perf_event_open() documentation to include
126 new interfaces added in the 3.10 kernel.
128 It also documents a few [To be documented] instances left over
131 Small correction to description of 'flags' argument
135 Note equivalents of PR_SET_NAME
136 pthread_setname_np() and pthread_getname_np() and
137 /proc/self/task/TID/comm provide access to the same
141 Michael Kerrisk [Марк Коренберг]
142 pread() and pwrite() are especially useful in multithreaded applications
146 RETURN VALUE: mention that 'errno' is set on error
149 Michael Kerrisk [Simone Piccardi]
150 'sem_nsems' is 'unsigned long' since Linux 2.4
154 Rewrite RETURN VALUE and mention that 'errno' is set on error
157 Michael Kerrisk [Brian Norris]
158 RETURN VALUE: mention that 'errno' is set on error
162 RETURN VALUE: mention that 'errno' is set on error
166 RETURN VALUE: mention that 'errno' is set on error
170 RETURN VALUE: mention that 'errno' is set on error
174 RETURN VALUE: mention that 'errno' is set on error
178 Document s390/s390x calling convention
182 ATTRIBUTES: Note function that is not thread-safe
183 The function l64a() is not thread safe.
187 ATTRIBUTES: Note functions that are thread-safe
188 The functions abs(), labs(), llabs() and imaxabs() are
193 ATTRIBUTES: Note function that is thread-safe
194 The function aio_error() is thread safe.
198 ATTRIBUTES: Note function that is thread-safe
199 The function aio_return() is thread safe.
203 Correct information on getting non-inlined version with gcc+glibc
204 - remove the incorrect information that -fno-builtin would help
205 - add -std=c11 to the list of strict options
206 - emphasize more that both the gcc option and not including
208 - add the #ifdef from the glibc alloca.h to make the situation
213 ATTRIBUTES: Note function that is thread-safe
214 Before glibc 2.17, bindresvport() is not thread-safe.
215 Since glibc 2.17, it is thread-safe, the patch can refer to URL:
216 http://sourceware.org/git/?p=glibc.git;a=commit;h=f6da27e53695ad1cc0e2a9490358decbbfdff5e5
218 canonicalize_file_name.3
220 Put CONFORMING TO section in right location
223 Michael Kerrisk [Jon Grant]
224 Clarify that null byte is '\0'
228 ATTRIBUTES: Note functions that are thread-safe
229 The functions ceil(), ceilf() and ceill() are thread safe.
233 ATTRIBUTES: Note functions that are thread-safe
234 The functions cimag(), cimagf() and cimagl() are thread safe.
236 clock_getcpuclockid.3
238 ATTRIBUTES: Note function that is thread-safe
239 The function clock_getcpuclockid() is thread safe.
243 ATTRIBUTES: Note functions that are thread-safe
244 The functions conj(), conjf() and conjl() are thread safe.
248 ATTRIBUTES: Note function that is not thread-safe
249 The function crypt() is not thread safe.
253 ATTRIBUTES: Note function that is thread safe with exceptions
254 The function ctermid() is thread safe with exceptions.
258 RETURN VALUE: mention that 'errno' is set on error
262 ATTRIBUTES: Note functions that are not thread-safe
263 The functions drand48(), erand48(), lrand48(), nrand48(),
264 mrand48(), jrand48(), srand48(), seed48() and lcong48() are
269 ATTRIBUTES: Note functions that are not thread-safe
270 The functions ecvt() and fcvt() return a string located in a
271 static buffer which is overwritten by the next call to the
272 functions, so they are not thread-safe.
276 ATTRIBUTES: Note functions that are not thread-safe
277 The functions encrypt() and setkey() are not thread safe.
281 ATTRIBUTES: Note functions that are not thread-safe
282 The functions ether_aton() and ether_ntoa() are not thread safe.
286 ATTRIBUTES: Note function that is not thread-safe
287 The function fcloseall() is not thread safe.
291 ATTRIBUTES: Note functions that are thread-safe
292 The functions ferror(), clearerr(), feof() and fileno() are
297 RETURN VALUE: mention that 'errno' is set on error
301 RETURN VALUE: mention that 'errno' is set on error
305 RETURN VALUE: mention that 'errno' is set on error
309 ATTRIBUTES: Note function that is thread-safe
310 Before glibc 2.16, fmtmsg() is not thread-safe.
311 Since glibc 2.16, it is thread-safe, the patch can refer to URL:
312 http://sourceware.org/git/?p=glibc.git;a=commit;h=7724defcf8873116fe4efab256596861eef21a94
316 RETURN VALUE: mention that 'errno' is set on error
320 ATTRIBUTES: Note functions that are and aren't thread-safe
324 ATTRIBUTES: Note function that is not thread-safe
325 The function getgrent() is not thread safe.
329 ATTRIBUTES: Note functions that are and aren't thread-safe
333 RETURN VALUE: mention that 'errno' is set on error
337 ATTRIBUTES: Note function that is not thread-safe
338 The function getlogin() is not thread safe.
339 The function cuserid() is thread-safe with exceptions.
341 RETURN VALUE: mention that 'errno' is set on error
345 ATTRIBUTES: Note functions that are not thread-safe
349 ATTRIBUTES: Note function that is not thread-safe
350 The function getpwent() is not thread safe.
354 ATTRIBUTES: Note functions that are and aren't thread-safe
358 RETURN VALUE: mention that 'errno' is set on error
362 ATTRIBUTES: Note functions that are not thread-safe
366 ATTRIBUTES: Note functions that are not thread-safe
367 The functions getusershell(), setusershell() and endusershell()
372 RETURN VALUE: mention that 'errno' is set on error
376 RETURN VALUE: mention that 'errno' is set on error
380 ATTRIBUTES: Note functions that are not thread-safe
381 The functions hsearch(), hcreate() and hdestroy() are not
386 ATTRIBUTES: Note functions that are not thread-safe
387 The function localeconv() returns a pointer to a structure which
388 might be overwritten by subsequent calls to localeconv() or by
389 calls to setlocale(), so it is not thread-safe.
391 Add RETURN VALUE section
395 RETURN VALUE: mention that 'errno' is set on error
399 ATTRIBUTES: Note function that is not thread-safe
400 The function mblen() is not thread safe.
404 ATTRIBUTES: Note function that is thread safe with exceptions
405 The function mbrlen() is thread safe with exceptions.
409 ATTRIBUTES: Note function that is thread safe with exceptions
410 The function mbrtowc() is thread safe with exceptions.
414 RETURN VALUE: mention that 'errno' is set on error
418 ATTRIBUTES: Note functions that are thread-safe
419 The functions modf(), modff() and modfl() are thread safe.
423 RETURN VALUE: mention that 'errno' is set on error
425 pthread_attr_setinheritsched.3
427 Note the scheduling attributes affected by this function
429 pthread_attr_setschedparam.3
430 pthread_attr_setschedpolicy.3
431 pthread_attr_setscope.3
432 Michael Kerrisk [Manuel Traut, Siddhesh Poyarekar]
433 The inherit-scheduler attribute must be set to PTHREAD_EXPLICIT_SCHED
434 In order for the attributes set by these functions to have
435 an effect, the caller must use pthread_attr_setinheritsched(3)
436 to set the inherit-scheduler attribute of the attributes object
437 to PTHREAD_EXPLICIT_SCHED.
441 ATTRIBUTES: Note function that is not thread-safe
442 The function ptsname() is not thread safe.
446 RETURN VALUE: mention that 'errno' is set on error
450 RETURN VALUE: mention that 'errno' is set on error
454 ATTRIBUTES: Note functions that are not thread-safe
455 The functions qecvt() and qfcvt() are not thread-safe.
459 RETURN VALUE: mention that 'errno' is set on error
461 Add EINVAL error for setstate()
463 BUGS: inistate() does not return NULL on error
464 http://sourceware.org/bugzilla/show_bug.cgi?id=15380
468 RETURN VALUE: mention that 'errno' is set on error
472 ATTRIBUTES: Note functions that are not thread-safe
473 The data returned by readdir() may be overwritten by subsequent
474 calls to readdir() for the same directory stream, so it is not
479 ATTRIBUTES: Note functions that are not thread-safe
480 The functions re_comp() and re_exec() are not thread safe.
484 ATTRIBUTES: Note functions that are not thread-safe
485 The functions rexec() and rexec_af() are not thread safe.
489 ATTRIBUTES: Note functions that are thread-safe
490 The functions round(), roundf() and roundl() are thread safe.
494 ATTRIBUTES: Note functions that are thread-safe
495 The functions scalbn(), scalbnf(), scalbnl(), scalbln(),
496 scalblnf() and scalblnl() are thread safe.
500 RETURN VALUE: mention that 'errno' is set on error
504 RETURN VALUE: mention that 'errno' is set on error
508 ATTRIBUTES: Note macro that is thread-safe
509 The macro signbit() is thread safe.
513 RETURN VALUE: mention that 'errno' is set on error
517 ATTRIBUTES: Note functions that are not thread-safe
518 The functions __fbufsize(), __fpending(), __fpurge() and
519 __fsetlocking() are not thread safe.
523 RETURN VALUE: mention that 'errno' is set on error
527 ATTRIBUTES: Note function that is not thread-safe
528 The function strerror() is not thread safe.
532 Clarify details of return value
534 BUGS: 'errno' is not set if the result string would exceed 'max' bytes
538 ATTRIBUTES: Note function that is not thread-safe
539 The function strtok() is not thread safe.
540 Michael Kerrisk [Georg Sauthoff]
541 Add more detail on the operation of strtok()
542 Add a number of missing details on the operation of strtok()
546 RETURN VALUE: mention that 'errno' is set on error
550 copy the string returned by getenv()
551 The example of a portable version of timegm() uses the string
552 returned by getenv() after calling setenv() on the same
553 environment variable. The tz string may be invalid as per
556 "The string pointed to by the return value of getenv()
557 may be statically allocated, and can be modified by a
558 subsequent call to getenv(), putenv(3), setenv(3), or
563 ATTRIBUTES: Note function that is thread safe with exceptions
564 The function tmpnam() is thread safe with exceptions.
568 ATTRIBUTES: Note functions that are thread-safe
569 The functions trunc(), truncf() and truncl() are thread safe.
573 ATTRIBUTES: Note functions that are and aren't thread-safe
577 ATTRIBUTES: Note functions that are not thread-safe
581 RETURN VALUE: mention that 'errno' is set on error
585 RETURN VALUE: mention that 'errno' is set on error
589 Implicitly adding the PID to a core filename was dropped in 2.6.27
593 Document /proc/[pid]/fd/ anon_inode symlinks
595 Document /proc/[pid]/fd/ symlinks a bit more
596 Describe the type:[inode] syntax used in this dir
599 Michael Kerrisk [Dan Jacobson]
600 Remove outdated text on LILO and LoadLin
601 Strike the discussion of LILO and LoadLin, which
602 are long obsolete, and make a brief mention of GRUB.
603 See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=604019
605 Remove mention of the deprecated rdev(8)
606 The deprecated rdev(8) command was removed from util-linux in 2010.
607 See https://git.kernel.org/?p=utils/util-linux/util-linux.git;a=commit;h=a3e40c14651fccf18e7954f081e601389baefe3fO
609 Document the 'resume' boot parameter
612 Michael Kerrisk [Jon Grant]
613 Clarify that null byte is '\0'
617 Remove incorrect reference to nonexistent groff glyph \[shc]
618 The reference incorrectly attempted to duplicate an
619 actual soft hyphen (hex 0xad) just before it in the file.
623 Add description of "ATTRIBUTES"
624 "ATTRIBUTES" section can mention thread safety,
625 cancellation safety, and async-cancel-safety.
629 Note that 'optval' for socket options is an 'int' in most cases
633 Note that 'optval' for socket options is an 'int' in most cases
637 Note that 'optval' for socket options is an 'int' in most cases