aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2022-03-03sgx.7: New page with overview of Software Guard eXtensions (SGX)HEADmasterJarkko Sakkinen2-0/+160
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> v11: * Address Reinette's remarks for v10: https://lore.kernel.org/linux-sgx/8f84b8e8-b478-bb81-4aa8-536df882a144@intel.com/ v10: * v9 was malformed, essentially a resend. v9: * Rename "Address Space" section as "Memory mapping", and refine the text. * Rename "Ioctls" section as "Construction", and refine the text. v8: * Fix errors reported for the previous version. v7: * Added more meat about the address space and API. * Reorganized the text to have focus more on developer to have a big picture of kernel provided interfaces. v6: * Small fixes based on Dave's and Reinette's feedback. * Extended the "Permissions" section to cover mmap() v5: * Taking away hardware concepts and focusing more on the interface. v4: * Did a heavy edit trying to streamline the story a bit and focus on stuff important to the user (e.g. lighten up x86 details). v3: * Overhaul based on Michael's comments. Most likely needs to be refined in various places but this is at least a small step forward for sure. v2: * Fixed the semantic newlines convention and various style errors etc. that were reported by Alenjandro and Michael. * SGX was merged to v5.
2020-11-18perf_event_open.2: tfixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-18perf_event_open.2: Minor tweaksMichael Kerrisk1-30/+31
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-18perf_event_open.2: Update man page with recent kernel changesNamhyung Kim1-2/+278
Signed-off-by: Namhyung Kim <namhyung@gmail.com> [alx: ffix + tfix] Cowritten-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Cc: Arnaldo Carvalho de Melo <acme@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Stephane Eranian <eranian@google.com> Cc: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Song Liu <songliubraving@fb.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Vince Weaver <vincent.weaver@maine.edu> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-18signal.7: Add pidfd_send_signal() to list of APIs for sending signalsMichael Kerrisk1-0/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-18signal.7: ffixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-17signal.7: Fixes and additions to text on execution of signal handlersMichael Kerrisk1-4/+16
After comments from Dave Martin. Reported-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-17sigaction.2: Add a cross-reference to signal(7) for further info on 'ucontext_t'Michael Kerrisk1-1/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-17signal.7: Mention 'ucontext_t' in the discussion of signal handler executionMichael Kerrisk1-2/+2
Linking up the info presented on this page with the discussion in getcontext(3) helps the reader. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-17makecontext.3: Minor rewordingMichael Kerrisk2-4/+12
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-17signal.7: Fixes to the text of "Execution of signals handlers"Michael Kerrisk1-3/+1
See https://lore.kernel.org/linux-man/3fac10ea-7fed-739b-4974-09845f34867f@gmail.com/ Reported-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-17getcontext.3, signal.7: tfixMichael Kerrisk2-14/+19
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-17getcontext.3: SEE ALSO: add signal(7)Michael Kerrisk1-1/+2
The signal(7) manual page has some useful info related to ucontext_t. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16getcontext.3: Mention SA_SIGINFO flag when talking about 3-argument signal ↵Michael Kerrisk1-2/+5
handler Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16getcontext.3: wfixMichael Kerrisk1-3/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16Add script to get modified pages for commit messagesAlejandro Colomar1-0/+34
The script can be used this way: git commit -sm "$(./scripts/modified_pages.sh): Short commit msg" And then maybe --amend and add a longer message. This is especially useful for changes to many pages at once, usually when running a script to apply some global changes. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16uselib.2, posix_memalign.3, profil.3, rtime.3: Remove some text about libc/libc5Michael Kerrisk4-31/+32
With this change, there remain almost no vestiges of information about the long defunct Linux libc. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16ioctl_tty.2, matherr.3, cciss.4, sk98lin.4: ffix: use proper table for ↵Michael Kerrisk4-44/+48
formatting, not .nf/.fi This gives better PDF rendering. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16cciss.4: ffixMichael Kerrisk1-0/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16pidfd_open.2, pidfd_send_signal.2, poll.2, semget.2: ffix: EXAMPLES: use ↵Michael Kerrisk4-8/+8
.EX/.EE instead of .nf/.fi Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16man-pages.7: ffix: use a table rather .nf/.fiMichael Kerrisk1-14/+15
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16MAINTAINER_NOTES: Add a file with some notes for maintainersMichael Kerrisk1-0/+12
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16scandir.3: srcfixMichael Kerrisk1-2/+0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16check_unbalanced_macros.sh: A script to look for unbalanced *roff/man macro ↵Michael Kerrisk1-0/+68
pairs Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16queue.7: tfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16kernel_lockdown.7: Remove unneeded quotesMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16nextafter.3: Remove duplicate "BUGS" section headingMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16bpf.2: Place EXAMPLES section in correct locationMichael Kerrisk1-69/+69
As per section ordering rules given in man-pages(7). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16CIRCLEQ_EMPTY.3, CIRCLEQ_FIRST.3, CIRCLEQ_FOREACH.3, ↵Michael Kerrisk10-0/+10
CIRCLEQ_FOREACH_REVERSE.3, CIRCLEQ_HEAD_INITIALIZER.3, CIRCLEQ_LAST.3, CIRCLEQ_LOOP_NEXT.3, CIRCLEQ_LOOP_PREV.3, CIRCLEQ_NEXT.3, CIRCLEQ_PREV.3: Add missing links to circleq.3 Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16list.3: NAME: remove LIST_PREV, which is not documented in this pageMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16pthread_attr_getsigmask_np.3: New link to pthread_attr_setsigmask_np.3Michael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-16prctl.2, setns.2: tfix: remove section number from API documented in this pageMichael Kerrisk2-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15chroot.2, memfd_create.2, tailq.3: Fix unbalanced .nf/.fiMichael Kerrisk3-0/+3
Reported-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15uname.2, feature_test_macros.7: ffixMichael Kerrisk2-3/+4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15getutent.3: srcfixMichael Kerrisk1-1/+0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15getent.1, fanotify_mark.2, fcntl.2, futex.2, membarrier.2, mmap.2, mount.2, ↵Alejandro Colomar40-51/+51
msgctl.2, readv.2, semctl.2, set_mempolicy.2, shmctl.2, syscalls.2, abs.3, bstring.3, btree.3, ctime.3, drand48.3, fgetc.3, fopen.3, gethostbyname.3, getnetent.3, getprotoent.3, getservent.3, INFINITY.3, __ppc_set_ppr_med.3, inet.3, j0.3, makecontext.3, printf.3, puts.3, resolver.3, sigsetops.3, elf.5, nscd.conf.5, proc.5, inotify.7, ipv6.7, spufs.7, system_data_types.7: Use Oxford comma Found using: pcregrep -rnM "^\.[B|I]R .*,\n\.[B|I].*[^,]\nand" man? |grep ^man |sort Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15locale.5, ipv6.7: ffixAlejandro Colomar2-3/+3
[.B XX_*] is the most extended form in the pages. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15faccessat2.2: New link to access.2Michael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15access.2: Document faccessat2()Michael Kerrisk1-4/+37
faccessat2() was added in Linux 5.8 and enables a fix to longstanding bugs in the faccessat() wrapper function. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15access.2: BUGS: note that faccessat() wrapper function emulation ignores ACLsMichael Kerrisk1-1/+15
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15openat.2: Fix include path, should be linux/openat2.hColin Ian King1-1/+1
The include path is linux/openat2, so fix the manual to reference this correct path. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15shmctl.2: wfix (for consistency with other *ctl.2 pages)Michael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15msgctl.2, semctl.2, shmctl.2: Minor fixMichael Kerrisk3-0/+6
Break text into more paragraphs to ease readability Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15msgctl.2: Make comments in 'msqid_ds' definition more compactMichael Kerrisk1-13/+10
The comments do not need to be so verbose, since the main text provides the full details. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15msgctl.2: Add description of 'msg_cbytes' fieldMichael Kerrisk1-0/+4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15msgctl.2: Use field name "msg_cbytes" rather than "__msg_cbytes"Michael Kerrisk1-1/+1
The shorter name is provided by default (i.e., if _DEFAULT_SOURCE is defined). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15msgctl.2: Place list of field descriptions in same order as structure definitionMichael Kerrisk1-16/+16
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15shmctl.2: Place list of field descriptions in same order as structure definitionMichael Kerrisk1-13/+13
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-15semctl.2: ffixMichael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-14sigaction.2: tfixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-14signal-safety.7: Note async-signal-safety details for errnoMichael Kerrisk1-1/+9
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-14sigaction.2: Minor wording improvementsMichael Kerrisk1-3/+7
Restructure the sa_handler description as a list, for easier reading. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-14sigaction.2: Clarify description of SA_NODEFERMichael Kerrisk1-3/+6
Clarify description of SA_NODEFER, and note interaction with act.sa_mask. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-14sigaction.2: ffixMichael Kerrisk1-0/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-14sigaction.2: wfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-13perf_event_open.2: srcfixAlejandro Colomar1-93/+122
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-13signal.7: Minor tweaks to new "Execution of signal handlers" subsectionMichael Kerrisk1-5/+16
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-13io_setup.2: SYNOPSIS: return longAlejandro Colomar1-1/+1
The Linux kernel uses a long as the return type for this syscall. As glibc provides no wrapper, use the same types the kernel uses. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-12signal.7: Relocate the new "Execution of signal handlers" subsectionMichael Kerrisk1-77/+78
It is probably more sensible to place this section after the subsection "Signal mask and pending signals". Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-12perf_event_open.2: Assign calculated value explicitly to 'config'Alejandro Colomar1-4/+7
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-12signal.7: Minor tweaks to the test on execution of signal handlersMichael Kerrisk1-1/+4
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-12signal.7: Add some details on the execution of signal handlersMichael Kerrisk1-1/+76
Add a "big picture" of what happens when a signal handler is invoked. Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-12sigaltstack.2: Clarify that the alternate signal stack is per-threadMichael Kerrisk1-10/+10
Clarify that the alternate signal stack is per-thread (rather than process-wide). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-12clone.2, sigaltstack.2: clone(CLONE_VM) disdables the alternate signal stackMichael Kerrisk2-0/+17
In the kernel sources (kernel/fork.c::copy_process()), we have: /* * sigaltstack should be cleared when sharing the same VM */ if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM) sas_ss_reset(p); Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-12signal.7: SEE ALSO: add swapcontext(3)Michael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-12sigaction.2: Further clarify the effect of the SA_NODEFER flagMichael Kerrisk1-1/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-11getrlimit.2: State more precisely the range of kernel versions that had ↵Michael Kerrisk1-1/+1
RLIMIT_LOCKS Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-11timer_getoverrun.2: timer_getoverrun() now clamps the overrun count to ↵Michael Kerrisk1-3/+12
DELAYTIMER_MAX See https://bugzilla.kernel.org/show_bug.cgi?id=12665. The fix by Thomas Gleixner was in kernel commit 78c9c4dfbf8c04883941445a195276bb4bb92c76. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-10signal.2: wfix: Make the warning against the use of signal() even more obviousMichael Kerrisk1-1/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-08localedef.1: ffixMichael Kerrisk1-2/+0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-06syscalls.2: Note that sysctl() was removed in Linux 5.5Michael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-06bpf.2: Minor wording improvementMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-06proc.5: wfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-06syscalls.2: Add process_madvise()Michael Kerrisk1-1/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-06mount.2, statfs.2: Minor tweaks to Ross Zwisler's patchMichael Kerrisk2-4/+7
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-06mount.2, statfs.2: Add NOSYMFOLLOW flags to mount(2) and statfs(2)Ross Zwisler2-0/+14
Signed-off-by: Ross Zwisler <zwisler@google.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-05membarrier.2: Update for Linux 5.10Peter Oskolkov1-7/+53
Linux kernel commit 2a36ab717e8fe678d98f81c14a0b124712719840 (part of 5.10 release) changed sys_membarrier prototype/parameters and added two new commands [MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ and MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ]. This man-pages patch reflects these changes, by mostly copying comments from the kernel patch into the man-page ([Peter Oskolkov] was also the author of the kernel change). [mtk: commit message tweaked] Signed-off-by: Peter Oskolkov <posk@google.com> Cowritten-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-05strerror.3: tfixAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-02errno.3: Note another possible cause of the EMFILE errorMichael Kerrisk1-0/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-02mmap.2: Clarify SIGBUS text and treatment of partial page at end of a mappingMichael Kerrisk1-5/+9
See https://unix.stackexchange.com/questions/616848/what-is-the-behaviour-of-a-file-backed-memory-map-when-reading-from-or-writing-t Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-02io_cancel.2, io_destroy.2, io_getevents.2, io_setup.2, io_submit.2: ↵Alejandro Colomar5-5/+50
SYNOPSIS: s/io_context_t/aio_context_t/ Linux uses aio_context_t for these syscalls, and it's the type provided by <linux/aio_abi.h>. Use it in the SYNOPSIS. libaio uses 'io_context_t', but that difference is already noted in NOTES. [mtk: patch slightly tweaked] Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-02feature_test_macros.7: tfixJohn A. Leuenhagen1-1/+1
Signed-off-by: John A. Leuenhagen <john@zlima12.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-02Start of man-pages-5.10: updating Changes and Changes.oldMichael Kerrisk2-745/+782
2020-11-02Start of man-pages-5.10: updating .Announce and .lsm filesMichael Kerrisk2-4/+4
2020-11-02Start of man-pages-5.10: renaming .Announce and .lsm filesMichael Kerrisk2-0/+0
2020-11-01Ready for 5.09Michael Kerrisk2-3/+3
2020-11-01Changes: whitespace cleanupsMichael Kerrisk1-5/+5
2020-11-01memusage.1, pldd.1, sprof.1, add_key.2, bind.2, bpf.2, clone.2, dup.2, ↵Michael Kerrisk149-149/+149
epoll_ctl.2, eventfd.2, fanotify_init.2, fanotify_mark.2, futex.2, getdents.2, getpid.2, getrlimit.2, intro.2, ioctl_fat.2, ioctl_ns.2, kcmp.2, keyctl.2, membarrier.2, memfd_create.2, mprotect.2, msgctl.2, msgop.2, nfsservctl.2, open.2, open_by_handle_at.2, openat2.2, outb.2, perf_event_open.2, pivot_root.2, recv.2, recvmmsg.2, request_key.2, sched_setaffinity.2, sched_setattr.2, seccomp.2, select.2, send.2, signalfd.2, spu_run.2, sysctl.2, timer_create.2, userfaultfd.2, wait.2, CPU_SET.3, abs.3, argz_add.3, backtrace.3, bsearch.3, bswap.3, clock_getcpuclockid.3, cmsg.3, dl_iterate_phdr.3, dlinfo.3, dlopen.3, drand48.3, drand48_r.3, duplocale.3, encrypt.3, endian.3, envz_add.3, errno.3, ffs.3, fopencookie.3, get_phys_pages.3, getaddrinfo.3, getaddrinfo_a.3, getdate.3, getgrent_r.3, getgrouplist.3, getifaddrs.3, getline.3, getprotoent_r.3, getpwent_r.3, getpwnam.3, getservent_r.3, hsearch.3, insque.3, intro.3, lrint.3, lround.3, lseek64.3, mallinfo.3, malloc_hook.3, malloc_info.3, mbsinit.3, mbstowcs.3, mtrace.3, newlocale.3, ntp_gettime.3, offsetof.3, perror.3, posix_fallocate.3, posix_spawn.3, printf.3, psignal.3, pthread_attr_init.3, pthread_create.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setaffinity_np.3, pthread_setname_np.3, pthread_sigmask.3, qsort.3, rand.3, random.3, rpc.3, rtnetlink.3, scalbln.3, shm_open.3, stdarg.3, strcat.3, strerror.3, strfmon.3, strptime.3, strsignal.3, strtod.3, strtok.3, strtol.3, strtoul.3, tsearch.3, wordexp.3, loop.4, vcs.4, veth.4, core.5, locale.5, slabinfo.5, cgroup_namespaces.7, cpuset.7, credentials.7, fanotify.7, feature_test_macros.7, inotify.7, ip.7, kernel_lockdown.7, man.7, mount_namespaces.7, namespaces.7, pid_namespaces.7, rtld-audit.7, sigevent.7, sock_diag.7, standards.7, unix.7, user_namespaces.7: tstamp Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-01Changes: tfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-01Changes: Ready for 5.09Michael Kerrisk1-0/+743
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-01bpf-helpers.7: tfixMichael Kerrisk1-5/+5
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-01pthread_attr_init.3: tfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-01openat.2: SYNOPSIS: return longAlejandro Colomar1-2/+2
The Linux kernel uses long as the return type for this syscall. As glibc provides no wrapper, use the same type the kernel uses. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-01mq_getsetattr.2: Use 'const' when appropriateAlejandro Colomar1-1/+1
The Linux kernel uses the following: ipc/mqueue.c:1480: SYSCALL_DEFINE3(mq_getsetattr, mqd_t, mqdes, const struct mq_attr __user *, u_mqstat, struct mq_attr __user *, u_omqstat) Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-01pthread_attr_init.3: SEE ALSO: add pthread_attr_init(3)Michael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-01pthread_sigmask.3: SEE ALSO: add pthread_attr_setsigmask_np(3)Michael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-01pthread_attr_setsigmask_np.3: New page for pthread_attr_setsigmask_np() + ↵Michael Kerrisk1-0/+147
pthread_attr_getsigmask_np() Add a page documenting the pthread_attr_setsigmask_np(3) and pthread_attr_getsigmask_np() functions added in glibc 2.32. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-01statx.2: ffixMichael Kerrisk1-5/+5
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-31dlopen.3: ffixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-30futex.2: ffixAlejandro Colomar1-1/+2
That comment wrapped on an 80-column terminal. Divide it into two lines. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-30futex.2: Use appropriate typesAlejandro Colomar1-13/+14
The Linux kernel uses the following: kernel/futex.c:3778: SYSCALL_DEFINE6(futex, u32 __user *, uaddr, int, op, u32, val, struct __kernel_timespec __user *, utime, u32 __user *, uaddr2, u32, val3) Since there is no glibc wrapper, use the same types the kernel uses. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-30futex.2: srcfixAlejandro Colomar1-2/+2
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-29getdents.2: Use appropriate typesAlejandro Colomar1-5/+5
[mtk: Applied patch manually] getdents(): This function has no glibc wrapper. As such, we should use the same types the Linux kernel uses: Use 'long' as the return type. getdents64(): The glibc wrapper uses: ssize_t getdents64(int, void *, size_t); Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-28getdents.2: Minor tweak to Alex's patchMichael Kerrisk1-1/+1
The text in NOTES doesn't really relate specifically to the #include, so remove the comment on the #include. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-28getdents.2: SYNOPSIS: Add missing header and feature test macroAlejandro Colomar1-0/+4
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-28getdents.2: wfixAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-28clock_getres.2: EXAMPLES: Use 'const' when appropriateAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-28strtol.3: EXAMPLES: Simplify errno checkingAlejandro Colomar1-2/+1
(No expected change in behavior,) Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-28strtol.3: EXAMPLES: As the default base, use special value 0Alejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-28strtol.3: EXAMPLES: Delimit output string using ""Alejandro Colomar1-2/+2
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-28man_show_fixme.sh: Don't hyphenate or justify the manual pageMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-28socket.7: srcfix: rewrap source linesMichael Kerrisk1-6/+10
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-28socket.7: Document SO_INCOMING_NAPI_IDSridhar Samudrala1-0/+12
Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-28strtol.3: ffixMichael Kerrisk1-1/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27strtol.3: srcfix: Add myself to copyrightMichael Kerrisk1-0/+1
I added the xample program in 2006, but omitted to add myself to the copyright. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27FIXME_list.sh: Fix broken regexpMichael Kerrisk1-4/+4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27perf_event_open.2: wfixMichael Kerrisk1-1/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27perf_event_open.2: wfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27perf_event_open.2: Update the man page with CAP_PERFMON related informationAlexey Budankov1-2/+30
Extend this page with the information about CAP_PERFMON capability designed to secure performance monitoring and observability operation in a system according to the principle of least privilege [1] (POSIX IEEE 1003.1e, 2.2.2.39). [1] https://sites.google.com/site/fullycapable/, posix_1003.1e-990310.pdf Signed-off-by: Alexey Budankov <alexey.budankov@linux.intel.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27system_data_types.7: off_t: Add note about _FILE_OFFSET_BITSAlejandro Colomar1-1/+7
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27lseek64.3: Since glibc 2.28. the 'llseek' symbol is no longer availableMichael Kerrisk1-0/+4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27proc.5: Document inaccurate RSS due to SPLIT_RSS_COUNTINGJann Horn1-2/+34
[mtk: Manually applied patch, because of conflicts with other merged changes; also added an edit suggested by Jann; see the thread at https://lore.kernel.org/linux-man/20201012114940.1317510-1-jannh@google.com/] Since 34e55232e59f7b19050267a05ff1226e5cd122a5 (introduced back in v2.6.34), Linux uses per-thread RSS counters to reduce cache contention on the per-mm counters. With a 4K page size, that means that you can end up with the counters off by up to 252KiB per thread. Example: $ cat rsstest.c #include <stdlib.h> #include <err.h> #include <stdio.h> #include <signal.h> #include <unistd.h> #include <sys/mman.h> #include <sys/eventfd.h> #include <sys/prctl.h> void dump(int pid) { char cmd[1000]; sprintf(cmd, "grep '^VmRSS' /proc/%d/status;" "grep '^Rss:' /proc/%d/smaps_rollup;" "echo", pid, pid ); system(cmd); } int main(void) { eventfd_t dummy; int child_wait = eventfd(0, EFD_SEMAPHORE|EFD_CLOEXEC); int child_resume = eventfd(0, EFD_SEMAPHORE|EFD_CLOEXEC); if (child_wait == -1 || child_resume == -1) err(1, "eventfd"); pid_t child = fork(); if (child == -1) err(1, "fork"); if (child == 0) { if (prctl(PR_SET_PDEATHSIG, SIGKILL)) err(1, "PDEATHSIG"); if (getppid() == 1) exit(0); char *mapping = mmap(NULL, 80 * 0x1000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); eventfd_write(child_wait, 1); eventfd_read(child_resume, &dummy); for (int i=0; i<40; i++) mapping[0x1000 * i] = 1; eventfd_write(child_wait, 1); eventfd_read(child_resume, &dummy); for (int i=40; i<80; i++) mapping[0x1000 * i] = 1; eventfd_write(child_wait, 1); eventfd_read(child_resume, &dummy); exit(0); } eventfd_read(child_wait, &dummy); dump(child); eventfd_write(child_resume, 1); eventfd_read(child_wait, &dummy); dump(child); eventfd_write(child_resume, 1); eventfd_read(child_wait, &dummy); dump(child); eventfd_write(child_resume, 1); exit(0); } $ gcc -o rsstest rsstest.c && ./rsstest VmRSS: 68 kB Rss: 616 kB VmRSS: 68 kB Rss: 776 kB VmRSS: 812 kB Rss: 936 kB $ Let's document that those counters aren't entirely accurate. Reported-by: Mark Mossberg <mark.mossberg@gmail.com> Signed-off-by: Jann Horn <jannh@google.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27proc.5: Minor fixesMichael Kerrisk1-3/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27proc.5: ffix: use a hanging list as is done elsewhere in the pageMichael Kerrisk1-92/+92
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27system_data_types.7: ffixAlejandro Colomar1-136/+147
Format section names inside each type. Follow the same pattern as in stat.2 (see line 158: ".IR Note :") Before this ffix, it was visually harder to find sections inside a type. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27system_data_types.7: ffixAlejandro Colomar1-1/+1
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27capabilities.7: Under CAP_SYS_ADMIN, group "sub-capabilities" togetherMichael Kerrisk1-7/+10
CAP_BPF, CAP_PERFMON, and CAP_CHECKPOINT_RESTORE have all been added to split out the power of CAP_SYS_ADMIN into weaker pieces. Group all of these capabilities together in the list under CAP_SYS_ADMIN, to make it clear that there is a pattern to these capabilities. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27capabilities.7: CAP_SYS_ADMIN implies CAP_CHECKPOINT_RESTOREMichael Kerrisk1-0/+5
But the latter, weaker capability is preferred. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27capabilities.7: tfixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27capabilities.7: Document the CAP_CHECKPOINT_RESTORE capability added in ↵Michael Kerrisk1-0/+29
Linux 5.9 Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27proc.5: Update capability requirements for accessing /proc/[pid]/map_filesMichael Kerrisk1-3/+10
The requirements changed with kernel commit 12886f8ab10ce6. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27pid_namespaces.7: Update capability requirements for ↵Michael Kerrisk1-0/+2
/proc/sys/kernel/ns_last_pid Since Linux 5.9, CONFIG_CHECKPOINT_RESTORE also allows writing to /proc/sys/kernel/ns_last_pid. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27clone.2: CAP_CHECKPOINT_RESTORE can now be used to employ 'set_tid'Michael Kerrisk1-0/+5
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27capabilities.7: Add kernel doc reference for CAP_PERFMONMichael Kerrisk1-0/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27capabilities.7: ffixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27posix_fallocate.3: wfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27posix_fallocate.3: add EOPNOTSUPP error code.Érico Rolim1-0/+7
As can be seen in https://git.musl-libc.org/cgit/musl/tree/src/fcntl/posix_fallocate.c?id=73cc775bee53300c7cf759f37580220b18ac13d3 musl libc returns the syscall's errors directly, which means it doesn't perform the same emulation as glibc, and can return EOPNOTSUPP to an application, which isn't listed in ERRORS. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27system_data_types.7: Promote makedev(3) in discussion of 'dev_t'Michael Kerrisk1-2/+3
makedev(3) provides much more detail on this type, so mention it in the description rather than in 'See also'. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27system_data_types.7: Under 'dev_t' mention stat(2) rather than ustat(2) in ↵Michael Kerrisk1-1/+1
"See also" stat(2) is the most interesting API here; ustat(2) is obscure. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27dev_t.3: New link to system_data_types(7)Alejandro Colomar1-0/+1
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-27system_data_types.7: Add 'dev_t'Alejandro Colomar1-0/+21
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-26argz_add.3, envz_add.3: Point out that 'error_t' is an integer typeMichael Kerrisk2-2/+4
Reported-by: Jonny Grant <jg@jguk.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-26argz_add.3: tfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-26argz_add.3, envz_add.3: Remove sentence that conveys no useful infoMichael Kerrisk2-2/+0
The sentence "Handle with care" in CONFORMING TO conveys no useful information. Remove it. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-26argz_add.3: ffixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-26stailq.3: SEE ALSO: Add insque(3), queue(7)Alejandro Colomar1-0/+2
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25clockid_t: New link to system_data_types(7)Alejandro Colomar1-0/+1
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25system_Data_types.7: Add 'clockid_t'Alejandro Colomar1-0/+23
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25circleq.3, insque.3, list.3, slist.3, tailq.3: SEE ALSO: queue(3) -> queue(7)Alejandro Colomar5-5/+5
queue.3 has been moved to queue.7. Fix SEE ALSO accordingly. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3: Link to queue(7)Alejandro Colomar1-0/+1
queue has been for so many years in Section 3, and still is in Section 3 in most manuals. For legacy reasons, especially because hyperlinks to the online manual pages would break otherwise, a link queue.3 -> queue(7) is necessary. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3, queue.7: Move queue.3 to queue.7Alejandro Colomar1-1/+1
After forking slist.3, list.3, tailq.3, stailq.3 & circleq.3 in the previous commits, this page no longer belongs in Section 3 of the manual pages. According to its contents, the most suitable section is Section 7. Because of legacy reasons, a link queue.3 -> queue(7) would be appropriate. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25membarrier.2, openat2.2, insque.3, proc.5, tzfile.5, hier.7: Minor grammar fixMichael Kerrisk6-9/+9
Don't hyphenate after adjective ending in "ly". See, for example: https://www.dragoman.ist/compound-modifiers-with-words-ending-in-ly/ https://www.merriam-webster.com/words-at-play/6-common-hypercorrections-and-how-to-avoid-them/between-you-and-i Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25tailq.3: tfixDmitry V. Levin1-1/+1
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25stailq.3, tailq.3: Minor fix: replace ".Ss" lines with ".PP"Michael Kerrisk2-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25circleq.3, list.3, queue.3, slist.3, stailq.3, tailq.3: Minor grammar fixMichael Kerrisk6-33/+33
Don't hyphenate after adjective ending in "ly". See, for example: https://www.dragoman.ist/compound-modifiers-with-words-ending-in-ly/ https://www.merriam-webster.com/words-at-play/6-common-hypercorrections-and-how-to-avoid-them/between-you-and-i Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25circleq.3: ffixMichael Kerrisk1-6/+8
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25circleq.3, list.3, slist.3, stailq.3, tailq.3: Use the 'struct' keyword when ↵Alejandro Colomar5-81/+91
appropriate This helps differentiate 'TYPE' in some arguments from 'struct TYPE *var' in others, and is technically more correct. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3: wfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3: Fix & update after forking circleq.3, list.3, slist.3, stailq.3 & ↵Alejandro Colomar1-114/+75
tailq.3 - ffix: Use man markup - Remove specific notes about code size increase and execution time increase, as they were (at least) inaccurate. Instead, a generic note has been added. - Structure the text into subsections. - Remove sections that were empty after the forks. - Clearly relate macro names (SLIST, TAILQ, ...) to a human readable name of which data structure they implement. Reported-by: Michael Kerrisk <mtk.manpages@gmail.com> Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3: Add self to copyright noticeAlejandro Colomar1-1/+2
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25strerrorname_np.3: New link to strerror(3)Michael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25strerrordesc_np.3: New link to strerror(3)Michael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25strerror.3: Document strerrorname_np() and strerrordesc_np()Michael Kerrisk1-6/+54
strerrorname_np() and strerrordesc_np() were added in glibc 2.32. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25sigdescr_np.3: New link to strsignal.3Michael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25sigabbrev_np.3: New link to strsignal.3Michael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25strsignal.3: Document sigabbrev_np() and sigdescr_np().Michael Kerrisk1-2/+64
sigabbrev_np() and sigdescr_np() were added in glibc 2.32. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3: SEE ALSO: Add tailq(3)Alejandro Colomar1-0/+1
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25TAILQ_CONCAT.3, TAILQ_EMPTY.3, TAILQ_ENTRY.3, TAILQ_FIRST.3, ↵Alejandro Colomar18-18/+18
TAILQ_FOREACH.3, TAILQ_FOREACH_REVERSE.3, TAILQ_HEAD.3, TAILQ_HEAD_INITIALIZER.3, TAILQ_INIT.3, TAILQ_INSERT_AFTER.3, TAILQ_INSERT_BEFORE.3, TAILQ_INSERT_HEAD.3, TAILQ_INSERT_TAIL.3, TAILQ_LAST.3, TAILQ_NEXT.3, TAILQ_PREV.3, TAILQ_REMOVE.3, TAILQ_SWAP.3: Link to the new tailq(3) page instead of queue(3) Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25tailq.3: Add remaining details to complete the pageAlejandro Colomar1-0/+37
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25tailq.3: ffix: Use man markupAlejandro Colomar1-167/+195
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25tailq.3: Copy and adapt code from queue.3Alejandro Colomar1-18/+8
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3, tailq.3: EXAMPLES: Move code from queue.3 to tailq.3Alejandro Colomar2-56/+56
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3, tailq.3: DESCRIPTION: Move code from queue.3 to tailq.3Alejandro Colomar2-235/+235
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3, tailq.3: SYNOPSIS: Move code from queue.3 to tailq.3Alejandro Colomar2-27/+27
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3, tailq.3: NAME: Move code from queue.3 to tailq.3Alejandro Colomar2-24/+24
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25tailq.3: New page that will hold the (tailq) contents of queue.3Alejandro Colomar1-0/+40
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25circleq.3, list.3, slist.3, stailq.3: Fix return type of macrosAlejandro Colomar4-16/+16
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3: SEE ALSO: Add stailq(3)Alejandro Colomar1-0/+1
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25STAILQ_CONCAT.3, STAILQ_EMPTY.3, STAILQ_ENTRY.3, STAILQ_FIRST.3, ↵Alejandro Colomar14-14/+14
STAILQ_FOREACH.3, STAILQ_HEAD.3, STAILQ_HEAD_INITIALIZER.3, STAILQ_INIT.3, STAILQ_INSERT_AFTER.3, STAILQ_INSERT_HEAD.3, STAILQ_INSERT_TAIL.3, STAILQ_NEXT.3, STAILQ_REMOVE.3, STAILQ_REMOVE_HEAD.3: Link to the new stailq(3) page instead of queue(3) Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25stailq.3: Add remaining details to complete the pageAlejandro Colomar1-0/+30
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25stailq.3: ffix: Use man markupAlejandro Colomar1-145/+172
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25stailq.3: Copy and adapt code from queue.3Alejandro Colomar1-4/+19
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3, stailq.3: EXAMPLES: Move stailq example from queue.3 to stailq.3Alejandro Colomar2-61/+61
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3, stailq.3: DESCRIPTION: Move stailq specific code from queue.3 to ↵Alejandro Colomar2-177/+177
stailq.3 Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3, stailq.3: SYNOPSIS: Move code from queue.3 to stailq.3Alejandro Colomar2-21/+21
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25queue.3, stailq.3: NAME: Move code from queue.3 to stailq.3Alejandro Colomar2-20/+20
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25stailq.3: New page that will hold the (stailq) contents of queue.3Alejandro Colomar1-0/+40
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25proc.5: wfixJing Peng1-8/+1
In the section for /proc/[pid]/smaps, the description of field ProtectionKey occurs twice: both before and after the description of VmFlags. Changes made by this patch: 1) Only the first occurrence is kept because its order matches the output of /proc/[pid]/smaps. 2) The kernel version that CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS was introduced is only mentioned in the second occurrence. Now it's moved to the first one. Signed-off-by: Jing Peng <pj.hades@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-25circleq.3: ffixAlejandro Colomar1-0/+1
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-24signal.7: srcfixMichael Kerrisk1-1/+0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-23queue.3: SEE ALSO: Add circleq(3)Alejandro Colomar1-0/+1
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-23CIRCLEQ_ENTRY.3, CIRCLEQ_HEAD.3, CIRCLEQ_INIT.3, CIRCLEQ_INSERT_AFTER.3, ↵Alejandro Colomar8-8/+8
CIRCLEQ_INSERT_BEFORE.3, CIRCLEQ_INSERT_HEAD.3, CIRCLEQ_INSERT_TAIL.3, CIRCLEQ_REMOVE.3: Link to the new circleq(3) page instead of queue(3) Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-23circleq.3: Add remaining details to complete the pageAlejandro Colomar1-0/+38
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-23circleq.3: ffix: Use man markupAlejandro Colomar1-114/+143
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-23circleq.3: Copy and adapt code from queue.3Alejandro Colomar1-2/+20
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-23queue.3: ffixAlejandro Colomar1-2/+2
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-23circleq.3, queue.3: EXAMPLES: Move circleq example program from queue.3 to ↵Alejandro Colomar2-56/+56
circleq.3 Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-23circleq.3, queue.3: DESCRIPTION: Move circleq specific code from queue.3 to ↵Alejandro Colomar2-137/+137
circleq.3 Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-23circleq.3, queue.3: SYNOPSIS: Move code from queue.3 to circleq.3Alejandro Colomar2-18/+18
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-23circleq.3, queue.3: NAME: Move code from queue-3 to circleq.3Alejandro Colomar2-18/+18
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>