summaryrefslogtreecommitdiff
path: root/man2
AgeCommit message (Collapse)AuthorFilesLines
2013-08-09syscall.2: Correct registers for arm/EABIJohan Erlandsson1-2/+2
Registers was off by one. Reference: http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3105/4 See also: http://peterdn.com/post/e28098Hello-World!e28099-in-ARM-assembly.aspx https://wiki.debian.org/ArmEabiPort http://en.wikipedia.org/wiki/Calling_convention#ARM Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09open.2: Add mmap(2) to list of calls that fail when given an O_PATH descriptorRobert Harris1-2/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09syscall.2: Add missing argument in exampleJohan Erlandsson1-1/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09setfsgid.2: Refer to setfsuid(2) for an explanation of why setfsgid() is ↵Michael Kerrisk1-0/+7
obsolete Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09setfsgid.2: Wording improvementsMichael Kerrisk1-6/+6
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09setfsuid.2: Wording improvementsMichael Kerrisk1-6/+6
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09setfsuid.2: Correct header file in SYNOPSISMichael Kerrisk1-2/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09setfsgid.2: Correct header file in SYNOPSISMichael Kerrisk1-2/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09setfsuid.2: Clarify historical details and note that setfsuid() is obsoleteMichael Kerrisk1-3/+18
Reported-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09kill.2: Small improvements to text on historical rules for permissionsMichael Kerrisk1-3/+4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08setfsgid.2: Clarify description of return valueMichael Kerrisk1-8/+13
More clearly describe the weirdness in the return value of this system call, and ote the problems it creates in in BUGS Reported-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08setfsuid.2: Clarify description of return valueMichael Kerrisk1-8/+13
More clearly describe the weirdness in the return value of this system call, and ote the problems it creates in in BUGS Reported-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08sched_setparam.2: Clarify that this system call applies to threads (not ↵Michael Kerrisk1-1/+1
processes) Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08sched_setscheduler.2: Clarify that this system call applies to threads (not ↵Michael Kerrisk1-71/+71
processes) Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08sched_setaffinity.2: Clarify that these system calls affect a per-thread ↵Michael Kerrisk1-22/+22
attribute Reported-by: Christos Tsopokis <christos@tsopokis.gr> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08msgctl.2, semctl.2, shmctl.2, cciss.4: ffixMichael Kerrisk3-6/+9
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08intro.1, time.1, access.2, acct.2, alloc_hugepages.2, bind.2, chdir.2, ↵Michael Kerrisk64-263/+263
chmod.2, chown.2, chroot.2, clone.2, close.2, execve.2, fallocate.2, fcntl.2, getdents.2, getrusage.2, getxattr.2, init_module.2, inotify_add_watch.2, ioprio_set.2, kcmp.2, link.2, listxattr.2, lseek.2, madvise.2, mkdir.2, mknod.2, mmap.2, mount.2, move_pages.2, msgctl.2, nfsservctl.2, open.2, pivot_root.2, quotactl.2, read.2, readlink.2, removexattr.2, rename.2, rmdir.2, semctl.2, setfsgid.2, setfsuid.2, setresuid.2, setuid.2, setup.2, setxattr.2, shmctl.2, splice.2, spu_create.2, stat.2, statfs.2, swapon.2, symlink.2, sync.2, sync_file_range.2, sysfs.2, truncate.2, umount.2, unlink.2, unshare.2, ustat.2, utime.2, utimensat.2, write.2, btree.3, errno.3, fexecve.3, ftw.3, futimes.3, get_nprocs_conf.3, getcwd.3, getdirentries.3, getmntent.3, glob.3, mkfifo.3, mq_open.3, readdir.3, realpath.3, recno.3, remove.3, sem_open.3, shm_open.3, statvfs.3, sysconf.3, telldir.3, tmpfile.3, cciss.4, initrd.4, pts.4, sk98lin.4, vcs.4, core.5, filesystems.5, proc.5, boot.7, bootparam.7, capabilities.7, cpuset.7, credentials.7, feature_test_macros.7, fifo.7, hier.7, inotify.7, intro.7, mq_overview.7, path_resolution.7, pipe.7, sem_overview.7, shm_overview.7, spufs.7, symlink.7, unix.7, uri.7, sync.8: Global fix: s/file system/filesystem/ Notwithstanding 24d01c530c5a3f75217543d02bf6712395e5f90c, "filesystem" is the form used by the great majority of man pages outside the man-pages project and in a number of other sources, so let's go with that. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08nfsservctl.2: Note commands that were only in Linux 2.4.x and earlierMichael Kerrisk1-2/+4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08nfsservctl.2: tfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08nfsservctl.2: Minor wording fixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-08nfsservctl.2: tfixMichael Kerrisk1-4/+4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-07adjtimex.2: SEE ALSO: Add adjtimex(8)Michael Kerrisk1-2/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-01fcntl.2: ffixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-31Removed trailing white space at end of linesMichael Kerrisk2-13/+13
2013-07-31readlinkat.2, setpgid.2, resolv.conf.5, udp.7: tstampMichael Kerrisk2-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-30clock_nanosleep.2, futex.2, nanosleep.2, poll.2, sigaction.2, sigreturn.2, ↵Michael Kerrisk6-6/+12
signal.7: SEE ALSO: add restart_syscall(2) Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-30restart_syscall.2: New page for restart_syscall(2) system callMichael Kerrisk1-0/+130
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-27perf_event_open.2: Fix indentation of the MMAP layout sectionVince Weaver1-1/+2
The indentation of the MMAP layout section wasn't quite right. I think this improves things but I admit I'm not an expert at the low-level indentation directives. Signed-off-by: Vince Weaver <vincent.weaver@maine.edu> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-27perf_event_open.2: cfixDavid Prévot1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-23perf_event_open.2: ffixDavid Prévot1-2/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-22open.2: tfixPeter Schiffer1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20fchownat.2, fstatat.2, linkat.2, capabilities.7: tstampMichael Kerrisk3-3/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20open.2: Remove warning that O_DIRECTORY is only for use with opendir(3)Michael Kerrisk1-4/+2
O_DIRECTORY can also be used with, for example, O_PATH. Reorted-by: Geoffrey Thomas <gthomas@mokafive.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20open.2: Note that fcntl(F_GETFL) can also be used on O_PATH descriptorMichael Kerrisk1-0/+7
Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20open.2: srcfix: remove FIXMEMichael Kerrisk1-12/+0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20open.2: Document O_PATHMichael Kerrisk1-2/+100
See also https://bugzilla.redhat.com/show_bug.cgi?id=885740 Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20fchownat.2: Document AT_EMPTY_PATHMichael Kerrisk1-1/+18
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20fstatat.2: Document AT_EMPTY_PATHMichael Kerrisk1-0/+16
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20linkat.2: Document AT_EMPTY_PATHMichael Kerrisk1-3/+39
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-20readlinkat.2: Document use of empty 'pathname' argumentMichael Kerrisk1-1/+16
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18ptrace.2: Place GETSIGINFO and SETSIGINFO near each otherAndrey Vagin1-12/+12
Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18Fix possible race condition in readlink.2 exampleChuck Coffing1-1/+1
I noticed that the example in the readlink.2 man pages does error checking for a race condition that would cause the value of the symbolic link to get larger. However, it doesn't handle the opposite case, in which the value gets shorter. (The NULL terminator is always set at the old, longer offset.) This could cause the program to operate on uninitialized data. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18readlink.2: Change error check in example program from "< 0" to "== -1"Michael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18perf_event_open.2: Improve sysfs files documentationVince Weaver1-10/+40
This improves the documentation of the various perf_event_open()-related sysfs files. Signed-off-by: Vince Weaver <vincent.weaver@maine.edu> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18perf_event_open.2: Update PERF_IOC_FLAG_GROUP infoVince Weaver1-11/+13
It turns out PERF_IOC_FLAG_GROUP was broken from 75f937f24bd9 (in Linux 2.6.31, the initial perf_event release) until 724b6daa1 (Linux 3.4). I've done some extensive kernel source code digging plus running tests of various kernels and I hope the info presented is accurate now. (Patch edited somewhat by mtk.) Signed-off-by: Vince Weaver <vincent.weaver@maine.edu> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18ptrace.2: If SEIZE was used, initial auto-attach stop is EVENT_STOPDenys Vlasenko1-4/+25
For every PTRACE_O_TRACEfoo option, mention that old-style SIGSTOP is replaced by PTRACE_EVENT_STOP if PTRACE_SEIZE attach was used. Mention the same thing again in the description of PTRACE_EVENT_STOP. Acked-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18ptrace.2: Minor fixes to patches from Denys VlasenkoMichael Kerrisk1-14/+21
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18ptrace.2: Clarify PTRACE_INTERRUPT, PTRACE_LISTEN, and group-stop behaviorDenys Vlasenko1-9/+47
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> Acked-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18ptrace.2: Mention that PTRACE_PEEK* libc API and kernel API are differentDenys Vlasenko1-2/+9
Acked-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-07-18_syscall.2: tfixSimon Paillard1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>