]> git.ipfire.org Git - thirdparty/man-pages.git/commit - man/man2/futex.2
Various pages: EXAMPLES: Use <err.h> functions
authorAlex Colomar <alx.manpages@gmail.com>
Mon, 12 Sep 2022 22:56:22 +0000 (00:56 +0200)
committerAlex Colomar <alx.manpages@gmail.com>
Mon, 12 Sep 2022 23:22:36 +0000 (01:22 +0200)
commit5a5208c119653f436529bc42d1c492d3a5e51ea9
tree62e31f4d6ae24b7cd0fe26dfff90292e430d45a1
parent8d3cce0abc4c32d248f9b4c503c5ce4b2833b602
Various pages: EXAMPLES: Use <err.h> functions

When reporting errors, prefer using conventional <err.h>
functions, rather than home-made macros.  Home-made macros are
necessary for portable programs, so in documentation about
portable functions, keep using the macros.  However, in the
documentation for functions that are only available in GNU/Linux
and/or BSD systems, prefer <err.h>, which is available in both
systems.

Do the same in example programs documenting portable functions but
in which we already require _GNU_SOURCE for some other reason.

Signed-off-by: Alex Colomar <alx.manpages@gmail.com>
27 files changed:
man2/clone.2
man2/eventfd.2
man2/futex.2
man2/getdents.2
man2/getrlimit.2
man2/kcmp.2
man2/memfd_create.2
man2/mount_setattr.2
man2/open_by_handle_at.2
man2/pivot_root.2
man2/sched_setaffinity.2
man2/seccomp_unotify.2
man2/setns.2
man2/signalfd.2
man2/spu_run.2
man2/timerfd_create.2
man2/unshare.2
man2/userfaultfd.2
man3/fmemopen.3
man3/malloc_info.3
man3/pthread_attr_init.3
man3/pthread_getattr_default_np.3
man3/pthread_getattr_np.3
man3/pthread_setaffinity_np.3
man3/pthread_setname_np.3
man7/pkeys.7
man7/user_namespaces.7