aboutsummaryrefslogtreecommitdiffstats
path: root/man3
AgeCommit message (Collapse)AuthorFilesLines
2021-01-01gethostbyname.3: Move mention of <sys/socket.h> from SYNOPSIS to DESCRIPTIONMichael Kerrisk1-2/+3
The functions are all declared in <netdb.h>. <sys/socket.h> is only needed for the AF_* constants. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-31puts.3: Reorder functions more logically (group related fuinctions together)Michael Kerrisk1-11/+8
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-31getdirentries.3: tfixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-31drand48.3: tfix (Oxford comma)Michael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-31dl_iterate_phdr.3: wsppfixMichael Kerrisk1-2/+2
Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-31wait4.2, endian.3, isalpha.3, unlocked_stdio.3: Minor consistency fix for ↵Michael Kerrisk3-0/+6
Feature Test Macro info Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-31strsignal.3: ffixMichael Kerrisk1-4/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-31Various pages: s/Glibc versions </Glibc </ in Feature Test Macro discussionsMichael Kerrisk94-126/+126
Use a more compact notation that will render less wide on the terminal. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-31pread.2, rename.2, syscall.2, utimensat.2, gethostid.3, rcmd.3, seekdir.3, ↵Michael Kerrisk6-15/+13
setnetgrent.3, strerror.3, strsignal.3: ffix: Various tweaks for greater consistency in Feature Test Macros Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-31chown.2, ffs.3, fpclassify.3, gamma.3, getgrent.3, ilogb.3, strdup.3: ffixMichael Kerrisk6-5/+7
Bring a bit more consistency to Feature Test Macro information (mainly .PP between differnt FTM lists). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-31Various pages: Formatting fixMichael Kerrisk24-29/+34
Use .PP (which gives a bit of vertical white space) rather than .br to separate functions in Feature Test Macro requirement lists. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-31Various pages: srcfix: remove redundant .brMichael Kerrisk14-14/+0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-31get_phys_pages.3: glibc gets the info from sysinfo(2) since 2.23Alejandro Colomar1-4/+9
See glibc's commit: 0ce657c576bf1b24 https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=0ce657c576bf1b24 Reported-by: Jakub Wilk <jwilk@jwilk.net> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-30ftime.3: tfixJakub Wilk1-1/+1
Signed-off-by: Jakub Wilk <jwilk@jwilk.net> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-27userfaultfd.2, posix_spawn.3: srcfix: remove redundant .PPMichael Kerrisk1-1/+0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-27pthread_mutexattr_setrobust.3: wfix: remove redundant commentsMichael Kerrisk1-3/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-27ioctl_ns.2, keyctl.2, memfd_create.2, pidfd_send_signal.2, poll.2, ↵Michael Kerrisk16-50/+48
seccomp.2, signalfd.2, timerfd_create.2, unshare.2, dlinfo.3, duplocale.3, fopencookie.3, getgrouplist.3, getifaddrs.3, getprotoent_r.3, getservent_r.3, insque.3, printf.3, pthread_attr_init.3, pthread_cancel.3, pthread_create.3, pthread_mutexattr_setrobust.3, pthread_setaffinity_np.3, qsort.3, sem_wait.3, core.5, elf.5, aio.7, epoll.7, pkeys.7, system_data_types.7, unix.7: Use periods more consistently inside code comments In general, complete sentences in free-standing comments should be terminated by periods. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-27bind.2, clone.2, dup.2, futex.2, mprotect.2, open_by_handle_at.2, ↵Michael Kerrisk11-48/+48
pivot_root.2, select_tut.2, shmop.2, timer_create.2, userfaultfd.2, getaddrinfo.3, getaddrinfo_a.3, inet_net_pton.3, malloc_info.3, mbstowcs.3, newlocale.3, posix_spawn.3, pthread_sigmask.3, shm_open.3, strtol.3, inotify.7, user_namespaces.7: Add periods at end of sentences in comments Try to bring a little more consistency on the use of periods in comments in example code. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-23slist.3: tfixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-23stailq.3: ffixMichael Kerrisk1-10/+10
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-23list.3, slist.3, stailq.3, tailq.3: tfixMichael Kerrisk4-4/+4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-23seccomp.2, circleq.3, list.3, malloc_hook.3, slist.3, stailq.3, tailq.3, ↵Michael Kerrisk6-55/+55
ip.7, unix.7: tfix Remove "." at the end of sentence fragments/short single sentences in comments. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-23Various pages: Remove explicit blank lines, replacing them with .PP when ↵Alejandro Colomar23-24/+23
appropriate Rationale: $ man 7 man-pages 2>/dev/null | sed -n /Paragraphs/,/^$/p Paragraphs should be separated by suitable markers (usually either .PP or .IP). Do not separate paragraphs using blank lines, as this results in poor rendering in some output formats (such as PostScript and PDF). Fix: $ sed -i -e '1,/^\.EX/s/^$/.PP/' -e '/^\.EE/,/^\.EX/s/^$/.PP/' man?/* And then some manual adjustments. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-22mallinfo2.3: New link to mallinfo(3)Michael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-22mallinfo.3: Update example program to use mallinfo2()Michael Kerrisk1-17/+17
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-22mallinfo.3: Document mallinfo2() and note that mallinfo() is deprecatedMichael Kerrisk1-28/+54
Document the mallinfo2() function added in glibc 2.33. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-22ftime.3: glibc 2.33 has removed ftime()Michael Kerrisk1-2/+10
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-22pthread_attr_setsigmask_np.3: tfixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-22nl_langinfo.3: tfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-22isfdtype.3: tfixMichael Kerrisk1-3/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-22aio_suspend.3: tfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-21getent.1, access.2, cacheflush.2, chroot.2, clock_getres.2, fcntl.2, ↵Michael Kerrisk27-27/+27
getrusage.2, io_cancel.2, io_destroy.2, io_getevents.2, io_setup.2, io_submit.2, link.2, llseek.2, mmap.2, mount.2, readv.2, restart_syscall.2, semctl.2, set_mempolicy.2, set_tid_address.2, shmctl.2, sigaction.2, sigaltstack.2, spu_create.2, statfs.2, subpage_prot.2, syscalls.2, timer_getoverrun.2, uselib.2, INFINITY.3, __ppc_set_ppr_med.3, bstring.3, btree.3, ctime.3, fgetc.3, fopen.3, getcontext.3, gethostbyname.3, getnetent.3, getprotoent.3, getservent.3, inet.3, j0.3, list.3, makecontext.3, nextafter.3, posix_memalign.3, profil.3, pthread_tryjoin_np.3, puts.3, rcmd.3, resolver.3, rtime.3, sigsetops.3, strnlen.3, tailq.3, elf.5, filesystems.5, nscd.conf.5, proc.5, utmp.5, attributes.7, ipv6.7, packet.7, pthreads.7, signal-safety.7, signal.7, spufs.7, system_data_types.7, tcp.7: tstamp Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-21rcmd.3: SEE ALSO: remove intro(2)Michael Kerrisk1-1/+0
There's no reason to link to intro(2)... Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-20regex.3: ffixMichael Kerrisk1-1/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-20pthread_attr_setguardsize.3: ffixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-20pthread_attr_setstacksize.3: ffixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-20pthread_mutexattr_setrobust.3: ffixMichael Kerrisk1-11/+11
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-20pthread_attr_setstackaddr.3: ffixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-20pthread_attr_setdetachstate.3: ffixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-15strtol.3: tfixJohn A. Leuenhagen1-1/+1
Signed-off-by: John A. Leuenhagen <john@zlima12.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-12-03modf.3: tfixMichael Kerrisk1-1/+1
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976312 Reported-by: Bill Allombert <ballombe@debian.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-28strnlen.3: Fix a small inconsistency in the textMichael Kerrisk1-1/+1
Quoting Heinrich: The strnlen.3 manpage has the following sentence: "In doing this, strnlen() looks only at the first maxlen characters in the string pointed to by s and never beyond s+maxlen." This sentence is self-contradictory: The last visited character implied by "first maxlen characters" is s[maxlen-1]. Given that "beyond a" does not include "a", the last visited character implied by "never beyond s+maxlen" is s[maxlen]. A consistent sentence would be "In doing this, strnlen() looks only at the first maxlen characters in the string pointed to by s and never beyond s+maxlen-1." I would prefer "In doing this, strnlen() looks only at the first maxlen characters in the string pointed to by s and never beyond s[maxlen-1]" Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-23lseek64.3: tfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-23pthread_tryjoin_np.3: Note that pthread_timedjoin_np() uses CLOCK_REALTIME, ↵Michael Kerrisk1-1/+16
but there's a bug Learned from an email converasation with Mike Crowe, and verified by experiment. Reported-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-23lseek64.3: NOTES: describe the origin of lseek64() in LFSMichael Kerrisk1-0/+20
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-23lseek64.3: Remove sentence saying lseek64() is an alias for llseek()Michael Kerrisk1-2/+2
As far as I can see, it is instead simply an alias for a wrapper that calls _llseek(). Saying it's an alias for "llseek()" seems confusing. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-23lseek64.3: Remove section numbers from interface listMichael Kerrisk1-2/+2
We're talking of a mix of wrapper functions and system calls in this page. lseek() is both a system and a wrapper function, and this page is mostly describing the wrapper Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-23lseek64.3: wfixMichael Kerrisk1-5/+4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-23lseek64.3: Minor clarificationsMichael Kerrisk1-4/+6
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-23lseek64.3: srcfix: add some comments to remind myself of some detailsMichael Kerrisk1-0/+12
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-23lseek64.3: ffixMichael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-23getnameinfo.3: tfixMichael Kerrisk1-1/+1
Reported-by: Sebastian Kirmayer <man-pages@kirmayer.eu> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-23lseek64.3: srcfix: Add a lore link to some background on these APIsMichael Kerrisk1-0/+4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-22getnameinfo.3: tfixMichael Kerrisk1-1/+1
Reported-by: Sebastian Kirmayer <sebastian@kirmayer.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-21capget.2, execve.2, readv.2, socketpair.2, utime.2, utimensat.2, ↵Alejandro Colomar1-1/+1
getloadavg.3, proc.5, mount_namespaces.7, unix.7: ffix {.IR var [x]} -> {.I var[x]} There were around 15 entries of the former, and around 360 of the latter. Found using: $ grep -rn '^\.I[ |R].* \[.*\]' |sort Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-17makecontext.3: Minor rewordingMichael Kerrisk1-4/+5
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-11-17getcontext.3, signal.7: tfixMichael Kerrisk1-1/+1
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-16uselib.2, posix_memalign.3, profil.3, rtime.3: Remove some text about libc/libc5Michael Kerrisk3-13/+14
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 Kerrisk1-2/+3
formatting, not .nf/.fi This gives better PDF rendering. 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-16nextafter.3: Remove duplicate "BUGS" section headingMichael Kerrisk1-1/+1
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-15chroot.2, memfd_create.2, tailq.3: Fix unbalanced .nf/.fiMichael Kerrisk1-0/+1
Reported-by: Alejandro Colomar <alx.manpages@gmail.com> 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 Colomar20-28/+28
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-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-01memusage.1, pldd.1, sprof.1, add_key.2, bind.2, bpf.2, clone.2, dup.2, ↵Michael Kerrisk78-78/+78
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-01pthread_attr_init.3: tfixMichael Kerrisk1-1/+1
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-10-31dlopen.3: ffixMichael Kerrisk1-1/+1
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-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-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-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-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-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-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-148/+0
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 Kerrisk1-2/+2
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-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-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>
2020-10-23circleq.3: New page that will hold the (circleq) content 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-23queue.3: Sort alphabeticallyAlejandro Colomar1-8/+8
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-23slist.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-10-22list.3: Sort alphabeticallyAlejandro 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-22list.3, slist.3, strcmp.3: tfixMichael Kerrisk3-3/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-22queue.3: SEE ALSO: Add slist(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-22SLIST_EMPTY.3, SLIST_ENTRY.3, SLIST_FIRST.3, SLIST_FOREACH.3, SLIST_HEAD.3, ↵Alejandro Colomar12-12/+12
SLIST_HEAD_INITIALIZER.3, SLIST_INIT.3, SLIST_INSERT_AFTER.3, SLIST_INSERT_HEAD.3, SLIST_NEXT.3, SLIST_REMOVE.3, SLIST_REMOVE_HEAD.3: Link to the new slist(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-22slist.3: Add detailsAlejandro Colomar1-0/+32
Add remaining details to complete the page. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-22slist.3: ffix: Use man markupAlejandro Colomar1-120/+140
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-22slist.3: Copy and adapt code from queue.3Alejandro Colomar1-7/+23
A few fixes to note: - Sorted alphabetically some macros - ffix: remove alignment spaces in example (as in list.3) Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-22queue.3, slist.3: EXAMPLES: Move example program from queue.3 to slist.3Alejandro Colomar2-57/+57
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-22queue.3, slist.3: DESCRIPTION: Move slist specific code from queue.3 to slist.3Alejandro Colomar2-155/+155
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-22queue.3, slist.3: SYNOPSIS: Move code from queue.3 to list.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-22queue.3, slist.3: NAME: Move code from queue.3 to slist.3Alejandro Colomar2-17/+17
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-22slist.3: New page that will hold the (slist) 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-21list.3: Minor fix to grammarMichael Kerrisk1-2/+2
Fix a preexisting grammar issue in text taken from queue.3. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-21list.3: Minor tweak's to Alex's textMichael Kerrisk1-4/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-21list.3: tfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-21list.3: ffixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-21queue.3: SEE ALSO: Add list(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-21LIST_EMPTY.3, LIST_ENTRY.3, LIST_FIRST.3, LIST_FOREACH.3, LIST_HEAD.3, ↵Alejandro Colomar12-12/+12
LIST_HEAD_INITIALIZER.3, LIST_INIT.3, LIST_INSERT_AFTER.3, LIST_INSERT_BEFORE.3, LIST_INSERT_HEAD.3, LIST_NEXT.3, LIST_REMOVE.3: Link to the new list.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-21list.3: Add detailsAlejandro Colomar1-0/+33
list.3: NAME: Add description list.3: DESCRIPTION: Add short description list.3: SEE ALSO: Add insque(3) and queue(3) list.3: BUGS: Note LIST_FOREACH() limitations list.3: RETURN VALUE: Add details about the return value of those macros that "return" a value Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-21list.3: ffix: Use man markupAlejandro Colomar1-120/+141
list.3: NAME: ffix: Use man markup list.3: SYNOPSIS: ffix: Use man markup list.3: DESCRIPTION: ffix: Use man markup list.3: DESCRIPTION: ffix: Use man markup list.3: CONFORMING TO: ffix: Use man markup list.3: EXAMPLES: ffix: Use man markup Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-21list.3: Copy and adapt code from queue.3Alejandro Colomar1-2/+18
list.3: SYNOPSIS: Copy include from queue.3 list.3: DESCRIPTION: Copy description about naming of macros from queue.3 list.3: DESCRIPTION: Remove unrelated code to adapt to this page list.3: DESCRIPTION: Remove lines pointing to the EXAMPLES list.3: CONFORMING TO: Copy from queue.3 list.3: CONFORMING TO: Adapt to this page Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-21list.3, queue.3: EXAMPLES: Move example program from queue.3 to list.3Alejandro Colomar2-53/+53
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-21list.3, queue.3: DESCRIPTION: Move list specific code from queue.3 to list.3Alejandro Colomar2-149/+149
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-21list.3, queue.3: SYNOPSIS: Move code from queue.3 to list.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-21list.3, queue.3: NAME: Move code from queue.3 to list.3Alejandro Colomar2-17/+17
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-21list.3: New page that will hold the (list) 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-18clock_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-17mallinfo.3: srcfix: add comments noting errors in glibc info pageMichael Kerrisk1-0/+4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-17mallinfo.3: The 'usmblks' is nowadays always 0Michael Kerrisk1-4/+6
Verified from the course code. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-17regex.3: Add example programAlejandro Colomar1-0/+42
$ gcc -Wall -Wextra -Werror -pedantic regex.c -o regex $ ./regex.3 String = "1) John Driverhacker; 2) John Doe; 3) John Foo; " Matches: #0: offset = 25; length = 7 substring = "John Do" #1: offset = 38; length = 8 substring = "John Foo" Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-17queue.3: stailq: Complete exampleAlejandro Colomar1-53/+64
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-15queue.3: list: Complete exampleAlejandro Colomar1-50/+55
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-14regex.3: wfixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-14regex.3: wfixAlejandro Colomar1-5/+1
The wording was incorrect: It stated that 'eflags' may be the OR of one or two of those two flags, but then a third flag was documented (which according to the previous wording could not be used?!). Moreover, the wording also disallowed using 0 (i.e., no flags at all), which POSIX specifically allows; I tested the function with no flags and it worked fine for me, so I guess it was a problem with the documentation, and not with the implementation itself. POSIX ref: https://pubs.opengroup.org/onlinepubs/9699919799/ Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-13queue.3: circleq: Complete exampleAlejandro Colomar1-49/+56
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-11strsignal.3: Further addition on version range for sys_siglistMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-11perror.3: sys_errlist and sys_nerr are no longer exposed by <stdio.h>Michael Kerrisk1-1/+8
The change came with the release of glibc 2.32. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-11queue.3: slist: Complete exampleAlejandro Colomar1-43/+59
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-11queue.3: Replace incomplete example by a complete exampleAlejandro Colomar1-56/+59
I added the EXAMPLES section. The examples in this page are incomplete (you can't copy&paste&compile&run). I fixed the one about TAILQ first, and the rest should follow. Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-11regex_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-11regex.3: Remove unnecessary includeAlejandro Colomar1-1/+0
POSIX requires that the <regex.h> header shall define the structures and symbolic constants used by the regcomp(), regexec(), regerror(), and regfree() functions. Therefore, there should be no need to include <sys/types.h> at all. The POSIX docs don't use that include: https://pubs.opengroup.org/onlinepubs/9699919799/functions/regcomp.html Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-07off_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-03Revert [u]int_*astN_t commitsAlejandro Colomar20-20/+0
Revert "uint_least8_t.3, uint_least16_t.3, uint_least32_t.3, uint_least64_t.3, uint_leastN_t.3: New links to system_data_types(7)" This reverts commit a5d13a32b79508c3224b678c67c1d5bcec0dd78e. Revert "system_data_types.7: Add uint_leastN_t family of types" This reverts commit 3450a5621e2a0bbba96add77002d5bf92412fd80. Revert "int_least8_t.3, int_least16_t.3, int_least32_t.3, int_least64_t.3, int_leastN_t.3: New links to system_data_types(7)" This reverts commit 876838354df6f32a3ba6c91698bdd8fb25e8167b. Revert "system_data_types.7: Add int_leastN_t family of types" This reverts commit f9b54d3a2eb5da554f9c6979b588fec534082586. Revert "uint_fast8_t.3, uint_fast16_t.3, uint_fast32_t.3, uint_fast64_t.3, uint_fastN_t.3: New links to system_data_types(7)" This reverts commit 496b1aad79db5662cac02b4a2c51851c8b37a5c5. Revert "system_data_types.7: Add uint_fastN_t family of types" This reverts commit 3c9ae6e5a264f1346260931132661cceb74f2539. Revert "int_fast8_t.3, int_fast16_t.3, int_fast32_t.3, int_fast64_t.3, int_fastN_t.3: New links to system_data_types(7)" This reverts commit 9df81a23e563ca1e65aafaaec981321816e35f25. Revert "system_data_types.7: Add int_fastN_t family of types" This reverts commit 8f12d3f6838e1b65e872211286cb33418953a94d. 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-03void.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-02strsignal.3: Note that 'sys_siglist' is nonstandardMichael Kerrisk1-0/+4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-02strsignal.3: Note that starting with v2.32, glibc no longer exports ↵Michael Kerrisk1-2/+8
'sys_siglist' Reported-by: Hauke Fath <hf@spg.tu-darmstadt.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-02sys_siglist.3: New link to strsignal(3)Michael Kerrisk1-0/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-02psignal.3, strsignal.3: Consolidate information on 'sys_siglist' in one page ↵Michael Kerrisk2-14/+8
(strsignal(3)) Through some accident, 'sys_siglist' has been documented in two different pages. Consolidate the information to one page (strsignal(3)) and add 'sys_siglist" to the NAME line of that page. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-01uint_least8_t.3, uint_least16_t.3, uint_least32_t.3, uint_least64_t.3, ↵Alejandro Colomar5-0/+5
uint_leastN_t.3: New links to system_data_types(7) Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-01int_least8_t.3, int_least16_t.3, int_least32_t.3, int_least64_t.3, ↵Alejandro Colomar5-0/+5
int_leastN_t.3: New links to system_data_types(7) Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-01uint_fast8_t.3, uint_fast16_t.3, uint_fast32_t.3, uint_fast64_t.3, ↵Alejandro Colomar5-0/+5
uint_fastN_t.3: New links to system_data_types(7) Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-01int_fast8_t.3, int_fast16_t.3, int_fast32_t.3, int_fast64_t.3, ↵Alejandro Colomar5-0/+5
int_fastN_t.3: New links to system_data_types(7) Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2020-10-01uintptr_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-01intptr_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>