Michael Kerrisk
55ac9696ec
name_to_handle_at.2: New link to new open_by_name_at(2) page
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:25 +02:00
Michael Kerrisk
a827d5c648
open_by_handle_at.2: New page describing name_to_handle_at(2) and open_by_handle_at(2)
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:25 +02:00
Michael Kerrisk
ed17140040
symlink.7: Mention use of readlink(2) to read contents of a symlink
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:25 +02:00
Michael Kerrisk
7aa6eb89d4
symlink.7: Minor edits
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:25 +02:00
Michael Kerrisk
828b6e3dad
symlink.7: Add mtk copyright
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:25 +02:00
Michael Kerrisk
58be64a41a
symlink.7: f
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:25 +02:00
Michael Kerrisk
d33b6ed2d8
symlink.7: Add subsection on opening a symbolic link with O_PATH
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:25 +02:00
Michael Kerrisk
19d9c23c6a
symlink.7: ffix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:25 +02:00
Michael Kerrisk
df63d3e84d
symlink.7: name_to_handle_at(2) and open_by_handle_at(2) optionally follow symlinks
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:25 +02:00
Abhay Sachan
25cb5f9b8b
getxattr.2: Fix REURN VALUE description
...
A EA can have length zero.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:10:59 +02:00
Andrey Vagin
5e7c71f6ac
mmap.2: The file descriptor for a file mapping must be readable
...
There is no difference between MAP_SHARED and MAP_PRIVATE.
do_mmap_pgoff()
switch (flags & MAP_TYPE) {
case MAP_SHARED:
...
/* fall through */
case MAP_PRIVATE:
if (!(file->f_mode & FMODE_READ))
return -EACCES;
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-04 13:25:08 +02:00
David Prévot
5f7504ef28
locale.5: Minor fixes
...
Hi Michael,
Please find attach various minor fixes:
- consistency fixes;
- punctuation fixes;
- typo fixes;
- format fixes;
- usage fix;
- American spelling convention.
Regards
David
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-04 07:46:23 +02:00
David Prévot
5201bb40a7
stat.2: tfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-03 13:41:19 +02:00
Alexey Samsonov
cc82e457b2
getline.3: Caller should free the allocated buffer even if getline() failed
...
Relevant discussion in glibc bugzilla:
https://sourceware.org/bugzilla/show_bug.cgi?id=5666
test program:
$ cat tmp/getline/a.cc
#include <stdio.h>
int main() {
for (int x = 0; x < 2; x++) {
char *lineptr = 0;
size_t size = 0;
int res = getline(&lineptr, &size, stdin);
printf("%d\n%p\n", res, lineptr);
}
return 0;
}
$ gcc tmp/getline/a.cc && echo -n "xxx" > x && ./a.out < x
3
0x11ae010
-1
0x11ae090
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-02 12:10:03 +02:00
Michael Kerrisk
f3ef455821
fseek.3: Document EINVAL error for negative file offset
...
Reported-by: Petr Gajdos <pgajdos@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-02 09:45:02 +02:00
Michael Kerrisk
8bad22e53b
perf_event_open.2: grfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-02 09:41:11 +02:00
Michael Kerrisk
e9b1ab7892
perf_event_open.2: Minor fix: place PERF_FLAG_FD_CLOEXEC in alphabetical order
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-02 09:37:26 +02:00
Michael Kerrisk
4f4f57abc2
perf_event_open.2: Rework Vince Weaver's discussion of PERF_FLAG_FD_CLOEXEC
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-02 09:37:26 +02:00
Vince Weaver
9cb36a115d
perf_event_open.2: Document the PERF_FLAG_FD_CLOEXEC flag
...
The Linux 3.14 release adds support for the PERF_FLAG_FD_CLOEXEC
flag.
The wording is based on the description in kernel commit
a21b0b354d4ac39be691f51c53562e2c24443d9e
by Yann Droneaud.
Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-02 09:27:54 +02:00
Michael Kerrisk
ed81fdd98d
perf_event_open.2: grfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 21:40:15 +02:00
Vince Weaver
3f118a2944
perf_event_open.2: Document PERF_EVENT_IOC_PERIOD behavior change
...
Linux 3.14 (in commit bad7192b842c83e580747ca57104dd51fe08c223)
changes the perf_event PERF_EVENT_IOC_PERIOD ioctl() behavior
on all architectures to update immediately, to match the behavior
found on ARM.
Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 21:01:42 +02:00
Peng Haitao
2995190026
fenv.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions feclearexcept(), fegetexceptflag(), feraiseexcept(),
fesetexceptflag(), fetestexcept(), fegetround(), fesetround(),
fegetenv(), feholdexcept(), fesetenv(), feupdateenv(),
feenableexcept(), fedisableexcept() and fegetexcept() are thread
safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:43:02 +02:00
Peng Haitao
3c7682247a
getpt.3: ATTRIBUTES: Note function that is thread-safe
...
The function getpt() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:42:39 +02:00
Peng Haitao
2841248208
getloadavg.3: ATTRIBUTES: Note function that is thread-safe
...
The function getloadavg() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:42:06 +02:00
Peng Haitao
8cad35ef8d
index.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions index() and rindex() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:41:39 +02:00
Peng Haitao
60bd4d858f
if_nametoindex.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions if_nametoindex() and if_indextoname() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:40:11 +02:00
Peng Haitao
53a70d91b6
random_r.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions random_r(), srandom_r(), initstate_r() and
setstate_r() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:15:14 +02:00
Peng Haitao
a04d14668d
random.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions random(), srandom(), initstate() and setstate()
are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:14:57 +02:00
Peng Haitao
d0e9615097
exit.3: ATTRIBUTES: Note function that is not thread-safe
...
The function exit() is not thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:14:16 +02:00
Peng Haitao
bcefc0e3bf
abort.3: ATTRIBUTES: Note function that is thread-safe
...
The function abort() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:13:57 +02:00
Peng Haitao
c1729f52a4
sigvec.3: wfix phrasing
...
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:13:31 +02:00
Peng Haitao
74fe201892
sigvec.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions sigvec(), sigblock(), sigsetmask() and
siggetmask() are thread safe.
The macro sigmask() is thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:13:26 +02:00
Peng Haitao
2b9e0a135b
mkfifo.3: ATTRIBUTES: Note functions that are thread-safe
...
The functions mkfifo() and mkfifoat() are thread safe.
Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-01 20:12:44 +02:00
Michael Kerrisk
b01c936e4b
inotify.7: Note that IN_UNMOUNT will be followed by an IN_IGNORED event
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-31 22:11:07 +02:00
Michael Kerrisk
39f43968d7
inotify.7: Note that IN_DELETE_SELF will be followed by IN_IGNORED
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-31 22:11:07 +02:00
Michael Kerrisk
7a64793b93
inotify.7: Add examples of syscalls that trigger IN_CREAT
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-31 22:11:07 +02:00
Michael Kerrisk
b0e1ac43e0
inotify.7: Add examples of syscalls that trigger IN_ATTRIB
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-31 22:11:07 +02:00
Michael Kerrisk
79f8f40ccb
inotify.7: Minor wording change
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-31 22:11:07 +02:00
Michael Kerrisk
f54a125572
inotify.7: Add some examples of syscalls that trigger IN_MODIFY
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-31 22:11:07 +02:00
Michael Kerrisk
f23fc716d5
inotify.7: Minor list reformatting
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-31 22:11:07 +02:00
Michael Kerrisk
49b07b8f8b
inotify.7: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-31 22:11:07 +02:00
Michael Kerrisk
22ae407d3e
tcp.7: Document /proc/sys/net/ipv4/tcp_autocorking
...
Text heavily based on Documentation/networking/ip-sysctl.txt
Cowritten-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-31 22:11:02 +02:00
Michael Kerrisk
7041581818
syscalls.2: Add sched_getattr() and sched_setattr()
...
And update kernel version to 3.14
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-31 20:59:35 +02:00
Michael Kerrisk
64aa9bcb39
inotify.7: Minor clarification
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-31 20:59:35 +02:00
Michael Kerrisk
70f70c9d40
inotify.7: Minor wording fix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-31 20:59:31 +02:00
Michael Kerrisk
f08cdf85df
inotify.7: tfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-30 10:30:27 +02:00
Michael Kerrisk
a15ead5e9f
inotify.7: srcfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-29 22:07:16 +01:00
Michael Kerrisk
7b5151b7f0
inotify.7: BUGS: IN_ONESHOT does now cause IN_IGNORED when the watch is dropped
...
A silent change as a result of the fanotify work in kernel 2.6.36.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-29 22:06:48 +01:00
Michael Kerrisk
d54837e835
inotify_add_watch.2: ERRORS: add ENAMETOOLONG
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-28 13:09:49 +01:00
Michael Kerrisk
e5c756952d
inotify_init.2: srcfix: Add copyright for 2008 changes
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-28 07:59:00 +01:00