Michael Kerrisk
6b1cc2c9a4
inotify.7: Add paragraph on cache consistency checking
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:18:58 +02:00
Michael Kerrisk
67898fdfd0
inotify.7: Reorganize "Limits and caveats"
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:18:58 +02:00
Michael Kerrisk
da977073d0
inotify.7: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:18:58 +02:00
Michael Kerrisk
85e179c5c2
inotify.7: Add text on dealing with rename() events
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:18:58 +02:00
Michael Kerrisk
a79d28b202
inotify.7: Minor reorganization
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:18:58 +02:00
Michael Kerrisk
94d52c1529
inotify.7: Mention cache rebuilding to handle overflow events
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:18:58 +02:00
Michael Kerrisk
264276c6b0
inotify.7: Move discussion of application cache to start of "Limitations"
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:18:58 +02:00
Michael Kerrisk
356911f692
inotify.7: Rewrite introductory section
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:18:58 +02:00
Michael Kerrisk
ff6e23973d
inotify.7: Add subheading for reading from inotify file descriptor
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:18:58 +02:00
Michael Kerrisk
1a737afd5a
inotify.7: symlink(2) can generate IN_CREATE
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:18:58 +02:00
Michael Kerrisk
415f63be17
inotify.7: Add some examples of events generated by various system calls
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:18:58 +02:00
Michael Kerrisk
08107714a5
open_by_handle_at.2: Remove FIXMEs after review by Aneesh Kumar
...
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:13:47 +02:00
Michael Kerrisk
39c98c7d50
open_by_handle_at.2: Note when glibc support was added
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:26 +02:00
Michael Kerrisk
43a8bfc677
proc.5: srcfix: added FIXME
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:26 +02:00
Michael Kerrisk
3ad5d1b9f6
open_by_handle_at.2: Rework example programs
...
Rework example programs so that they use a text file (rather
than a binary file) to exchange mount ID and file handle.
Various clean-ups and bug fixes after review by Mike Frysinger.
Reviewed-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:26 +02:00
Michael Kerrisk
886f35af61
open_by_handle_at.2: ffix
2014-04-06 08:12:26 +02:00
Michael Kerrisk
b2fe7451ce
open_by_handle_at.2: Fixes after review comments by Mike Frysinger
...
Reviewed-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:26 +02:00
Michael Kerrisk
e2199ccbc0
open_by_handle_at.2: Further edits after comments by Neil Brown
...
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:26 +02:00
Michael Kerrisk
97236faef5
open_by_handle_at.2: wfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:26 +02:00
Michael Kerrisk
269ad84333
open_by_handle_at.2: srcfix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:26 +02:00
Michael Kerrisk
74a769f92d
open_by_handle_at.2: ERRORS: Remove bogus ENOTDIR error for open_by_handle_at()
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:26 +02:00
Michael Kerrisk
3be5b709ad
open_by_handle_at.2: ERRORS: change reference from open(2) to openat(2)
...
Christoph noted that if ERRORS defers to openat(2) rather than
open(2), then a couple of errors can be eliminated from the list
on this page.
Reviewed-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:25 +02:00
Michael Kerrisk
fb968310b1
open_by_handle_at.2: Various fixes after review by Neil Brown
...
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:25 +02:00
Michael Kerrisk
b088c3ca52
open.2: SEE ALSO: add open_by_name_at(2)
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:12:25 +02:00
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