]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man*/, man-pages.7: VERSIONS, STANDARDS, HISTORY: Reorganize sections
authorAlejandro Colomar <alx@kernel.org>
Fri, 17 Mar 2023 16:08:01 +0000 (17:08 +0100)
committerAlejandro Colomar <alx@kernel.org>
Thu, 30 Mar 2023 13:14:55 +0000 (15:14 +0200)
-  Add a new HISTORY section that covers the history of an API, both
   regarding implementations and regarding old standards.  This was
   previously covered in VERSIONS, and in some cases in STANDARDS.

-  Repurpose VERSIONS to cover differing implementations in _current_
   systems.

-  STANDARDS is reduced to only cover current versions of standards.
   That basically means only C11 (C99 has been superseeded by C11; C17
   is just a bugfix of C11, so not really a new version), and
   POSIX.1-2008 (*-2001 was superseeded by *-2008; *-2017 was just a
   bugfix for *-2008).  The section also mentions for example 'Linux',
   'GNU' or 'BSD' when a non-standard API is Linux- or GNU-only or if
   it's (de-facto) standard in the BSDs.

-  In some cases content that should go into one of these sections was
   in NOTES.  Move it from there to where it corresponds.

-  In the SYNOPSIS, I added [[deprecated]] in some functions that I
   found are deprecated by the relevant standards.

-  A few other related changes...

Cc: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
883 files changed:
man1/iconv.1
man1/locale.1
man1/pldd.1
man1/sprof.1
man2/_exit.2
man2/_syscall.2
man2/accept.2
man2/access.2
man2/acct.2
man2/add_key.2
man2/adjtimex.2
man2/alarm.2
man2/alloc_hugepages.2
man2/arch_prctl.2
man2/bdflush.2
man2/bind.2
man2/bpf.2
man2/brk.2
man2/cacheflush.2
man2/capget.2
man2/chdir.2
man2/chmod.2
man2/chown.2
man2/chroot.2
man2/clock_getres.2
man2/clock_nanosleep.2
man2/clone.2
man2/close.2
man2/close_range.2
man2/connect.2
man2/copy_file_range.2
man2/create_module.2
man2/delete_module.2
man2/dup.2
man2/epoll_create.2
man2/epoll_ctl.2
man2/epoll_wait.2
man2/eventfd.2
man2/execve.2
man2/execveat.2
man2/exit_group.2
man2/fallocate.2
man2/fanotify_init.2
man2/fanotify_mark.2
man2/fcntl.2
man2/flock.2
man2/fork.2
man2/fsync.2
man2/futex.2
man2/futimesat.2
man2/get_kernel_syms.2
man2/get_mempolicy.2
man2/getcpu.2
man2/getdents.2
man2/getdomainname.2
man2/getgid.2
man2/getgroups.2
man2/gethostname.2
man2/getitimer.2
man2/getpagesize.2
man2/getpeername.2
man2/getpid.2
man2/getpriority.2
man2/getrandom.2
man2/getresuid.2
man2/getrlimit.2
man2/getrusage.2
man2/getsid.2
man2/getsockname.2
man2/getsockopt.2
man2/gettid.2
man2/gettimeofday.2
man2/getuid.2
man2/getunwind.2
man2/getxattr.2
man2/idle.2
man2/init_module.2
man2/inotify_add_watch.2
man2/inotify_init.2
man2/inotify_rm_watch.2
man2/io_cancel.2
man2/io_destroy.2
man2/io_getevents.2
man2/io_setup.2
man2/io_submit.2
man2/ioctl.2
man2/ioctl_fat.2
man2/ioctl_ficlonerange.2
man2/ioctl_fideduperange.2
man2/ioctl_fslabel.2
man2/ioctl_getfsmap.2
man2/ioctl_iflags.2
man2/ioctl_ns.2
man2/ioctl_userfaultfd.2
man2/ioperm.2
man2/iopl.2
man2/ioprio_set.2
man2/ipc.2
man2/kcmp.2
man2/kexec_load.2
man2/keyctl.2
man2/kill.2
man2/landlock_add_rule.2
man2/landlock_create_ruleset.2
man2/landlock_restrict_self.2
man2/link.2
man2/listen.2
man2/listxattr.2
man2/llseek.2
man2/lookup_dcookie.2
man2/lseek.2
man2/madvise.2
man2/mbind.2
man2/membarrier.2
man2/memfd_create.2
man2/memfd_secret.2
man2/migrate_pages.2
man2/mincore.2
man2/mkdir.2
man2/mknod.2
man2/mlock.2
man2/mmap.2
man2/mmap2.2
man2/modify_ldt.2
man2/mount.2
man2/mount_setattr.2
man2/move_pages.2
man2/mprotect.2
man2/mq_getsetattr.2
man2/mremap.2
man2/msgctl.2
man2/msgget.2
man2/msgop.2
man2/msync.2
man2/nanosleep.2
man2/nfsservctl.2
man2/nice.2
man2/open.2
man2/open_by_handle_at.2
man2/openat2.2
man2/outb.2
man2/pause.2
man2/pciconfig_read.2
man2/perf_event_open.2
man2/perfmonctl.2
man2/personality.2
man2/pidfd_getfd.2
man2/pidfd_open.2
man2/pidfd_send_signal.2
man2/pipe.2
man2/pivot_root.2
man2/pkey_alloc.2
man2/poll.2
man2/posix_fadvise.2
man2/prctl.2
man2/pread.2
man2/process_madvise.2
man2/process_vm_readv.2
man2/ptrace.2
man2/query_module.2
man2/read.2
man2/readahead.2
man2/readdir.2
man2/readlink.2
man2/readv.2
man2/reboot.2
man2/recv.2
man2/recvmmsg.2
man2/remap_file_pages.2
man2/removexattr.2
man2/rename.2
man2/request_key.2
man2/restart_syscall.2
man2/rmdir.2
man2/rt_sigqueueinfo.2
man2/s390_guarded_storage.2
man2/s390_pci_mmio_write.2
man2/s390_runtime_instr.2
man2/s390_sthyi.2
man2/sched_get_priority_max.2
man2/sched_rr_get_interval.2
man2/sched_setaffinity.2
man2/sched_setattr.2
man2/sched_setparam.2
man2/sched_setscheduler.2
man2/sched_yield.2
man2/seccomp.2
man2/select.2
man2/semctl.2
man2/semget.2
man2/semop.2
man2/send.2
man2/sendfile.2
man2/sendmmsg.2
man2/set_mempolicy.2
man2/set_thread_area.2
man2/set_tid_address.2
man2/seteuid.2
man2/setfsgid.2
man2/setfsuid.2
man2/setgid.2
man2/setns.2
man2/setpgid.2
man2/setresuid.2
man2/setreuid.2
man2/setsid.2
man2/setuid.2
man2/setup.2
man2/setxattr.2
man2/sgetmask.2
man2/shmctl.2
man2/shmget.2
man2/shmop.2
man2/shutdown.2
man2/sigaction.2
man2/sigaltstack.2
man2/signal.2
man2/signalfd.2
man2/sigpending.2
man2/sigprocmask.2
man2/sigreturn.2
man2/sigsuspend.2
man2/sigwaitinfo.2
man2/socket.2
man2/socketcall.2
man2/socketpair.2
man2/splice.2
man2/spu_create.2
man2/spu_run.2
man2/stat.2
man2/statfs.2
man2/statx.2
man2/stime.2
man2/subpage_prot.2
man2/swapon.2
man2/symlink.2
man2/sync.2
man2/sync_file_range.2
man2/sysctl.2
man2/sysfs.2
man2/sysinfo.2
man2/syslog.2
man2/tee.2
man2/time.2
man2/timer_create.2
man2/timer_delete.2
man2/timer_getoverrun.2
man2/timer_settime.2
man2/timerfd_create.2
man2/times.2
man2/tkill.2
man2/truncate.2
man2/umask.2
man2/umount.2
man2/uname.2
man2/unlink.2
man2/unshare.2
man2/uselib.2
man2/userfaultfd.2
man2/ustat.2
man2/utime.2
man2/utimensat.2
man2/vfork.2
man2/vhangup.2
man2/vm86.2
man2/vmsplice.2
man2/wait.2
man2/wait4.2
man2/write.2
man2type/open_how.2type
man3/CPU_SET.3
man3/INFINITY.3
man3/MAX.3
man3/MB_CUR_MAX.3
man3/MB_LEN_MAX.3
man3/_Generic.3
man3/__ppc_get_timebase.3
man3/__ppc_set_ppr_med.3
man3/__ppc_yield.3
man3/__setfpucw.3
man3/a64l.3
man3/abort.3
man3/abs.3
man3/acos.3
man3/acosh.3
man3/addseverity.3
man3/adjtime.3
man3/aio_cancel.3
man3/aio_error.3
man3/aio_fsync.3
man3/aio_init.3
man3/aio_read.3
man3/aio_return.3
man3/aio_suspend.3
man3/aio_write.3
man3/alloca.3
man3/argz_add.3
man3/asin.3
man3/asinh.3
man3/asprintf.3
man3/assert.3
man3/assert_perror.3
man3/atan.3
man3/atan2.3
man3/atanh.3
man3/atexit.3
man3/atof.3
man3/atoi.3
man3/backtrace.3
man3/basename.3
man3/bcmp.3
man3/bcopy.3
man3/bindresvport.3
man3/bsd_signal.3
man3/bsearch.3
man3/bswap.3
man3/btowc.3
man3/byteorder.3
man3/bzero.3
man3/cabs.3
man3/cacos.3
man3/cacosh.3
man3/canonicalize_file_name.3
man3/carg.3
man3/casin.3
man3/casinh.3
man3/catan.3
man3/catanh.3
man3/catgets.3
man3/catopen.3
man3/cbrt.3
man3/ccos.3
man3/ccosh.3
man3/ceil.3
man3/cexp.3
man3/cfree.3
man3/cimag.3
man3/circleq.3
man3/clearenv.3
man3/clock.3
man3/clock_getcpuclockid.3
man3/clog.3
man3/clog10.3
man3/clog2.3
man3/closedir.3
man3/cmsg.3
man3/confstr.3
man3/conj.3
man3/copysign.3
man3/cos.3
man3/cosh.3
man3/cpow.3
man3/cproj.3
man3/creal.3
man3/crypt.3
man3/csin.3
man3/csinh.3
man3/csqrt.3
man3/ctan.3
man3/ctanh.3
man3/ctermid.3
man3/ctime.3
man3/daemon.3
man3/des_crypt.3
man3/difftime.3
man3/dirfd.3
man3/div.3
man3/dl_iterate_phdr.3
man3/dladdr.3
man3/dlerror.3
man3/dlinfo.3
man3/dlopen.3
man3/dlsym.3
man3/drand48.3
man3/drand48_r.3
man3/duplocale.3
man3/dysize.3
man3/ecvt.3
man3/ecvt_r.3
man3/encrypt.3
man3/end.3
man3/endian.3
man3/envz_add.3
man3/erf.3
man3/erfc.3
man3/err.3
man3/error.3
man3/ether_aton.3
man3/euidaccess.3
man3/exec.3
man3/exit.3
man3/exp.3
man3/exp10.3
man3/exp2.3
man3/expm1.3
man3/fabs.3
man3/fclose.3
man3/fcloseall.3
man3/fdim.3
man3/fenv.3
man3/ferror.3
man3/fexecve.3
man3/fflush.3
man3/ffs.3
man3/fgetc.3
man3/fgetgrent.3
man3/fgetpwent.3
man3/fgetwc.3
man3/fgetws.3
man3/fileno.3
man3/flockfile.3
man3/floor.3
man3/fma.3
man3/fmax.3
man3/fmemopen.3
man3/fmin.3
man3/fmod.3
man3/fmtmsg.3
man3/fnmatch.3
man3/fopen.3
man3/fopencookie.3
man3/fpathconf.3
man3/fpclassify.3
man3/fpurge.3
man3/fputwc.3
man3/fputws.3
man3/fread.3
man3/frexp.3
man3/fseek.3
man3/fseeko.3
man3/ftime.3
man3/ftok.3
man3/fts.3
man3/ftw.3
man3/futimes.3
man3/fwide.3
man3/gamma.3
man3/gcvt.3
man3/get_nprocs.3
man3/get_phys_pages.3
man3/getaddrinfo.3
man3/getaddrinfo_a.3
man3/getauxval.3
man3/getcontext.3
man3/getcwd.3
man3/getdate.3
man3/getdirentries.3
man3/getdtablesize.3
man3/getentropy.3
man3/getenv.3
man3/getfsent.3
man3/getgrent.3
man3/getgrent_r.3
man3/getgrnam.3
man3/getgrouplist.3
man3/gethostbyname.3
man3/gethostid.3
man3/getifaddrs.3
man3/getipnodebyname.3
man3/getline.3
man3/getloadavg.3
man3/getlogin.3
man3/getmntent.3
man3/getnameinfo.3
man3/getnetent.3
man3/getnetent_r.3
man3/getopt.3
man3/getpass.3
man3/getprotoent.3
man3/getprotoent_r.3
man3/getpt.3
man3/getpw.3
man3/getpwent.3
man3/getpwent_r.3
man3/getpwnam.3
man3/getrpcent.3
man3/getrpcent_r.3
man3/getrpcport.3
man3/gets.3
man3/getservent.3
man3/getservent_r.3
man3/getspnam.3
man3/getsubopt.3
man3/getttyent.3
man3/getusershell.3
man3/getutent.3
man3/getutmp.3
man3/getw.3
man3/getwchar.3
man3/glob.3
man3/gnu_get_libc_version.3
man3/grantpt.3
man3/group_member.3
man3/gsignal.3
man3/hsearch.3
man3/hypot.3
man3/iconv.3
man3/iconv_close.3
man3/iconv_open.3
man3/if_nameindex.3
man3/if_nametoindex.3
man3/ilogb.3
man3/index.3
man3/inet.3
man3/inet_net_pton.3
man3/inet_ntop.3
man3/inet_pton.3
man3/initgroups.3
man3/insque.3
man3/isalpha.3
man3/isatty.3
man3/isfdtype.3
man3/isgreater.3
man3/iswalnum.3
man3/iswalpha.3
man3/iswblank.3
man3/iswcntrl.3
man3/iswctype.3
man3/iswdigit.3
man3/iswgraph.3
man3/iswlower.3
man3/iswprint.3
man3/iswpunct.3
man3/iswspace.3
man3/iswupper.3
man3/iswxdigit.3
man3/j0.3
man3/killpg.3
man3/ldexp.3
man3/lgamma.3
man3/lio_listio.3
man3/list.3
man3/localeconv.3
man3/lockf.3
man3/log.3
man3/log10.3
man3/log1p.3
man3/log2.3
man3/logb.3
man3/login.3
man3/lrint.3
man3/lround.3
man3/lsearch.3
man3/makecontext.3
man3/makedev.3
man3/mallinfo.3
man3/malloc.3
man3/malloc_get_state.3
man3/malloc_hook.3
man3/malloc_info.3
man3/malloc_stats.3
man3/malloc_trim.3
man3/malloc_usable_size.3
man3/mallopt.3
man3/mblen.3
man3/mbrlen.3
man3/mbrtowc.3
man3/mbsinit.3
man3/mbsrtowcs.3
man3/mbstowcs.3
man3/mbtowc.3
man3/mcheck.3
man3/memccpy.3
man3/memchr.3
man3/memcmp.3
man3/memcpy.3
man3/memfrob.3
man3/memmem.3
man3/memmove.3
man3/mempcpy.3
man3/memset.3
man3/mkdtemp.3
man3/mkfifo.3
man3/mkstemp.3
man3/mktemp.3
man3/modf.3
man3/mpool.3
man3/mq_close.3
man3/mq_getattr.3
man3/mq_notify.3
man3/mq_open.3
man3/mq_receive.3
man3/mq_send.3
man3/mq_unlink.3
man3/mtrace.3
man3/nan.3
man3/netlink.3
man3/newlocale.3
man3/nextafter.3
man3/nextup.3
man3/nl_langinfo.3
man3/ntp_gettime.3
man3/offsetof.3
man3/on_exit.3
man3/open_memstream.3
man3/opendir.3
man3/openpty.3
man3/perror.3
man3/popen.3
man3/posix_fallocate.3
man3/posix_madvise.3
man3/posix_memalign.3
man3/posix_openpt.3
man3/posix_spawn.3
man3/pow.3
man3/pow10.3
man3/powerof2.3
man3/printf.3
man3/profil.3
man3/program_invocation_name.3
man3/psignal.3
man3/pthread_atfork.3
man3/pthread_attr_init.3
man3/pthread_attr_setaffinity_np.3
man3/pthread_attr_setdetachstate.3
man3/pthread_attr_setguardsize.3
man3/pthread_attr_setinheritsched.3
man3/pthread_attr_setschedparam.3
man3/pthread_attr_setschedpolicy.3
man3/pthread_attr_setscope.3
man3/pthread_attr_setsigmask_np.3
man3/pthread_attr_setstack.3
man3/pthread_attr_setstackaddr.3
man3/pthread_cancel.3
man3/pthread_cleanup_push.3
man3/pthread_cleanup_push_defer_np.3
man3/pthread_create.3
man3/pthread_detach.3
man3/pthread_equal.3
man3/pthread_exit.3
man3/pthread_getattr_default_np.3
man3/pthread_getattr_np.3
man3/pthread_getcpuclockid.3
man3/pthread_join.3
man3/pthread_kill.3
man3/pthread_kill_other_threads_np.3
man3/pthread_mutex_consistent.3
man3/pthread_mutexattr_getpshared.3
man3/pthread_mutexattr_init.3
man3/pthread_mutexattr_setrobust.3
man3/pthread_rwlockattr_setkind_np.3
man3/pthread_self.3
man3/pthread_setaffinity_np.3
man3/pthread_setcancelstate.3
man3/pthread_setconcurrency.3
man3/pthread_setname_np.3
man3/pthread_setschedparam.3
man3/pthread_setschedprio.3
man3/pthread_sigmask.3
man3/pthread_sigqueue.3
man3/pthread_spin_init.3
man3/pthread_spin_lock.3
man3/pthread_testcancel.3
man3/pthread_tryjoin_np.3
man3/pthread_yield.3
man3/ptsname.3
man3/putenv.3
man3/putgrent.3
man3/putpwent.3
man3/puts.3
man3/putwchar.3
man3/qecvt.3
man3/qsort.3
man3/raise.3
man3/rand.3
man3/random.3
man3/random_r.3
man3/rcmd.3
man3/re_comp.3
man3/readdir.3
man3/readdir_r.3
man3/realpath.3
man3/regex.3
man3/remainder.3
man3/remove.3
man3/remquo.3
man3/resolver.3
man3/rewinddir.3
man3/rexec.3
man3/rint.3
man3/round.3
man3/roundup.3
man3/rpmatch.3
man3/rtnetlink.3
man3/scalb.3
man3/scalbln.3
man3/scandir.3
man3/scanf.3
man3/sched_getcpu.3
man3/seekdir.3
man3/sem_close.3
man3/sem_destroy.3
man3/sem_getvalue.3
man3/sem_init.3
man3/sem_open.3
man3/sem_post.3
man3/sem_unlink.3
man3/sem_wait.3
man3/setaliasent.3
man3/setbuf.3
man3/setenv.3
man3/setjmp.3
man3/setlocale.3
man3/setlogmask.3
man3/setnetgrent.3
man3/shm_open.3
man3/siginterrupt.3
man3/signbit.3
man3/significand.3
man3/sigpause.3
man3/sigqueue.3
man3/sigset.3
man3/sigsetops.3
man3/sigvec.3
man3/sigwait.3
man3/sin.3
man3/sincos.3
man3/sinh.3
man3/sleep.3
man3/slist.3
man3/sockatmark.3
man3/sqrt.3
man3/sscanf.3
man3/stailq.3
man3/statvfs.3
man3/stdarg.3
man3/stdin.3
man3/stdio.3
man3/stpncpy.3
man3/strcasecmp.3
man3/strchr.3
man3/strcmp.3
man3/strcoll.3
man3/strcpy.3
man3/strdup.3
man3/strerror.3
man3/strfmon.3
man3/strfromd.3
man3/strfry.3
man3/strftime.3
man3/strlen.3
man3/strncat.3
man3/strnlen.3
man3/strpbrk.3
man3/strptime.3
man3/strsep.3
man3/strsignal.3
man3/strspn.3
man3/strstr.3
man3/strtod.3
man3/strtoimax.3
man3/strtok.3
man3/strtol.3
man3/strtoul.3
man3/strverscmp.3
man3/strxfrm.3
man3/swab.3
man3/sysconf.3
man3/syslog.3
man3/system.3
man3/sysv_signal.3
man3/tailq.3
man3/tan.3
man3/tanh.3
man3/tcgetpgrp.3
man3/tcgetsid.3
man3/telldir.3
man3/tempnam.3
man3/termios.3
man3/tgamma.3
man3/timegm.3
man3/timeradd.3
man3/tmpfile.3
man3/tmpnam.3
man3/toascii.3
man3/toupper.3
man3/towctrans.3
man3/towlower.3
man3/towupper.3
man3/trunc.3
man3/tsearch.3
man3/ttyname.3
man3/ttyslot.3
man3/tzset.3
man3/ualarm.3
man3/ulimit.3
man3/ungetwc.3
man3/unlocked_stdio.3
man3/unlockpt.3
man3/updwtmp.3
man3/uselocale.3
man3/usleep.3
man3/wcrtomb.3
man3/wcscasecmp.3
man3/wcscat.3
man3/wcschr.3
man3/wcscmp.3
man3/wcscpy.3
man3/wcscspn.3
man3/wcsdup.3
man3/wcslen.3
man3/wcsncasecmp.3
man3/wcsncat.3
man3/wcsncmp.3
man3/wcsncpy.3
man3/wcsnlen.3
man3/wcspbrk.3
man3/wcsrchr.3
man3/wcsrtombs.3
man3/wcsspn.3
man3/wcsstr.3
man3/wcstoimax.3
man3/wcstok.3
man3/wcstombs.3
man3/wcswidth.3
man3/wctob.3
man3/wctomb.3
man3/wctrans.3
man3/wctype.3
man3/wcwidth.3
man3/wmemchr.3
man3/wmemcmp.3
man3/wmemcpy.3
man3/wmemmove.3
man3/wmemset.3
man3/wordexp.3
man3/wprintf.3
man3/y0.3
man3head/printf.h.3head
man3head/sysexits.h.3head
man3type/FILE.3type
man3type/aiocb.3type
man3type/blkcnt_t.3type
man3type/blksize_t.3type
man3type/cc_t.3type
man3type/clock_t.3type
man3type/clockid_t.3type
man3type/dev_t.3type
man3type/div_t.3type
man3type/double_t.3type
man3type/epoll_event.3type
man3type/fenv_t.3type
man3type/id_t.3type
man3type/intN_t.3type
man3type/intmax_t.3type
man3type/intptr_t.3type
man3type/iovec.3type
man3type/itimerspec.3type
man3type/lconv.3type
man3type/mode_t.3type
man3type/off_t.3type
man3type/ptrdiff_t.3type
man3type/regex_t.3type
man3type/size_t.3type
man3type/sockaddr.3type
man3type/stat.3type
man3type/time_t.3type
man3type/timer_t.3type
man3type/timespec.3type
man3type/timeval.3type
man3type/tm.3type
man3type/va_list.3type
man3type/void.3type
man4/fuse.4
man5/acct.5
man5/sysfs.5
man5/utmp.5
man7/aio.7
man7/cgroup_namespaces.7
man7/credentials.7
man7/epoll.7
man7/fanotify.7
man7/feature_test_macros.7
man7/inode.7
man7/inotify.7
man7/man-pages.7
man7/mount_namespaces.7
man7/numa.7
man7/pid_namespaces.7
man7/queue.7
man7/rtld-audit.7
man7/sock_diag.7
man7/user_namespaces.7

index ece86aa6dc42e6d6c64006b470406bbed0202546..959275183c11e155204e91d46ae04e6f81c9f17c 100644 (file)
@@ -160,6 +160,8 @@ Depending on the architecture,
 the above files may instead be located at directories with the path prefix
 .IR /usr/lib64 .
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 POSIX.1-2001.
 .SH EXAMPLES
 Convert text from the ISO 8859-15 character encoding to UTF-8:
index 368bb5eea9d7a1423702f39b000968494d721084..4e257eb7b3e891c67ca179979a40cfa8eb972eca 100644 (file)
@@ -119,7 +119,9 @@ Usual default locale archive location.
 .I /usr/share/i18n/locales
 Usual default path for locale definition files.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH EXAMPLES
 .EX
 $ \fBlocale\fP
index 36d8a48dd0dc50fc3d7a057abd11d3bea4504d6d..f7bff8c2ff28064aff82355857219cbf1485d721 100644 (file)
@@ -39,15 +39,13 @@ or no command-line arguments are supplied,
 exists with a status of 1.
 If given an invalid option, it exits with the status 64.
 .SH VERSIONS
-.B pldd
-is available since glibc 2.15.
-.SH STANDARDS
-The
-.B pldd
-command is not specified by POSIX.1.
 Some other systems
 .\" There are man pages on Solaris and HP-UX.
 have a similar command.
+.SH STANDARDS
+None.
+.SH HISTORY
+glibc 2.15.
 .SH NOTES
 The command
 .PP
index 79c86b4996f17146f704febd10fd036669201949..04903d6e924e2e3bcc0af659244bc58232cfac63 100644 (file)
@@ -53,9 +53,7 @@ Display a short usage message and exit.
 .BR \-V ", " \-\-version
 Display the program version and exit.
 .SH STANDARDS
-The
-.B sprof
-command is a GNU extension, not present in POSIX.1.
+GNU.
 .SH EXAMPLES
 The following example demonstrates the use of
 .BR sprof .
index 10a3addc5a5d6dcf8a8cd39c481e08101b61c4b9..b4bb34ccafcb2a35d15b7c306850ddeacd9cb0d6 100644 (file)
@@ -60,8 +60,15 @@ is equivalent to
 .SH RETURN VALUE
 These functions do not return.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
-The function
+.TP
+.BR _exit ()
+POSIX.1-2008.
+.TP
+.BR _Exit ()
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
+.PP
 .BR _Exit ()
 was introduced by C99.
 .SH NOTES
index efb7e802d5d5b85dbb03d5621f299151144b4082..cd9ebb61406ec26a57c39b57c9c095102e735f58 100644 (file)
@@ -68,9 +68,9 @@ you call the system call by
 .SH FILES
 .I /usr/include/linux/unistd.h
 .SH STANDARDS
-The use of these macros is Linux-specific, and deprecated.
-.SH NOTES
-Starting around kernel 2.6.18, the _syscall macros were removed
+Linux.
+.SH HISTORY
+Starting around Linux 2.6.18, the _syscall macros were removed
 from header files supplied to user space.
 Use
 .BR syscall (2)
@@ -79,7 +79,7 @@ instead.
 on those architectures,
 .BR syscall (2)
 was always required.)
-.PP
+.SH NOTES
 The _syscall() macros
 .I "do not"
 produce a prototype.
index d852212e54ac5ca6b51f4cc40d1a16218a062c76..2832519f1730e8803543f79240b8f0404847cf8f 100644 (file)
@@ -254,26 +254,6 @@ The value
 .B ERESTARTSYS
 may be seen during a trace.
 .SH VERSIONS
-The
-.BR accept4 ()
-system call is available starting with Linux 2.6.28;
-support in glibc is available starting with glibc 2.10.
-.SH STANDARDS
-.BR accept ():
-POSIX.1-2001, POSIX.1-2008,
-SVr4, 4.4BSD
-.RB ( accept ()
-first appeared in 4.2BSD).
-.\" The BSD man page documents five possible error returns
-.\" (EBADF, ENOTSOCK, EOPNOTSUPP, EWOULDBLOCK, EFAULT).
-.\" POSIX.1-2001 documents errors
-.\" EAGAIN, EBADF, ECONNABORTED, EINTR, EINVAL, EMFILE,
-.\" ENFILE, ENOBUFS, ENOMEM, ENOTSOCK, EOPNOTSUPP, EPROTO, EWOULDBLOCK.
-.\" In addition, SUSv2 documents EFAULT and ENOSR.
-.PP
-.BR accept4 ()
-is a nonstandard Linux extension.
-.PP
 On Linux, the new socket returned by
 .BR accept ()
 does \fInot\fP inherit file status flags such as
@@ -288,6 +268,30 @@ Portable programs should not rely on inheritance or noninheritance
 of file status flags and always explicitly set all required flags on
 the socket returned from
 .BR accept ().
+.SH STANDARDS
+.TP
+.BR accept ()
+POSIX.1-2008.
+.TP
+.BR accept4 ()
+Linux.
+.PP
+.SH HISTORY
+.TP
+.BR accept ()
+POSIX.1-2001, SVr4, 4.4BSD
+.RB ( accept ()
+first appeared in 4.2BSD).
+.\" The BSD man page documents five possible error returns
+.\" (EBADF, ENOTSOCK, EOPNOTSUPP, EWOULDBLOCK, EFAULT).
+.\" POSIX.1-2001 documents errors
+.\" EAGAIN, EBADF, ECONNABORTED, EINTR, EINVAL, EMFILE,
+.\" ENFILE, ENOBUFS, ENOMEM, ENOTSOCK, EOPNOTSUPP, EPROTO, EWOULDBLOCK.
+.\" In addition, SUSv2 documents EFAULT and ENOSR.
+.TP
+.BR accept4 ()
+Linux 2.6.28,
+glibc 2.10.
 .SH NOTES
 There may not always be a connection waiting after a
 .B SIGIO
index d3deeecba0c702ee926ef86a24618d78384fa3ee..b80b201d87379fc5952385fc0327b130081276e1 100644 (file)
@@ -275,21 +275,65 @@ Write permission was requested for a file on a read-only filesystem.
 Write access was requested to an executable which is being
 executed.
 .SH VERSIONS
+If the calling process has appropriate privileges (i.e., is superuser),
+POSIX.1-2001 permits an implementation to indicate success for an
+.B X_OK
+check even if none of the execute file permission bits are set.
+.\" HPU-UX 11 and Tru64 5.1 do this.
+Linux does not do this.
+.\"
+.SS C library/kernel differences
+The raw
 .BR faccessat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
-.PP
-.BR faccessat2 ()
-was added in Linux 5.8.
+system call takes only the first three arguments.
+The
+.B AT_EACCESS
+and
+.B AT_SYMLINK_NOFOLLOW
+flags are actually implemented within the glibc wrapper function for
+.BR faccessat ().
+If either of these flags is specified, then the wrapper function employs
+.BR fstatat (2)
+to determine access permissions, but see BUGS.
+.\"
+.SS glibc notes
+On older kernels where
+.BR faccessat ()
+is unavailable (and when the
+.B AT_EACCESS
+and
+.B AT_SYMLINK_NOFOLLOW
+flags are not specified),
+the glibc wrapper function falls back to the use of
+.BR access ().
+When
+.I pathname
+is a relative pathname,
+glibc constructs a pathname based on the symbolic link in
+.I /proc/self/fd
+that corresponds to the
+.I dirfd
+argument.
 .SH STANDARDS
-.BR access ():
-SVr4, 4.3BSD, POSIX.1-2001, POSIX.1-2008.
-.PP
-.BR faccessat ():
+.TP
+.BR access ()
+.TQ
+.BR faccessat ()
 POSIX.1-2008.
-.PP
-.BR faccessat2 ():
-Linux-specific.
+.TP
+.BR faccessat2 ()
+Linux.
+.SH HISTORY
+.TP
+.BR access ()
+SVr4, 4.3BSD, POSIX.1-2001.
+.TP
+.BR faccessat ()
+Linux 2.6.16,
+glibc 2.4.
+.TP
+.BR faccessat2 ()
+Linux 5.8.
 .SH NOTES
 .BR Warning :
 Using these calls to check if a user is authorized to, for example,
@@ -316,13 +360,6 @@ is denied, even if some of the other access types in
 .I mode
 are permitted.
 .PP
-If the calling process has appropriate privileges (i.e., is superuser),
-POSIX.1-2001 permits an implementation to indicate success for an
-.B X_OK
-check even if none of the execute file permission bits are set.
-.\" HPU-UX 11 and Tru64 5.1 do this.
-Linux does not do this.
-.PP
 A file is accessible only if the permissions on each of the
 directories in the path prefix of
 .I pathname
@@ -346,39 +383,6 @@ which checks permissions.
 (NFS versions 3 and higher perform the check on the server.)
 Similar problems can occur to FUSE mounts.
 .\"
-.\"
-.SS C library/kernel differences
-The raw
-.BR faccessat ()
-system call takes only the first three arguments.
-The
-.B AT_EACCESS
-and
-.B AT_SYMLINK_NOFOLLOW
-flags are actually implemented within the glibc wrapper function for
-.BR faccessat ().
-If either of these flags is specified, then the wrapper function employs
-.BR fstatat (2)
-to determine access permissions, but see BUGS.
-.\"
-.SS glibc notes
-On older kernels where
-.BR faccessat ()
-is unavailable (and when the
-.B AT_EACCESS
-and
-.B AT_SYMLINK_NOFOLLOW
-flags are not specified),
-the glibc wrapper function falls back to the use of
-.BR access ().
-When
-.I pathname
-is a relative pathname,
-glibc constructs a pathname based on the symbolic link in
-.I /proc/self/fd
-that corresponds to the
-.I dirfd
-argument.
 .SH BUGS
 Because the Linux kernel's
 .BR faccessat ()
index f9fc1cd5c86f0645fc1bd152bba4962f34691cb4..8b7d943b0b9cbdd6c8b69c0096f9cb7588b02ef4 100644 (file)
@@ -118,7 +118,9 @@ refers to a file on a read-only filesystem.
 .B EUSERS
 There are no more free file structures or we ran out of memory.
 .SH STANDARDS
-SVr4, 4.3BSD (but not POSIX).
+None.
+.SH HISTORY
+SVr4, 4.3BSD.
 .\" SVr4 documents an EBUSY error condition, but no EISDIR or ENOSYS.
 .\" Also AIX and HP-UX document EBUSY (attempt is made
 .\" to enable accounting when it is already enabled), as does Solaris
index 56fc6d198d21ebdab271dd34a442cecc51639b70..10120c9413312ccf3317992fe4faa9fd009d2107 100644 (file)
@@ -208,10 +208,10 @@ and the
 started with a period (\[aq].\[aq]).
 Keyrings with descriptions (names)
 that begin with a period are reserved to the implementation.
-.SH VERSIONS
-This system call first appeared in Linux 2.6.10.
 .SH STANDARDS
-This system call is a nonstandard Linux extension.
+Linux.
+.SH HISTORY
+Linux 2.6.10.
 .SH NOTES
 glibc does not provide a wrapper for this system call.
 A wrapper is provided in the
index 155a4e2447aba740eb01e0296f42a1dbccc0c42f..523347de23edd2d6a2e4e559bbc56de541747c43 100644 (file)
@@ -548,13 +548,11 @@ T}        Thread safety   MT-Safe
 .TE
 .sp 1
 .SH STANDARDS
-None of these interfaces is described in POSIX.1
-.PP
+.TP
 .BR adjtimex ()
-and
+.TQ
 .BR clock_adjtime ()
-are Linux-specific and should not be used in programs
-intended to be portable.
+Linux.
 .PP
 The preferred API for the NTP daemon is
 .BR ntp_adjtime ().
index 43c01a7a7b6a8ea9ddfaa8d589592d1b399fab8c..dbc97b6327d07a689c68a5ef4315ceab6780399b 100644 (file)
@@ -40,7 +40,9 @@ returns the number of seconds remaining until any previously scheduled
 alarm was due to be delivered, or zero if there was no previously
 scheduled alarm.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH NOTES
 .BR alarm ()
 and
index 8903cbe06ebe297e36c4d20bbe0cc7e546f36499..1e470c61993e73ca735a545caf23f81fafffa69c 100644 (file)
@@ -114,10 +114,11 @@ This can be read and written.
 Gives info on the number of configured hugetlb pages and on their size
 in the three variables HugePages_Total, HugePages_Free, Hugepagesize.
 .SH STANDARDS
-These extinct system calls were specific to Linux on Intel processors.
-.SH NOTES
+Linux on Intel processors.
+.SH HISTORY
 These system calls are gone;
 they existed only in Linux 2.5.36 through to Linux 2.5.54.
+.SH NOTES
 Now the hugetlbfs filesystem can be used instead.
 Memory backed by huge pages (if the CPU supports them) is obtained by
 using
index 0a82e810052bd559b5051ba26b7a65e08f034b02..edb94989b3feac99abdfc95818efd38c7f8b0ad6 100644 (file)
@@ -133,9 +133,7 @@ is outside the process address space.
 .\" .SH AUTHOR
 .\" Man page written by Andi Kleen.
 .SH STANDARDS
-.BR arch_prctl ()
-is a Linux/x86-64 extension and should not be used in programs intended
-to be portable.
+Linux/x86-64.
 .SH NOTES
 .BR arch_prctl ()
 is supported only on Linux/x86-64 for 64-bit programs currently.
index 6bc8442ad9d0bca345357b1a49020f848e8aefb3..50b45084a75c5c95ce2e09bd9825380471f19514 100644 (file)
@@ -93,12 +93,10 @@ or to write an invalid value to a parameter.
 Caller does not have the
 .B CAP_SYS_ADMIN
 capability.
-.SH VERSIONS
-Since glibc 2.23, glibc no longer supports this obsolete system call.
 .SH STANDARDS
-.BR bdflush ()
-is Linux-specific and should not be used in programs
-intended to be portable.
+Linux.
+.SH HISTORY
+Since glibc 2.23, glibc no longer supports this obsolete system call.
 .SH SEE ALSO
 .BR sync (1),
 .BR fsync (2),
index 47ca62f32fa0eb37dc74bebbf039a7cbc4049649..1f635cb83c80583892445c3504c68ac9984b0b54 100644 (file)
@@ -185,7 +185,9 @@ A component of the path prefix is not a directory.
 .B EROFS
 The socket inode would reside on a read-only filesystem.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.4BSD
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.4BSD
 .RB ( bind ()
 first appeared in 4.2BSD).
 .\" SVr4 documents an additional
index 445038e6a40700f1268f16b0cc32ab3b48064451..a5d08703a337f296623607e4789caf3d81d6f5ab 100644 (file)
@@ -1052,14 +1052,10 @@ The call was made without sufficient privilege
 (without the
 .B CAP_SYS_ADMIN
 capability).
-.SH VERSIONS
-The
-.BR bpf ()
-system call first appeared in Linux 3.18.
 .SH STANDARDS
-The
-.BR bpf ()
-system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 3.18.
 .SH NOTES
 Prior to Linux 4.4, all
 .BR bpf ()
index 31c167c56955e9089451b1bfaacea45a3d2ac0aa..42b32a21ae1e6c3398eee799a20c932766646753 100644 (file)
@@ -95,6 +95,8 @@ is returned, and
 is set to
 .BR ENOMEM .
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD; SUSv1, marked LEGACY in SUSv2, removed in POSIX.1-2001.
 .\"
 .\" .BR brk ()
index 6d44e8d6a8702d31d31cf269c1df63e7bccbca79..aa2ea6e4541e96e485c4ad895cb3437a408ec206 100644 (file)
@@ -61,20 +61,13 @@ is not one of
 or
 .B BCACHE
 (but see BUGS).
-.SH STANDARDS
-Historically, this system call was available on all MIPS UNIX variants
-including RISC/os, IRIX, Ultrix, NetBSD, OpenBSD, and FreeBSD
-(and also on some non-UNIX MIPS operating systems), so that
-the existence of this call in MIPS operating systems is a de-facto
-standard.
-.SS Caveat
+.SH VERSIONS
 .BR cacheflush ()
 should not be used in programs intended to be portable.
 On Linux, this call first appeared on the MIPS architecture,
 but nowadays, Linux provides a
 .BR cacheflush ()
 system call on some other architectures, but with different arguments.
-.SH NOTES
 .SS Architecture-specific variants
 glibc provides a wrapper for this system call,
 with the prototype shown in SYNOPSIS,
@@ -127,6 +120,12 @@ the prototype for this built-in function uses
 instead of
 .I void *
 for the parameters.
+.SH STANDARDS
+Historically, this system call was available on all MIPS UNIX variants
+including RISC/os, IRIX, Ultrix, NetBSD, OpenBSD, and FreeBSD
+(and also on some non-UNIX MIPS operating systems), so that
+the existence of this call in MIPS operating systems is a de-facto
+standard.
 .SH BUGS
 Linux kernels older than Linux 2.6.11 ignore the
 .I addr
index 909f8bfe0de0744bc59e3c3b28269cc472c9022b..68d0ab672c455afb90bb73b89e80b18202969de8 100644 (file)
@@ -245,7 +245,7 @@ instead of 0.)
 .B ESRCH
 No such thread.
 .SH STANDARDS
-These system calls are Linux-specific.
+Linux.
 .SH NOTES
 The portable interface to the capability querying and setting
 functions is provided by the
index 0bbff4e8784267376e834e942b234487f594eafc..9224d336e88d2b08d5e3d89d8f341f270df8dcb3 100644 (file)
@@ -109,7 +109,9 @@ is not a valid file descriptor.
 .I fd
 does not refer to a directory.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.4BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.4BSD.
 .SH NOTES
 The current working directory is the starting point for interpreting
 relative pathnames (those not starting with \[aq]/\[aq]).
index 8b5db74ed7e356543b6c47c564fa86fea973c6e2..8903901d793a67880edce825a01f380c7a2260dd 100644 (file)
@@ -300,17 +300,6 @@ The file is marked immutable or append-only.
 .B EROFS
 The named file resides on a read-only filesystem.
 .SH VERSIONS
-.BR fchmodat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
-.SH STANDARDS
-.BR chmod (),
-.BR fchmod ():
-4.4BSD, SVr4, POSIX.1-2001i, POSIX.1-2008.
-.PP
-.BR fchmodat ():
-POSIX.1-2008.
-.SH NOTES
 .SS C library/kernel differences
 The GNU C library
 .BR fchmodat ()
@@ -334,6 +323,19 @@ glibc constructs a pathname based on the symbolic link in
 that corresponds to the
 .I dirfd
 argument.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR chmod ()
+.TQ
+.BR fchmod ()
+4.4BSD, SVr4, POSIX.1-2001.
+.TP
+.BR fchmodat ()
+POSIX.1-2008.
+Linux 2.6.16,
+glibc 2.4.
 .SH SEE ALSO
 .BR chmod (1),
 .BR chown (2),
index d66b66f544cb3302719fa43532f6a7f7ea09cad7..fe1906b7d776a3d1a04449b96b6af96da962144e 100644 (file)
@@ -278,15 +278,6 @@ The file is marked immutable or append-only.
 .B EROFS
 The named file resides on a read-only filesystem.
 .SH VERSIONS
-.BR fchownat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
-.SH STANDARDS
-.BR chown (),
-.BR fchown (),
-.BR lchown ():
-4.4BSD, SVr4, POSIX.1-2001, POSIX.1-2008.
-.PP
 The 4.4BSD version can be
 used only by the superuser (that is, ordinary users cannot give away files).
 .\" chown():
@@ -295,9 +286,21 @@ used only by the superuser (that is, ordinary users cannot give away files).
 .\" fchown():
 .\" SVr4 documents additional EINVAL, EIO, EINTR, and ENOLINK
 .\" error conditions.
-.PP
-.BR fchownat ():
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR chown ()
+.TQ
+.BR fchown ()
+.TQ
+.BR lchown ()
+4.4BSD, SVr4, POSIX.1-2001.
+.TP
+.BR fchownat ()
 POSIX.1-2008.
+Linux 2.6.16,
+glibc 2.4.
 .SH NOTES
 .SS Ownership of new files
 When a new file is created (by, for example,
index 5f24ec4f01aa8fe7793b053eb7c86b7d42731805..9e99b1bae5139696f9f7af18399cebbc5d227844 100644 (file)
@@ -136,6 +136,8 @@ is not a directory.
 .B EPERM
 The caller has insufficient privilege.
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr4, 4.4BSD, SUSv2 (marked LEGACY).
 This function is not part of POSIX.1-2001.
 .\" SVr4 documents additional EINTR, ENOLINK and EMULTIHOP error conditions.
index ae514e622e1c177d303ae54a0617bc5885678488..86a0e9afeee4baae57744b1e73eb86e5863ab8a7 100644 (file)
@@ -327,25 +327,6 @@ T} Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-These system calls first appeared in Linux 2.6.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SUSv2.
-.PP
-On POSIX systems on which these functions are available, the symbol
-.B _POSIX_TIMERS
-is defined in \fI<unistd.h>\fP to a value greater than 0.
-The symbols
-.BR _POSIX_MONOTONIC_CLOCK ,
-.BR _POSIX_CPUTIME ,
-.B _POSIX_THREAD_CPUTIME
-indicate that
-.BR CLOCK_MONOTONIC ,
-.BR CLOCK_PROCESS_CPUTIME_ID ,
-.B CLOCK_THREAD_CPUTIME_ID
-are available.
-(See also
-.BR sysconf (3).)
-.SH NOTES
 POSIX.1 specifies the following:
 .RS
 .PP
@@ -370,12 +351,32 @@ clocks using
 On Linux, these clocks are not settable
 (i.e., no process has "appropriate privileges").
 .\" See http://bugzilla.kernel.org/show_bug.cgi?id=11972
-.\"
 .SS C library/kernel differences
 On some architectures, an implementation of
 .BR clock_gettime ()
 is provided in the
 .BR vdso (7).
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SUSv2.
+Linux 2.6.
+.PP
+On POSIX systems on which these functions are available, the symbol
+.B _POSIX_TIMERS
+is defined in \fI<unistd.h>\fP to a value greater than 0.
+The symbols
+.BR _POSIX_MONOTONIC_CLOCK ,
+.BR _POSIX_CPUTIME ,
+.B _POSIX_THREAD_CPUTIME
+indicate that
+.BR CLOCK_MONOTONIC ,
+.BR CLOCK_PROCESS_CPUTIME_ID ,
+.B CLOCK_THREAD_CPUTIME_ID
+are available.
+(See also
+.BR sysconf (3).)
+POSIX.1-2008 makes thes APIs mandatory.
 .\"
 .SS Historical note for SMP systems
 Before Linux added kernel support for
index 5da8d15699c25fee510b2e7e74bceb15d3db98f9..38abca6deef5f8d263218a64bb2adb8ed9d4e0f4 100644 (file)
@@ -172,13 +172,12 @@ is not a permitted value for
 .B ENOTSUP
 The kernel does not support sleeping against this
 .IR clockid .
-.SH VERSIONS
-The
-.BR clock_nanosleep ()
-system call first appeared in Linux 2.6.
-Support is available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+Linux 2.6,
+glibc 2.1.
 .SH NOTES
 If the interval specified in
 .I request
index be802a2800bec96c072cd84fbc389b8c47f452fe..42ee3fee8b3bdc710a13c558ff62b4107d724378 100644 (file)
@@ -1553,25 +1553,7 @@ See the discussion of the
 .B ENOSPC
 error above.
 .SH VERSIONS
-The
-.BR clone3 ()
-system call first appeared in Linux 5.3.
-.\" There is no entry for
-.\" .BR clone ()
-.\" in libc5.
-.\" glibc2 provides
-.\" .BR clone ()
-.\" as described in this manual page.
-.SH STANDARDS
-These system calls
-are Linux-specific and should not be used in programs
-intended to be portable.
-.SH NOTES
-One use of these systems calls
-is to implement threads: multiple flows of control in a program that
-run concurrently in a shared address space.
-.PP
-Note that the glibc
+The glibc
 .BR clone ()
 wrapper function makes some changes
 in the memory pointed to by
@@ -1587,31 +1569,10 @@ is used to recursively create children,
 do not use the buffer employed for the parent's stack
 as the stack of the child.
 .PP
-The
-.BR kcmp (2)
-system call can be used to test whether two processes share various
-resources such as a file descriptor table,
-System V semaphore undo operations, or a virtual address space.
-.PP
-Handlers registered using
-.BR pthread_atfork (3)
-are not executed during a clone call.
-.PP
-In the Linux 2.4.x series,
-.B CLONE_THREAD
-generally does not make the parent of the new thread the same
-as the parent of the calling process.
-However, from Linux 2.4.7 to Linux 2.4.18 the
-.B CLONE_THREAD
-flag implied the
-.B CLONE_PARENT
-flag (as in Linux 2.6.0 and later).
-.PP
 On i386,
 .BR clone ()
 should not be called through vsyscall, but directly through
 .IR "int $0x80" .
-.\"
 .SS C library/kernel differences
 The raw
 .BR clone ()
@@ -1748,7 +1709,29 @@ and
 .I stack_size
 specifies the size of the stack pointed to by
 .IR stack_base .
+.SH STANDARDS
+Linux.
+.SH HISTORY
+.TP
+.BR clone3 ()
+Linux 5.3.
+.\" There is no entry for
+.\" .BR clone ()
+.\" in libc5.
+.\" glibc2 provides
+.\" .BR clone ()
+.\" as described in this manual page.
 .SS Linux 2.4 and earlier
+In the Linux 2.4.x series,
+.B CLONE_THREAD
+generally does not make the parent of the new thread the same
+as the parent of the calling process.
+However, from Linux 2.4.7 to Linux 2.4.18 the
+.B CLONE_THREAD
+flag implied the
+.B CLONE_PARENT
+flag (as in Linux 2.6.0 and later).
+.PP
 In Linux 2.4 and earlier,
 .BR clone ()
 does not take arguments
@@ -1756,6 +1739,20 @@ does not take arguments
 .IR tls ,
 and
 .IR child_tid .
+.SH NOTES
+One use of these systems calls
+is to implement threads: multiple flows of control in a program that
+run concurrently in a shared address space.
+.PP
+The
+.BR kcmp (2)
+system call can be used to test whether two processes share various
+resources such as a file descriptor table,
+System V semaphore undo operations, or a virtual address space.
+.PP
+Handlers registered using
+.BR pthread_atfork (3)
+are not executed during a clone call.
 .SH BUGS
 GNU C library versions 2.3.4 up to and including 2.24
 contained a wrapper function for
index 2fe28e003fb56a8f11ae4238e1b4c33a4858eb06..68211bc58c17ffaedbdb966b9b43064f1f06a20a 100644 (file)
@@ -81,7 +81,9 @@ See NOTES for a discussion of why
 .BR close ()
 should not be retried after an error.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .\" SVr4 documents an additional ENOLINK error condition.
 .SH NOTES
 A successful close does not guarantee that the data has been successfully
index 9dd7ccb8a99b0a76de666faf59cc97801f74b0aa..782719de08ea1bca69431b59b96d5e36689d6b45 100644 (file)
@@ -72,13 +72,12 @@ flag is specified.
 .TP
 .B ENOMEM
 Insufficient kernel memory was available.
-.SH VERSIONS
-.BR close_range ()
-first appeared in Linux 5.9.
-Library support was added in glibc 2.34.
 .SH STANDARDS
-.BR close_range ()
-is a nonstandard function that is also present on FreeBSD.
+None.
+.SH HISTORY
+FreeBSD.
+Linux 5.9,
+glibc 2.34.
 .SH NOTES
 .SS Closing all open file descriptors
 .\" 278a5fbaed89dacd04e9d052f4594ffd0e0585de
index abd480fef8feac21fa98ff0dbf63ad86670ac5d7..2db271180331105b6ada06423eebb38a4d9e34b7 100644 (file)
@@ -213,7 +213,9 @@ busy to accept new connections.
 Note that for IP sockets the timeout may
 be very long when syncookies are enabled on the server.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.4BSD,
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.4BSD,
 .RB (connect ()
 first appeared in 4.2BSD).
 .\" SVr4 documents the additional
@@ -229,11 +231,6 @@ first appeared in 4.2BSD).
 .\" It also
 .\" documents many additional error conditions not described here.
 .SH NOTES
-For background on the
-.I socklen_t
-type, see
-.BR accept (2).
-.PP
 If
 .BR connect ()
 fails, consider the state of the socket as unspecified.
index 34cd565177ab492206c374c75e8249ad4d0ec6b6..1bade7bf730b813b4f6841b3907c858a492187df 100644 (file)
@@ -185,12 +185,6 @@ are not on the same filesystem,
 and the source and target filesystems are not of the same type,
 or do not support cross-filesystem copy.
 .SH VERSIONS
-The
-.BR copy_file_range ()
-system call first appeared in Linux 4.5, but glibc 2.27 provides a user-space
-emulation when it is not available.
-.\" https://sourceware.org/git/?p=glibc.git;a=commit;f=posix/unistd.h;h=bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f
-.PP
 A major rework of the kernel implementation occurred in Linux 5.3.
 Areas of the API that weren't clearly defined were clarified and the API bounds
 are much more strictly checked than on earlier kernels.
@@ -204,9 +198,12 @@ See BUGS for behavior prior to Linux 5.19.
 Applications should target the behaviour and requirements of Linux 5.19,
 that was also backported to earlier stable kernels.
 .SH STANDARDS
-The
-.BR copy_file_range ()
-system call is a nonstandard Linux and GNU extension.
+Linux, GNU.
+.SH HISTORY
+Linux 4.5,
+but glibc 2.27 provides a user-space
+emulation when it is not available.
+.\" https://sourceware.org/git/?p=glibc.git;a=commit;f=posix/unistd.h;h=bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f
 .SH NOTES
 If
 .I fd_in
index b9163ec1124e7d1ab719eae44de3d80794ad25af..2239f05cdd1c37968d107ccad49fe46cfd88890f 100644 (file)
@@ -53,14 +53,12 @@ The caller was not privileged
 (did not have the
 .B CAP_SYS_MODULE
 capability).
-.SH VERSIONS
-This system call is present only up until Linux 2.4;
-it was removed in Linux 2.6.
-.\" Removed in Linux 2.5.48
 .SH STANDARDS
-.BR create_module ()
-is Linux-specific.
-.SH NOTES
+Linux.
+.SH HISTORY
+Removed in Linux 2.6.
+.\" Removed in Linux 2.5.48
+.PP
 This obsolete system call is not supported by glibc.
 No declaration is provided in glibc headers, but, through a quirk of history,
 glibc versions before glibc 2.23 did export an ABI for this system call.
index 0e0a67596a46bdd31008b701a43e04e6780bcb73..99c26c5ef53fb9cf8f8a8c1e91b6d14b59d79883 100644 (file)
@@ -160,9 +160,8 @@ but the reference count of this module is nonzero and
 was not specified in
 .IR flags .
 .SH STANDARDS
-.BR delete_module ()
-is Linux-specific.
-.SH NOTES
+Linux.
+.SH HISTORY
 The
 .BR delete_module ()
 system call is not supported by glibc.
@@ -173,16 +172,6 @@ it is (before glibc 2.23) sufficient to
 manually declare the interface in your code;
 alternatively, you can invoke the system call using
 .BR syscall (2).
-.PP
-The uninterruptible sleep that may occur if
-.B O_NONBLOCK
-is omitted from
-.I flags
-is considered undesirable, because the sleeping process is left
-in an unkillable state.
-As at Linux 3.7, specifying
-.B O_NONBLOCK
-is optional, but in future kernels it is likely to become mandatory.
 .SS Linux 2.4 and earlier
 In Linux 2.4 and earlier, the system call took only one argument:
 .PP
@@ -197,6 +186,16 @@ Some further details of differences in the behavior of
 in Linux 2.4 and earlier are
 .I not
 currently explained in this manual page.
+.SH NOTES
+The uninterruptible sleep that may occur if
+.B O_NONBLOCK
+is omitted from
+.I flags
+is considered undesirable, because the sleeping process is left
+in an unkillable state.
+As at Linux 3.7, specifying
+.B O_NONBLOCK
+is optional, but in future kernels it is likely to become mandatory.
 .SH SEE ALSO
 .BR create_module (2),
 .BR init_module (2),
index af291c3ec3e05d8933fafbfe6285d23e8dc009db..f69922be45cbd105f1e18e20d2aff0662ae415c3 100644 (file)
@@ -197,20 +197,28 @@ The per-process limit on the number of open file descriptors has been reached
 .B RLIMIT_NOFILE
 in
 .BR getrlimit (2)).
-.SH VERSIONS
-.BR dup3 ()
-was added in Linux 2.6.27;
-glibc support is available since glibc 2.9.
 .SH STANDARDS
-.BR dup (),
-.BR dup2 ():
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
-.PP
+.TP
+.BR dup ()
+.TQ
+.BR dup2 ()
+POSIX.1-2008.
+.TP
 .BR dup3 ()
-is Linux-specific.
+Linux.
+.SH HISTORY
+.TP
+.BR dup ()
+.TQ
+.BR dup2 ()
+POSIX.1-2001, SVr4, 4.3BSD.
 .\" SVr4 documents additional
 .\" EINTR and ENOLINK error conditions.  POSIX.1 adds EINTR.
 .\" The EBUSY return is Linux-specific.
+.TP
+.BR dup3 ()
+Linux 2.6.27,
+glibc 2.9.
 .SH NOTES
 The error returned by
 .BR dup2 ()
index d7d92d917bca5fe51124d9628464d8924c401863..4d3566a791a2bef380c925db823d1d95e34a7cb1 100644 (file)
@@ -28,7 +28,7 @@ creates a new
 instance.
 Since Linux 2.6.8, the
 .I size
-argument is ignored, but must be greater than zero; see NOTES.
+argument is ignored, but must be greater than zero; see HISTORY.
 .PP
 .BR epoll_create ()
 returns a file descriptor referring to the new epoll instance.
@@ -98,22 +98,20 @@ The system-wide limit on the total number of open files has been reached.
 .TP
 .B ENOMEM
 There was insufficient memory to create the kernel object.
-.SH VERSIONS
+.SH STANDARDS
+Linux.
+.SH HISTORY
+.TP
 .BR epoll_create ()
-was added in Linux 2.6.
-Library support is provided in glibc 2.3.2.
-.PP
+Linux 2.6,
+glibc 2.3.2.
 .\" To be precise: kernel 2.5.44.
 .\" The interface should be finalized by Linux kernel 2.5.66.
+.TP
 .BR epoll_create1 ()
-was added in Linux 2.6.27.
-Library support is provided in glibc 2.9.
-.SH STANDARDS
-.BR epoll_create ()
-and
-.BR epoll_create1 ()
-are Linux-specific.
-.SH NOTES
+Linux 2.6.27,
+glibc 2.9.
+.PP
 In the initial
 .BR epoll_create ()
 implementation, the
index f02e5ff45d3cef295e85dc1f524ad90fdacfda01..afbafee1101c2cff5b9fa022a47262b753346a36 100644 (file)
@@ -369,15 +369,13 @@ does not support
 This error can occur if
 .I fd
 refers to, for example, a regular file or a directory.
-.SH VERSIONS
-.BR epoll_ctl ()
-was added to in Linux 2.6.
-.\" To be precise: kernel 2.5.44.
-.\" The interface should be finalized by Linux kernel 2.5.66.
-Library support is provided in glibc 2.3.2.
 .SH STANDARDS
-.BR epoll_ctl ()
-is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6,
+.\" To be precise: Linux 2.5.44.
+.\" The interface should be finalized by Linux 2.5.66.
+glibc 2.3.2.
 .SH NOTES
 The
 .B epoll
index 1620cff9dfcc8aa879735e17351e0859db7f4e6a..7c79afdfaada0efa8d0b9eef5344529301517152 100644 (file)
@@ -207,25 +207,22 @@ is not an
 file descriptor, or
 .I maxevents
 is less than or equal to zero.
-.SH VERSIONS
+.SH STANDARDS
+Linux.
+.SH HISTORY
+.TP
 .BR epoll_wait ()
-was added in Linux 2.6.
-.\" To be precise: kernel 2.5.44.
+Linux 2.6,
+.\" To be precise: Linux 2.5.44.
 .\" The interface should be finalized by Linux 2.5.66.
-Library support is provided in glibc 2.3.2.
-.PP
+glibc 2.3.2.
+.TP
 .BR epoll_pwait ()
-was added in Linux 2.6.19.
-Library support is provided in glibc 2.6.
-.PP
-.BR epoll_pwait2 ()
-was added in Linux 5.11.
-.SH STANDARDS
-.BR epoll_wait (),
-.BR epoll_pwait (),
-and
+Linux 2.6.19,
+glibc 2.6.
+.TP
 .BR epoll_pwait2 ()
-are Linux-specific.
+Linux 5.11.
 .SH NOTES
 While one thread is blocked in a call to
 .BR epoll_wait (),
index 169ca9d1cde624ca545d440687d42bdacb5141f5..9b7ab22b34a707a86188badedab1e388d752016a 100644 (file)
@@ -264,23 +264,54 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
+.SS C library/kernel differences
+There are two underlying Linux system calls:
+.BR eventfd ()
+and the more recent
+.BR eventfd2 ().
+The former system call does not implement a
+.I flags
+argument.
+The latter system call implements the
+.I flags
+values described above.
+The glibc wrapper function will use
+.BR eventfd2 ()
+where it is available.
+.SS Additional glibc features
+The GNU C library defines an additional type,
+and two functions that attempt to abstract some of the details of
+reading and writing on an eventfd file descriptor:
+.PP
+.in +4n
+.EX
+typedef uint64_t eventfd_t;
+
+int eventfd_read(int fd, eventfd_t *value);
+int eventfd_write(int fd, eventfd_t value);
+.EE
+.in
+.PP
+The functions perform the read and write operations on an
+eventfd file descriptor,
+returning 0 if the correct number of bytes was transferred,
+or \-1 otherwise.
+.SH STANDARDS
+Linux, GNU.
+.SH HISTORY
+.TP
 .BR eventfd ()
-is available since Linux 2.6.22.
-Working support is provided since glibc 2.8.
+Linux 2.6.22,
+glibc 2.8.
 .\" eventfd() is in glibc 2.7, but reportedly does not build
-The
+.TP
 .BR eventfd2 ()
-system call (see NOTES) is available since Linux 2.6.27.
+Linux 2.6.27 (see VERSIONS).
 Since glibc 2.9, the
 .BR eventfd ()
 wrapper will employ the
 .BR eventfd2 ()
 system call, if it is supported by the kernel.
-.SH STANDARDS
-.BR eventfd ()
-and
-.BR eventfd2 ()
-are Linux-specific.
 .SH NOTES
 Applications can use an eventfd file descriptor instead of a pipe (see
 .BR pipe (2))
@@ -320,39 +351,6 @@ directory.
 See
 .BR proc (5)
 for further details.
-.\"
-.SS C library/kernel differences
-There are two underlying Linux system calls:
-.BR eventfd ()
-and the more recent
-.BR eventfd2 ().
-The former system call does not implement a
-.I flags
-argument.
-The latter system call implements the
-.I flags
-values described above.
-The glibc wrapper function will use
-.BR eventfd2 ()
-where it is available.
-.SS Additional glibc features
-The GNU C library defines an additional type,
-and two functions that attempt to abstract some of the details of
-reading and writing on an eventfd file descriptor:
-.PP
-.in +4n
-.EX
-typedef uint64_t eventfd_t;
-
-int eventfd_read(int fd, eventfd_t *value);
-int eventfd_write(int fd, eventfd_t value);
-.EE
-.in
-.PP
-The functions perform the read and write operations on an
-eventfd file descriptor,
-returning 0 if the correct number of bytes was transferred,
-or \-1 otherwise.
 .SH EXAMPLES
 The following program creates an eventfd file descriptor
 and then forks to create a child process.
index 819cba3c1325c0bc03115cb3cd07cef2f623f7a8..20804ead736655dbfa0ebbad7a4e026c886ee57c 100644 (file)
@@ -552,44 +552,9 @@ See
 .TP
 .B ETXTBSY
 The specified executable was open for writing by one or more processes.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+.SH VERSIONS
 POSIX does not document the #! behavior, but it exists
 (with some variations) on other UNIX systems.
-.\" SVr4 documents additional error
-.\" conditions EAGAIN, EINTR, ELIBACC, ENOLINK, EMULTIHOP; POSIX does not
-.\" document ETXTBSY, EPERM, EFAULT, ELOOP, EIO, ENFILE, EMFILE, EINVAL,
-.\" EISDIR or ELIBBAD error conditions.
-.SH NOTES
-One sometimes sees
-.BR execve ()
-(and the related functions described in
-.BR exec (3))
-described as "executing a
-.I new
-process" (or similar).
-This is a highly misleading description:
-there is no new process;
-many attributes of the calling process remain unchanged
-(in particular, its PID).
-All that
-.BR execve ()
-does is arrange for an existing process (the calling process)
-to execute a new program.
-.PP
-Set-user-ID and set-group-ID processes can not be
-.BR ptrace (2)d.
-.PP
-The result of mounting a filesystem
-.I nosuid
-varies across Linux kernel versions:
-some will refuse execution of set-user-ID and set-group-ID
-executables when this would
-give the user powers they did not have already (and return
-.BR EPERM ),
-some will just ignore the set-user-ID and set-group-ID bits and
-.BR exec ()
-successfully.
 .PP
 On Linux,
 .I argv
@@ -623,23 +588,6 @@ resource limit changes, then the value reported by
 will also change,
 to reflect the fact that the limit on space for holding
 command-line arguments and environment variables has changed.
-.PP
-In most cases where
-.BR execve ()
-fails, control returns to the original executable image,
-and the caller of
-.BR execve ()
-can then handle the error.
-However, in (rare) cases (typically caused by resource exhaustion),
-failure may occur past the point of no return:
-the original executable image has been torn down,
-but the new image could not be completely built.
-In such cases, the kernel kills the process with a
-.\" commit 19d860a140beac48a1377f179e693abe86a9dac9
-.B SIGSEGV
-.RB ( SIGKILL
-until Linux 3.17)
-signal.
 .\"
 .SS Interpreter scripts
 The kernel imposes a maximum length on the text that follows the
@@ -671,15 +619,72 @@ are used to delimit the arguments.
 .PP
 Linux (like most other modern UNIX systems)
 ignores the set-user-ID and set-group-ID bits on scripts.
-.\"
-.\" .SH BUGS
-.\" Some Linux versions have failed to check permissions on ELF
-.\" interpreters.  This is a security hole, because it allows users to
-.\" open any file, such as a rewinding tape device, for reading.  Some
-.\" Linux versions have also had other security holes in
-.\" .BR execve ()
-.\" that could be exploited for denial of service by a suitably crafted
-.\" ELF binary. There are no known problems with Linux 2.0.34 or Linux 2.2.15.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
+.\" SVr4 documents additional error
+.\" conditions EAGAIN, EINTR, ELIBACC, ENOLINK, EMULTIHOP; POSIX does not
+.\" document ETXTBSY, EPERM, EFAULT, ELOOP, EIO, ENFILE, EMFILE, EINVAL,
+.\" EISDIR or ELIBBAD error conditions.
+.PP
+With UNIX\ V6, the argument list of an
+.BR exec ()
+call was ended by 0,
+while the argument list of
+.I main
+was ended by \-1.
+Thus, this argument list was not directly usable in a further
+.BR exec ()
+call.
+Since UNIX\ V7, both are NULL.
+.SH NOTES
+One sometimes sees
+.BR execve ()
+(and the related functions described in
+.BR exec (3))
+described as "executing a
+.I new
+process" (or similar).
+This is a highly misleading description:
+there is no new process;
+many attributes of the calling process remain unchanged
+(in particular, its PID).
+All that
+.BR execve ()
+does is arrange for an existing process (the calling process)
+to execute a new program.
+.PP
+Set-user-ID and set-group-ID processes can not be
+.BR ptrace (2)d.
+.PP
+The result of mounting a filesystem
+.I nosuid
+varies across Linux kernel versions:
+some will refuse execution of set-user-ID and set-group-ID
+executables when this would
+give the user powers they did not have already (and return
+.BR EPERM ),
+some will just ignore the set-user-ID and set-group-ID bits and
+.BR exec ()
+successfully.
+.PP
+In most cases where
+.BR execve ()
+fails, control returns to the original executable image,
+and the caller of
+.BR execve ()
+can then handle the error.
+However, in (rare) cases (typically caused by resource exhaustion),
+failure may occur past the point of no return:
+the original executable image has been torn down,
+but the new image could not be completely built.
+In such cases, the kernel kills the process with a
+.\" commit 19d860a140beac48a1377f179e693abe86a9dac9
+.B SIGSEGV
+.RB ( SIGKILL
+until Linux 3.17)
+signal.
 .SS execve() and EAGAIN
 A more detailed explanation of the
 .B EAGAIN
@@ -755,17 +760,6 @@ process flag.
 The flag is also cleared if a subsequent call to
 .BR fork (2)
 by this process succeeds.
-.SS Historical
-With UNIX\ V6, the argument list of an
-.BR exec ()
-call was ended by 0,
-while the argument list of
-.I main
-was ended by \-1.
-Thus, this argument list was not directly usable in a further
-.BR exec ()
-call.
-Since UNIX\ V7, both are NULL.
 .\"
 .\" .SH BUGS
 .\" Some Linux versions have failed to check permissions on ELF
index a25b3c570070a772d1795f1579cedb6200ad4d1d..2dc45c0fdedfe6d9a32ec7c4d624d9fa4a3cb1a9 100644 (file)
@@ -145,14 +145,11 @@ See BUGS.
 is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
-.SH VERSIONS
-.BR execveat ()
-was added in Linux 3.19.
-Library support was added in glibc 2.34.
 .SH STANDARDS
-The
-.BR execveat ()
-system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 3.19,
+glibc 2.34.
 .SH NOTES
 In addition to the reasons explained in
 .BR openat (2),
index f8b56d3d62a08abe711c7980728575636c9e1a57..073b5135bec0b16012705e3a8dbd34aa5c79ab7b 100644 (file)
@@ -26,10 +26,10 @@ This system call terminates all threads
 in the calling process's thread group.
 .SH RETURN VALUE
 This system call does not return.
-.SH VERSIONS
-This call is present since Linux 2.5.35.
 .SH STANDARDS
-This call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.5.35.
 .SH NOTES
 Since glibc 2.3, this is the system call invoked when the
 .BR _exit (2)
index 209e1ec8b48d4c02f930e82012649c418cf2315f..b9a788e4a1f54d8a7702e4b49e95ecea1c304573 100644 (file)
@@ -463,17 +463,17 @@ or
 but the file referred to by
 .I fd
 is currently being executed.
-.SH VERSIONS
+.SH STANDARDS
+Linux.
+.SH HISTORY
+.TP
 .BR fallocate ()
-is available since Linux 2.6.23.
-Support is provided since glibc 2.10.
-The
+Linux 2.6.23,
+glibc 2.10.
+.TP
 .B FALLOC_FL_*
-flags are defined in glibc headers only since glibc 2.18.
+glibc 2.18.
 .\" See http://sourceware.org/bugzilla/show_bug.cgi?id=14964
-.SH STANDARDS
-.BR fallocate ()
-is Linux-specific.
 .SH SEE ALSO
 .BR fallocate (1),
 .BR ftruncate (2),
index e9c65c2806261473f760a89fe3b29db5dc6b2cb5..65d73565fa872f9a2817aff4b77e44d2b4338b51 100644 (file)
@@ -460,9 +460,6 @@ The fanotify API is available only if the kernel was configured with
 .B EPERM
 The operation is not permitted because the caller lacks a required capability.
 .SH VERSIONS
-.BR fanotify_init ()
-was introduced in Linux 2.6.36 and enabled in Linux 2.6.37.
-.PP
 Prior to Linux 5.13,
 .\" commit 7cea2a3c505e87a9d6afc78be4a7f7be636a73a7
 calling
@@ -516,7 +513,10 @@ A user will also not receive the pid that generated the event, unless the
 listening process itself generated the event.
 .RE
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.37.
+.\" was introduced in Linux 2.6.36 and enabled in Linux 2.6.37.
 .SH BUGS
 The following bug was present before Linux 3.18:
 .IP \[bu] 3
index 5577a3888d7eea54735cc4015d50ca56d5e895ed..3f85deb23bf229281195acc24f3eafbaee10197e 100644 (file)
@@ -761,11 +761,11 @@ which uses a different
 than its root superblock.
 This error can be returned only with an fanotify group that identifies
 filesystem objects by file handles.
-.SH VERSIONS
-.BR fanotify_mark ()
-was introduced in Linux 2.6.36 and enabled in Linux 2.6.37.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.37.
+.\" was introduced in Linux 2.6.36 and enabled in Linux 2.6.37.
 .SH NOTES
 .SS FAN_OPEN_EXEC and FAN_OPEN_EXEC_PERM
 When using either
index 3ec52dc4dc0344ea9dbb17186ac257a8dd309470..7bb909912416adb64a5784adce5093f8f5203e7c 100644 (file)
@@ -1810,38 +1810,7 @@ was not open for writing
 or the current set of seals on the file already includes
 .BR F_SEAL_SEAL .
 .SH STANDARDS
-SVr4, 4.3BSD, POSIX.1-2001.
-Only the operations
-.BR F_DUPFD ,
-.BR F_GETFD ,
-.BR F_SETFD ,
-.BR F_GETFL ,
-.BR F_SETFL ,
-.BR F_GETLK ,
-.BR F_SETLK ,
-and
-.B F_SETLKW
-are specified in POSIX.1-2001.
-.PP
-.B F_GETOWN
-and
-.B F_SETOWN
-are specified in POSIX.1-2001.
-(To get their definitions, define either
-.\" .BR _BSD_SOURCE ,
-.\" or
-.B _XOPEN_SOURCE
-with the value 500 or greater, or
-.B _POSIX_C_SOURCE
-with the value 200809L or greater.)
-.PP
-.B F_DUPFD_CLOEXEC
-is specified in POSIX.1-2008.
-(To get this definition, define
-.B _POSIX_C_SOURCE
-with the value 200809L or greater, or
-.B _XOPEN_SOURCE
-with the value 700 or greater.)
+POSIX.1-2008.
 .PP
 .BR F_GETOWN_EX ,
 .BR F_SETOWN_EX ,
@@ -1874,6 +1843,40 @@ and
 .B F_GET_SEALS
 are Linux-specific.
 .\" FIXME . Once glibc adds support, add a note about FTM requirements
+.SH HISTORY
+SVr4, 4.3BSD, POSIX.1-2001.
+.PP
+Only the operations
+.BR F_DUPFD ,
+.BR F_GETFD ,
+.BR F_SETFD ,
+.BR F_GETFL ,
+.BR F_SETFL ,
+.BR F_GETLK ,
+.BR F_SETLK ,
+and
+.B F_SETLKW
+are specified in POSIX.1-2001.
+.PP
+.B F_GETOWN
+and
+.B F_SETOWN
+are specified in POSIX.1-2001.
+(To get their definitions, define either
+.\" .BR _BSD_SOURCE ,
+.\" or
+.B _XOPEN_SOURCE
+with the value 500 or greater, or
+.B _POSIX_C_SOURCE
+with the value 200809L or greater.)
+.PP
+.B F_DUPFD_CLOEXEC
+is specified in POSIX.1-2008.
+(To get this definition, define
+.B _POSIX_C_SOURCE
+with the value 200809L or greater, or
+.B _XOPEN_SOURCE
+with the value 700 or greater.)
 .SH NOTES
 The errors returned by
 .BR dup2 (2)
index 42fc1c5952ba9c8f84c4e017c3429690a3023ac6..a136bcfe8d97cd43b7b34db3ae83ad1b1fac8420 100644 (file)
@@ -121,16 +121,7 @@ The kernel ran out of memory for allocating lock records.
 The file is locked and the
 .B LOCK_NB
 flag was selected.
-.SH STANDARDS
-4.4BSD (the
-.BR flock ()
-call first appeared in 4.2BSD).
-A version of
-.BR flock (),
-possibly implemented in terms of
-.BR fcntl (2),
-appears on most UNIX systems.
-.SH NOTES
+.SH VERSIONS
 Since Linux 2.0,
 .BR flock ()
 is implemented as a system call in its own right rather
@@ -153,38 +144,43 @@ and
 locks
 .I do
 interact with one another.)
-.PP
-.BR flock ()
-places advisory locks only; given suitable permissions on a file,
-a process is free to ignore the use of
+.SS CIFS details
+Up to Linux 5.4,
 .BR flock ()
-and perform I/O on the file.
+is not propagated over SMB.
+A file with such locks will not appear locked for remote clients.
 .PP
+Since Linux 5.5,
 .BR flock ()
-and
+locks are emulated with SMB byte-range locks on the entire file.
+Similarly to NFS, this means that
 .BR fcntl (2)
-locks have different semantics with respect to forked processes and
-.BR dup (2).
-On systems that implement
-.BR flock ()
-using
-.BR fcntl (2),
-the semantics of
+and
 .BR flock ()
-will be different from those described in this manual page.
+locks interact with one another.
+Another important side-effect is that the locks are not advisory anymore:
+any IO on a locked file will always fail with
+.B EACCES
+when done from a separate file descriptor.
+This difference originates from the design of locks in the SMB protocol,
+which provides mandatory locking semantics.
 .PP
-Converting a lock
-(shared to exclusive, or vice versa) is not guaranteed to be atomic:
-the existing lock is first removed, and then a new lock is established.
-Between these two steps,
-a pending lock request by another process may be granted,
-with the result that the conversion either blocks, or fails if
-.B LOCK_NB
-was specified.
-(This is the original BSD behavior,
-and occurs on many other implementations.)
-.\" Kernel 2.5.21 changed things a little: during lock conversion
-.\" it is now the highest priority process that will get the lock -- mtk
+Remote and mandatory locking semantics may vary with
+SMB protocol, mount options and server type.
+See
+.BR mount.cifs (8)
+for additional information.
+.SH STANDARDS
+BSD.
+.SH HISTORY
+4.4BSD (the
+.BR flock ()
+call first appeared in 4.2BSD).
+A version of
+.BR flock (),
+possibly implemented in terms of
+.BR fcntl (2),
+appears on most UNIX systems.
 .SS NFS details
 Up to Linux 2.6.11,
 .BR flock ()
@@ -222,32 +218,38 @@ see the discussion of the
 .I "local_lock"
 option in
 .BR nfs (5).
-.SS CIFS details
-Up to Linux 5.4,
+.SH NOTES
 .BR flock ()
-is not propagated over SMB.
-A file with such locks will not appear locked for remote clients.
+places advisory locks only; given suitable permissions on a file,
+a process is free to ignore the use of
+.BR flock ()
+and perform I/O on the file.
 .PP
-Since Linux 5.5,
 .BR flock ()
-locks are emulated with SMB byte-range locks on the entire file.
-Similarly to NFS, this means that
-.BR fcntl (2)
 and
+.BR fcntl (2)
+locks have different semantics with respect to forked processes and
+.BR dup (2).
+On systems that implement
 .BR flock ()
-locks interact with one another.
-Another important side-effect is that the locks are not advisory anymore:
-any IO on a locked file will always fail with
-.B EACCES
-when done from a separate file descriptor.
-This difference originates from the design of locks in the SMB protocol,
-which provides mandatory locking semantics.
+using
+.BR fcntl (2),
+the semantics of
+.BR flock ()
+will be different from those described in this manual page.
 .PP
-Remote and mandatory locking semantics may vary with
-SMB protocol, mount options and server type.
-See
-.BR mount.cifs (8)
-for additional information.
+Converting a lock
+(shared to exclusive, or vice versa) is not guaranteed to be atomic:
+the existing lock is first removed, and then a new lock is established.
+Between these two steps,
+a pending lock request by another process may be granted,
+with the result that the conversion either blocks, or fails if
+.B LOCK_NB
+was specified.
+(This is the original BSD behavior,
+and occurs on many other implementations.)
+.\" Kernel 2.5.21 changed things a little: during lock conversion
+.\" it is now the highest priority process that will get the lock -- mtk
 .SH SEE ALSO
 .BR flock (1),
 .BR close (2),
index 1b2498af74cee8ddeef029e907a6cfa8cd1e858d..15d23fef5e569f8c3c74706f94ed0d2a6245cd58 100644 (file)
@@ -259,14 +259,7 @@ hardware without a Memory-Management Unit).
 .\" commit 4a2c7a7837da1b91468e50426066d988050e4d56
 System call was interrupted by a signal and will be restarted.
 (This can be seen only during a trace.)
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
-.SH NOTES
-Under Linux,
-.BR fork ()
-is implemented using copy-on-write pages, so the only penalty that it incurs
-is the time and memory required to duplicate the parent's page tables,
-and to create a unique task structure for the child.
+.SH VERSIONS
 .SS C library/kernel differences
 Since glibc 2.3.3,
 .\" nptl/sysdeps/unix/sysv/linux/fork.c
@@ -291,6 +284,16 @@ The glibc wrapper invokes any fork handlers that have been
 established using
 .BR pthread_atfork (3).
 .\" and does some magic to ensure that getpid(2) returns the right value.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
+.SH NOTES
+Under Linux,
+.BR fork ()
+is implemented using copy-on-write pages, so the only penalty that it incurs
+is the time and memory required to duplicate the parent's page tables,
+and to create a unique task structure for the child.
 .SH EXAMPLES
 See
 .BR pipe (2)
index 9dc99a15a20e6ebaeaadcabab9b079af59d672c1..1043e6a1ba0fa88ca06c3d0e27febbf22e441a40 100644 (file)
@@ -142,9 +142,7 @@ space at the time of a
 .BR write (2)
 system call, and some previous write failed due to insufficient
 storage space.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
-.PP
+.SH VERSIONS
 On POSIX systems on which
 .BR fdatasync ()
 is available,
@@ -157,12 +155,16 @@ to a value greater than 0.
 .\" POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
 .\" -1: unavailable, 0: ask using sysconf().
 .\" glibc defines them to 1.
-.SH NOTES
+.PP
 On some UNIX systems (but not Linux),
 .I fd
 must be a
 .I writable
 file descriptor.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD.
 .PP
 In Linux 2.2 and earlier,
 .BR fdatasync ()
index cd52254bad1d175f03d2cd6e17b2b8f786757ae5..92eccde5b1aa149b1a44deba9fc9095919ef260a 100644 (file)
@@ -1738,9 +1738,10 @@ and the timeout expired before the operation completed.
 .\"
 .\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 .\"
-.SH VERSIONS
-Futexes were first made available in a stable kernel release
-with Linux 2.6.0.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.6.0.
 .PP
 Initial futex support was merged in Linux 2.5.7 but with different
 semantics from what was described above.
@@ -1748,19 +1749,6 @@ A four-argument system call with the semantics
 described in this page was introduced in Linux 2.5.40.
 A fifth argument was added in Linux 2.5.70,
 and a sixth argument was added in Linux 2.6.7.
-.SH STANDARDS
-This system call is Linux-specific.
-.SH NOTES
-Several higher-level programming abstractions are implemented via futexes,
-including POSIX semaphores and
-various POSIX threads synchronization mechanisms
-(mutexes, condition variables, read-write locks, and barriers).
-.\" TODO FIXME(Torvald) Above, we cite this section and claim it contains
-.\" details on the synchronization semantics; add the C11 equivalents
-.\" here (or whatever we find consensus for).
-.\"
-.\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-.\"
 .SH EXAMPLES
 The program below demonstrates use of futexes in a program where a parent
 process and a child process use a pair of futexes located inside a
index fc256082118a0a1a2695acff31ffd69bb76c8bb6..6b349ce8bb5559a84830512eb16a289f679911f3 100644 (file)
@@ -100,25 +100,26 @@ is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
 .SH VERSIONS
+.SS glibc
+If
+.I pathname
+is NULL, then the glibc
 .BR futimesat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
+wrapper function updates the times for the file referred to by
+.IR dirfd .
+.\" The Solaris futimesat() also has this strangeness.
 .SH STANDARDS
-This system call is nonstandard.
+None.
+.SH HISTORY
+Linux 2.6.16,
+glibc 2.4.
+.PP
 It was implemented from a specification that was proposed for POSIX.1,
 but that specification was replaced by the one for
 .BR utimensat (2).
 .PP
 A similar system call exists on Solaris.
 .SH NOTES
-.SS glibc notes
-If
-.I pathname
-is NULL, then the glibc
-.BR futimesat ()
-wrapper function updates the times for the file referred to by
-.IR dirfd .
-.\" The Solaris futimesat() also has this strangeness.
 .SH SEE ALSO
 .BR stat (2),
 .BR utimensat (2),
index 15e59d99ea272209a1970ded6ff657e69f7eb609..04f9e85e83f5433fa09f348ba7487d8ed4096f03 100644 (file)
@@ -55,14 +55,12 @@ There is only one possible error return:
 .B ENOSYS
 .BR get_kernel_syms ()
 is not supported in this version of the kernel.
-.SH VERSIONS
-This system call is present only up until Linux 2.4;
-it was removed in Linux 2.6.
-.\" Removed in Linux 2.5.48
 .SH STANDARDS
-.BR get_kernel_syms ()
-is Linux-specific.
-.SH NOTES
+Linux.
+.SH HISTORY
+Removed in Linux 2.6.
+.\" Removed in Linux 2.5.48
+.PP
 This obsolete system call is not supported by glibc.
 No declaration is provided in glibc headers, but, through a quirk of history,
 glibc versions before glibc 2.23 did export an ABI for this system call.
index e3b942f4c7bfd9bd7c3a13fb4e838067c4c86a20..d1c7c667eed85459007857a804521517aff85375 100644 (file)
@@ -235,12 +235,10 @@ or
 (And there are other
 .B EINVAL
 cases.)
-.SH VERSIONS
-The
-.BR get_mempolicy ()
-system call was added in Linux 2.6.7.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.7.
 .SH NOTES
 For information on library support, see
 .BR numa (7).
index 2ef34b7c3c150b0caf196d86cf79fc4769cee24c..629f6f15c64b061c3b78f6d7a81022f302e14b23 100644 (file)
@@ -64,24 +64,11 @@ is set to indicate the error.
 .TP
 .B EFAULT
 Arguments point outside the calling process's address space.
-.SH VERSIONS
-.BR getcpu ()
-was added in Linux 2.6.19 for x86-64 and i386.
-Library support was added in glibc 2.29
-(Earlier glibc versions did not provide a wrapper for this system call,
-necessitating the use of
-.BR syscall (2).)
 .SH STANDARDS
-.BR getcpu ()
-is Linux-specific.
-.SH NOTES
-Linux makes a best effort to make this call as fast as possible.
-(On some architectures, this is done via an implementation in the
-.BR vdso (7).)
-The intention of
-.BR getcpu ()
-is to allow programs to make optimizations with per-CPU data
-or for NUMA optimization.
+Linux.
+.SH HISTORY
+Linux 2.6.19 (x86-64 and i386),
+glibc 2.29.
 .\"
 .SS C library/kernel differences
 The kernel system call has a third argument:
@@ -148,6 +135,14 @@ migrating threads between CPUs, and so the argument is now ignored.
 .\" although in practice the scheduler's attempt to maintain
 .\" soft CPU affinity means that the information is unlikely to change
 .\" over the course of the caching interval.
+.SH NOTES
+Linux makes a best effort to make this call as fast as possible.
+(On some architectures, this is done via an implementation in the
+.BR vdso (7).)
+The intention of
+.BR getcpu ()
+is to allow programs to make optimizations with per-CPU data
+or for NUMA optimization.
 .SH SEE ALSO
 .BR mbind (2),
 .BR sched_setaffinity (2),
index 27beb7a66a12fb1ff0773b3cf7b43ecbaf95bb31..38024c33ab8c074fdf114a5ddba21b23bc929fd3 100644 (file)
@@ -198,19 +198,19 @@ No such directory.
 .B ENOTDIR
 File descriptor does not refer to a directory.
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr4.
 .\" SVr4 documents additional ENOLINK, EIO error conditions.
-.SH NOTES
-Library support for
+.TP
 .BR getdents64 ()
-was added in glibc 2.30;
+glibc 2.30.
+.SH NOTES
 glibc does not provide a wrapper for
 .BR getdents ();
 call
 .BR getdents ()
-(or
-.BR getdents64 ()
-on earlier glibc versions) using
+using
 .BR syscall (2).
 In that case you will need to define the
 .I linux_dirent
index c26cd368f5f0abd9a18b5d7ece832f337433020b..b5dd066e2c12918b556c59759f8c71ba8f3886d9 100644 (file)
@@ -98,14 +98,7 @@ is NULL or
 is longer than
 .I len
 bytes.
-.SH STANDARDS
-POSIX does not specify these calls.
-.\" But they appear on most systems...
-.SH NOTES
-Since Linux 1.0, the limit on the length of a domain name,
-including the terminating null byte, is 64 bytes.
-In older kernels, it was 8 bytes.
-.PP
+.SH VERSIONS
 On most Linux architectures (including x86),
 there is no
 .BR getdomainname ()
@@ -115,6 +108,13 @@ as a library function that returns a copy of the
 .I domainname
 field returned from a call to
 .BR uname (2).
+.SH STANDARDS
+None.
+.\" But they appear on most systems...
+.SH HISTORY
+Since Linux 1.0, the limit on the length of a domain name,
+including the terminating null byte, is 64 bytes.
+In older kernels, it was 8 bytes.
 .SH SEE ALSO
 .BR gethostname (2),
 .BR sethostname (2),
index c76495107ae4dd18829aa1c2e4ff8b99f135d1b3..6c771bff00d523071de6b91fdefa2ac709357549 100644 (file)
@@ -27,9 +27,27 @@ and never modify
 .\" https://www.austingroupbugs.net/view.php?id=511
 .\" 0000511: getuid and friends should not modify errno
 .IR errno .
+.SH VERSIONS
+On Alpha, instead of a pair of
+.BR getgid ()
+and
+.BR getegid ()
+system calls, a single
+.BR getxgid ()
+system call is provided, which returns a pair of real and effective GIDs.
+The glibc
+.BR getgid ()
+and
+.BR getegid ()
+wrapper functions transparently deal with this.
+See
+.BR syscall (2)
+for details regarding register mapping.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
-.SH NOTES
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD.
+.PP
 The original Linux
 .BR getgid ()
 and
@@ -45,22 +63,6 @@ The glibc
 and
 .BR getegid ()
 wrapper functions transparently deal with the variations across kernel versions.
-.PP
-On Alpha, instead of a pair of
-.BR getgid ()
-and
-.BR getegid ()
-system calls, a single
-.BR getxgid ()
-system call is provided, which returns a pair of real and effective GIDs.
-The glibc
-.BR getgid ()
-and
-.BR getegid ()
-wrapper functions transparently deal with this.
-See
-.BR syscall (2)
-for details regarding register mapping.
 .SH SEE ALSO
 .BR getresgid (2),
 .BR setgid (2),
index 36300bf61b6acc2bd694f91bf6192bef28071cac..83a1508efb8b577e2e56b24055e8e19af53abf5f 100644 (file)
@@ -138,15 +138,48 @@ See the description of
 .IR /proc/ pid /setgroups
 in
 .BR user_namespaces (7).
+.SH VERSIONS
+.SS C library/kernel differences
+At the kernel level, user IDs and group IDs are a per-thread attribute.
+However, POSIX requires that all threads in a process
+share the same credentials.
+The NPTL threading implementation handles the POSIX requirements by
+providing wrapper functions for
+the various system calls that change process UIDs and GIDs.
+These wrapper functions (including the one for
+.BR setgroups ())
+employ a signal-based technique to ensure
+that when one thread changes credentials,
+all of the other threads in the process also change their credentials.
+For details, see
+.BR nptl (7).
 .SH STANDARDS
-.BR getgroups ():
-SVr4, 4.3BSD, POSIX.1-2001, POSIX.1-2008.
-.PP
-.BR setgroups ():
+.TP
+.BR getgroups ()
+POSIX.1-2008.
+.TP
+.BR setgroups ()
+None.
+.SH HISTORY
+.TP
+.BR getgroups ()
+SVr4, 4.3BSD, POSIX.1-2001.
+.TP
+.BR setgroups ()
 SVr4, 4.3BSD.
 Since
 .BR setgroups ()
 requires privilege, it is not covered by POSIX.1.
+.PP
+The original Linux
+.BR getgroups ()
+system call supported only 16-bit group IDs.
+Subsequently, Linux 2.4 added
+.BR getgroups32 (),
+supporting 32-bit IDs.
+The glibc
+.BR getgroups ()
+wrapper function transparently deals with the variation across kernel versions.
 .SH NOTES
 A process can have up to
 .B NGROUPS_MAX
@@ -176,31 +209,6 @@ cannot be larger than one more than this value.
 Since Linux 2.6.4, the maximum number of supplementary group IDs is also
 exposed via the Linux-specific read-only file,
 .IR /proc/sys/kernel/ngroups_max .
-.PP
-The original Linux
-.BR getgroups ()
-system call supported only 16-bit group IDs.
-Subsequently, Linux 2.4 added
-.BR getgroups32 (),
-supporting 32-bit IDs.
-The glibc
-.BR getgroups ()
-wrapper function transparently deals with the variation across kernel versions.
-.\"
-.SS C library/kernel differences
-At the kernel level, user IDs and group IDs are a per-thread attribute.
-However, POSIX requires that all threads in a process
-share the same credentials.
-The NPTL threading implementation handles the POSIX requirements by
-providing wrapper functions for
-the various system calls that change process UIDs and GIDs.
-These wrapper functions (including the one for
-.BR setgroups ())
-employ a signal-based technique to ensure
-that when one thread changes credentials,
-all of the other threads in the process also change their credentials.
-For details, see
-.BR nptl (7).
 .SH SEE ALSO
 .BR getgid (2),
 .BR setgid (2),
index bc74610c9c5d21b367871cfaa242fe5eb6bf2730..8c32a7f688a30573a8054a549ee5733c97419fc0 100644 (file)
@@ -109,13 +109,7 @@ the caller did not have the
 .B CAP_SYS_ADMIN
 capability in the user namespace associated with its UTS namespace (see
 .BR namespaces (7)).
-.SH STANDARDS
-SVr4, 4.4BSD  (these interfaces first appeared in 4.2BSD).
-POSIX.1-2001 and POSIX.1-2008 specify
-.BR gethostname ()
-but not
-.BR sethostname ().
-.SH NOTES
+.SH VERSIONS
 SUSv2 guarantees that "Host names are limited to 255 bytes".
 POSIX.1 guarantees that "Host names (not including
 the terminating null byte) are limited to
@@ -148,6 +142,19 @@ set to
 .BR ENAMETOOLONG ;
 in this case, a terminating null byte is not included in the returned
 .IR name .
+.SH STANDARDS
+.TP
+.BR gethostname ()
+POSIX.1-2008.
+.TP
+.BR sethostname ()
+None.
+.SH HISTORY
+SVr4, 4.4BSD (these interfaces first appeared in 4.2BSD).
+POSIX.1-2001 and POSIX.1-2008 specify
+.BR gethostname ()
+but not
+.BR sethostname ().
 .PP
 Versions of glibc before glibc 2.2
 .\" At least glibc 2.0 and glibc 2.1, older versions not checked
index f092a2fc4d4fc5056c8c019b45477db4b4ad69d9..3af439efa8d70a0d42a3a80c6dc19aacb2eded1d 100644 (file)
@@ -159,7 +159,32 @@ or (since Linux 2.6.22) one of the
 fields in the structure pointed to by
 .I new_value
 contains a value outside the range [0, 999999].
+.SH VERSIONS
+The standards are silent on the meaning of the call:
+.PP
+.in +4n
+.EX
+setitimer(which, NULL, &old_value);
+.EE
+.in
+.PP
+Many systems (Solaris, the BSDs, and perhaps others)
+treat this as equivalent to:
+.PP
+.in +4n
+.EX
+getitimer(which, &old_value);
+.EE
+.in
+.PP
+In Linux, this is treated as being equivalent to a call in which the
+.I new_value
+fields are zero; that is, the timer is disabled.
+.IR "Don't use this Linux misfeature" :
+it is nonportable and unnecessary.
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 POSIX.1-2001, SVr4, 4.4BSD (this call first appeared in 4.2BSD).
 POSIX.1-2008 marks
 .BR getitimer ()
@@ -194,29 +219,6 @@ and the three interfaces
 and
 .BR usleep (3)
 unspecified.
-.PP
-The standards are silent on the meaning of the call:
-.PP
-.in +4n
-.EX
-setitimer(which, NULL, &old_value);
-.EE
-.in
-.PP
-Many systems (Solaris, the BSDs, and perhaps others)
-treat this as equivalent to:
-.PP
-.in +4n
-.EX
-getitimer(which, &old_value);
-.EE
-.in
-.PP
-In Linux, this is treated as being equivalent to a call in which the
-.I new_value
-fields are zero; that is, the timer is disabled.
-.IR "Don't use this Linux misfeature" :
-it is nonportable and unnecessary.
 .SH BUGS
 The generation and delivery of a signal are distinct, and
 only one instance of each of the signals listed above may be pending
index 39af55619be47952a43d955a46b558d7b40f5d8d..e1c4a57556836d91e9f2c293f177a2eb667e8b70 100644 (file)
@@ -37,9 +37,10 @@ returns the number of bytes in a memory page,
 where "page" is a fixed-length block,
 the unit for memory allocation and file mapping performed by
 .BR mmap (2).
-.\" .SH HISTORY
-.\" This call first appeared in 4.2BSD.
 .SH STANDARDS
+None.
+.SH HISTORY
+This call first appeared in 4.2BSD.
 SVr4, 4.4BSD, SUSv2.
 In SUSv2 the
 .BR getpagesize ()
index 0a228fe143487f9c72c4a8718954a37fe9cbd99f..2e791771923feec7ad24540ef0834f12fc73851a 100644 (file)
@@ -76,9 +76,10 @@ The file descriptor
 .I sockfd
 does not refer to a socket.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.4BSD
-.RB ( getpeername ()
-first appeared in 4.2BSD).
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.4BSD
+(first appeared in 4.2BSD).
 .SH NOTES
 For background on the
 .I socklen_t
index 49c4b7ec76667e937b16fcc952183a477f0ee602..9084b261f9afa6076872f8aacf3c92e768cf787c 100644 (file)
@@ -34,26 +34,26 @@ or a "subreaper" process defined via the
 operation).
 .SH ERRORS
 These functions are always successful.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD, SVr4.
-.SH NOTES
-If the caller's parent is in a different PID namespace (see
-.BR pid_namespaces (7)),
+.SH VERSIONS
+On Alpha, instead of a pair of
+.BR getpid ()
+and
 .BR getppid ()
-returns 0.
-.PP
-From a kernel perspective,
-the PID (which is shared by all of the threads in a multithreaded process)
-is sometimes also known as the thread group ID (TGID).
-This contrasts with the kernel thread ID (TID),
-which is unique for each thread.
-For further details, see
-.BR gettid (2)
-and the discussion of the
-.B CLONE_THREAD
-flag in
-.BR clone (2).
-.\"
+system calls, a single
+.BR getxpid ()
+system call is provided, which returns a pair of PID and parent PID.
+The glibc
+.BR getpid ()
+and
+.BR getppid ()
+wrapper functions transparently deal with this.
+See
+.BR syscall (2)
+for details regarding register mapping.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD, SVr4.
 .SS C library/kernel differences
 From glibc 2.3.4 up to and including glibc 2.24,
 the glibc wrapper function for
@@ -119,22 +119,23 @@ calls to
 always invoke the actual system call, rather than returning a cached value.
 .\" FIXME .
 .\" Review progress of https://bugzilla.redhat.com/show_bug.cgi?id=1469757
-.PP
-On Alpha, instead of a pair of
-.BR getpid ()
-and
-.BR getppid ()
-system calls, a single
-.BR getxpid ()
-system call is provided, which returns a pair of PID and parent PID.
-The glibc
-.BR getpid ()
-and
+.SH NOTES
+If the caller's parent is in a different PID namespace (see
+.BR pid_namespaces (7)),
 .BR getppid ()
-wrapper functions transparently deal with this.
-See
-.BR syscall (2)
-for details regarding register mapping.
+returns 0.
+.PP
+From a kernel perspective,
+the PID (which is shared by all of the threads in a multithreaded process)
+is sometimes also known as the thread group ID (TGID).
+This contrasts with the kernel thread ID (TID),
+which is unique for each thread.
+For further details, see
+.BR gettid (2)
+and the discussion of the
+.B CLONE_THREAD
+flag in
+.BR clone (2).
 .SH SEE ALSO
 .BR clone (2),
 .BR fork (2),
index 75f8b5fc4088897bc1cff58392a2429a03fdb1a4..d27d7f9550cb54b2aa22c813efd7b4b620e42259 100644 (file)
@@ -147,7 +147,9 @@ and
 .I who
 values specified.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008,
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001,
 SVr4, 4.4BSD (these interfaces first appeared in 4.2BSD).
 .SH NOTES
 For further details on the nice value, see
index fb5db32bd3f6b32ef7572c61f69de11c8d74a777..dbd23a0a6ce8aec5519cedf0f4ab65df37664d1c 100644 (file)
@@ -155,12 +155,11 @@ An invalid flag was specified in
 The glibc wrapper function for
 .BR getrandom ()
 determined that the underlying kernel does not implement this system call.
-.SH VERSIONS
-.BR getrandom ()
-was introduced in Linux 3.17.
-Support was added in glibc 2.25.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 3.17,
+glibc 2.25.
 .SH NOTES
 For an overview and comparison of the various interfaces that
 can be used to obtain randomness, see
index da441d17fcdc410639204a88876180bb2b365c25..b107238c75c61b92a474362fb6a84efd97c4ee5c 100644 (file)
@@ -40,17 +40,13 @@ is set to indicate the error.
 .B EFAULT
 One of the arguments specified an address outside the calling program's
 address space.
-.SH VERSIONS
-These system calls were added on Linux 2.1.44.
-.PP
-The prototypes are given since glibc 2.3.2,
-provided
-.B _GNU_SOURCE
-is defined.
 .SH STANDARDS
-These calls are nonstandard;
-they also appear on HP-UX and some of the BSDs.
-.SH NOTES
+None.
+These calls also appear on HP-UX and some of the BSDs.
+.SH HISTORY
+Linux 2.1.44,
+glibc 2.3.2.
+.PP
 The original Linux
 .BR getresuid ()
 and
index fdcc9c96fe926a9f8f297c517b7f3ddb849211d2..3b923ca2a90c4baa4c0978eedf6eeffd86678b08 100644 (file)
@@ -559,18 +559,15 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR prlimit ()
-system call is available since Linux 2.6.36.
-Library support is available since glibc 2.13.
 .SH STANDARDS
-.BR getrlimit (),
-.BR setrlimit ():
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
-.PP
-.BR prlimit ():
-Linux-specific.
+.TP
+.BR getrlimit ()
+.TQ
+.BR setrlimit ()
+POSIX.1-2008.
+.TP
+.BR prlimit ()
+Linux.
 .PP
 .B RLIMIT_MEMLOCK
 and
@@ -587,6 +584,16 @@ it is nevertheless present on most implementations.
 and
 .B RLIMIT_SIGPENDING
 are Linux-specific.
+.SH HISTORY
+.TP
+.BR getrlimit ()
+.TQ
+.BR setrlimit ()
+POSIX.1-2001, SVr4, 4.3BSD.
+.TP
+.BR prlimit ()
+Linux 2.6.36,
+glibc 2.13.
 .SH NOTES
 A child process created via
 .BR fork (2)
index cbf8b2c32f1ff14d518151fb9bc69faa2231168a..f8b3b35919aabdf5bcda61aee7e01d92deec9c55 100644 (file)
@@ -199,7 +199,8 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.PP
 POSIX.1 specifies
 .BR getrusage (),
 but specifies only the fields
@@ -209,9 +210,8 @@ and
 .PP
 .B RUSAGE_THREAD
 is Linux-specific.
-.SH NOTES
-Resource usage metrics are preserved across an
-.BR execve (2).
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .PP
 Before Linux 2.6.9, if the disposition of
 .B SIGCHLD
@@ -239,6 +239,9 @@ All new applications should be written using
 (Since Linux 2.33, glibc no longer provides an
 .BR vtimes ()
 implementation.)
+.SH NOTES
+Resource usage metrics are preserved across an
+.BR execve (2).
 .PP
 See also the description of
 .IR /proc/ pid /stat
index 3afccbd9d6bf014cef914fdb36fefb9cd432d2df..eccbd47b10c6bca04b4a94fa55a8e7987cc0b592 100644 (file)
@@ -56,15 +56,16 @@ No process with process ID
 .I pid
 was found.
 .SH VERSIONS
-This system call is available since Linux 2.0.
+Linux does not return
+.BR EPERM .
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
+Linux 2.0.
 .\" Linux has this system call since Linux 1.3.44.
 .\" There is libc support since libc 5.2.19.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
 .SH NOTES
-Linux does not return
-.BR EPERM .
-.PP
 See
 .BR credentials (7)
 for a description of sessions and session IDs.
index 331dadaeea757621c697b610535b6be42905c10a..f21f43cb5fdcee72aa41fd8f8d3e96d338146345 100644 (file)
@@ -70,9 +70,10 @@ The file descriptor
 .I sockfd
 does not refer to a socket.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.4BSD
-.RB ( getsockname ()
-first appeared in 4.2BSD).
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.4BSD
+(first appeared in 4.2BSD).
 .\" SVr4 documents additional ENOMEM
 .\" and ENOSR error codes.
 .SH NOTES
index d209413a499c23b1344a4fc8446402f2c51fccb8..50310129667583b7950ece4b5f0a08ce74f81651 100644 (file)
@@ -148,8 +148,10 @@ The file descriptor
 .I sockfd
 does not refer to a socket.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008,
-SVr4, 4.4BSD (these system calls first appeared in 4.2BSD).
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001,
+SVr4, 4.4BSD (first appeared in 4.2BSD).
 .\" SVr4 documents additional ENOMEM and ENOSR error codes, but does
 .\" not document the
 .\" .BR SO_SNDLOWAT ", " SO_RCVLOWAT ", " SO_SNDTIMEO ", " SO_RCVTIMEO
index ba721da488e3ba8628fcc5d6cdf213ab5a5e7298..c1fa3006fe10f26f8371dc98c5c4326adaa8e081 100644 (file)
@@ -32,18 +32,11 @@ in
 On success, returns the thread ID of the calling thread.
 .SH ERRORS
 This call is always successful.
-.SH VERSIONS
-The
-.BR gettid ()
-system call first appeared in Linux 2.4.11.
-Library support was added in glibc 2.30.
-(Earlier glibc versions did not provide a wrapper for this system call,
-necessitating the use of
-.BR syscall (2).)
 .SH STANDARDS
-.BR gettid ()
-is Linux-specific and should not be used in programs that
-are intended to be portable.
+Linux.
+.SH HISTORY
+Linux 2.4.11,
+glibc 2.30.
 .SH NOTES
 The thread ID returned by this call is not the same thing as a
 POSIX thread ID (i.e., the opaque value returned by
index d7f1dbe2b9f6f023aa6500f1c551d054680c9990..9d134fa49de7f7aa994d975a02743e3a55f3e228 100644 (file)
@@ -169,7 +169,20 @@ The calling process has insufficient privilege to call
 under Linux the
 .B CAP_SYS_TIME
 capability is required.
+.SH VERSIONS
+.SS C library/kernel differences
+On some architectures, an implementation of
+.BR gettimeofday ()
+is provided in the
+.BR vdso (7).
 .SH STANDARDS
+.TP
+.BR gettimeofday ()
+POSIX.1-2008 (obsolete).
+.TP
+.BR settimeofday ()
+None.
+.SH HISTORY
 SVr4, 4.3BSD.
 POSIX.1-2001 describes
 .BR gettimeofday ()
@@ -180,31 +193,12 @@ POSIX.1-2008 marks
 as obsolete, recommending the use of
 .BR clock_gettime (2)
 instead.
-.SH NOTES
-The time returned by
-.BR gettimeofday ()
-.I is
-affected by discontinuous jumps in the system time
-(e.g., if the system administrator manually changes the system time).
-If you need a monotonically increasing clock, see
-.BR clock_gettime (2).
-.PP
-Macros for operating on
-.I timeval
-structures are described in
-.BR timeradd (3).
 .PP
 Traditionally, the fields of
 .I struct timeval
 were of type
 .IR long .
 .\"
-.SS C library/kernel differences
-On some architectures, an implementation of
-.BR gettimeofday ()
-is provided in the
-.BR vdso (7).
-.\"
 .SS The tz_dsttime field
 On a non-Linux kernel, with glibc, the
 .I tz_dsttime
@@ -264,6 +258,19 @@ this period is determined by unpredictable political
 decisions.
 So this method of representing timezones
 has been abandoned.
+.SH NOTES
+The time returned by
+.BR gettimeofday ()
+.I is
+affected by discontinuous jumps in the system time
+(e.g., if the system administrator manually changes the system time).
+If you need a monotonically increasing clock, see
+.BR clock_gettime (2).
+.PP
+Macros for operating on
+.I timeval
+structures are described in
+.BR timeradd (3).
 .SH SEE ALSO
 .BR date (1),
 .BR adjtimex (2),
index 2ae5c73bb462b8ec851b86c16e1d60afc61bb16d..a5f3d6fe50f3632eaa48cbf48a90263ada503980 100644 (file)
@@ -29,9 +29,10 @@ and never modify
 .\" 0000511: getuid and friends should not modify errno
 .IR errno .
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
-.SH NOTES
-.SS History
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD.
+.PP
 In UNIX\ V6 the
 .BR getuid ()
 call returned
index 99eae7121226d810691f8e5ec75c1cdaed8b7d13..1a2cc3ebc9e508aa5f4a4325de070737e4efff46 100644 (file)
@@ -75,12 +75,11 @@ fails with the error
 .B EFAULT
 if the unwind info can't be stored in the space specified by
 .IR buf .
-.SH VERSIONS
-This system call is available since Linux 2.4.
 .SH STANDARDS
-This system call is Linux-specific,
-and is available only on the IA-64 architecture.
-.SH NOTES
+Linux on IA-64.
+.SH HISTORY
+Linux 2.4.
+.PP
 This system call has been deprecated.
 The modern way to obtain the kernel's unwind data is via the
 .BR vdso (7).
index 82d8c711d27453bf2e94449b29e1776edff85073..ab83421819a1018110599718528617de816ca405 100644 (file)
@@ -118,11 +118,11 @@ buffer is too small to hold the result.
 In addition, the errors documented in
 .BR stat (2)
 can also occur.
-.SH VERSIONS
-These system calls have been available since Linux 2.4;
-glibc support is provided since glibc 2.3.
 .SH STANDARDS
-These system calls are Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.4,
+glibc 2.3.
 .\" .SH AUTHORS
 .\" Andreas Gruenbacher,
 .\" .RI < a.gruenbacher@computer.org >
index 37b936816ccf0080a167f23f2b97a0d94f85dff8..689183025da430dfc4a9e622bb441cae8c7d707b 100644 (file)
@@ -16,7 +16,7 @@ idle \- make process 0 idle
 .nf
 .B #include <unistd.h>
 .PP
-.B int idle(void);
+.B [[deprecated]] int idle(void);
 .fi
 .SH DESCRIPTION
 .BR idle ()
@@ -38,8 +38,7 @@ never returns for process 0, and always returns \-1 for a user process.
 .TP
 .B EPERM
 Always, for a user process.
-.SH VERSIONS
-Since Linux 2.3.13, this system call does not exist anymore.
 .SH STANDARDS
-This function is Linux-specific, and should not be used in programs
-intended to be portable.
+Linux.
+.SH HISTORY
+Removed in Linux 2.3.13.
index 0deb15ac4af83740f9a0b89fe64b00cde1952736..8d4831abb7be9972bc794eb7b3f2d15b68743cdb 100644 (file)
@@ -244,15 +244,13 @@ fails and
 is set to the value returned by the
 .I init
 function.
-.SH VERSIONS
-.BR finit_module ()
-is available since Linux 3.8.
 .SH STANDARDS
-.BR init_module ()
-and
+Linux.
+.SH HISTORY
+.TP
 .BR finit_module ()
-are Linux-specific.
-.SH NOTES
+Linux 3.8.
+.PP
 The
 .BR init_module ()
 system call is not supported by glibc.
@@ -263,15 +261,6 @@ it is (before glibc 2.23) sufficient to
 manually declare the interface in your code;
 alternatively, you can invoke the system call using
 .BR syscall (2).
-.PP
-Information about currently loaded modules can be found in
-.I /proc/modules
-and in the file trees under the per-module subdirectories under
-.IR /sys/module .
-.PP
-See the Linux kernel source file
-.I include/linux/module.h
-for some useful background information.
 .SS Linux 2.4 and earlier
 In Linux 2.4 and earlier, the
 .BR init_module ()
@@ -336,6 +325,15 @@ and
 are expected to point within the module body and be
 initialized as appropriate for kernel space, that is, relocated with
 the rest of the module.
+.SH NOTES
+Information about currently loaded modules can be found in
+.I /proc/modules
+and in the file trees under the per-module subdirectories under
+.IR /sys/module .
+.PP
+See the Linux kernel source file
+.I include/linux/module.h
+for some useful background information.
 .SH SEE ALSO
 .BR create_module (2),
 .BR delete_module (2),
index 7d60c8bd9fd3c7af14f10feb55ff92d88d7fc399..548d7c92407a01570952aecdcf44b6fc98ac0efc 100644 (file)
@@ -122,10 +122,10 @@ contains
 and
 .I pathname
 is not a directory.
-.SH VERSIONS
-Inotify was merged into the 2.6.13 Linux kernel.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.13.
 .SH EXAMPLES
 See
 .BR inotify (7).
index 4f24543efe3b90ba356cd3d59046d9ad191cf30c..cce298f6a55721b239632a30122a25d0015b5268 100644 (file)
@@ -80,15 +80,17 @@ The system-wide limit on the total number of open files has been reached.
 .TP
 .B ENOMEM
 Insufficient kernel memory is available.
-.SH VERSIONS
+.SH STANDARDS
+Linux.
+.SH HISTORY
+.TP
 .BR inotify_init ()
-first appeared in Linux 2.6.13;
-library support was added in glibc 2.4.
+Linux 2.6.13,
+glibc 2.4.
+.TP
 .BR inotify_init1 ()
-was added in Linux 2.6.27;
-library support was added in glibc 2.9.
-.SH STANDARDS
-These system calls are Linux-specific.
+Linux 2.6.27,
+glibc 2.9.
 .SH SEE ALSO
 .BR inotify_add_watch (2),
 .BR inotify_rm_watch (2),
index 6ec0fd667c69533f150cd275293fb7b35661d0ca..e3dddf90580a00eac6e26033bb6c12ee24db0210 100644 (file)
@@ -50,10 +50,10 @@ The watch descriptor
 is not valid; or
 .I fd
 is not an inotify file descriptor.
-.SH VERSIONS
-Inotify was merged into the 2.6.13 Linux kernel.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.13.
 .SH SEE ALSO
 .BR inotify_add_watch (2),
 .BR inotify_init (2),
index b5ad9cd2b955fb3838dd70c25683fb35c992adea..5df4fb091b90e9869ee757318fa9989ad1d8496c 100644 (file)
@@ -11,7 +11,7 @@ Standard C library
 .PP
 Alternatively, Asynchronous I/O library
 .RI ( libaio ", " \-laio );
-see NOTES.
+see VERSIONS.
 .SH SYNOPSIS
 .nf
 .BR "#include <linux/aio_abi.h>" "    /* Definition of needed types */"
@@ -29,7 +29,7 @@ The wrapper function provided by
 uses a different type for the
 .I ctx_id
 argument.
-See NOTES.
+See VERSIONS.
 .PP
 The
 .BR io_cancel ()
@@ -50,7 +50,7 @@ completion queue.
 On success,
 .BR io_cancel ()
 returns 0.
-For the failure return, see NOTES.
+For the failure return, see VERSIONS.
 .SH ERRORS
 .TP
 .B EAGAIN
@@ -66,12 +66,6 @@ The AIO context specified by \fIctx_id\fP is invalid.
 .BR io_cancel ()
 is not implemented on this architecture.
 .SH VERSIONS
-The asynchronous I/O system calls first appeared in Linux 2.5.
-.SH STANDARDS
-.BR io_cancel ()
-is Linux-specific and should not be used
-in programs that are intended to be portable.
-.SH NOTES
 You probably want to use the
 .BR io_cancel ()
 wrapper function provided by
@@ -98,6 +92,10 @@ then the return value follows the usual conventions for
 indicating an error: \-1, with
 .I errno
 set to a (positive) value that indicates the error.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.5.
 .SH SEE ALSO
 .BR io_destroy (2),
 .BR io_getevents (2),
index 783d57397cfb9f069a2a26871f4ef4572fc55afc..a94600c5f16ca143b92ebbf8f4e4c33e763be450 100644 (file)
@@ -30,7 +30,7 @@ The wrapper function provided by
 uses a different type for the
 .I ctx_id
 argument.
-See NOTES.
+See VERSIONS.
 .PP
 The
 .BR io_destroy ()
@@ -44,7 +44,7 @@ that could not be canceled, and will destroy the
 On success,
 .BR io_destroy ()
 returns 0.
-For the failure return, see NOTES.
+For the failure return, see VERSIONS.
 .SH ERRORS
 .TP
 .B EFAULT
@@ -57,12 +57,6 @@ The AIO context specified by \fIctx_id\fP is invalid.
 .BR io_destroy ()
 is not implemented on this architecture.
 .SH VERSIONS
-The asynchronous I/O system calls first appeared in Linux 2.5.
-.SH STANDARDS
-.BR io_destroy ()
-is Linux-specific and should not be used in programs
-that are intended to be portable.
-.SH NOTES
 You probably want to use the
 .BR io_destroy ()
 wrapper function provided by
@@ -89,6 +83,10 @@ then the return value follows the usual conventions for
 indicating an error: \-1, with
 .I errno
 set to a (positive) value that indicates the error.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.5.
 .SH SEE ALSO
 .BR io_cancel (2),
 .BR io_getevents (2),
index 489a6a8aa4a92f0279c3af3f9e876960e1428042..0f7c7eea62f1215393fce3190f7ce08c3a6b7378 100644 (file)
@@ -8,6 +8,10 @@ io_getevents \- read asynchronous I/O events from the completion queue
 .SH LIBRARY
 Standard C library
 .RI ( libc ", " \-lc )
+.PP
+Alternatively, Asynchronous I/O library
+.RI ( libaio ", " \-laio );
+see VERSIONS.
 .SH SYNOPSIS
 .nf
 .BR "#include <linux/aio_abi.h>" "    /* Definition of " *io_* " types */"
@@ -32,7 +36,7 @@ The wrapper function provided by
 uses a different type for the
 .I ctx_id
 argument.
-See NOTES.
+See VERSIONS.
 .PP
 The
 .BR io_getevents ()
@@ -67,7 +71,7 @@ It may also be a nonzero value less than
 .IR min_nr ,
 if the call was interrupted by a signal handler.
 .PP
-For the failure return, see NOTES.
+For the failure return, see VERSIONS.
 .SH ERRORS
 .TP
 .B EFAULT
@@ -86,12 +90,6 @@ out of range.
 .BR io_getevents ()
 is not implemented on this architecture.
 .SH VERSIONS
-The asynchronous I/O system calls first appeared in Linux 2.5.
-.SH STANDARDS
-.BR io_getevents ()
-is Linux-specific and should not be used in
-programs that are intended to be portable.
-.SH NOTES
 You probably want to use the
 .BR io_getevents ()
 wrapper function provided by
@@ -118,6 +116,10 @@ then the return value follows the usual conventions for
 indicating an error: \-1, with
 .I errno
 set to a (positive) value that indicates the error.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.5.
 .SH BUGS
 An invalid
 .I ctx_id
index 006f4964f6627a601b3cca26fb2bc89c2610a072..2c3a760bdee3524c20caa4f932b2d510ee4c1040 100644 (file)
@@ -11,7 +11,7 @@ Standard C library
 .PP
 Alternatively, Asynchronous I/O library
 .RI ( libaio ", " \-laio );
-see NOTES.
+see VERSIONS.
 .SH SYNOPSIS
 .nf
 .BR "#include <linux/aio_abi.h>" "          /* Defines needed types */"
@@ -20,7 +20,7 @@ see NOTES.
 .fi
 .PP
 .IR Note :
-There is no glibc wrapper for this system call; see NOTES.
+There is no glibc wrapper for this system call; see VERSIONS.
 .SH DESCRIPTION
 .IR Note :
 this page describes the raw Linux system call interface.
@@ -29,7 +29,7 @@ The wrapper function provided by
 uses a different type for the
 .I ctx_idp
 argument.
-See NOTES.
+See VERSIONS.
 .PP
 The
 .BR io_setup ()
@@ -46,7 +46,7 @@ with the resulting handle.
 On success,
 .BR io_setup ()
 returns 0.
-For the failure return, see NOTES.
+For the failure return, see VERSIONS.
 .SH ERRORS
 .TP
 .B EAGAIN
@@ -71,12 +71,6 @@ Insufficient kernel resources are available.
 .BR io_setup ()
 is not implemented on this architecture.
 .SH VERSIONS
-The asynchronous I/O system calls first appeared in Linux 2.5.
-.SH STANDARDS
-.BR io_setup ()
-is Linux-specific and should not be used in programs
-that are intended to be portable.
-.SH NOTES
 glibc does not provide a wrapper for this system call.
 You could invoke it using
 .BR syscall (2).
@@ -106,6 +100,10 @@ then the return value follows the usual conventions for
 indicating an error: \-1, with
 .I errno
 set to a (positive) value that indicates the error.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.5.
 .SH SEE ALSO
 .BR io_cancel (2),
 .BR io_destroy (2),
index ab1011ebf8d03a32458a1b6f796ac10540d6188e..879ae9d4c7dc7b05e76c82d6c8c5d552b72cfcc8 100644 (file)
@@ -12,7 +12,7 @@ Standard C library
 .PP
 Alternatively, Asynchronous I/O library
 .RI ( libaio ", " \-laio );
-see NOTES.
+see VERSIONS.
 .SH SYNOPSIS
 .nf
 .BR "#include <linux/aio_abi.h>" "          /* Defines needed types */"
@@ -22,7 +22,7 @@ see NOTES.
 .fi
 .PP
 .IR Note :
-There is no glibc wrapper for this system call; see NOTES.
+There is no glibc wrapper for this system call; see VERSIONS.
 .SH DESCRIPTION
 .IR Note :
 this page describes the raw Linux system call interface.
@@ -31,7 +31,7 @@ The wrapper function provided by
 uses a different type for the
 .I ctx_id
 argument.
-See NOTES.
+See VERSIONS.
 .PP
 The
 .BR io_submit ()
@@ -211,7 +211,7 @@ On success,
 .BR io_submit ()
 returns the number of \fIiocb\fPs submitted (which may be
 less than \fInr\fP, or 0 if \fInr\fP is zero).
-For the failure return, see NOTES.
+For the failure return, see VERSIONS.
 .SH ERRORS
 .TP
 .B EAGAIN
@@ -246,12 +246,6 @@ but the submitting context does not have the
 .B CAP_SYS_ADMIN
 capability.
 .SH VERSIONS
-The asynchronous I/O system calls first appeared in Linux 2.5.
-.SH STANDARDS
-.BR io_submit ()
-is Linux-specific and should not be used in
-programs that are intended to be portable.
-.SH NOTES
 glibc does not provide a wrapper for this system call.
 You could invoke it using
 .BR syscall (2).
@@ -281,6 +275,10 @@ then the return value follows the usual conventions for
 indicating an error: \-1, with
 .I errno
 set to a (positive) value that indicates the error.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.5.
 .SH SEE ALSO
 .BR io_cancel (2),
 .BR io_destroy (2),
index f33f2c57c103de750b037537481002085151937c..6b55d47c990d6cf20a506df01a81c56a1f1ee03e 100644 (file)
@@ -94,17 +94,16 @@ The specified request does not apply to the kind of object that the
 file descriptor
 .I fd
 references.
-.SH STANDARDS
-No single standard.
+.SH VERSIONS
 Arguments, returns, and semantics of
 .BR ioctl ()
 vary according to the device driver in question (the call is used as a
 catch-all for operations that don't cleanly fit the UNIX stream I/O
 model).
-.PP
-The
-.BR ioctl ()
-system call appeared in Version 7 AT&T UNIX.
+.SH STANDARDS
+None.
+.SH HISTORY
+Version\~7 AT&T UNIX.
 .SH NOTES
 In order to use this call, one needs an open file descriptor.
 Often the
index 24b383f679a73fc94dc6cb70e640dc3db5572805..d00855095b83bd0a401d4b5beef9d79eba21ea24 100644 (file)
@@ -208,25 +208,24 @@ does not refer to an object in a FAT filesystem.
 .PP
 For further error values, see
 .BR ioctl (2).
-.SH VERSIONS
+.SH STANDARDS
+Linux.
+.SH HISTORY
+.TP
 .B VFAT_IOCTL_READDIR_BOTH
-and
+.TQ
 .B VFAT_IOCTL_READDIR_SHORT
-first appeared in Linux 2.0.
-.PP
+Linux 2.0.
+.TP
 .B FAT_IOCTL_GET_ATTRIBUTES
-and
+.TQ
 .B FAT_IOCTL_SET_ATTRIBUTES
-first appeared
 .\" just before we got Git history
-in Linux 2.6.12.
-.PP
+Linux 2.6.12.
+.TP
 .B FAT_IOCTL_GET_VOLUME_ID
-was introduced in version 3.11
+Linux 3.11.
 .\" commit 6e5b93ee55d401f1619092fb675b57c28c9ed7ec
-of the Linux kernel.
-.SH STANDARDS
-This API is Linux-specific.
 .SH EXAMPLES
 .SS Toggling the archive flag
 The following program demonstrates the usage of
index bd6f4220ee2803f053c8dcd28fd65746dae32697..7d823dde767faa98521b87a229ae8dfdfba356f1 100644 (file)
@@ -110,15 +110,16 @@ Swap files cannot share storage.
 .B EXDEV
 .IR dest_fd " and " src_fd
 are not on the same mounted filesystem.
-.SH VERSIONS
-These ioctl operations first appeared in Linux 4.5.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 4.5.
+.PP
 They were previously known as
 .B BTRFS_IOC_CLONE
 and
 .BR BTRFS_IOC_CLONE_RANGE ,
 and were private to Btrfs.
-.SH STANDARDS
-This API is Linux-specific.
 .SH NOTES
 Because a copy-on-write operation requires the allocation of new storage, the
 .BR fallocate (2)
index 117e85d73fec6c5bed0e3cae3f59ad9d374cc5c7..34623cf7b64c0d35d7c5044f5d7160dca8cf0a65 100644 (file)
@@ -181,19 +181,20 @@ and
 .I src_fd
 are not on the same mounted filesystem.
 .SH VERSIONS
-This ioctl operation first appeared in Linux 4.5.
+Some filesystems may limit the amount of data that can be deduplicated in a
+single call.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 4.5.
+.PP
 It was previously known as
 .B BTRFS_IOC_FILE_EXTENT_SAME
 and was private to Btrfs.
-.SH STANDARDS
-This API is Linux-specific.
 .SH NOTES
 Because a copy-on-write operation requires the allocation of new storage, the
 .BR fallocate (2)
 operation may unshare shared blocks to guarantee that subsequent writes will
 not fail because of lack of disk space.
-.PP
-Some filesystems may limit the amount of data that can be deduplicated in a
-single call.
 .SH SEE ALSO
 .BR ioctl (2)
index a614c800e7a2c2040ab0163ac9f3fdcfc233bf07..a7c854c6aab9396aa0b1cc3cfbcad968d7711fb6 100644 (file)
@@ -46,17 +46,16 @@ This can appear if the filesystem does not support online label manipulation.
 .TP
 .B EPERM
 The calling process does not have sufficient permissions to set the label.
-.SH VERSIONS
-These
-.BR ioctl (2)
-operations first appeared in Linux 4.18.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 4.18.
+.PP
 They were previously known as
 .B BTRFS_IOC_GET_FSLABEL
 and
 .B BTRFS_IOC_SET_FSLABEL
 and were private to Btrfs.
-.SH STANDARDS
-This API is Linux-specific.
 .SH NOTES
 The maximum string length for this interface is
 .BR FSLABEL_MAX ,
index 36d284d452a4f7d9c2f00ad4d55c4fa9c77a0557..093f20691913740dccf2284d3a713882d2cb0681 100644 (file)
@@ -335,13 +335,12 @@ The filesystem does not support this command.
 .TP
 .B EUCLEAN
 The filesystem metadata is corrupt and needs repair.
-.SH VERSIONS
-The
-.B FS_IOC_GETFSMAP
-operation first appeared in Linux 4.12.
 .SH STANDARDS
-This API is Linux-specific.
+Linux.
+.PP
 Not all filesystems support it.
+.SH HISTORY
+Linux 4.12.
 .SH EXAMPLES
 See
 .I io/fsmap.c
index bf3840ecb6270d4294817f0ee323fb45e3798e4e..19d2461477cfeba11a2bb02e3fca107a0d7e4758 100644 (file)
@@ -171,7 +171,7 @@ which is not inheritable, and
 .BR FS_DIRSYNC_FL ,
 which is inherited only by subdirectories.
 .SH STANDARDS
-Inode flags are a nonstandard Linux extension.
+Linux.
 .SH NOTES
 In order to change the inode flags of a file using the
 .B FS_IOC_SETFLAGS
index b55c4df193022d52011597a7a6fb20d2c5569646..ff2df483579c329e4a1a819a5c5e70aa1a2f8864 100644 (file)
@@ -165,7 +165,7 @@ does not refer to a
 .I /proc/[pid]/ns/*
 file.
 .SH STANDARDS
-Namespaces and the operations described on this page are a Linux-specific.
+Linux.
 .SH EXAMPLES
 The example shown below uses the
 .BR ioctl (2)
index a78353c54836cdcb9181424cccbd8b7b5808e431..06e754cea0c9f3f8c42759f54341a34b776df1c6 100644 (file)
@@ -876,9 +876,7 @@ The userfaultfd object has not yet been enabled (via the
 .B UFFDIO_API
 operation).
 .SH STANDARDS
-These
-.BR ioctl (2)
-operations are Linux-specific.
+Linux.
 .SH BUGS
 In order to detect available userfault features and
 enable some subset of those features
index 3e30159c4f96075fc443f580a8f5ac34ffe0901c..41c451ef1dda1e7c0cb39b50b9848015fe1fafc0 100644 (file)
@@ -81,19 +81,7 @@ Out of memory.
 .TP
 .B EPERM
 The calling thread has insufficient privilege.
-.SH STANDARDS
-.BR ioperm ()
-is Linux-specific and should not be used in programs
-intended to be portable.
-.SH NOTES
-The
-.I /proc/ioports
-file shows the I/O ports that are currently allocated on the system.
-.PP
-Before Linux 2.4,
-permissions were not inherited by a child created by
-.BR fork (2).
-.PP
+.SH VERSIONS
 glibc has an
 .BR ioperm ()
 prototype both in
@@ -101,6 +89,16 @@ prototype both in
 and in
 .IR <sys/perm.h> .
 Avoid the latter, it is available on i386 only.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Before Linux 2.4,
+permissions were not inherited by a child created by
+.BR fork (2).
+.SH NOTES
+The
+.I /proc/ioports
+file shows the I/O ports that are currently allocated on the system.
 .SH SEE ALSO
 .BR iopl (2),
 .BR outb (2),
index abf1bef675fde74377c8cb16c227e02e158aede8..2ed1d038c08ca81789982eed30be69b660e9ee88 100644 (file)
@@ -59,11 +59,7 @@ the
 .B CAP_SYS_RAWIO
 capability is required to raise the I/O privilege level
 above its current value.
-.SH STANDARDS
-.BR iopl ()
-is Linux-specific and should not be used in programs that are
-intended to be portable.
-.SH NOTES
+.SH VERSIONS
 .\" Libc5 treats it as a system call and has a prototype in
 .\" .IR <unistd.h> .
 .\" glibc1 does not have a prototype.
@@ -72,7 +68,9 @@ glibc2 has a prototype both in
 and in
 .IR <sys/perm.h> .
 Avoid the latter, it is available on i386 only.
-.PP
+.SH STANDARDS
+Linux.
+.SH HISTORY
 Prior to Linux 5.5
 .BR iopl ()
 allowed the thread to disable interrupts while running
index 8f964af68dfe28de3d1da9baac98ed7993c39274..3cd15b47d8dcfe1d10bfb0ff063f1694f3335657 100644 (file)
@@ -188,11 +188,10 @@ No process(es) could be found that matched the specification in
 .I which
 and
 .IR who .
-.SH VERSIONS
-These system calls have been available on Linux since
-kernel 2.6.13.
 .SH STANDARDS
-These system calls are Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.13.
 .SH NOTES
 Two or more processes or threads can share an I/O context.
 This will be the case when
index ca61cda6826296091cd0b66a331d86212f4e345a..45671dd93f25e9e3d3ed84963cb6b4bfbabe2d4f 100644 (file)
@@ -37,11 +37,7 @@ the other arguments are passed through to the appropriate call.
 User-space programs should call the appropriate functions by their usual names.
 Only standard library implementors and kernel hackers need to know about
 .BR ipc ().
-.SH STANDARDS
-.BR ipc ()
-is Linux-specific, and should not be used in programs
-intended to be portable.
-.SH NOTES
+.SH VERSIONS
 On some architectures\[em]for example x86-64 and ARM\[em]there is no
 .BR ipc ()
 system call; instead,
@@ -49,6 +45,8 @@ system call; instead,
 .BR semctl (2),
 .BR shmctl (2),
 and so on really are implemented as separate system calls.
+.SH STANDARDS
+Linux.
 .SH SEE ALSO
 .BR msgctl (2),
 .BR msgget (2),
index f9b177f6326e97fae4c48b190e548490ab1c7e7f..7c02b5c4424c442ec05118f64bee094a86e88ee6 100644 (file)
@@ -287,14 +287,11 @@ Process
 or
 .I pid2
 does not exist.
-.SH VERSIONS
-The
-.BR kcmp ()
-system call first appeared in Linux 3.5.
 .SH STANDARDS
-.BR kcmp ()
-is Linux-specific and should not be used in programs intended to be portable.
-.SH NOTES
+Linux.
+.SH HISTORY
+Linux 3.5.
+.PP
 Before Linux 5.12,
 this system call is available only if the kernel is configured with
 .BR CONFIG_CHECKPOINT_RESTORE ,
@@ -307,7 +304,7 @@ filesystem; this was deemed to be unsuitable for security reasons.)
 Since Linux 5.12,
 this system call is also available if the kernel is configured with
 .BR CONFIG_KCMP .
-.PP
+.SH NOTES
 See
 .BR clone (2)
 for some background information on the shared resources
index b5a9935db9a375f1a9cf5aeed2248fb5cde43a86..3063f4364de9989f17c754ad0a6a3fbaea1bc70b 100644 (file)
@@ -311,15 +311,15 @@ Could not allocate memory.
 The caller does not have the
 .B CAP_SYS_BOOT
 capability.
-.SH VERSIONS
-The
+.SH STANDARDS
+Linux.
+.SH HISTORY
+.TP
 .BR kexec_load ()
-system call first appeared in Linux 2.6.13.
-The
+Linux 2.6.13.
+.TP
 .BR kexec_file_load ()
-system call first appeared in Linux 3.17.
-.SH STANDARDS
-These system calls are Linux-specific.
+Linux 3.17.
 .SH SEE ALSO
 .BR reboot (2),
 .BR syscall (2),
index 4ce87dcf31af8a37643af478cb537865de122c0e..ef0729de6b7b92e736d4b069f31bfc38c4c3c371 100644 (file)
@@ -14,7 +14,7 @@ Standard C library
 .PP
 Alternatively, Linux Key Management Utilities
 .RI ( libkeyutils ", " \-lkeyutils );
-see NOTES.
+see VERSIONS.
 .SH SYNOPSIS
 .nf
 .BR "#include <linux/keyctl.h>" "     /* Definition of " KEY* " constants */"
@@ -1947,10 +1947,6 @@ was
 .B KEYCTL_DH_COMPUTE
 and the initialization of crypto modules has timed out.
 .SH VERSIONS
-This system call first appeared in Linux 2.6.10.
-.SH STANDARDS
-This system call is a nonstandard Linux extension.
-.SH NOTES
 A wrapper is provided in the
 .I libkeyutils
 library.
@@ -1960,6 +1956,10 @@ header file.)
 However, rather than using this system call directly,
 you probably want to use the various library functions
 mentioned in the descriptions of individual operations above.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.6.10.
 .SH EXAMPLES
 The program below provide subset of the functionality of the
 .BR request\-key (8)
index def4a99b66968b1dcc544ee4ece6949e01b73266..b3a6e012d268d44f22fd462b10e83de5f68d5cd1 100644 (file)
@@ -100,7 +100,23 @@ has not yet been
 .BR wait (2)ed
 for.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
+.SS Linux notes
+Across different kernel versions, Linux has enforced different rules
+for the permissions required for an unprivileged process
+to send a signal to another process.
+.\" In the 0.* kernels things chopped and changed quite
+.\" a bit - MTK, 24 Jul 02
+In Linux 1.0 to 1.2.2, a signal could be sent if the
+effective user ID of the sender matched effective user ID of the target,
+or the real user ID of the sender matched the real user ID of the target.
+From Linux 1.2.3 until 1.3.77, a signal could be sent if the
+effective user ID of the sender matched either the real or effective
+user ID of the target.
+The current rules, which conform to POSIX.1, were adopted
+in Linux 1.3.78.
 .SH NOTES
 The only signals that can be sent to process ID 1, the
 .I init
@@ -125,20 +141,6 @@ at least one
 unblocked signal must be delivered to the sending thread before the
 .BR kill ()
 returns.
-.SS Linux notes
-Across different kernel versions, Linux has enforced different rules
-for the permissions required for an unprivileged process
-to send a signal to another process.
-.\" In the 0.* kernels things chopped and changed quite
-.\" a bit - MTK, 24 Jul 02
-In Linux 1.0 to 1.2.2, a signal could be sent if the
-effective user ID of the sender matched effective user ID of the target,
-or the real user ID of the sender matched the real user ID of the target.
-From Linux 1.2.3 until 1.3.77, a signal could be sent if the
-effective user ID of the sender matched either the real or effective
-user ID of the target.
-The current rules, which conform to POSIX.1, were adopted
-in Linux 1.3.78.
 .SH BUGS
 In Linux 2.6 up to and including Linux 2.6.7,
 there was a bug that meant that when sending signals to a process group,
index 871621348e815035ef1d27d458d7febd682acfa3..43a70a2a569aec9e5b30aa2d78ad3cb095be9090 100644 (file)
@@ -118,10 +118,10 @@ has no write access to the underlying ruleset.
 .B EFAULT
 .I rule_attr
 was not a valid address.
-.SH VERSIONS
-Landlock was added in Linux 5.13.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 5.13.
 .SH EXAMPLES
 See
 .BR landlock (7).
index 8c83813ec91bd55c320979c46eeb9d6370b03191..902862f7f70dbbf6ccd5ddbe886965e7a87cb93f 100644 (file)
@@ -111,10 +111,10 @@ was not a valid address.
 Empty accesses (i.e.,
 .I attr\->handled_access_fs
 is 0).
-.SH VERSIONS
-Landlock was added in Linux 5.13.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 5.13.
 .SH EXAMPLES
 See
 .BR landlock (7).
index 1c41bb610978027da08b4fa46f150a08b77066cd..6cf900f0b62c14e299041d77953fec40f2c603d7 100644 (file)
@@ -103,10 +103,10 @@ in its user namespace.
 .B E2BIG
 The maximum number of composed rulesets is reached for the calling thread.
 This limit is currently 64.
-.SH VERSIONS
-Landlock was added in Linux 5.13.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 5.13.
 .SH EXAMPLES
 See
 .BR landlock (7).
index 60b739eba152a0f2edbb73f2dc2f99b22cc67ab7..6271934bddf37802d7f59cb1051d6bf19e74de1c 100644 (file)
@@ -335,26 +335,6 @@ is an empty string, and
 .I olddirfd
 refers to a directory.
 .SH VERSIONS
-.BR linkat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
-.SH STANDARDS
-.BR link ():
-SVr4, 4.3BSD, POSIX.1-2001 (but see NOTES), POSIX.1-2008.
-.\" SVr4 documents additional ENOLINK and
-.\" EMULTIHOP error conditions; POSIX.1 does not document ELOOP.
-.\" X/OPEN does not document EFAULT, ENOMEM or EIO.
-.PP
-.BR linkat ():
-POSIX.1-2008.
-.SH NOTES
-Hard links, as created by
-.BR link (),
-cannot span filesystems.
-Use
-.BR symlink (2)
-if this is required.
-.PP
 POSIX.1-2001 says that
 .BR link ()
 should dereference
@@ -385,7 +365,7 @@ is dereferenced if it is a symbolic link.
 For precise control over the treatment of symbolic links when
 creating a link, use
 .BR linkat ().
-.SS glibc notes
+.SS glibc
 On older kernels where
 .BR linkat ()
 is unavailable, the glibc wrapper function falls back to the use of
@@ -405,6 +385,29 @@ that correspond to the
 and
 .I newdirfd
 arguments.
+.SH STANDARDS
+.TP
+.BR link ()
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR link ()
+SVr4, 4.3BSD, POSIX.1-2001 (but see VERSIONS).
+.\" SVr4 documents additional ENOLINK and
+.\" EMULTIHOP error conditions; POSIX.1 does not document ELOOP.
+.\" X/OPEN does not document EFAULT, ENOMEM or EIO.
+.TP
+.BR linkat ()
+POSIX.1-2008.
+Linux 2.6.16,
+glibc 2.4.
+.SH NOTES
+Hard links, as created by
+.BR link (),
+cannot span filesystems.
+Use
+.BR symlink (2)
+if this is required.
 .SH BUGS
 On NFS filesystems, the return code may be wrong in case the NFS server
 performs the link creation and dies before it can say so.
index 615ded424f753ebb612780f7eae2228cf29a5ba0..4823143579dbb851d5821267c5006d5a5e018cb2 100644 (file)
@@ -90,9 +90,10 @@ The socket is not of a type that supports the
 .BR listen ()
 operation.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.4BSD
-.RB ( listen ()
-first appeared in 4.2BSD).
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.4BSD
+(first appeared in 4.2BSD).
 .SH NOTES
 To accept connections, the following steps are performed:
 .RS 4
index f1580573f239348e9f49dab12c07ef891f13f5fb..3387c649397e425d8611eaed1bdf0e69042c1caf 100644 (file)
@@ -133,11 +133,11 @@ buffer is too small to hold the result.
 In addition, the errors documented in
 .BR stat (2)
 can also occur.
-.SH VERSIONS
-These system calls have been available since Linux 2.4;
-glibc support is provided since glibc 2.3.
 .SH STANDARDS
-These system calls are Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.4,
+glibc 2.3.
 .\" .SH AUTHORS
 .\" Andreas Gruenbacher,
 .\" .RI < a.gruenbacher@computer.org >
index 49b580853020b663c9f8fe9e16ad6ccd311d79bb..d317ed1e1a1fc13360abde05decf862138355d4a 100644 (file)
@@ -80,13 +80,12 @@ Problem with copying results to user space.
 .B EINVAL
 .I whence
 is invalid.
-.SH STANDARDS
-This function is Linux-specific, and should not be used in programs
-intended to be portable.
-.SH NOTES
+.SH VERSIONS
 You probably want to use the
 .BR lseek (2)
 wrapper function instead.
+.SH STANDARDS
+Linux.
 .SH SEE ALSO
 .BR lseek (2),
 .BR open (2),
index d151465071ec710725d73cd9b30e4d8087cdd2ec..82c1ef3a75d0e584346eb1cc499bffb3c1a12a26 100644 (file)
@@ -65,14 +65,14 @@ required to look up cookie values.
 .TP
 .B ERANGE
 The buffer was not large enough to hold the path of the directory entry.
-.SH VERSIONS
-Available since Linux 2.5.43.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.5.43.
+.PP
 The
 .B ENAMETOOLONG
-error return was added in Linux 2.5.70.
-.SH STANDARDS
-.BR lookup_dcookie ()
-is Linux-specific.
+error was added in Linux 2.5.70.
 .SH NOTES
 .BR lookup_dcookie ()
 is a special-purpose system call, currently used only by the
index 8b184cecea0c7c02799e64759a6717983a56bb40..ae46244af3ba5174c4e3e5d1a84a584a3c9aa547 100644 (file)
@@ -205,8 +205,17 @@ The resulting file offset cannot be represented in an
 .B ESPIPE
 .I fd
 is associated with a pipe, socket, or FIFO.
+.SH VERSIONS
+On Linux, using
+.BR lseek ()
+on a terminal device fails with the error
+.BR ESPIPE .
+.\" Other systems return the number of written characters,
+.\" using SEEK_SET to set the counter. (Of written characters.)
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .PP
 .B SEEK_DATA
 and
@@ -230,20 +239,9 @@ then a
 moves the file offset to the end of the file, regardless of the use of
 .BR lseek ().
 .PP
-The
-.I off_t
-data type is a signed integer data type specified by POSIX.1.
-.PP
 Some devices are incapable of seeking and POSIX does not specify which
 devices must support
 .BR lseek ().
-.PP
-On Linux, using
-.BR lseek ()
-on a terminal device fails with the error
-\fBESPIPE\fP.
-.\" Other systems return the number of written characters,
-.\" using SEEK_SET to set the counter. (Of written characters.)
 .SH SEE ALSO
 .BR dup (2),
 .BR fallocate (2),
index 9b4652a635d34d7c45d8feec9abf0b2346e67cec..46fd8763be923379643aebe79e2b81aed3ee47db 100644 (file)
@@ -838,15 +838,6 @@ be created using the
 flag described elsewhere in this page)
 was encountered.
 .SH VERSIONS
-Since Linux 3.18,
-.\" commit d3ac21cacc24790eb45d735769f35753f5b56ceb
-support for this system call is optional,
-depending on the setting of the
-.B CONFIG_ADVISE_SYSCALLS
-configuration option.
-.SH STANDARDS
-.BR madvise ()
-is not specified by any standards.
 Versions of this system call, implementing a wide variety of
 .I advice
 values, exist on many other implementations.
@@ -865,8 +856,7 @@ with constants
 and
 .BR POSIX_MADV_DONTNEED ,
 and so on, with behavior close to the similarly named flags listed above.
-.SH NOTES
-.SS Linux notes
+.SS Linux
 The Linux implementation requires that the address
 .I addr
 be page-aligned, and allows
@@ -883,10 +873,17 @@ from the system call, as it should).
 will return zero iff
 .I advice
 is supported by the kernel and can be relied on to probe for support.
-.\" .SH HISTORY
-.\" The
-.\" .BR madvise ()
-.\" function first appeared in 4.4BSD.
+.SH STANDARDS
+None.
+.SH HISTORY
+First appeared in 4.4BSD.
+.PP
+Since Linux 3.18,
+.\" commit d3ac21cacc24790eb45d735769f35753f5b56ceb
+support for this system call is optional,
+depending on the setting of the
+.B CONFIG_ADVISE_SYSCALLS
+configuration option.
 .SH SEE ALSO
 .BR getrlimit (2),
 .BR memfd_secret (2),
index 5eecb11f6d0300485fc7c0a29ce473a0d9cc8856..d540bbe232f7586ed7a4ab56d241a1f11001f47f 100644 (file)
@@ -420,12 +420,24 @@ flag and the caller does not have the
 .B CAP_SYS_NICE
 privilege.
 .\" ---------------------------------------------------------------
-.SH VERSIONS
-The
-.BR mbind ()
-system call was added in Linux 2.6.7.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.7.
+.PP
+Support for huge page policy was added with Linux 2.6.16.
+For interleave policy to be effective on huge page mappings the
+policied memory needs to be tens of megabytes or larger.
+.PP
+Before Linux 5.7.
+.\" commit dcf1763546d76c372f3136c8d6b2b6e77f140cf0
+.B MPOL_MF_STRICT
+was ignored on huge page mappings.
+.PP
+.B MPOL_MF_MOVE
+and
+.B MPOL_MF_MOVE_ALL
+are available only on Linux 2.6.16 and later.
 .SH NOTES
 For information on library support, see
 .BR numa (7).
@@ -468,20 +480,6 @@ with an empty set of nodes.
 This method will work for
 .BR set_mempolicy (2),
 as well.
-.PP
-Support for huge page policy was added with Linux 2.6.16.
-For interleave policy to be effective on huge page mappings the
-policied memory needs to be tens of megabytes or larger.
-.PP
-Before Linux 5.7.
-.\" commit dcf1763546d76c372f3136c8d6b2b6e77f140cf0
-.B MPOL_MF_STRICT
-was ignored on huge page mappings.
-.PP
-.B MPOL_MF_MOVE
-and
-.B MPOL_MF_MOVE_ALL
-are available only on Linux 2.6.16 and later.
 .SH SEE ALSO
 .BR get_mempolicy (2),
 .BR getcpu (2),
index 390c774b9fd437a3688d2a89cf897cd614f525c6..1df4249b5ed1d160604bcc8494180d3feca31109 100644 (file)
@@ -280,27 +280,18 @@ system call is not implemented by this kernel.
 .B EPERM
 The current process was not registered prior to using private expedited
 commands.
-.SH VERSIONS
-The
-.BR membarrier ()
-system call was added in Linux 4.3.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 4.3.
 .PP
-Before Linux 5.10, the prototype for
-.BR membarrier ()
-was:
+Before Linux 5.10, the prototype was:
 .PP
 .in +4n
 .EX
 .BI "int membarrier(int " cmd ", int " flags );
 .EE
 .in
-.SH STANDARDS
-.BR membarrier ()
-is Linux-specific.
-.\" .SH SEE ALSO
-.\" FIXME See if the following syscalls make it into Linux 4.15 or later
-.\" .BR cpu_opv (2),
-.\" .BR rseq (2)
 .SH NOTES
 A memory barrier instruction is part of the instruction set of
 architectures with weakly ordered memory models.
@@ -463,3 +454,7 @@ main(int argc, char *argv[])
 }
 .EE
 .in
+.\" .SH SEE ALSO
+.\" FIXME See if the following syscalls make it into Linux 4.15 or later
+.\" .BR cpu_opv (2),
+.\" .BR rseq (2)
index 786b7c41f34de2819e5aef12200e09044b44658c..fcf2fab4d0e72289701f3473d4e91641770755cc 100644 (file)
@@ -184,11 +184,6 @@ The system-wide limit on the total number of open files has been reached.
 .TP
 .B ENOMEM
 There was insufficient memory to create a new anonymous file.
-.SH VERSIONS
-The
-.BR memfd_create ()
-system call first appeared in Linux 3.17;
-glibc support was added in glibc 2.27.
 .TP
 .B EPERM
 The
@@ -203,9 +198,10 @@ group; see the description of
 in
 .BR proc (5).
 .SH STANDARDS
-The
-.BR memfd_create ()
-system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 3.17,
+glibc 2.27.
 .SH NOTES
 .\" See also http://lwn.net/Articles/593918/
 .\" and http://lwn.net/Articles/594919/ and http://lwn.net/Articles/591108/
index 1e68a0bd20bcb67f5b1f528a07731bcf5b42e14f..552985c510559786220faa90ff43849ef8e89cf7 100644 (file)
@@ -132,14 +132,10 @@ There was insufficient memory to create a new anonymous file.
 is not implemented on this architecture,
 or has not been enabled on the kernel command-line with
 .BR secretmem_enable =1.
-.SH VERSIONS
-The
-.BR memfd_secret ()
-system call first appeared in Linux 5.14.
 .SH STANDARDS
-The
-.BR memfd_secret ()
-system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 5.14.
 .SH NOTES
 The
 .BR memfd_secret ()
index e9e95b4f6386bb72481f7fc6c479157db12afb46..babc08b837a946e0652e7cb461df6f5a4cf77625 100644 (file)
@@ -134,12 +134,10 @@ No process matching
 .I pid
 could be found.
 .\" FIXME Document the other errors that can occur for migrate_pages()
-.SH VERSIONS
-The
-.BR migrate_pages ()
-system call first appeared in Linux 2.6.16.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.16.
 .SH NOTES
 For information on library support, see
 .BR numa (7).
index 9f967ad7d3ce100549fedaeba193b75eab249e66..167841aacebfd76839d1fb543ac6cea70f7e9d39 100644 (file)
@@ -117,18 +117,16 @@ to
 +
 .I length
 contained unmapped memory.
-.SH VERSIONS
-Available since Linux 2.3.99pre1 and glibc 2.2.
 .SH STANDARDS
-.BR mincore ()
-is not specified in POSIX.1,
-and it is not available on all UNIX implementations.
-.\" It is on at least NetBSD, FreeBSD, OpenBSD, Solaris 8,
-.\" AIX 5.1, SunOS 4.1
-.\" .SH HISTORY
-.\" The
-.\" .BR mincore ()
-.\" function first appeared in 4.4BSD.
+None.
+.SH HISTORY
+Linux 2.3.99pre1,
+glibc 2.2.
+.PP
+First appeared in 4.4BSD.
+.PP
+NetBSD, FreeBSD, OpenBSD, Solaris 8,
+AIX 5.1, SunOS 4.1.
 .SH BUGS
 Before Linux 2.6.21,
 .BR mincore ()
index b1339a49a5134a38a16ef92b9d624f6a814ef576..3d643fbbf53fcc19f06b0c6044f07ca73f91e8a3 100644 (file)
@@ -204,25 +204,10 @@ does not support the creation of directories.
 .I pathname
 refers to a file on a read-only filesystem.
 .SH VERSIONS
-.BR mkdirat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
-.SH STANDARDS
-.BR mkdir ():
-SVr4, BSD, POSIX.1-2001, POSIX.1-2008.
-.\" SVr4 documents additional EIO, EMULTIHOP
-.PP
-.BR mkdirat ():
-POSIX.1-2008.
-.SH NOTES
 Under Linux, apart from the permission bits, the
 .B S_ISVTX
 .I mode
 bit is also honored.
-.PP
-There are many infelicities in the protocol underlying NFS.
-Some of these affect
-.BR mkdir ().
 .SS glibc notes
 On older kernels where
 .BR mkdirat ()
@@ -236,6 +221,21 @@ glibc constructs a pathname based on the symbolic link in
 that corresponds to the
 .I dirfd
 argument.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR mkdir ()
+SVr4, BSD, POSIX.1-2001.
+.\" SVr4 documents additional EIO, EMULTIHOP
+.TP
+.BR mkdirat ()
+Linux 2.6.16,
+glibc 2.4.
+.SH NOTES
+There are many infelicities in the protocol underlying NFS.
+Some of these affect
+.BR mkdir ().
 .SH SEE ALSO
 .BR mkdir (1),
 .BR chmod (2),
index 25657a9d1133ad44d41f3906a830590d0d4e7579..30f256c44403e6b7215cee2aff5cc84d7aa6b3b9 100644 (file)
@@ -241,19 +241,6 @@ does not support the type of node requested.
 .I pathname
 refers to a file on a read-only filesystem.
 .SH VERSIONS
-.BR mknodat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
-.SH STANDARDS
-.BR mknod ():
-SVr4, 4.4BSD, POSIX.1-2001 (but see below), POSIX.1-2008.
-.\" The Linux version differs from the SVr4 version in that it
-.\" does not require root permission to create pipes, also in that no
-.\" EMULTIHOP, ENOLINK, or EINTR error is documented.
-.PP
-.BR mknodat ():
-POSIX.1-2008.
-.SH NOTES
 POSIX.1-2001 says: "The only portable use of
 .BR mknod ()
 is to create a FIFO-special file.
@@ -278,7 +265,21 @@ cannot be used to create directories.
 One should make directories with
 .BR mkdir (2).
 .\" and one should make UNIX domain sockets with socket(2) and bind(2).
-.PP
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR mknod ()
+SVr4, 4.4BSD, POSIX.1-2001 (but see VERSIONS).
+.\" The Linux version differs from the SVr4 version in that it
+.\" does not require root permission to create pipes, also in that no
+.\" EMULTIHOP, ENOLINK, or EINTR error is documented.
+.TP
+.BR mknodat ()
+Linux 2.6.16,
+glibc 2.4.
+POSIX.1-2008.
+.SH NOTES
 There are many infelicities in the protocol underlying NFS.
 Some of these affect
 .BR mknod ()
index 3b3c7e2a3a59af56bf12ff9411937fbfd5a951dc..d36e8680cac71b1afb5e5dd846a16bec2d98946e 100644 (file)
@@ -256,19 +256,49 @@ to perform the requested operation.
 (Linux 2.6.8 and earlier) The caller was not privileged
 .RB ( CAP_IPC_LOCK ).
 .SH VERSIONS
-.BR mlock2 ()
-is available since Linux 4.4;
-glibc support was added in glibc 2.27.
-.SH STANDARDS
+.SS Linux
+Under Linux,
 .BR mlock (),
-.BR munlock (),
-.BR mlockall (),
+.BR mlock2 (),
 and
-.BR munlockall ():
-POSIX.1-2001, POSIX.1-2008, SVr4.
+.BR munlock ()
+automatically round
+.I addr
+down to the nearest page boundary.
+However, the POSIX.1 specification of
+.BR mlock ()
+and
+.BR munlock ()
+allows an implementation to require that
+.I addr
+is page aligned, so portable applications should ensure this.
 .PP
+The
+.I VmLck
+field of the Linux-specific
+.I /proc/[pid]/status
+file shows how many kilobytes of memory the process with ID
+.I PID
+has locked using
+.BR mlock (),
+.BR mlock2 (),
+.BR mlockall (),
+and
+.BR mmap (2)
+.BR MAP_LOCKED .
+.SH STANDARDS
+.TP
+.BR mlock ()
+.TQ
+.BR munlock ()
+.TQ
+.BR mlockall ()
+.TQ
+.BR munlockall ()
+POSIX.1-2008.
+.TP
 .BR mlock2 ()
-is Linux specific.
+Linux.
 .PP
 On POSIX systems on which
 .BR mlock ()
@@ -294,6 +324,20 @@ is defined in \fI<unistd.h>\fP to a value greater than 0.
 .\" POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
 .\" -1: unavailable, 0: ask using sysconf().
 .\" glibc defines it to 1.
+.SH HISTORY
+.TP
+.BR mlock ()
+.TQ
+.BR munlock ()
+.TQ
+.BR mlockall ()
+.TQ
+.BR munlockall ()
+POSIX.1-2001, POSIX.1-2008, SVr4.
+.TP
+.BR mlock2 ()
+Linux 4.4,
+glibc 2.27.
 .SH NOTES
 Memory locking has two main applications: real-time algorithms and
 high-security data processing.
@@ -392,36 +436,6 @@ flag allow efficient memory locking for applications that deal with
 large mappings where only a (small) portion of pages in the mapping are touched.
 In such cases, locking all of the pages in a mapping would incur
 a significant penalty for memory locking.
-.SS Linux notes
-Under Linux,
-.BR mlock (),
-.BR mlock2 (),
-and
-.BR munlock ()
-automatically round
-.I addr
-down to the nearest page boundary.
-However, the POSIX.1 specification of
-.BR mlock ()
-and
-.BR munlock ()
-allows an implementation to require that
-.I addr
-is page aligned, so portable applications should ensure this.
-.PP
-The
-.I VmLck
-field of the Linux-specific
-.I /proc/[pid]/status
-file shows how many kilobytes of memory the process with ID
-.I PID
-has locked using
-.BR mlock (),
-.BR mlock2 (),
-.BR mlockall (),
-and
-.BR mmap (2)
-.BR MAP_LOCKED .
 .SS Limits and permissions
 In Linux 2.6.8 and earlier,
 a process must be privileged
index 6a9395d2c2101786c11dab65aeaa0e8b9fd56a18..04f117e02d0fc6f2322bb43463c7d9e5358b8b01 100644 (file)
@@ -665,41 +665,7 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.4BSD.
-.\" SVr4 documents additional error codes ENXIO and ENODEV.
-.\" SUSv2 documents additional error codes EMFILE and EOVERFLOW.
-.PP
-On POSIX systems on which
-.BR mmap (),
-.BR msync (2),
-and
-.BR munmap ()
-are available,
-.B _POSIX_MAPPED_FILES
-is defined in \fI<unistd.h>\fP to a value greater than 0.
-(See also
-.BR sysconf (3).)
-.\" POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
-.\" -1: unavailable, 0: ask using sysconf().
-.\" glibc defines it to 1.
-.SH NOTES
-Memory mapped by
-.BR mmap ()
-is preserved across
-.BR fork (2),
-with the same attributes.
-.PP
-A file is mapped in multiples of the page size.
-For a file that is not
-a multiple of the page size,
-the remaining bytes in the partial page at the end of the mapping
-are zeroed when mapped,
-and modifications to that region are not written out to the file.
-The effect of
-changing the size of the underlying file of a mapping on the pages that
-correspond to added or removed regions of the file is unspecified.
-.PP
+.SH VERSIONS
 On some hardware architectures (e.g., i386),
 .B PROT_WRITE
 implies
@@ -760,6 +726,57 @@ The relevant flags are:
 .BR MAP_POPULATE ,
 and
 .BR MAP_STACK .
+.SS C library/kernel differences
+This page describes the interface provided by the glibc
+.BR mmap ()
+wrapper function.
+Originally, this function invoked a system call of the same name.
+Since Linux 2.4, that system call has been superseded by
+.BR mmap2 (2),
+and nowadays
+.\" Since around glibc 2.1/2.2, depending on the platform.
+the glibc
+.BR mmap ()
+wrapper function invokes
+.BR mmap2 (2)
+with a suitably adjusted value for
+.IR offset .
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.4BSD.
+.\" SVr4 documents additional error codes ENXIO and ENODEV.
+.\" SUSv2 documents additional error codes EMFILE and EOVERFLOW.
+.PP
+On POSIX systems on which
+.BR mmap (),
+.BR msync (2),
+and
+.BR munmap ()
+are available,
+.B _POSIX_MAPPED_FILES
+is defined in \fI<unistd.h>\fP to a value greater than 0.
+(See also
+.BR sysconf (3).)
+.\" POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
+.\" -1: unavailable, 0: ask using sysconf().
+.\" glibc defines it to 1.
+.SH NOTES
+Memory mapped by
+.BR mmap ()
+is preserved across
+.BR fork (2),
+with the same attributes.
+.PP
+A file is mapped in multiples of the page size.
+For a file that is not
+a multiple of the page size,
+the remaining bytes in the partial page at the end of the mapping
+are zeroed when mapped,
+and modifications to that region are not written out to the file.
+The effect of
+changing the size of the underlying file of a mapping on the pages that
+correspond to added or removed regions of the file is unspecified.
 .PP
 An application can determine which pages of a mapping are
 currently resident in the buffer/page cache using
@@ -860,21 +877,6 @@ and
 .I length
 must both be a multiple of the underlying huge page size.
 .\"
-.SS C library/kernel differences
-This page describes the interface provided by the glibc
-.BR mmap ()
-wrapper function.
-Originally, this function invoked a system call of the same name.
-Since Linux 2.4, that system call has been superseded by
-.BR mmap2 (2),
-and nowadays
-.\" Since around glibc 2.1/2.2, depending on the platform.
-the glibc
-.BR mmap ()
-wrapper function invokes
-.BR mmap2 (2)
-with a suitably adjusted value for
-.IR offset .
 .SH BUGS
 On Linux, there are no guarantees like those suggested above under
 .BR MAP_NORESERVE .
index 1fd5732ad41bbbeb9d5211a5d2148c83232c7d4e..dfddef0afc88fad12b442ec24fd2023d2ac9c8d8 100644 (file)
@@ -58,11 +58,6 @@ is not a multiple of the system page size.
 can also return any of the errors described in
 .BR mmap (2).
 .SH VERSIONS
-.BR mmap2 ()
-is available since Linux 2.3.31.
-.SH STANDARDS
-This system call is Linux-specific.
-.SH NOTES
 On architectures where this system call is present,
 the glibc
 .BR mmap ()
@@ -78,6 +73,10 @@ is actually the system page size, rather than 4096 bytes.
 .\" ia64 can have page sizes ranging from 4 kB to 64 kB.
 .\" On cris, it looks like the unit might also be the page size,
 .\" which is 8192 bytes. -- mtk, June 2007
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.3.31.
 .SH SEE ALSO
 .BR getpagesize (2),
 .BR mmap (2),
index e8ae9c9d0abe1f043517d24aaa24978e66f8859d..07f3cddb04359e9264e89e35451d2ddab53b62ff 100644 (file)
@@ -157,8 +157,7 @@ is 1 or 0x11 and the new LDT entry has invalid values.
 .I func
 is neither 0, 1, 2, nor 0x11.
 .SH STANDARDS
-This call is Linux-specific and should not be used in programs intended
-to be portable.
+Linux.
 .SH NOTES
 .BR modify_ldt ()
 should not be used for thread-local storage, as it slows down context
index a818b89b14d5f0ac740e8c25532d0cba5ade7d5b..bab18bcaebb41dfaddb4b59295b31844624b2e8e 100644 (file)
@@ -831,7 +831,10 @@ flag.
 See
 .BR EACCES ,
 above.
-.SH VERSIONS
+.\"
+.SH STANDARDS
+Linux.
+.SH HISTORY
 The definitions of
 .BR MS_DIRSYNC ,
 .BR MS_MOVE ,
@@ -844,11 +847,7 @@ The definitions of
 and
 .B MS_UNBINDABLE
 were added to glibc headers in glibc 2.12.
-.\"
-.SH STANDARDS
-This function is Linux-specific and should not be used in
-programs intended to be portable.
-.SH NOTES
+.PP
 Since Linux 2.4 a single filesystem can be mounted at
 multiple mount points, and multiple mounts can be stacked
 on the same mount point.
@@ -884,6 +883,7 @@ Since Linux 2.4 the set-user-ID and set-group-ID bits are
 just silently ignored in this case.
 .\" The change is in patch-2.4.0-prerelease.
 .\"
+.SH NOTES
 .SS Mount namespaces
 Starting with Linux 2.4.19, Linux provides mount namespaces.
 A mount namespace is the set of filesystem mounts that
index b171597cf9301941078ef761bf901793fb975b3c..f89eccbaae755b8dc1dd175f6e7082a854f5c29b 100644 (file)
@@ -581,15 +581,13 @@ An attempt was made to add an ID mapping to a mount that is already ID mapped.
 The caller does not have
 .B CAP_SYS_ADMIN
 in the initial user namespace.
-.SH VERSIONS
-.BR mount_setattr ()
-first appeared in Linux 5.12.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 5.12.
 .\" commit 7d6beb71da3cc033649d641e1e608713b8220290
 .\" commit 2a1867219c7b27f928e2545782b86daaf9ad50bd
 .\" commit 9caccd41541a6f7d6279928d9f971f6642c361af
-.SH STANDARDS
-.BR mount_setattr ()
-is Linux-specific.
 .SH NOTES
 .SS ID-mapped mounts
 Creating an ID-mapped mount makes it possible to
index 1c0851531b604530cc318058747bb5d49d2fccc3..c98edf7ff8ff6f7a31cff81c87f360cc19c05fbf 100644 (file)
@@ -216,11 +216,10 @@ to another user but did not have privilege to do so
 .TP
 .B ESRCH
 Process does not exist.
-.SH VERSIONS
-.BR move_pages ()
-first appeared in Linux 2.6.18.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.18.
 .SH NOTES
 For information on library support, see
 .BR numa (7).
index 2bf3098d06f3273981d8421751780dc14c588287..52c14da0585b369d8f8a223eb6dbaefd58056c23 100644 (file)
@@ -192,12 +192,6 @@ in the middle of a region currently protected as
 would result in three mappings:
 two read/write mappings at each end and a read-only mapping in the middle.)
 .SH VERSIONS
-.BR pkey_mprotect ()
-first appeared in Linux 4.9;
-library support was added in glibc 2.27.
-.SH STANDARDS
-.BR mprotect ():
-POSIX.1-2001, POSIX.1-2008, SVr4.
 .\" SVr4 defines an additional error
 .\" code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
 POSIX says that the behavior of
@@ -206,9 +200,6 @@ is unspecified if it is applied to a region of memory that
 was not obtained via
 .BR mmap (2).
 .PP
-.BR pkey_mprotect ()
-is a nonportable Linux extension.
-.SH NOTES
 On Linux, it is always permissible to call
 .BR mprotect ()
 on any address in a process's address space (except for the
@@ -266,6 +257,22 @@ When called this way, the operation of
 .BR pkey_mprotect ()
 is equivalent to
 .BR mprotect ().
+.SH STANDARDS
+.TP
+.BR mprotect ()
+POSIX.1-2008.
+.TP
+.BR pkey_mprotect ()
+Linux.
+.SH HISTORY
+.TP
+.BR mprotect ()
+POSIX.1-2001, SVr4.
+.TP
+.BR pkey_mprotect ()
+Linux 4.9,
+glibc 2.27.
+.SH NOTES
 .SH EXAMPLES
 .\" sigaction.2 refers to this example
 The program below demonstrates the use of
index c53919c669787d8f59207607fbfe641cf90992b7..ebdb42e79ebfc24fcd62c860ab19657113e24742 100644 (file)
@@ -25,7 +25,7 @@ For an explanation of how this system call operates,
 see the description of
 .BR mq_setattr (3).
 .SH STANDARDS
-This interface is nonstandard; avoid its use.
+None.
 .SH NOTES
 Never call it unless you are writing a C library!
 .SH SEE ALSO
index b8e65cd2f3b492fe0cedddfcd19232b91dee0d8f..be215f34d32c9653d909eee01d2fdbbf63d13367 100644 (file)
@@ -243,11 +243,19 @@ was used causing a new mapping to be created that would exceed the
 Or, it would exceed the maximum number of allowed mappings.
 .RE
 .SH STANDARDS
-This call is Linux-specific, and should not be used in programs
-intended to be portable.
+Linux.
+.SH HISTORY
 .\" 4.2BSD had a (never actually implemented)
 .\" .BR mremap (2)
 .\" call with completely different semantics.
+.\" .PP
+Prior to glibc 2.4, glibc did not expose the definition of
+.BR MREMAP_FIXED ,
+and the prototype for
+.BR mremap ()
+did not allow for the
+.I new_address
+argument.
 .SH NOTES
 .BR mremap ()
 changes the
@@ -279,14 +287,6 @@ call will make a best effort to populate the new area but will not fail
 with
 .B ENOMEM
 if the area cannot be populated.
-.PP
-Prior to glibc 2.4, glibc did not expose the definition of
-.BR MREMAP_FIXED ,
-and the prototype for
-.BR mremap ()
-did not allow for the
-.I new_address
-argument.
 .\"
 .SS MREMAP_DONTUNMAP use cases
 Possible applications for
index ce534dc2abd5c6d0a1ef1cc14d82b8b503298199..926f683a9c884c29a0cddb0d075a7f7d59b8d95e 100644 (file)
@@ -385,20 +385,10 @@ but the caller is not privileged (Linux: does not have the
 .B CAP_SYS_RESOURCE
 capability).
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
 .\" SVID does not document the EIDRM error condition.
-.SH NOTES
-The
-.BR IPC_INFO ,
-.BR MSG_STAT ,
-and
-.B MSG_INFO
-operations are used by the
-.BR ipcs (1)
-program to provide information on allocated resources.
-In the future these may modified or moved to a
-.I /proc
-filesystem interface.
 .PP
 Various fields in the \fIstruct msqid_ds\fP were
 typed as
@@ -413,6 +403,18 @@ a recompilation under glibc-2.1.91 or later should suffice.
 .B IPC_64
 flag in
 .IR cmd .)
+.SH NOTES
+The
+.BR IPC_INFO ,
+.BR MSG_STAT ,
+and
+.B MSG_INFO
+operations are used by the
+.BR ipcs (1)
+program to provide information on allocated resources.
+In the future these may modified or moved to a
+.I /proc
+filesystem interface.
 .SH SEE ALSO
 .BR msgget (2),
 .BR msgrcv (2),
index fb6caee487586b75d236d37c80aef190c97f2bee..60c9aa52d9810b7202a8a8d55b09e5dcc7f510fd 100644 (file)
@@ -168,7 +168,15 @@ number of message queues
 .RB ( MSGMNI )
 would be exceeded.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
+.SS Linux
+Until Linux 2.3.20, Linux would return
+.B EIDRM
+for a
+.BR msgget ()
+on a message queue scheduled for deletion.
 .SH NOTES
 .B IPC_PRIVATE
 isn't a flag field but a
@@ -193,12 +201,6 @@ based on available system memory.
 Since Linux 3.19, the default value is 32,000.
 On Linux, this limit can be read and modified via
 .IR /proc/sys/kernel/msgmni .
-.SS Linux notes
-Until Linux 2.3.20, Linux would return
-.B EIDRM
-for a
-.BR msgget ()
-on a message queue scheduled for deletion.
 .SH BUGS
 The name choice
 .B IPC_PRIVATE
index 964889ae5a58eb72e0e348e4b6d2cbd98a225f8d..ee4f1141938e0f984405d3d404f8e0f23a132a6d 100644 (file)
@@ -450,7 +450,7 @@ were specified in
 and this kernel was configured without
 .BR CONFIG_CHECKPOINT_RESTORE .
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
+POSIX.1-2008.
 .PP
 The
 .B MSG_EXCEPT
@@ -461,14 +461,16 @@ their definitions can be obtained by defining the
 .B _GNU_SOURCE
 .\" MSG_COPY since glibc 2.18
 feature test macro.
-.SH NOTES
+.SH HISTORY
+POSIX.1-2001, SVr4.
+.PP
 The
 .I msgp
 argument is declared as \fIstruct msgbuf\ *\fP in
 glibc 2.0 and 2.1.
 It is declared as \fIvoid\ *\fP
 in glibc 2.2 and later, as required by SUSv2 and SUSv3.
-.PP
+.SH NOTES
 The following limits on message queue resources affect the
 .BR msgsnd ()
 call:
index e650f7988867cdfc70590291f7ec8d8d34d5a49f..4cd38d19a863ee3f9dbcbfe676172ec71815dd5e 100644 (file)
@@ -81,31 +81,7 @@ are set in
 .TP
 .B ENOMEM
 The indicated memory (or part of it) was not mapped.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.PP
-This call was introduced in Linux 1.3.21, and then used
-.B EFAULT
-instead of
-.BR ENOMEM .
-In Linux 2.4.19, this was changed to the POSIX value
-.BR ENOMEM .
-.PP
-On POSIX systems on which
-.BR msync ()
-is available, both
-.B _POSIX_MAPPED_FILES
-and
-.B _POSIX_SYNCHRONIZED_IO
-are defined in
-.I <unistd.h>
-to a value greater than 0.
-(See also
-.BR sysconf (3).)
-.\" POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
-.\" -1: unavailable, 0: ask using sysconf().
-.\" glibc defines them to 1.
-.SH NOTES
+.SH VERSIONS
 According to POSIX, either
 .B MS_SYNC
 or
@@ -132,6 +108,32 @@ or
 .B MS_ASYNC
 in
 .IR flags .
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.PP
+This call was introduced in Linux 1.3.21, and then used
+.B EFAULT
+instead of
+.BR ENOMEM .
+In Linux 2.4.19, this was changed to the POSIX value
+.BR ENOMEM .
+.PP
+On POSIX systems on which
+.BR msync ()
+is available, both
+.B _POSIX_MAPPED_FILES
+and
+.B _POSIX_SYNCHRONIZED_IO
+are defined in
+.I <unistd.h>
+to a value greater than 0.
+(See also
+.BR sysconf (3).)
+.\" POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
+.\" -1: unavailable, 0: ask using sysconf().
+.\" glibc defines them to 1.
 .SH SEE ALSO
 .BR mmap (2)
 .PP
index 12e0cee84b85b6c8a614bba0cf76c3b418b262d0..12241929617c8e78b4777ddfaaba84fda21cc20e 100644 (file)
@@ -109,27 +109,7 @@ The value in the
 field was not in the range [0, 999999999] or
 .I tv_sec
 was negative.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-If the interval specified in
-.I req
-is not an exact multiple of the granularity underlying clock (see
-.BR time (7)),
-then the interval will be rounded up to the next multiple.
-Furthermore, after the sleep completes, there may still be a delay before
-the CPU becomes free to once again execute the calling thread.
-.PP
-The fact that
-.BR nanosleep ()
-sleeps for a relative interval can be problematic if the call
-is repeatedly restarted after being interrupted by signals,
-since the time between the interruptions and restarts of the call
-will lead to drift in the time when the sleep finally completes.
-This problem can be avoided by using
-.BR clock_nanosleep (2)
-with an absolute time value.
-.PP
+.SH VERSIONS
 POSIX.1 specifies that
 .BR nanosleep ()
 should measure time against the
@@ -161,7 +141,11 @@ function; ...
 Consequently, these time services shall expire when the requested relative
 interval elapses, independently of the new or old value of the clock.
 .RE
-.SS Old behavior
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.PP
 In order to support applications requiring much more precise pauses
 (e.g., in order to control some time-critical hardware),
 .BR nanosleep ()
@@ -173,6 +157,24 @@ or
 .BR SCHED_RR .
 This special extension was removed in Linux 2.5.39,
 and is thus not available in Linux 2.6.0 and later kernels.
+.SH NOTES
+If the interval specified in
+.I req
+is not an exact multiple of the granularity underlying clock (see
+.BR time (7)),
+then the interval will be rounded up to the next multiple.
+Furthermore, after the sleep completes, there may still be a delay before
+the CPU becomes free to once again execute the calling thread.
+.PP
+The fact that
+.BR nanosleep ()
+sleeps for a relative interval can be problematic if the call
+is repeatedly restarted after being interrupted by signals,
+since the time between the interruptions and restarts of the call
+will lead to drift in the time when the sleep finally completes.
+This problem can be avoided by using
+.BR clock_nanosleep (2)
+with an absolute time value.
 .SH BUGS
 If a program that catches signals and uses
 .BR nanosleep ()
index c9ecc069cdef6dfd3398db3eb089433a833f70db..7e0996f331310a17a044d0050ca0429a7e93706a 100644 (file)
@@ -61,10 +61,10 @@ On success, zero is returned.
 On error, \-1 is returned, and
 .I errno
 is set to indicate the error.
-.SH VERSIONS
-This system call was removed in Linux 3.1.
-Library support was removed in glibc 2.28.
 .SH STANDARDS
-This call is Linux-specific.
+Linux.
+.SH HISTORY
+Removed in Linux 3.1.
+Removed in glibc 2.28.
 .SH SEE ALSO
 .BR nfsd (7)
index c6ba8c752c94e605bb3b5b0c993ce0b59de6cfb5..c97fb0935558f1a7eb5a19b9607a25fc994862f6 100644 (file)
@@ -76,23 +76,7 @@ capability is required.
 .B RLIMIT_NICE
 resource limit in
 .BR setrlimit (2).)
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
-However, the raw system call and (g)libc
-(earlier than glibc 2.2.4) return value is nonstandard, see below.
-.\" SVr4 documents an additional
-.\" .B EINVAL
-.\" error code.
-.SH NOTES
-For further details on the nice value, see
-.BR sched (7).
-.PP
-.IR Note :
-the addition of the "autogroup" feature in Linux 2.6.38 means that
-the nice value no longer has its traditional effect in many circumstances.
-For details, see
-.BR sched (7).
-.\"
+.SH VERSIONS
 .SS C library/kernel differences
 POSIX.1 specifies that
 .BR nice ()
@@ -107,6 +91,22 @@ Since glibc 2.2.4, the
 wrapper function provided by glibc provides conformance to POSIX.1 by calling
 .BR getpriority (2)
 to obtain the new nice value, which is then returned to the caller.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
+.\" SVr4 documents an additional
+.\" .B EINVAL
+.\" error code.
+.SH NOTES
+For further details on the nice value, see
+.BR sched (7).
+.PP
+.IR Note :
+the addition of the "autogroup" feature in Linux 2.6.38 means that
+the nice value no longer has its traditional effect in many circumstances.
+For details, see
+.BR sched (7).
 .SH SEE ALSO
 .BR nice (1),
 .BR renice (1),
index aefcae1e601e4dbf2af19e7f2a8a7b3a5ec1ceef..d9386c48fb8c134717e524ab359c04b54721d603 100644 (file)
@@ -1285,19 +1285,133 @@ flag was specified, and an incompatible lease was held on the file
 (see
 .BR fcntl (2)).
 .SH VERSIONS
+The (undefined) effect of
+.B O_RDONLY | O_TRUNC
+varies among implementations.
+On many systems the file is actually truncated.
+.\" Linux 2.0, 2.5: truncate
+.\" Solaris 5.7, 5.8: truncate
+.\" Irix 6.5: truncate
+.\" Tru64 5.1B: truncate
+.\" HP-UX 11.22: truncate
+.\" FreeBSD 4.7: truncate
+.SS Synchronized I/O
+The POSIX.1-2008 "synchronized I/O" option
+specifies different variants of synchronized I/O,
+and specifies the
+.BR open ()
+flags
+.BR O_SYNC ,
+.BR O_DSYNC ,
+and
+.B O_RSYNC
+for controlling the behavior.
+Regardless of whether an implementation supports this option,
+it must at least support the use of
+.B O_SYNC
+for regular files.
+.PP
+Linux implements
+.B O_SYNC
+and
+.BR O_DSYNC ,
+but not
+.BR O_RSYNC .
+Somewhat incorrectly, glibc defines
+.B O_RSYNC
+to have the same value as
+.BR O_SYNC .
+.RB ( O_RSYNC
+is defined in the Linux header file
+.I <asm/fcntl.h>
+on HP PA-RISC, but it is not used.)
+.PP
+.B O_SYNC
+provides synchronized I/O
+.I file
+integrity completion,
+meaning write operations will flush data and all associated metadata
+to the underlying hardware.
+.B O_DSYNC
+provides synchronized I/O
+.I data
+integrity completion,
+meaning write operations will flush data
+to the underlying hardware,
+but will only flush metadata updates that are required
+to allow a subsequent read operation to complete successfully.
+Data integrity completion can reduce the number of disk operations
+that are required for applications that don't need the guarantees
+of file integrity completion.
+.PP
+To understand the difference between the two types of completion,
+consider two pieces of file metadata:
+the file last modification timestamp
+.RI ( st_mtime )
+and the file length.
+All write operations will update the last file modification timestamp,
+but only writes that add data to the end of the
+file will change the file length.
+The last modification timestamp is not needed to ensure that
+a read completes successfully, but the file length is.
+Thus,
+.B O_DSYNC
+would only guarantee to flush updates to the file length metadata
+(whereas
+.B O_SYNC
+would also always flush the last modification timestamp metadata).
+.PP
+Before Linux 2.6.33, Linux implemented only the
+.B O_SYNC
+flag for
+.BR open ().
+However, when that flag was specified,
+most filesystems actually provided the equivalent of synchronized I/O
+.I data
+integrity completion (i.e.,
+.B O_SYNC
+was actually implemented as the equivalent of
+.BR O_DSYNC ).
+.PP
+Since Linux 2.6.33, proper
+.B O_SYNC
+support is provided.
+However, to ensure backward binary compatibility,
+.B O_DSYNC
+was defined with the same value as the historical
+.BR O_SYNC ,
+and
+.B O_SYNC
+was defined as a new (two-bit) flag value that includes the
+.B O_DSYNC
+flag value.
+This ensures that applications compiled against
+new headers get at least
+.B O_DSYNC
+semantics before Linux 2.6.33.
+.\"
+.SS C library/kernel differences
+Since glibc 2.26,
+the glibc wrapper function for
+.BR open ()
+employs the
 .BR openat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
+system call, rather than the kernel's
+.BR open ()
+system call.
+For certain architectures, this is also true before glibc 2.26.
+.\"
 .SH STANDARDS
-.BR open (),
+.TP
+.BR open ()
+.TQ
 .BR creat ()
-SVr4, 4.3BSD, POSIX.1-2001, POSIX.1-2008.
-.PP
-.BR openat ():
+.TQ
+.BR openat ()
 POSIX.1-2008.
 .PP
 .BR openat2 (2)
-is Linux-specific.
+Linux.
 .PP
 The
 .BR O_DIRECT ,
@@ -1324,17 +1438,17 @@ with a value greater than or equal to 200809L or
 with a value greater than or equal to 700.
 In glibc 2.11 and earlier, one obtains the definitions by defining
 .BR _GNU_SOURCE .
-.PP
-As noted in
-.BR feature_test_macros (7),
-feature test macros such as
-.BR _POSIX_C_SOURCE ,
-.BR _XOPEN_SOURCE ,
-and
-.B _GNU_SOURCE
-must be defined before including
-.I any
-header files.
+.SH HISTORY
+.TP
+.BR open ()
+.TQ
+.BR creat ()
+SVr4, 4.3BSD, POSIX.1-2001.
+.TP
+.BR openat ()
+POSIX.1-2008.
+Linux 2.6.16,
+glibc 2.4.
 .SH NOTES
 Under Linux, the
 .B O_NONBLOCK
@@ -1345,17 +1459,6 @@ this may be used to open a device in order to get a file descriptor
 for use with
 .BR ioctl (2).
 .PP
-The (undefined) effect of
-.B O_RDONLY | O_TRUNC
-varies among implementations.
-On many systems the file is actually truncated.
-.\" Linux 2.0, 2.5: truncate
-.\" Solaris 5.7, 5.8: truncate
-.\" Irix 6.5: truncate
-.\" Tru64 5.1B: truncate
-.\" HP-UX 11.22: truncate
-.\" FreeBSD 4.7: truncate
-.PP
 Note that
 .BR open ()
 can open device special files, but
@@ -1442,113 +1545,6 @@ operation to test whether two file descriptors
 (in the same process or in two different processes)
 refer to the same open file description.
 .\"
-.\"
-.SS Synchronized I/O
-The POSIX.1-2008 "synchronized I/O" option
-specifies different variants of synchronized I/O,
-and specifies the
-.BR open ()
-flags
-.BR O_SYNC ,
-.BR O_DSYNC ,
-and
-.B O_RSYNC
-for controlling the behavior.
-Regardless of whether an implementation supports this option,
-it must at least support the use of
-.B O_SYNC
-for regular files.
-.PP
-Linux implements
-.B O_SYNC
-and
-.BR O_DSYNC ,
-but not
-.BR O_RSYNC .
-Somewhat incorrectly, glibc defines
-.B O_RSYNC
-to have the same value as
-.BR O_SYNC .
-.RB ( O_RSYNC
-is defined in the Linux header file
-.I <asm/fcntl.h>
-on HP PA-RISC, but it is not used.)
-.PP
-.B O_SYNC
-provides synchronized I/O
-.I file
-integrity completion,
-meaning write operations will flush data and all associated metadata
-to the underlying hardware.
-.B O_DSYNC
-provides synchronized I/O
-.I data
-integrity completion,
-meaning write operations will flush data
-to the underlying hardware,
-but will only flush metadata updates that are required
-to allow a subsequent read operation to complete successfully.
-Data integrity completion can reduce the number of disk operations
-that are required for applications that don't need the guarantees
-of file integrity completion.
-.PP
-To understand the difference between the two types of completion,
-consider two pieces of file metadata:
-the file last modification timestamp
-.RI ( st_mtime )
-and the file length.
-All write operations will update the last file modification timestamp,
-but only writes that add data to the end of the
-file will change the file length.
-The last modification timestamp is not needed to ensure that
-a read completes successfully, but the file length is.
-Thus,
-.B O_DSYNC
-would only guarantee to flush updates to the file length metadata
-(whereas
-.B O_SYNC
-would also always flush the last modification timestamp metadata).
-.PP
-Before Linux 2.6.33, Linux implemented only the
-.B O_SYNC
-flag for
-.BR open ().
-However, when that flag was specified,
-most filesystems actually provided the equivalent of synchronized I/O
-.I data
-integrity completion (i.e.,
-.B O_SYNC
-was actually implemented as the equivalent of
-.BR O_DSYNC ).
-.PP
-Since Linux 2.6.33, proper
-.B O_SYNC
-support is provided.
-However, to ensure backward binary compatibility,
-.B O_DSYNC
-was defined with the same value as the historical
-.BR O_SYNC ,
-and
-.B O_SYNC
-was defined as a new (two-bit) flag value that includes the
-.B O_DSYNC
-flag value.
-This ensures that applications compiled against
-new headers get at least
-.B O_DSYNC
-semantics before Linux 2.6.33.
-.\"
-.SS C library/kernel differences
-Since glibc 2.26,
-the glibc wrapper function for
-.BR open ()
-employs the
-.BR openat ()
-system call, rather than the kernel's
-.BR open ()
-system call.
-For certain architectures, this is also true before glibc 2.26.
-.\"
 .SS NFS
 There are many infelicities in the protocol underlying NFS, affecting
 amongst others
index 20fd4519f9b0fcb01845df2a7d580b5ceae0efb2..bbdafb76dde3778860fa84e89ac9b9e8b4a2592e 100644 (file)
@@ -366,15 +366,15 @@ The specified
 is not valid.
 This error will occur if, for example, the file has been deleted.
 .SH VERSIONS
-These system calls first appeared in Linux 2.6.39.
-Library support is provided since glibc 2.14.
-.SH STANDARDS
-These system calls are nonstandard Linux extensions.
-.PP
 FreeBSD has a broadly similar pair of system calls in the form of
 .BR getfh ()
 and
 .BR openfh ().
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.6.39,
+glibc 2.14.
 .SH NOTES
 A file handle can be generated in one process using
 .BR name_to_handle_at ()
index 3ffd06ae72980a5ce6c22ee043e8c14fadd8a5cb..e90211fadb8b4620c1e7467dbe0db271dc1301f0 100644 (file)
@@ -466,12 +466,11 @@ and an escape from the root during path resolution was detected.
 contains
 .BR RESOLVE_NO_XDEV ,
 and a path component crosses a mount point.
-.SH VERSIONS
-.BR openat2 ()
-first appeared in Linux 5.6.
-.\" commit fddb5d430ad9fa91b49b1d34d0202ffe2fa0e179
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 5.6.
+.\" commit fddb5d430ad9fa91b49b1d34d0202ffe2fa0e179
 .PP
 The semantics of
 .B RESOLVE_BENEATH
index 90bedebd4449eb847de7b09495a4365cceba309c..11aafcdcef04a03b5741612ab14a484d7f7c02b4 100644 (file)
@@ -68,7 +68,7 @@ to tell the kernel to allow the user space application to access the
 I/O ports in question.
 Failure to do this will cause the application
 to receive a segmentation fault.
-.SH STANDARDS
+.SH VERSIONS
 .BR outb ()
 and friends are hardware-specific.
 The
@@ -77,6 +77,8 @@ argument is passed first and the
 .I port
 argument is passed second,
 which is the opposite order from most DOS implementations.
+.SH STANDARDS
+None.
 .SH SEE ALSO
 .BR ioperm (2),
 .BR iopl (2)
index 1a4f3cb910b9694e57f86fe8a7c7733dd478a7bf..7cc7b0b8dec026130b86261ad5833ca1a2a3328b 100644 (file)
@@ -40,7 +40,9 @@ is set to
 .B EINTR
 a signal was caught and the signal-catching function returned.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR kill (2),
 .BR select (2),
index 64de37f53b67ed538ce9dadbc47ecfb995266098..1f5d512a371efc4e0fca17d1eae37fc2177e52a7 100644 (file)
@@ -115,6 +115,8 @@ capability.
 This does not apply to
 .BR pciconfig_iobase ().
 .SH STANDARDS
-These calls are Linux-specific, available since Linux 2.0.26/2.1.11.
+Linux.
+.SH HISTORY
+Linux 2.0.26/2.1.11.
 .SH SEE ALSO
 .BR capabilities (7)
index 4d3469c383bbc17f8abf5ae813024cf9bc4afeb4..ee65d20d081c29d2c5e000958ee71417ad1e2a40 100644 (file)
@@ -3816,18 +3816,15 @@ and (since Linux 3.13) setting a kernel function-trace tracepoint.
 .TP
 .B ESRCH
 Returned if attempting to attach to a process that does not exist.
-.SH VERSION
+.SH STANDARDS
+Linux.
+.SH HISTORY
 .BR perf_event_open ()
 was introduced in Linux 2.6.31 but was called
 .\" commit 0793a61d4df8daeac6492dbf8d2f3e5713caae5e
 .BR perf_counter_open ().
 It was renamed in Linux 2.6.32.
 .\" commit cdd6c482c9ff9c55475ee7392ec8f672eddb7be6
-.SH STANDARDS
-This
-.BR perf_event_open ()
-system call Linux-specific
-and should not be used in programs intended to be portable.
 .SH NOTES
 The official way of knowing if
 .BR perf_event_open ()
index 1adbba492019b628150e113efbac6b1c6852b501..d6d36a0a045450cb3a565e6b57d9baf9d15bb081 100644 (file)
@@ -16,7 +16,7 @@ perfmonctl \- interface to IA-64 performance monitoring unit
 .fi
 .PP
 .IR Note :
-There is no glibc wrapper for this system call; see NOTES.
+There is no glibc wrapper for this system call; see HISTORY.
 .SH DESCRIPTION
 The IA-64-specific
 .BR perfmonctl ()
@@ -174,15 +174,13 @@ returns zero when the operation is successful.
 On error, \-1 is returned and
 .I errno
 is set to indicate the error.
-.SH VERSIONS
-.BR perfmonctl ()
-was added in Linux 2.4;
-.\" commit ecf5b72d5f66af843f189dfe9ce31598c3e48ad7
-it was removed in Linux 5.10.
 .SH STANDARDS
-.BR perfmonctl ()
-is Linux-specific and is available only on the IA-64 architecture.
-.SH NOTES
+Linux on IA-64.
+.SH HISTORY
+Added in Linux 2.4;
+.\" commit ecf5b72d5f66af843f189dfe9ce31598c3e48ad7
+removed in Linux 5.10.
+.PP
 This system call was broken for many years,
 and ultimately removed in Linux 5.10.
 .PP
index 4be1b97f5da6deebf9d9f91c5b1733759ef02d73..caca709b8ae028735727bc5363faed4e7f74e37e 100644 (file)
@@ -243,15 +243,13 @@ is set to indicate the error.
 .TP
 .B EINVAL
 The kernel was unable to change the personality.
-.SH VERSIONS
-This system call first appeared in Linux 1.1.20
-(and thus first in a stable kernel release with Linux 1.2.0);
-library support was added in glibc 2.3.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 1.1.20,
+.\" (and thus first in a stable kernel release with Linux 1.2.0)
+glibc 2.3.
 .\" personality wrapper first appeared in glibc 1.90,
 .\" <sys/personality.h> was added later in glibc 2.2.91.
-.SH STANDARDS
-.BR personality ()
-is Linux-specific and should not be used in programs intended to
-be portable.
 .SH SEE ALSO
 .BR setarch (8)
index 097ec27e8983d49ccb3b76eb3144e74e680d1aed..fe4831b58b2a1d615980501852475ab9055c44ab 100644 (file)
@@ -103,13 +103,11 @@ The process referred to by
 .I pidfd
 does not exist
 (i.e., it has terminated and been waited on).
-.SH VERSIONS
-.BR pidfd_getfd ()
-first appeared in Linux 5.6.
-.\" commit 8649c322f75c96e7ced2fec201e123b2b073bf09
 .SH STANDARDS
-.BR pidfd_getfd ()
-is Linux specific.
+Linux.
+.SH HISTORY
+Linux 5.6.
+.\" commit 8649c322f75c96e7ced2fec201e123b2b073bf09
 .SH NOTES
 For a description of PID file descriptors, see
 .BR pidfd_open (2).
index f0ba89cdb9bb14ca65f0312970f46b90db77c8e1..68e4c23fa0b25010879e94abf138f3c6e4ac8e5a 100644 (file)
@@ -80,12 +80,10 @@ Insufficient kernel memory was available.
 The process specified by
 .I pid
 does not exist.
-.SH VERSIONS
-.BR pidfd_open ()
-first appeared in Linux 5.3.
 .SH STANDARDS
-.BR pidfd_open ()
-is Linux specific.
+Linux.
+.SH HISTORY
+Linux 5.3.
 .SH NOTES
 The following code sequence can be used to obtain a file descriptor
 for the child of
index 30ccfa4469228877f4cdb9d2bbef88a825ec8d2b..d44a369f38d71775aeab458c1c7f6bd2a61125b6 100644 (file)
@@ -118,12 +118,10 @@ is invalid (see
 .B ESRCH
 The target process does not exist
 (i.e., it has terminated and been waited on).
-.SH VERSIONS
-.BR pidfd_send_signal ()
-first appeared in Linux 5.1.
 .SH STANDARDS
-.BR pidfd_send_signal ()
-is Linux specific.
+Linux.
+.SH HISTORY
+Linux 5.1.
 .SH NOTES
 .SS PID file descriptors
 The
index 26e7df626e2efc90f2a94c7647c5c057bd9aa1c3..adf6d73bf259b08a2a3d85f01d6e18ff7fff654b 100644 (file)
@@ -193,16 +193,6 @@ and support for notifications
 .RB ( CONFIG_WATCH_QUEUE )
 is not compiled into the kernel.
 .SH VERSIONS
-.BR pipe2 ()
-was added in Linux 2.6.27;
-glibc support is available starting with glibc 2.9.
-.SH STANDARDS
-.BR pipe ():
-POSIX.1-2001, POSIX.1-2008.
-.PP
-.BR pipe2 ()
-is Linux-specific.
-.SH NOTES
 .\" See http://math-atlas.sourceforge.net/devel/assembly/64.psabi.1.33.ps.Z
 .\" for example, section 3.2.1 "Registers and the Stack Frame".
 The System V ABI on some architectures allows the use of more than one register
@@ -219,6 +209,21 @@ wrapper function transparently deals with this.
 See
 .BR syscall (2)
 for information regarding registers used for storing second file descriptor.
+.SH STANDARDS
+.TP
+.BR pipe ()
+POSIX.1-2008.
+.TP
+.BR pipe2 ()
+Linux.
+.SH HISTORY
+.TP
+.BR pipe ()
+POSIX.1-2001.
+.TP
+.BR pipe2 ()
+Linux 2.6.27,
+glibc 2.9.
 .SH EXAMPLES
 .\" fork.2 refers to this example program.
 The following program creates a pipe, and then
index ee5b1fae6ed9067b1b9dafce56fb3c830af81b2e..6fa240c060c6988f89b1d600ac30129efee1fe6c 100644 (file)
@@ -151,12 +151,10 @@ is a mount point and has the propagation type
 The calling process does not have the
 .B CAP_SYS_ADMIN
 capability.
-.SH VERSIONS
-.BR pivot_root ()
-was introduced in Linux 2.3.41.
 .SH STANDARDS
-.BR pivot_root ()
-is Linux-specific and hence is not portable.
+Linux.
+.SH HISTORY
+Linux 2.3.41.
 .SH NOTES
 A command-line interface for this system call is provided by
 .BR pivot_root (8).
index d6d33e8d65211d5c38ee25885114eb90ab5bc136..f0c9149f7749cd1645e6ad206a541bbf02ee017d 100644 (file)
@@ -83,18 +83,11 @@ does not support protection keys.
 Applications should always be prepared to handle this error, since
 factors outside of the application's control can reduce the number
 of available pkeys.
-.SH VERSIONS
-.BR pkey_alloc ()
-and
-.BR pkey_free ()
-were added in Linux 4.9;
-library support was added in glibc 2.27.
 .SH STANDARDS
-The
-.BR pkey_alloc ()
-and
-.BR pkey_free ()
-system calls are Linux-specific.
+Linux.
+.SH HISTORY
+Linux 4.9,
+glibc 2.27.
 .SH NOTES
 .BR pkey_alloc ()
 is always safe to call regardless of whether or not the operating system
index be6de06076597c4804b555cab536abf7af58ea64..4e26e62d40606d53a265a3819992f4dc485fbb90 100644 (file)
@@ -358,39 +358,6 @@ is invalid (negative).
 .B ENOMEM
 Unable to allocate memory for kernel data structures.
 .SH VERSIONS
-The
-.BR poll ()
-system call was introduced in Linux 2.1.23.
-On older kernels that lack this system call,
-the glibc
-.BR poll ()
-wrapper function provides emulation using
-.BR select (2).
-.PP
-The
-.BR ppoll ()
-system call was added in Linux 2.6.16.
-The
-.BR ppoll ()
-library call was added in glibc 2.4.
-.SH STANDARDS
-.BR poll ()
-conforms to POSIX.1-2001 and POSIX.1-2008.
-.BR ppoll ()
-is Linux-specific.
-.\" FIXME .
-.\" ppoll() is proposed for inclusion in POSIX:
-.\" https://www.austingroupbugs.net/view.php?id=1263
-.\" NetBSD 3.0 has a pollts() which is like Linux ppoll().
-.SH NOTES
-The operation of
-.BR poll ()
-and
-.BR ppoll ()
-is not affected by the
-.B O_NONBLOCK
-flag.
-.PP
 On some other UNIX systems,
 .\" Darwin, according to a report by Jeremy Sequoia, relayed by Josh Triplett
 .BR poll ()
@@ -412,11 +379,6 @@ with the value \-1 for use as a
 for
 .BR poll ().
 This constant is not provided in glibc.
-.PP
-For a discussion of what may happen if a file descriptor being monitored by
-.BR poll ()
-is closed in another thread, see
-.BR select (2).
 .SS C library/kernel differences
 The Linux
 .BR ppoll ()
@@ -448,6 +410,45 @@ See
 .BR sigprocmask (2)
 for a discussion on the differences between the kernel and the libc
 notion of the sigset.
+.SH STANDARDS
+.TP
+.BR poll ()
+POSIX.1-2008.
+.TP
+.BR ppoll ()
+Linux.
+.\" FIXME .
+.\" ppoll() is proposed for inclusion in POSIX:
+.\" https://www.austingroupbugs.net/view.php?id=1263
+.\" NetBSD 3.0 has a pollts() which is like Linux ppoll().
+.SH HISTORY
+.TP
+.BR poll ()
+POSIX.1-2001.
+Linux 2.1.23.
+.IP
+On older kernels that lack this system call,
+the glibc
+.BR poll ()
+wrapper function provides emulation using
+.BR select (2).
+.TP
+.BR ppoll ()
+Linux 2.6.16,
+glibc 2.4.
+.SH NOTES
+The operation of
+.BR poll ()
+and
+.BR ppoll ()
+is not affected by the
+.B O_NONBLOCK
+flag.
+.PP
+For a discussion of what may happen if a file descriptor being monitored by
+.BR poll ()
+is closed in another thread, see
+.BR select (2).
 .SH BUGS
 See the discussion of spurious readiness notifications under the
 BUGS section of
index 57c65c810791c58ccd781bc3e2ff0f2c7984416d..64ba39227c818f266e25830e18dfaa32542f0e7f 100644 (file)
@@ -127,47 +127,11 @@ Linux returned
 .B EINVAL
 in this case.)
 .SH VERSIONS
-Kernel support first appeared in Linux 2.5.60;
-the underlying system call is called
-.BR fadvise64 ().
-.\" of fadvise64_64()
-Library support has been provided since glibc 2.2,
-via the wrapper function
-.BR posix_fadvise ().
-.PP
-Since Linux 3.18,
-.\" commit d3ac21cacc24790eb45d735769f35753f5b56ceb
-support for the underlying system call is optional,
-depending on the setting of the
-.B CONFIG_ADVISE_SYSCALLS
-configuration option.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-Note that the type of the
-.I len
-argument was changed from
-.I size_t
-to
-.I off_t
-in POSIX.1-2001 TC1.
-.SH NOTES
 Under Linux, \fBPOSIX_FADV_NORMAL\fP sets the readahead window to the
 default size for the backing device; \fBPOSIX_FADV_SEQUENTIAL\fP doubles
 this size, and \fBPOSIX_FADV_RANDOM\fP disables file readahead entirely.
 These changes affect the entire file, not just the specified region
 (but other open file handles to the same file are unaffected).
-.PP
-The contents of the kernel buffer cache can be cleared via the
-.I /proc/sys/vm/drop_caches
-interface described in
-.BR proc (5).
-.PP
-One can obtain a snapshot of which pages of a file are resident
-in the buffer cache by opening a file, mapping it with
-.BR mmap (2),
-and then applying
-.BR mincore (2)
-to the mapping.
 .SS C library/kernel differences
 The name of the wrapper function in the C library is
 .BR posix_fadvise ().
@@ -210,6 +174,45 @@ hidden from applications by the glibc
 .BR posix_fadvise ()
 wrapper function,
 which invokes the appropriate architecture-specific system call.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.PP
+Kernel support first appeared in Linux 2.5.60;
+the underlying system call is called
+.BR fadvise64 ().
+.\" of fadvise64_64()
+Library support has been provided since glibc 2.2,
+via the wrapper function
+.BR posix_fadvise ().
+.PP
+Since Linux 3.18,
+.\" commit d3ac21cacc24790eb45d735769f35753f5b56ceb
+support for the underlying system call is optional,
+depending on the setting of the
+.B CONFIG_ADVISE_SYSCALLS
+configuration option.
+.PP
+The type of the
+.I len
+argument was changed from
+.I size_t
+to
+.I off_t
+in POSIX.1-2001 TC1.
+.SH NOTES
+The contents of the kernel buffer cache can be cleared via the
+.I /proc/sys/vm/drop_caches
+interface described in
+.BR proc (5).
+.PP
+One can obtain a snapshot of which pages of a file are resident
+in the buffer cache by opening a file, mapping it with
+.BR mmap (2),
+and then applying
+.BR mincore (2)
+to the mapping.
 .SH BUGS
 Before Linux 2.6.6, if
 .I len
index 2212331af0e456eb9c183e3bff5eb0d059a92a11..bfd52b50c850fc4059939ef54deabd5205e0f8aa 100644 (file)
@@ -2502,12 +2502,6 @@ is not
 nor
 .BR PR_SPEC_DISABLE_NOEXEC .
 .SH VERSIONS
-The
-.BR prctl ()
-system call was introduced in Linux 2.1.57.
-.\" The library interface was added in glibc 2.0.6
-.SH STANDARDS
-This call is Linux-specific.
 IRIX has a
 .BR prctl ()
 system call (also introduced in Linux 2.1.44
@@ -2524,6 +2518,11 @@ and options to get the maximum number of processes per user,
 get the maximum number of processors the calling process can use,
 find out whether a specified process is currently blocked,
 get or set the maximum stack size, and so on.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.1.57,
+glibc 2.0.6
 .SH SEE ALSO
 .BR signal (2),
 .BR core (5)
index 9a97633235186e6872ae0ab780becdd59f783540..5d4e0969ab3a08eea840489c4c271f1f05f78bcc 100644 (file)
@@ -88,27 +88,16 @@ to any error specified for
 .BR write (2)
 or
 .BR lseek (2).
-.SH VERSIONS
-The
-.BR pread ()
-and
-.BR pwrite ()
-system calls were added in Linux 2.1.60;
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.PP
+Added in Linux 2.1.60;
 the entries in the i386 system call table were added in Linux 2.1.69.
 C library support (including emulation using
 .BR lseek (2)
 on older kernels without the system calls) was added in glibc 2.1.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-The
-.BR pread ()
-and
-.BR pwrite ()
-system calls are especially useful in multithreaded applications.
-They allow multiple threads to perform I/O on the same file descriptor
-without being affected by changes to the file offset by other threads.
-.\"
 .SS C library/kernel differences
 On Linux, the underlying system calls were renamed
 in Linux 2.6:
@@ -130,6 +119,14 @@ On some 32-bit architectures,
 the calling signature for these system calls differ,
 for the reasons described in
 .BR syscall (2).
+.SH NOTES
+The
+.BR pread ()
+and
+.BR pwrite ()
+system calls are especially useful in multithreaded applications.
+They allow multiple threads to perform I/O on the same file descriptor
+without being affected by changes to the file offset by other threads.
 .SH BUGS
 POSIX requires that opening a file with the
 .B O_APPEND
index 92878286b07455ccdf84911ede03be93d498d9a1..1cee5be246187f1283a48c3872fce938e183b890 100644 (file)
@@ -183,18 +183,17 @@ See
 for
 .IR advice -specific
 errors.
-.SH VERSIONS
-This system call first appeared in Linux 5.10.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 5.10.
 .\" commit ecb8ac8b1f146915aa6b96449b66dd48984caacc
+.PP
 Support for this system call is optional,
 depending on the setting of the
 .B CONFIG_ADVISE_SYSCALLS
 configuration option.
-.SH STANDARDS
-The
-.BR process_madvise ()
-system call is Linux-specific.
-.SH NOTES
+.PP
 When this system call first appeared in Linux 5.10,
 permission to apply advice to another process was entirely governed by
 ptrace access mode
index 712a19dd2212fe8c4456420225ea6a781f17a4dc..4ce4ec86ae44133faeafed88b031fda17ca645e3 100644 (file)
@@ -249,11 +249,11 @@ The caller does not have permission to access the address space of the process
 No process with ID
 .I pid
 exists.
-.SH VERSIONS
-These system calls were added in Linux 3.2.
-Support is provided since glibc 2.15.
 .SH STANDARDS
-These system calls are nonstandard Linux extensions.
+Linux.
+.SH HISTORY
+Linux 3.2,
+glibc 2.15.
 .SH NOTES
 The data transfers performed by
 .BR process_vm_readv ()
index 9737b3825809e1879bdcfecdd156f521b0c2e4ce..34152c09c0d1b84badc4be4a4fd050d9d89f8461 100644 (file)
@@ -2435,7 +2435,14 @@ The specified process does not exist, or is not currently being traced
 by the caller, or is not stopped
 (for requests that require a stopped tracee).
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr4, 4.3BSD.
+.PP
+Before Linux 2.6.26,
+.\" See commit 00cd5c37afd5f431ac186dd131705048c0a11fdb
+.BR init (1),
+the process with PID 1, may not be traced.
 .SH NOTES
 Although arguments to
 .BR ptrace ()
@@ -2452,11 +2459,6 @@ setting unused/ignored arguments to
 or
 .IR "(void\ *)\ 0".
 .PP
-Before Linux 2.6.26,
-.\" See commit 00cd5c37afd5f431ac186dd131705048c0a11fdb
-.BR init (1),
-the process with PID 1, may not be traced.
-.PP
 A tracees parent continues to be the tracer even if that tracer calls
 .BR execve (2).
 .PP
index 6d6317f921b52bd223a6b5c43eac51c909c3938b..9cc7349db723e2d92e41620df743d1e60fdf046a 100644 (file)
@@ -162,14 +162,12 @@ is set to the minimum size needed.
 .BR query_module ()
 is not supported in this version of the kernel
 (e.g., Linux 2.6 or later).
+.SH STANDARDS
+Linux.
 .SH VERSIONS
-This system call is present only up until Linux 2.4;
-it was removed in Linux 2.6.
+Removed in Linux 2.6.
 .\" Removed in Linux 2.5.48
-.SH STANDARDS
-.BR query_module ()
-is Linux-specific.
-.SH NOTES
+.PP
 Some of the information that was formerly available via
 .BR query_module ()
 can be obtained from
index 13f999e7ba1b21021d75c41f57b9593f775e2d22..0430b9d1ecdf17ab90b70e198d91bc458f02cc30 100644 (file)
@@ -164,6 +164,8 @@ refers to a directory.
 Other errors may occur, depending on the object connected to
 .IR fd .
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 SVr4, 4.3BSD, POSIX.1-2001.
 .SH NOTES
 The types
index 11f850726fe21de1b040ea10e803eb016d238b08..d69795979137a4f972fc6bcb6f365af684240cee 100644 (file)
@@ -64,20 +64,15 @@ does not refer to a file type to which
 .BR readahead ()
 can be applied.
 .SH VERSIONS
-The
-.BR readahead ()
-system call appeared in Linux 2.4.13;
-glibc support has been provided since glibc 2.3.
-.SH STANDARDS
-The
-.BR readahead ()
-system call is Linux-specific, and its use should be avoided
-in portable applications.
-.SH NOTES
 On some 32-bit architectures,
 the calling signature for this system call differs,
 for the reasons described in
 .BR syscall (2).
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.4.13,
+glibc 2.3.
 .SH BUGS
 .BR readahead ()
 attempts to schedule the reads in the background and return immediately.
index 39cc4377aeb505ab34506b5ce58a062d4f6e3ab9..106f0e68fcaee2ededb0f3e7aa088dd47981a610 100644 (file)
@@ -100,9 +100,7 @@ No such directory.
 .TP
 .B ENOTDIR
 File descriptor does not refer to a directory.
-.SH STANDARDS
-This system call is Linux-specific.
-.SH NOTES
+.SH VERSIONS
 You will need to define the
 .I old_linux_dirent
 structure yourself.
@@ -111,6 +109,8 @@ However, probably you should use
 instead.
 .PP
 This system call does not exist on x86-64.
+.SH STANDARDS
+Linux.
 .SH SEE ALSO
 .BR getdents (2),
 .BR readdir (3)
index de158da7e355ed4f01f4b30e35063231019d11f4..c911c4a7b44e04b4ef9199d04a3cf30ab67850f0 100644 (file)
@@ -186,20 +186,20 @@ A component of the path prefix is not a directory.
 is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
-.SH VERSIONS
-.BR readlinkat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
 .SH STANDARDS
-.BR readlink ():
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR readlink ()
 4.4BSD
-.RB ( readlink ()
-first appeared in 4.2BSD),
+(first appeared in 4.2BSD),
 POSIX.1-2001, POSIX.1-2008.
-.PP
-.BR readlinkat ():
+.TP
+.BR readlinkat ()
 POSIX.1-2008.
-.SH NOTES
+Linux 2.6.16,
+glibc 2.4.
+.PP
 Up to and including glibc 2.4, the return type of
 .BR readlink ()
 was declared as
@@ -207,7 +207,20 @@ was declared as
 Nowadays, the return type is declared as
 .IR ssize_t ,
 as (newly) required in POSIX.1-2001.
-.PP
+.SS glibc
+On older kernels where
+.BR readlinkat ()
+is unavailable, the glibc wrapper function falls back to the use of
+.BR readlink ().
+When
+.I pathname
+is a relative pathname,
+glibc constructs a pathname based on the symbolic link in
+.I /proc/self/fd
+that corresponds to the
+.I dirfd
+argument.
+.SH NOTES
 Using a statically sized buffer might not provide enough room for the
 symbolic link contents.
 The required size for the buffer can be obtained from the
@@ -230,19 +243,6 @@ also addresses a common portability problem when using
 for the buffer size,
 as this constant is not guaranteed to be defined per POSIX
 if the system does not have such limit.
-.SS glibc notes
-On older kernels where
-.BR readlinkat ()
-is unavailable, the glibc wrapper function falls back to the use of
-.BR readlink ().
-When
-.I pathname
-is a relative pathname,
-glibc constructs a pathname based on the symbolic link in
-.I /proc/self/fd
-that corresponds to the
-.I dirfd
-argument.
 .SH EXAMPLES
 The following program allocates the buffer needed by
 .BR readlink ()
index 76a94edd5c6af83276b1faa87be41ddfc7573b81..b80d7ff0285dd97d01b7c3a9a63971b8925063e6 100644 (file)
@@ -287,21 +287,44 @@ is less than zero or greater than the permitted maximum.
 .B EOPNOTSUPP
 An unknown flag is specified in \fIflags\fP.
 .SH VERSIONS
+.SS C library/kernel differences
+The raw
 .BR preadv ()
 and
 .BR pwritev ()
-first appeared in Linux 2.6.30; library support was added in glibc 2.10.
+system calls have call signatures that differ slightly from that of the
+corresponding GNU C library wrapper functions shown in the SYNOPSIS.
+The final argument,
+.IR offset ,
+is unpacked by the wrapper functions into two arguments in the system calls:
+.PP
+.BI "    unsigned long " pos_l ", unsigned long " pos
 .PP
+These arguments contain, respectively, the low order and high order 32 bits of
+.IR offset .
+.SH STANDARDS
+.TP
+.BR readv ()
+.TQ
+.BR writev ()
+POSIX.1-2008.
+.TP
+.BR preadv ()
+.TQ
+.BR pwritev ()
+BSD.
+.TP
 .BR preadv2 ()
-and
+.TQ
 .BR pwritev2 ()
-first appeared in Linux 4.6.
-Library support was added in glibc 2.26.
-.SH STANDARDS
-.BR readv (),
-.BR writev ():
-POSIX.1-2001, POSIX.1-2008,
-4.4BSD (these system calls first appeared in 4.2BSD).
+Linux.
+.SH HISTORY
+.TP
+.BR readv ()
+.TQ
+.BR writev ()
+POSIX.1-2001,
+4.4BSD (first appeared in 4.2BSD).
 .\" Linux libc5 used \fIsize_t\fP as the type of the \fIiovcnt\fP argument,
 .\" and \fIint\fP as the return type.
 .\" The readv/writev system calls were buggy before Linux 1.3.40.
@@ -309,40 +332,13 @@ POSIX.1-2001, POSIX.1-2008,
 .PP
 .BR preadv (),
 .BR pwritev ():
-nonstandard, but present also on the modern BSDs.
+Linux 2.6.30,
+glibc 2.10.
 .PP
 .BR preadv2 (),
 .BR pwritev2 ():
-nonstandard Linux extension.
-.SH NOTES
-POSIX.1 allows an implementation to place a limit on
-the number of items that can be passed in
-.IR iov .
-An implementation can advertise its limit by defining
-.B IOV_MAX
-in
-.I <limits.h>
-or at run time via the return value from
-.IR sysconf(_SC_IOV_MAX) .
-On modern Linux systems, the limit is 1024.
-Back in Linux 2.0 days, this limit was 16.
-.\"
-.\"
-.SS C library/kernel differences
-The raw
-.BR preadv ()
-and
-.BR pwritev ()
-system calls have call signatures that differ slightly from that of the
-corresponding GNU C library wrapper functions shown in the SYNOPSIS.
-The final argument,
-.IR offset ,
-is unpacked by the wrapper functions into two arguments in the system calls:
-.PP
-.BI "    unsigned long " pos_l ", unsigned long " pos
-.PP
-These arguments contain, respectively, the low order and high order 32 bits of
-.IR offset .
+Linux 4.6,
+glibc 2.26.
 .SS Historical C library/kernel differences
 To deal with the fact that
 .B IOV_MAX
@@ -380,6 +376,20 @@ that the system is running a Linux kernel older than Linux 2.6.18
 And since glibc 2.20
 (which requires a minimum of Linux 2.6.32),
 the glibc wrapper functions always just directly invoke the system calls.
+.SH NOTES
+POSIX.1 allows an implementation to place a limit on
+the number of items that can be passed in
+.IR iov .
+An implementation can advertise its limit by defining
+.B IOV_MAX
+in
+.I <limits.h>
+or at run time via the return value from
+.IR sysconf(_SC_IOV_MAX) .
+On modern Linux systems, the limit is 1024.
+Back in Linux 2.0 days, this limit was 16.
+.\"
+.\"
 .SH BUGS
 Linux 5.9 and Linux 5.10 have a bug where
 .BR preadv2 ()
index 6fed0a076c7785dfa124fe201665c11b0d95b9b0..2896ed5170b35e84543571833468d200f1daa8b8 100644 (file)
@@ -223,9 +223,7 @@ the caller must have the
 .B CAP_SYS_BOOT
 inside its user namespace.
 .SH STANDARDS
-.BR reboot ()
-is Linux-specific,
-and should not be used in programs intended to be portable.
+Linux.
 .SH SEE ALSO
 .BR systemctl (1),
 .BR systemd (1),
index 81cd1957cb05c70eba68ddf35f4630cdbd009f54..31899df8259e5cd35f2898513479b96a6292db02 100644 (file)
@@ -480,9 +480,32 @@ and
 The file descriptor
 .I sockfd
 does not refer to a socket.
+.SH VERSIONS
+According to POSIX.1,
+.\" POSIX.1-2001, POSIX.1-2008
+the
+.I msg_controllen
+field of the
+.I msghdr
+structure should be typed as
+.IR socklen_t ,
+and the
+.I msg_iovlen
+field should be typed as
+.IR int ,
+but glibc currently types both as
+.IR size_t .
+.\" glibc bug for msg_controllen raised 12 Mar 2006
+.\" http://sourceware.org/bugzilla/show_bug.cgi?id=2448
+.\" The problem is an underlying kernel issue: the size of the
+.\" __kernel_size_t type used to type these fields varies
+.\" across architectures, but socklen_t is always 32 bits,
+.\" as (at least with GCC) is int.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008,
-4.4BSD (these interfaces first appeared in 4.2BSD).
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001,
+4.4BSD (first appeared in 4.2BSD).
 .PP
 POSIX.1 describes only the
 .BR MSG_OOB ,
@@ -510,27 +533,6 @@ type was invented by POSIX.
 See also
 .BR accept (2).
 .PP
-According to POSIX.1,
-.\" POSIX.1-2001, POSIX.1-2008
-the
-.I msg_controllen
-field of the
-.I msghdr
-structure should be typed as
-.IR socklen_t ,
-and the
-.I msg_iovlen
-field should be typed as
-.IR int ,
-but glibc currently types both as
-.IR size_t .
-.\" glibc bug for msg_controllen raised 12 Mar 2006
-.\" http://sourceware.org/bugzilla/show_bug.cgi?id=2448
-.\" The problem is an underlying kernel issue: the size of the
-.\" __kernel_size_t type used to type these fields varies
-.\" across architectures, but socklen_t is always 32 bits,
-.\" as (at least with GCC) is int.
-.PP
 See
 .BR recvmmsg (2)
 for information about a Linux-specific system call
index 63a03bd39d7e857510e8c2b1357893e79a5c6290..b1d9f2a2868f721c1b33cfb9ff92bc4d9b8276a9 100644 (file)
@@ -145,14 +145,11 @@ In addition, the following error can occur:
 is invalid.
 .PP
 See also BUGS.
-.SH VERSIONS
-The
-.BR recvmmsg ()
-system call was added in Linux 2.6.33.
-Support in glibc was added in glibc 2.12.
 .SH STANDARDS
-.BR recvmmsg ()
-is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.33,
+glibc 2.12.
 .SH BUGS
 The
 .I timeout
index f6f69c078b7d6ecd3e80b8bbb744a31b29736c59..8f9b5b394ec0fed3344650b64388118f2bbdf890 100644 (file)
@@ -143,15 +143,11 @@ or
 .I pgoff
 is invalid.
 .\" And possibly others from vma->vm_ops->populate()
-.SH VERSIONS
-The
-.BR remap_file_pages ()
-system call appeared in Linux 2.5.46;
-glibc support was added in glibc 2.3.3.
 .SH STANDARDS
-The
-.BR remap_file_pages ()
-system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.5.46,
+glibc 2.3.3.
 .SH NOTES
 Since Linux 2.6.23,
 .\" commit 3ee6dafc677a68e461a7ddafc94a580ebab80735
index 626ad515d7bf789958dc7c6255624893d9ee4ddd..159061e4afbe0f1174fcf66c745847ede927773c 100644 (file)
@@ -77,11 +77,11 @@ Extended attributes are not supported by the filesystem, or are disabled.
 In addition, the errors documented in
 .BR stat (2)
 can also occur.
-.SH VERSIONS
-These system calls have been available since Linux 2.4;
-glibc support is provided since glibc 2.3.
 .SH STANDARDS
-These system calls are Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.4,
+glibc 2.3.
 .\" .SH AUTHORS
 .\" Andreas Gruenbacher,
 .\" .RI < a.gruenbacher@computer.org >
index 5007ef6b65673387948c8f0959501ac73674db3f..1391e20230688c96d4e321559d2664ed4f708dde 100644 (file)
@@ -488,24 +488,28 @@ was specified in
 but the caller does not have the
 .B CAP_MKNOD
 capability.
-.SH VERSIONS
-.BR renameat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
-.PP
-.BR renameat2 ()
-was added in Linux 3.15; library support was added in glibc 2.28.
 .SH STANDARDS
-.BR rename ():
-4.3BSD, C89, C99, POSIX.1-2001, POSIX.1-2008.
-.PP
-.BR renameat ():
+.TP
+.BR rename ()
+C11, POSIX.1-2008.
+.TP
+.BR renameat ()
 POSIX.1-2008.
-.PP
+.TP
 .BR renameat2 ()
-is Linux-specific.
-.SH NOTES
-.\"
+Linux.
+.SH HISTORY
+.TP
+.BR rename ()
+4.3BSD, C89, POSIX.1-2001.
+.TP
+.BR renameat ()
+Linux 2.6.16,
+glibc 2.4.
+.TP
+.BR renameat2 ()
+Linux 3.15,
+glibc 2.28.
 .SS glibc notes
 On older kernels where
 .BR renameat ()
index e78321e3c23f68bc76e1b8c96abe9506ce1733d0..2d9416ba84b9883a43fabc1a088944602e5220ce 100644 (file)
@@ -425,13 +425,14 @@ Insufficient memory to create a key.
 The
 .I type
 argument started with a period (\[aq].\[aq]).
-.SH VERSIONS
-This system call first appeared in Linux 2.6.10.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.6.10.
+.PP
 The ability to instantiate keys upon request was added
 .\" commit 3e30148c3d524a9c1c63ca28261bc24c457eb07a
 in Linux 2.6.13.
-.SH STANDARDS
-This system call is a nonstandard Linux extension.
 .SH EXAMPLES
 The program below demonstrates the use of
 .BR request_key ().
index 1ed8c5568582570b6f89797f10df58b1fea5c3d4..64e28b0631908dc5fd98ca8b9e5eea4068d401d2 100644 (file)
@@ -75,12 +75,10 @@ is the return value of whatever system call is being restarted.
 .I errno
 is set as per the errors for whatever system call is being restarted by
 .BR restart_syscall ().
-.SH VERSIONS
-The
-.BR restart_syscall ()
-system call is present since Linux 2.6.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.
 .SH NOTES
 There is no glibc wrapper for this system call,
 because it is intended for use only by the kernel and
index b06349e2c1b8eb4069b09ebe4d207367b158352e..73b7d690d8ca4453bcb0ad45b25548cb5ec5425b 100644 (file)
@@ -111,7 +111,9 @@ does not support the removal of directories.
 .I pathname
 refers to a directory on a read-only filesystem.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH BUGS
 Infelicities in the protocol underlying NFS can cause the unexpected
 disappearance of directories which are still being used.
index 0f6a2e19e2a5b4de6cb2e1d2776d5461b8b74224..046b5f382ecf4a154cbb68743e06c24a14582d8e 100644 (file)
@@ -165,15 +165,15 @@ No thread matching
 and
 .I tid
 was found.
-.SH VERSIONS
-The
+.SH STANDARDS
+Linux.
+.SH HISTORY
+.TP
 .BR rt_sigqueueinfo ()
-system call was added in Linux 2.2.
-The
+Linux 2.2.
+.TP
 .BR rt_tgsigqueueinfo ()
-system call was added in Linux 2.6.31.
-.SH STANDARDS
-These system calls are Linux-specific.
+Linux 2.6.31.
 .SH NOTES
 Since these system calls are not intended for application use,
 there are no glibc wrapper functions; use
index 678de36e9ffd7db8e228a73a977487e24b5ea6a8..4fa085c97c15ea6e734b117bd1d2b3427d191021 100644 (file)
@@ -126,13 +126,12 @@ and the allocation of a new guarded storage control block has failed.
 .TP
 .B EOPNOTSUPP
 The guarded storage facility is not supported by the hardware.
-.SH VERSIONS
-.\" 916cda1aa1b412d7cf2991c3af7479544942d121, v4.12-rc1~139^2~56^2
-This system call is available since Linux 4.12.
 .SH STANDARDS
-This Linux-specific system call is available only on the s390 architecture.
-.PP
-The guarded storage facility is available beginning with System z14.
+Linux on s390.
+.SH HISTORY
+.\" 916cda1aa1b412d7cf2991c3af7479544942d121, v4.12-rc1~139^2~56^2
+Linux 4.12.
+System z14.
 .SH NOTES
 The description of the guarded storage facility along with related
 instructions and Guarded Storage Control Block and
index 6a55a6e5255bda8ce5689869387db7a9316055ce..be007550846c38319bd3f4fc5ffc081499ba2517 100644 (file)
@@ -85,10 +85,10 @@ PCI support is not enabled.
 .TP
 .B ENOMEM
 Insufficient memory.
-.SH VERSIONS
-These system calls are available since Linux 3.19.
 .SH STANDARDS
-This Linux-specific system call is available only on the s390 architecture.
-The required PCI support is available beginning with System z EC12.
+Linux on s390.
+.SH HISTORY
+Linux 3.19.
+System z EC12.
 .SH SEE ALSO
 .BR syscall (2)
index 575d8c138c1eb5a371165ebb44da749cf9406e48..da256bb60d194414c40f821df34d9bdef2133861 100644 (file)
@@ -79,12 +79,11 @@ Allocating memory for the run-time instrumentation control block failed.
 .TP
 .B EOPNOTSUPP
 The run-time instrumentation facility is not available.
-.SH VERSIONS
-This system call is available since Linux 3.7.
 .SH STANDARDS
-This Linux-specific system call is available only on the s390 architecture.
-The run-time instrumentation facility is available
-beginning with System z EC12.
+Linux on s390.
+.SH HISTORY
+Linux 3.7.
+System z EC12.
 .SH NOTES
 The
 .I asm/runtime_instr.h
index b44d940bcd55a02294922a80b2fda077bf2717d9..4c3c3ba2e162ea15f5c45067b666b9eaaa7f85cc 100644 (file)
@@ -113,10 +113,10 @@ Allocating memory for handling the CPU capacity information failed.
 The value specified in
 .I function_code
 is not valid.
-.SH VERSIONS
-This system call is available since Linux 4.15.
 .SH STANDARDS
-This Linux-specific system call is available only on the s390 architecture.
+Linux on s390.
+.SH HISTORY
+Linux 4.15.
 .SH NOTES
 For details of the STHYI instruction, see
 .UR https://www.ibm.com\:/support\:/knowledgecenter\:/SSB27U_6.3.0\:/com.ibm.zvm.v630.hcpb4\:/hcpb4sth.htm
index 70922ee3bcb9ff239e473c907e70879a731dc5c4..5185e60398dcb6f5a02b2c452bdb370361b8cd41 100644 (file)
@@ -97,7 +97,9 @@ The argument
 .I policy
 does not identify a defined scheduling policy.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .ad l
 .nh
index be2a246ab7ed2e47f6631212831b7e5d68a4f443..328e4a4f746eef43e22003599cc79af432a2c0a2 100644 (file)
@@ -64,16 +64,21 @@ The system call is not yet implemented (only on rather old kernels).
 .B ESRCH
 Could not find a process with the ID
 .IR pid .
+.SH VERSIONS
+.SS Linux
+Linux 3.9 added
+.\" commit ce0dbbbb30aee6a835511d5be446462388ba9eee
+a new mechanism for adjusting (and viewing) the
+.B SCHED_RR
+quantum: the
+.I /proc/sys/kernel/sched_rr_timeslice_ms
+file exposes the quantum as a millisecond value, whose default is 100.
+Writing 0 to this file resets the quantum to the default value.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-POSIX systems on which
-.BR sched_rr_get_interval ()
-is available define
-.B _POSIX_PRIORITY_SCHEDULING
-in
-.IR <unistd.h> .
-.SS Linux notes
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.SS Linux
 POSIX does not specify any mechanism for controlling the size of the
 round-robin time quantum.
 Older Linux kernels provide a (nonportable) method of doing this.
@@ -87,15 +92,13 @@ quantum has varied somewhat across kernel versions.
 This method of adjusting the quantum was removed
 .\" commit a4ec24b48ddef1e93f7578be53270f0b95ad666c
 starting with Linux 2.6.24.
-.PP
-Linux 3.9 added
-.\" commit ce0dbbbb30aee6a835511d5be446462388ba9eee
-a new mechanism for adjusting (and viewing) the
-.B SCHED_RR
-quantum: the
-.I /proc/sys/kernel/sched_rr_timeslice_ms
-file exposes the quantum as a millisecond value, whose default is 100.
-Writing 0 to this file resets the quantum to the default value.
+.SH NOTES
+POSIX systems on which
+.BR sched_rr_get_interval ()
+is available define
+.B _POSIX_PRIORITY_SCHEDULING
+in
+.IR <unistd.h> .
 .\" .SH BUGS
 .\" As of Linux 1.3.81
 .\" .BR sched_rr_get_interval ()
index 86a93539137de8765b43548d8e5254f676a82fea..01e4a4f9e5b1e61ede1516debce05eb540e72884 100644 (file)
@@ -134,9 +134,12 @@ capability in the user namespace of the thread
 .TP
 .B ESRCH
 The thread whose ID is \fIpid\fP could not be found.
-.SH VERSIONS
-The CPU affinity system calls were introduced in Linux kernel 2.5.8.
-The system call wrappers were introduced in glibc 2.3.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.5.8,
+glibc 2.3.
+.PP
 Initially, the glibc interfaces included a
 .I cpusetsize
 argument, typed as
@@ -145,8 +148,6 @@ In glibc 2.3.3, the
 .I cpusetsize
 argument was removed, but was then restored in glibc 2.3.4, with type
 .IR size_t .
-.SH STANDARDS
-These system calls are Linux-specific.
 .SH NOTES
 After a call to
 .BR sched_setaffinity (),
index f610c73fde0f92695cf9bdda2259eaecf379de4b..fd92a86b265c1fcf559fa68a1ab6a80fa3cd5396 100644 (file)
@@ -372,11 +372,11 @@ The CPU affinity mask of the thread specified by
 does not include all CPUs in the system
 (see
 .BR sched_setaffinity (2)).
-.SH VERSIONS
-These system calls first appeared in Linux 3.14.
-.\" FIXME . Add glibc version
 .SH STANDARDS
-These system calls are nonstandard Linux extensions.
+Linux.
+.SH HISTORY
+Linux 3.14.
+.\" FIXME . Add glibc version
 .SH NOTES
 glibc does not provide wrappers for these system calls; call them using
 .BR syscall (2).
index 25d7b580bbb5ab41f1f958e2da8b1b6067133714..9aafc2ebbc35e9eb2364dcda6fba7c670e5f86fc 100644 (file)
@@ -100,7 +100,9 @@ capability).
 .B ESRCH
 The thread whose ID is \fIpid\fP could not be found.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .ad l
 .nh
index 19a1f040f10cb73ab460c4956029141248702cd7..a6333c1abb4e6ab23e2a30772c134b1dc627b047 100644 (file)
@@ -147,27 +147,7 @@ The calling thread does not have appropriate privileges.
 .TP
 .B ESRCH
 The thread whose ID is \fIpid\fP could not be found.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008 (but see BUGS below).
-The \fBSCHED_BATCH\fP and \fBSCHED_IDLE\fP policies are Linux-specific.
-.SH NOTES
-Further details of the semantics of all of the above "normal"
-and "real-time" scheduling policies can be found in the
-.BR sched (7)
-manual page.
-That page also describes an additional policy,
-.BR SCHED_DEADLINE ,
-which is settable only via
-.BR sched_setattr (2).
-.PP
-POSIX systems on which
-.BR sched_setscheduler ()
-and
-.BR sched_getscheduler ()
-are available define
-.B _POSIX_PRIORITY_SCHEDULING
-in \fI<unistd.h>\fP.
-.PP
+.SH VERSIONS
 POSIX.1 does not detail the permissions that an unprivileged
 thread requires in order to call
 .BR sched_setscheduler (),
@@ -196,6 +176,32 @@ and
 instead of the
 .BR sched_* (2)
 system calls.)
+.SH STANDARDS
+POSIX.1-2008 (but see BUGS below).
+.PP
+.B SCHED_BATCH
+and
+.B SCHED_IDLE
+are Linux-specific.
+.SH HISTORY
+POSIX.1-2001.
+.SH NOTES
+Further details of the semantics of all of the above "normal"
+and "real-time" scheduling policies can be found in the
+.BR sched (7)
+manual page.
+That page also describes an additional policy,
+.BR SCHED_DEADLINE ,
+which is settable only via
+.BR sched_setattr (2).
+.PP
+POSIX systems on which
+.BR sched_setscheduler ()
+and
+.BR sched_getscheduler ()
+are available define
+.B _POSIX_PRIORITY_SCHEDULING
+in \fI<unistd.h>\fP.
 .SH BUGS
 POSIX.1 says that on success,
 .BR sched_setscheduler ()
index b58448a09a5c4ccd7c74f720b3d3627bdf953d7f..f1024762af1738831e607fe50e6fcdaa958e484e 100644 (file)
@@ -36,7 +36,9 @@ In the Linux implementation,
 .BR sched_yield ()
 always succeeds.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 If the calling thread is the only thread in the highest
 priority list at that time,
index 32706397f03e54847562502a21215aa3932c78e1..ecfdb8696a93cee555c1321d9d55edfcbbe2f4ca 100644 (file)
@@ -861,15 +861,11 @@ but the kernel does not support the filter return action specified by
 .B ESRCH
 Another thread caused a failure during thread sync, but its ID could not
 be determined.
-.SH VERSIONS
-The
-.BR seccomp ()
-system call first appeared in Linux 3.17.
-.\" FIXME . Add glibc version
 .SH STANDARDS
-The
-.BR seccomp ()
-system call is a nonstandard Linux extension.
+Linux.
+.SH HISTORY
+Linux 3.17.
+.\" FIXME . Add glibc version
 .SH NOTES
 Rather than hand-coding seccomp filters as shown in the example below,
 you may prefer to employ the
index 7718b75067ab606c4900265976c8887c9419a688..fd592a3b231fe45a9d7c45ef5f3d951f2246caed 100644 (file)
@@ -421,29 +421,44 @@ is invalid.
 .B ENOMEM
 Unable to allocate memory for internal tables.
 .SH VERSIONS
-.BR pselect ()
-was added in Linux 2.6.16.
-Prior to this,
-.BR pselect ()
-was emulated in glibc (but see BUGS).
+On some other UNIX systems,
+.\" Darwin, according to a report by Jeremy Sequoia, relayed by Josh Triplett
+.BR select ()
+can fail with the error
+.B EAGAIN
+if the system fails to allocate kernel-internal resources, rather than
+.B ENOMEM
+as Linux does.
+POSIX specifies this error for
+.BR poll (2),
+but not for
+.BR select ().
+Portable programs may wish to check for
+.B EAGAIN
+and loop, just as with
+.BR EINTR .
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+.TP
 .BR select ()
-conforms to POSIX.1-2001, POSIX.1-2008, and
-4.4BSD
-.RB ( select ()
-first appeared in 4.2BSD).
+POSIX.1-2001, 4.4BSD (first appeared in 4.2BSD).
+.IP
 Generally portable to/from
 non-BSD systems supporting clones of the BSD socket layer (including
 System\ V variants).
 However, note that the System\ V variant typically
 sets the timeout variable before returning, but the BSD variant does not.
-.PP
+.TP
 .BR pselect ()
-is defined in POSIX.1g, and in
-POSIX.1-2001 and POSIX.1-2008.
-.PP
+Linux 2.6.16.
+POSIX.1g, POSIX.1-2001.
+.IP
+Prior to this,
+it was emulated in glibc (but see BUGS).
+.TP
 .B fd_set
-is defined in POSIX.1-2001 and later.
+POSIX.1-2001.
 .SH NOTES
 The following header also provides the
 .I fd_set
@@ -474,23 +489,6 @@ and
 is not affected by the
 .B O_NONBLOCK
 flag.
-.PP
-On some other UNIX systems,
-.\" Darwin, according to a report by Jeremy Sequoia, relayed by Josh Triplett
-.BR select ()
-can fail with the error
-.B EAGAIN
-if the system fails to allocate kernel-internal resources, rather than
-.B ENOMEM
-as Linux does.
-POSIX specifies this error for
-.BR poll (2),
-but not for
-.BR select ().
-Portable programs may wish to check for
-.B EAGAIN
-and loop, just as with
-.BR EINTR .
 .\"
 .SS The self-pipe trick
 On systems that lack
index 6190628582127bde76471d06d266c8746e6447c5..1cb71ab55f45b1c49ca8720328c45150a061fad1 100644 (file)
@@ -503,10 +503,7 @@ and the value to which
 is to be set (for some semaphore of the set) is less than 0
 or greater than the implementation limit
 .BR SEMVMX .
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
-.\" SVr4 documents more error conditions EINVAL and EOVERFLOW.
-.PP
+.SH VERSIONS
 POSIX.1 specifies the
 .\" POSIX.1-2001, POSIX.1-2008
 .I sem_nsems
@@ -518,54 +515,6 @@ and the field is so defined on most other systems.
 It was also so defined on Linux 2.2 and earlier,
 but, since Linux 2.4, the field has the type
 .IR "unsigned\ long" .
-.SH NOTES
-The
-.BR IPC_INFO ,
-.BR SEM_STAT ,
-and
-.B SEM_INFO
-operations are used by the
-.BR ipcs (1)
-program to provide information on allocated resources.
-In the future these may modified or moved to a
-.I /proc
-filesystem interface.
-.PP
-Various fields in a \fIstruct semid_ds\fP were typed as
-.I short
-under Linux 2.2
-and have become
-.I long
-under Linux 2.4.
-To take advantage of this,
-a recompilation under glibc-2.1.91 or later should suffice.
-(The kernel distinguishes old and new calls by an
-.B IPC_64
-flag in
-.IR cmd .)
-.PP
-In some earlier versions of glibc, the
-.I semun
-union was defined in \fI<sys/sem.h>\fP, but POSIX.1 requires
-.\" POSIX.1-2001, POSIX.1-2008
-that the caller define this union.
-On versions of glibc where this union is \fInot\fP defined,
-the macro
-.B _SEM_SEMUN_UNDEFINED
-is defined in \fI<sys/sem.h>\fP.
-.PP
-The following system limit on semaphore sets affects a
-.BR semctl ()
-call:
-.TP
-.B SEMVMX
-Maximum value for
-.BR semval :
-implementation dependent (32767).
-.PP
-For greater portability, it is best to always call
-.BR semctl ()
-with four arguments.
 .\"
 .SS The sempid value
 POSIX.1 defines
@@ -609,6 +558,59 @@ operations.
 This was rectified
 .\" commit a5f4db877177d2a3d7ae62a7bac3a5a27e083d7f
 in Linux 4.6.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
+.\" SVr4 documents more error conditions EINVAL and EOVERFLOW.
+.PP
+Various fields in a \fIstruct semid_ds\fP were typed as
+.I short
+under Linux 2.2
+and have become
+.I long
+under Linux 2.4.
+To take advantage of this,
+a recompilation under glibc-2.1.91 or later should suffice.
+(The kernel distinguishes old and new calls by an
+.B IPC_64
+flag in
+.IR cmd .)
+.PP
+In some earlier versions of glibc, the
+.I semun
+union was defined in \fI<sys/sem.h>\fP, but POSIX.1 requires
+.\" POSIX.1-2001, POSIX.1-2008
+that the caller define this union.
+On versions of glibc where this union is \fInot\fP defined,
+the macro
+.B _SEM_SEMUN_UNDEFINED
+is defined in \fI<sys/sem.h>\fP.
+.SH NOTES
+The
+.BR IPC_INFO ,
+.BR SEM_STAT ,
+and
+.B SEM_INFO
+operations are used by the
+.BR ipcs (1)
+program to provide information on allocated resources.
+In the future these may modified or moved to a
+.I /proc
+filesystem interface.
+.PP
+The following system limit on semaphore sets affects a
+.BR semctl ()
+call:
+.TP
+.B SEMVMX
+Maximum value for
+.BR semval :
+implementation dependent (32767).
+.PP
+For greater portability, it is best to always call
+.BR semctl ()
+with four arguments.
 .SH EXAMPLES
 See
 .BR shmop (2).
index a22ebcd75337f8bac94c5f97d1e3863cd37b04f3..a895505859ee106aa0519c7db0b56704e27880f6 100644 (file)
@@ -197,6 +197,8 @@ or the system wide maximum number of semaphores
 .RB ( SEMMNS ),
 would be exceeded.
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 SVr4, POSIX.1-2001.
 .\" SVr4 documents additional error conditions EFBIG, E2BIG, EAGAIN,
 .\" ERANGE, EFAULT.
index 7a1416a26894f9d867f57ea804efd827510946b8..fe2906be435ac5e178dd644daabeef78830fbc25 100644 (file)
@@ -355,15 +355,12 @@ is greater than
 .BR SEMVMX ,
 the implementation dependent maximum value for
 .IR semval .
-.SH VERSIONS
-.BR semtimedop ()
-first appeared in Linux 2.5.52,
-and was subsequently backported into Linux 2.4.22.
-glibc support for
-.BR semtimedop ()
-first appeared in Linux 2.3.3.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
+POSIX.1-2008.
+.SH VERSIONS
+Linux 2.5.52 (backported into Linux 2.4.22),
+glibc 2.3.3.
+POSIX.1-2001, SVr4.
 .\" SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC.
 .SH NOTES
 The
index 3f0b744301c7ac6484805966d14d936dc10b88f7..bea22da15fa7c4d925cbc476ec04d64e924c4814 100644 (file)
@@ -437,21 +437,7 @@ will also receive a
 unless
 .B MSG_NOSIGNAL
 is set.
-.SH STANDARDS
-4.4BSD, SVr4, POSIX.1-2001.
-These interfaces first appeared in 4.2BSD.
-.PP
-POSIX.1-2001 describes only the
-.B MSG_OOB
-and
-.B MSG_EOR
-flags.
-POSIX.1-2008 adds a specification of
-.BR MSG_NOSIGNAL .
-The
-.B MSG_CONFIRM
-flag is a Linux extension.
-.SH NOTES
+.SH VERSIONS
 According to POSIX.1-2001, the
 .I msg_controllen
 field of the
@@ -470,7 +456,23 @@ but glibc currently types both as
 .\" __kernel_size_t type used to type these fields varies
 .\" across architectures, but socklen_t is always 32 bits,
 .\" as (at least with GCC) is int.
+.SH STANDARDS
+POSIX.1-2008.
+.PP
+.B MSG_CONFIRM
+is a Linux extension.
+.SH HISTORY
+4.4BSD, SVr4, POSIX.1-2001.
+(first appeared in 4.2BSD).
 .PP
+POSIX.1-2001 describes only the
+.B MSG_OOB
+and
+.B MSG_EOR
+flags.
+POSIX.1-2008 adds a specification of
+.BR MSG_NOSIGNAL .
+.SH NOTES
 See
 .BR sendmmsg (2)
 for information about a Linux-specific system call
index 07a2c5b35dd0778e013a0c4d855f9bc5b948fa6d..5574eff2b44d93a393396b894abf2d1423d5a99f 100644 (file)
@@ -165,34 +165,15 @@ the input file or the output file.
 .I offset
 is not NULL but the input file is not seekable.
 .SH VERSIONS
-.BR sendfile ()
-first appeared in Linux 2.2.
-The include file
-.I <sys/sendfile.h>
-is present since glibc 2.1.
-.SH STANDARDS
-Not specified in POSIX.1-2001, nor in other standards.
-.PP
 Other UNIX systems implement
 .BR sendfile ()
 with different semantics and prototypes.
 It should not be used in portable programs.
-.SH NOTES
-.BR sendfile ()
-will transfer at most 0x7ffff000 (2,147,479,552) bytes,
-returning the number of bytes actually transferred.
-.\" commit e28cc71572da38a5a12c1cfe4d7032017adccf69
-(This is true on both 32-bit and 64-bit systems.)
-.PP
-If you plan to use
-.BR sendfile ()
-for sending files to a TCP socket, but need
-to send some header data in front of the file contents, you will find
-it useful to employ the
-.B TCP_CORK
-option, described in
-.BR tcp (7),
-to minimize the number of packets and to tune performance.
+.SH STANDARDS
+None.
+.SH HISTORY
+Linux 2.2,
+glibc 2.1.
 .PP
 In Linux 2.4 and earlier,
 .I out_fd
@@ -211,6 +192,22 @@ argument.
 The glibc
 .BR sendfile ()
 wrapper function transparently deals with the kernel differences.
+.SH NOTES
+.BR sendfile ()
+will transfer at most 0x7ffff000 (2,147,479,552) bytes,
+returning the number of bytes actually transferred.
+.\" commit e28cc71572da38a5a12c1cfe4d7032017adccf69
+(This is true on both 32-bit and 64-bit systems.)
+.PP
+If you plan to use
+.BR sendfile ()
+for sending files to a TCP socket, but need
+to send some header data in front of the file contents, you will find
+it useful to employ the
+.B TCP_CORK
+option, described in
+.BR tcp (7),
+to minimize the number of packets and to tune performance.
 .PP
 Applications may wish to fall back to
 .BR read (2)
index 4e5475c45a0951d237d764aae6f0ffcc74d1cd91..b9f4786acfd33607cfb08d8904c698f3fdc51088 100644 (file)
@@ -126,14 +126,11 @@ See also BUGS.
 .\"
 .\"     This matches the behavior of other syscalls like read/write - it
 .\"     is not an error if less than the requested number of elements are sent.
-.SH VERSIONS
-The
-.BR sendmmsg ()
-system call was added in Linux 3.0.
-Support in glibc was added in Linux 2.14.
 .SH STANDARDS
-.BR sendmmsg ()
-is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 3.0,
+glibc 2.14.
 .SH NOTES
 The value specified in
 .I vlen
index 844fa08393d8c6df7d2e66ef558a27c44e6fb74b..7b32ee1dc763da2297de5cf0ec4c86f8604c13b5 100644 (file)
@@ -319,12 +319,10 @@ other than
 .TP
 .B ENOMEM
 Insufficient kernel memory was available.
-.SH VERSIONS
-The
-.BR set_mempolicy ()
-system call was added in Linux 2.6.7.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.7.
 .SH NOTES
 Memory policy is not remembered if the page is swapped out.
 When such a page is paged back in, it will use the policy of
index ccfacc70ddb171d0ecf5c966e5ef63a30d5d6069..02f65e0418f25b8b7965551977c09be9e255a9f8 100644 (file)
@@ -164,17 +164,15 @@ was invoked as a 64-bit system call.
 .B ESRCH
 .RB ( set_thread_area ())
 A free TLS entry could not be located.
-.SH VERSIONS
-.BR set_thread_area ()
-first appeared in Linux 2.5.29.
-.BR get_thread_area ()
-first appeared in Linux 2.5.32.
 .SH STANDARDS
+Linux.
+.SH HISTORY
+.TP
 .BR set_thread_area ()
-and
+Linux 2.5.29.
+.TP
 .BR get_thread_area ()
-are Linux-specific and should not be used in programs that are intended
-to be portable.
+Linux 2.5.32.
 .SH NOTES
 These system calls are generally intended for use only by threading libraries.
 .PP
index a766d5bef5dd22dc85654790dba0a58d4099974b..9c4c68da0daa457f6a555c37e9ffa30c8d3a53b1 100644 (file)
@@ -85,11 +85,12 @@ always returns the caller's thread ID.
 .SH ERRORS
 .BR set_tid_address ()
 always succeeds.
-.SH VERSIONS
-This call is present since Linux 2.5.48.
-Details as given here are valid since Linux 2.5.49.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.5.48.
+.PP
+Details as given here are valid since Linux 2.5.49.
 .SH SEE ALSO
 .BR clone (2),
 .BR futex (2),
index 14b23b3f40b0e88ba3a4e1b4603e5a35870d7007..3e9d1efabecde0915cc66aca885a94975f89698c 100644 (file)
@@ -80,9 +80,7 @@ capability in its user namespace) and
 .I egid
 does not match the current real group ID, current effective group ID,
 or current saved set-group-ID.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
-.SH NOTES
+.SH VERSIONS
 Setting the effective user (group) ID to the
 saved set-user-ID (saved set-group-ID) is
 possible since Linux 1.1.37 (1.1.38).
@@ -122,6 +120,10 @@ are implemented as library functions that call, respectively,
 .BR setreuid (2)
 and
 .BR setregid (2).
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD.
 .SH SEE ALSO
 .BR geteuid (2),
 .BR setresuid (2),
index eb35af7e1d450bd400681af6e153cc5202e9021d..bd17d69999b1089c4690e477573b6d2879d9bf80 100644 (file)
@@ -19,7 +19,7 @@ Standard C library
 .nf
 .B #include <sys/fsuid.h>
 .PP
-.BI "int setfsgid(gid_t " fsgid );
+.BI "[[deprecated]] int setfsgid(gid_t " fsgid );
 .fi
 .SH DESCRIPTION
 On Linux, a process has both a filesystem group ID and an effective group ID.
@@ -48,14 +48,21 @@ saved set-group-ID, or current the filesystem user ID.
 .SH RETURN VALUE
 On both success and failure,
 this call returns the previous filesystem group ID of the caller.
-.SH VERSIONS
-This system call is present since Linux 1.2.
-.\" This system call is present since Linux 1.1.44
-.\" and in libc since libc 4.7.6.
 .SH STANDARDS
-.BR setfsgid ()
-is Linux-specific and should not be used in programs intended
-to be portable.
+Linux.
+.SH HISTORY
+Linux 1.2.
+.\" Linux 1.1.44
+.\" and in libc since libc 4.7.6.
+.SS C library/kernel differences
+In glibc 2.15 and earlier,
+when the wrapper for this system call determines that the argument can't be
+passed to the kernel without integer truncation (because the kernel
+is old and does not support 32-bit group IDs),
+it will return \-1 and set \fIerrno\fP to
+.B EINVAL
+without attempting
+the system call.
 .SH NOTES
 The filesystem group ID concept and the
 .BR setfsgid ()
@@ -78,15 +85,6 @@ supporting 32-bit IDs.
 The glibc
 .BR setfsgid ()
 wrapper function transparently deals with the variation across kernel versions.
-.SS C library/kernel differences
-In glibc 2.15 and earlier,
-when the wrapper for this system call determines that the argument can't be
-passed to the kernel without integer truncation (because the kernel
-is old and does not support 32-bit group IDs),
-it will return \-1 and set \fIerrno\fP to
-.B EINVAL
-without attempting
-the system call.
 .SH BUGS
 No error indications of any kind are returned to the caller,
 and the fact that both successful and unsuccessful calls return
index 167eca1e3ba3592bdc534f3cb4cb09acbf749dbb..9f0b941ca2a76c57e378ca10f6f1fe26db098c80 100644 (file)
@@ -19,7 +19,7 @@ Standard C library
 .nf
 .B #include <sys/fsuid.h>
 .PP
-.BI "int setfsuid(uid_t " fsuid );
+.BI "[[deprecated]] int setfsuid(uid_t " fsuid );
 .fi
 .SH DESCRIPTION
 On Linux, a process has both a filesystem user ID and an effective user ID.
@@ -59,15 +59,13 @@ saved set-user-ID, or current filesystem user ID.
 .SH RETURN VALUE
 On both success and failure,
 this call returns the previous filesystem user ID of the caller.
-.SH VERSIONS
-This system call is present since Linux 1.2.
-.\" This system call is present since Linux 1.1.44
-.\" and in libc since libc 4.7.6.
 .SH STANDARDS
-.BR setfsuid ()
-is Linux-specific and should not be used in programs intended
-to be portable.
-.SH NOTES
+Linux.
+.SH HISTORY
+Linux 1.2.
+.\" Linux 1.1.44
+.\" and in libc since libc 4.7.6.
+.PP
 At the time when this system call was introduced, one process
 could send a signal to another process with the same effective user ID.
 This meant that if a privileged process changed its effective user ID
index 1e14a7271a01c9fb1f63761a48341301e73acb03..6012295231124a85828da5d7d880410a60670e35 100644 (file)
@@ -54,19 +54,7 @@ The calling process is not privileged (does not have the
 .I gid
 does not match the real group ID or saved set-group-ID of
 the calling process.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
-.SH NOTES
-The original Linux
-.BR setgid ()
-system call supported only 16-bit group IDs.
-Subsequently, Linux 2.4 added
-.BR setgid32 ()
-supporting 32-bit IDs.
-The glibc
-.BR setgid ()
-wrapper function transparently deals with the variation across kernel versions.
-.\"
+.SH VERSIONS
 .SS C library/kernel differences
 At the kernel level, user IDs and group IDs are a per-thread attribute.
 However, POSIX requires that all threads in a process
@@ -81,6 +69,20 @@ that when one thread changes credentials,
 all of the other threads in the process also change their credentials.
 For details, see
 .BR nptl (7).
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
+.PP
+The original Linux
+.BR setgid ()
+system call supported only 16-bit group IDs.
+Subsequently, Linux 2.4 added
+.BR setgid32 ()
+supporting 32-bit IDs.
+The glibc
+.BR setgid ()
+wrapper function transparently deals with the variation across kernel versions.
 .SH SEE ALSO
 .BR getgid (2),
 .BR setegid (2),
index 4de32d5c57b0e48a2af84ae96ec7ffea204dbd67..93e9933fc513a6c3a216e5fac62358e7621167d7 100644 (file)
@@ -302,15 +302,11 @@ for this operation.
 .I fd
 is a PID file descriptor but the process it refers to no longer exists
 (i.e., it has terminated and been waited on).
-.SH VERSIONS
-The
-.BR setns ()
-system call first appeared in Linux 3.0;
-library support was added in glibc 2.14.
 .SH STANDARDS
-The
-.BR setns ()
-system call is Linux-specific.
+Linux.
+.SH VERSIONS
+Linux 3.0,
+glibc 2.14.
 .SH NOTES
 For further information on the
 .IR /proc/ pid /ns/
index ad4ea38dc8920fd5651961d17db3f6a94219ecf8..fb67d2ab5f197cc10b2c2bed0b3975331b73530b 100644 (file)
@@ -229,27 +229,37 @@ For
 .I pid
 is not the calling process and not a child of the calling process.
 .SH STANDARDS
+.TP
+.BR getpgid ()
+.TQ
 .BR setpgid ()
-and the version of
-.BR getpgrp ()
-with no arguments
-conform to POSIX.1-2001.
-.PP
-POSIX.1-2001 also specifies
+.TQ
+.BR getpgrp "() (no args)"
+.TQ
+.BR setpgrp "() (no args)"
+POSIX.1-2008 (but see HISTORY).
+.TP
+.BR setpgrp "() (2 args)"
+.TQ
+.BR getpgrp "() (1 arg)"
+None.
+.SH HISTORY
+.TP
 .BR getpgid ()
-and the version of
-.BR setpgrp ()
-that takes no arguments.
-(POSIX.1-2008 marks this
-.BR setpgrp ()
-specification as obsolete.)
-.PP
-The version of
-.BR getpgrp ()
-with one argument and the version of
-.BR setpgrp ()
-that takes two arguments derive from 4.2BSD,
-and are not specified by POSIX.1.
+.TQ
+.BR setpgid ()
+.TQ
+.BR getpgrp "() (no args)"
+POSIX.1-2001.
+.TP
+.BR setpgrp "() (no args)"
+POSIX.1-2001.
+POSIX.1-2008 marks it as obsolete.
+.TP
+.BR setpgrp "() (2 args)"
+.TQ
+.BR getpgrp "() (1 arg)"
+4.2BSD.
 .SH NOTES
 A child created via
 .BR fork (2)
index 081a8e920a6180b9a61e0487baf171e23ccfa36f..874db6f25f37161af77d2f3da9af0196315fb6d5 100644 (file)
@@ -97,14 +97,28 @@ for
 it is
 .BR CAP_SETGID .
 .SH VERSIONS
-These calls are available under Linux since Linux 2.1.44.
+.SS C library/kernel differences
+At the kernel level, user IDs and group IDs are a per-thread attribute.
+However, POSIX requires that all threads in a process
+share the same credentials.
+The NPTL threading implementation handles the POSIX requirements by
+providing wrapper functions for
+the various system calls that change process UIDs and GIDs.
+These wrapper functions (including those for
+.BR setresuid ()
+and
+.BR setresgid ())
+employ a signal-based technique to ensure
+that when one thread changes credentials,
+all of the other threads in the process also change their credentials.
+For details, see
+.BR nptl (7).
 .SH STANDARDS
-These calls are nonstandard;
-they also appear on HP-UX and some of the BSDs.
-.SH NOTES
-Under HP-UX and FreeBSD, the prototype is found in
-.IR <unistd.h> .
-Under Linux, the prototype is provided since glibc 2.3.2.
+None.
+.SH HISTORY
+Linux 2.1.44,
+glibc 2.3.2.
+HP-UX, FreeBSD.
 .PP
 The original Linux
 .BR setresuid ()
@@ -121,23 +135,6 @@ The glibc
 and
 .BR setresgid ()
 wrapper functions transparently deal with the variations across kernel versions.
-.\"
-.SS C library/kernel differences
-At the kernel level, user IDs and group IDs are a per-thread attribute.
-However, POSIX requires that all threads in a process
-share the same credentials.
-The NPTL threading implementation handles the POSIX requirements by
-providing wrapper functions for
-the various system calls that change process UIDs and GIDs.
-These wrapper functions (including those for
-.BR setresuid ()
-and
-.BR setresgid ())
-employ a signal-based technique to ensure
-that when one thread changes credentials,
-all of the other threads in the process also change their credentials.
-For details, see
-.BR nptl (7).
 .SH SEE ALSO
 .BR getresuid (2),
 .BR getuid (2),
index 842c2dc2b53419b4b7d0e6fb778406cf0b33fc1d..702d3b4e039b094eefe976db1a10ca420dbdff7c 100644 (file)
@@ -120,17 +120,7 @@ swapping the effective user (group) ID with the real user (group) ID,
 or (ii) setting one to the value of the other or (iii) setting the
 effective user (group) ID to the value of the
 saved set-user-ID (saved set-group-ID) was specified.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD
-.RB ( setreuid ()
-and
-.BR setregid ()
-first appeared in 4.2BSD).
-.SH NOTES
-Setting the effective user (group) ID to the
-saved set-user-ID (saved set-group-ID) is
-possible since Linux 1.1.37 (1.1.38).
-.PP
+.SH VERSIONS
 POSIX.1 does not specify all of the UID changes that Linux permits
 for an unprivileged process.
 For
@@ -150,6 +140,14 @@ across implementations.
 .PP
 POSIX.1 makes no specification about the effect of these calls
 on the saved set-user-ID and saved set-group-ID.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD (first appeared in 4.2BSD).
+.PP
+Setting the effective user (group) ID to the
+saved set-user-ID (saved set-group-ID) is
+possible since Linux 1.1.37 (1.1.38).
 .PP
 The original Linux
 .BR setreuid ()
index 493e3567b2ed5aea2eeb4fb8faf3510904e3a90f..fe86939e2b821a0475c526ee79cdff6da28bcfde 100644 (file)
@@ -52,7 +52,9 @@ Thus, in particular,
 .BR setsid ()
 fails if the calling process is already a process group leader.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
 .SH NOTES
 A child created via
 .BR fork (2)
index 6293ddd15ed1824a19f57b81bf3f40efeb52544f..c124ff4fc363eabff98a05b5ae349123b8c2e2d8 100644 (file)
@@ -100,11 +100,39 @@ The user is not privileged (Linux: does not have the
 capability in its user namespace) and
 .I uid
 does not match the real UID or saved set-user-ID of the calling process.
+.SH VERSIONS
+.SS C library/kernel differences
+At the kernel level, user IDs and group IDs are a per-thread attribute.
+However, POSIX requires that all threads in a process
+share the same credentials.
+The NPTL threading implementation handles the POSIX requirements by
+providing wrapper functions for
+the various system calls that change process UIDs and GIDs.
+These wrapper functions (including the one for
+.BR setuid ())
+employ a signal-based technique to ensure
+that when one thread changes credentials,
+all of the other threads in the process also change their credentials.
+For details, see
+.BR nptl (7).
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
+.PP
 Not quite compatible with the 4.4BSD call, which
 sets all of the real, saved, and effective user IDs.
 .\" SVr4 documents an additional EINVAL error condition.
+.PP
+The original Linux
+.BR setuid ()
+system call supported only 16-bit user IDs.
+Subsequently, Linux 2.4 added
+.BR setuid32 ()
+supporting 32-bit IDs.
+The glibc
+.BR setuid ()
+wrapper function transparently deals with the variation across kernel versions.
 .SH NOTES
 Linux has the concept of the filesystem user ID, normally equal to the
 effective user ID.
@@ -118,31 +146,6 @@ If
 .I uid
 is different from the old effective UID, the process will
 be forbidden from leaving core dumps.
-.PP
-The original Linux
-.BR setuid ()
-system call supported only 16-bit user IDs.
-Subsequently, Linux 2.4 added
-.BR setuid32 ()
-supporting 32-bit IDs.
-The glibc
-.BR setuid ()
-wrapper function transparently deals with the variation across kernel versions.
-.\"
-.SS C library/kernel differences
-At the kernel level, user IDs and group IDs are a per-thread attribute.
-However, POSIX requires that all threads in a process
-share the same credentials.
-The NPTL threading implementation handles the POSIX requirements by
-providing wrapper functions for
-the various system calls that change process UIDs and GIDs.
-These wrapper functions (including the one for
-.BR setuid ())
-employ a signal-based technique to ensure
-that when one thread changes credentials,
-all of the other threads in the process also change their credentials.
-For details, see
-.BR nptl (7).
 .SH SEE ALSO
 .BR getuid (2),
 .BR seteuid (2),
index a8c94c4b2c181e7ca2a52552b0b7d19efee1e4ae..24e0253d199046144e2a9b8f87f5624d28d77b23 100644 (file)
@@ -21,7 +21,7 @@ Standard C library
 .nf
 .B #include <unistd.h>
 .PP
-.B int setup(void);
+.B [[deprecated]] int setup(void);
 .fi
 .SH DESCRIPTION
 .BR setup ()
@@ -42,12 +42,11 @@ always returns \-1 for a user process.
 .TP
 .B EPERM
 Always, for a user process.
-.SH VERSIONS
-Since Linux 2.1.121, no such function exists anymore.
 .SH STANDARDS
-This function is Linux-specific, and should not be used in programs
-intended to be portable, or indeed in any programs at all.
-.SH NOTES
+Linux.
+.SH VERSIONS
+Removed in Linux 2.1.121.
+.PP
 The calling sequence varied: at some times
 .BR setup ()
 has had a single argument
index 8c658223ccee11c80e8e7a72d25928bc06576744..43151ebd5ec902c007cff3d3143c473fae3f3758 100644 (file)
@@ -137,11 +137,11 @@ The size of
 or
 .I value
 exceeds a filesystem-specific limit.
-.SH VERSIONS
-These system calls have been available since Linux 2.4;
-glibc support is provided since glibc 2.3.
 .SH STANDARDS
-These system calls are Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.4,
+glibc 2.3.
 .\" .SH AUTHORS
 .\" Andreas Gruenbacher,
 .\" .RI < a.gruenbacher@computer.org >
index d342076db69b1316ad24626fa7367c7034a6b970..a1af77c1575d728528dbaec69895ef1b1b4dbae8 100644 (file)
@@ -46,15 +46,15 @@ always successfully returns the signal mask.
 always succeeds, and returns the previous signal mask.
 .SH ERRORS
 These system calls always succeed.
-.SH VERSIONS
+.SH STANDARDS
+Linux.
+.SH HISTORY
 Since Linux 3.16,
 .\" f6187769dae48234f3877df3c4d99294cc2254fa
 support for these system calls is optional,
 depending on whether the kernel was built with the
 .B CONFIG_SGETMASK_SYSCALL
 option.
-.SH STANDARDS
-These system calls are Linux-specific.
 .SH NOTES
 These system calls are unaware of signal numbers greater than 31
 (i.e., real-time signals).
index bc456849d3bdcc34f9f0d42370310b73d0b91ed8..e1c5a9aff4c786890877edde964e19848005bb6c 100644 (file)
@@ -441,24 +441,7 @@ capability).
 (Since Linux 2.6.9, this error can also occur if the
 .B RLIMIT_MEMLOCK
 is 0 and the caller is not privileged.)
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
-.\" SVr4 documents additional error conditions EINVAL,
-.\" ENOENT, ENOSPC, ENOMEM, EEXIST.  Neither SVr4 nor SVID documents
-.\" an EIDRM error condition.
-.SH NOTES
-The
-.BR IPC_INFO ,
-.BR SHM_STAT ,
-and
-.B SHM_INFO
-operations are used by the
-.BR ipcs (1)
-program to provide information on allocated resources.
-In the future, these may modified or moved to a
-.I /proc
-filesystem interface.
-.PP
+.SH VERSIONS
 Linux permits a process to attach
 .RB ( shmat (2))
 a shared memory segment that has already been marked for deletion
@@ -466,6 +449,13 @@ using
 .IR shmctl(IPC_RMID) .
 This feature is not available on other UNIX implementations;
 portable applications should avoid relying on it.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
+.\" SVr4 documents additional error conditions EINVAL,
+.\" ENOENT, ENOSPC, ENOMEM, EEXIST.  Neither SVr4 nor SVID documents
+.\" an EIDRM error condition.
 .PP
 Various fields in a \fIstruct shmid_ds\fP were typed as
 .I short
@@ -479,6 +469,18 @@ a recompilation under glibc-2.1.91 or later should suffice.
 .B IPC_64
 flag in
 .IR cmd .)
+.SH NOTES
+The
+.BR IPC_INFO ,
+.BR SHM_STAT ,
+and
+.B SHM_INFO
+operations are used by the
+.BR ipcs (1)
+program to provide information on allocated resources.
+In the future, these may modified or moved to a
+.I /proc
+filesystem interface.
 .SH SEE ALSO
 .BR mlock (2),
 .BR setrlimit (2),
index c4d8df8ed619f1400a07ade9ef0fb4102f759610..c0b1a669c9d5b8a74e66c78208c1abbeec987771 100644 (file)
@@ -262,13 +262,15 @@ group; see the description of
 in
 .BR proc (5).
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
-.\" SVr4 documents an additional error condition EEXIST.
+POSIX.1-2008.
 .PP
 .B SHM_HUGETLB
 and
 .B SHM_NORESERVE
 are Linux extensions.
+.SH HISTORY
+POSIX.1-2001, SVr4.
+.\" SVr4 documents an additional error condition EEXIST.
 .SH NOTES
 .B IPC_PRIVATE
 isn't a flag field but a
index 6ab2e063a00ce2b8bdf9a837cccf07750e687646..a28d249e10bc207acbf96f1053e46a5be422f412 100644 (file)
@@ -201,7 +201,9 @@ or,
 .I shmaddr
 is not aligned on a page boundary.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
 .\" SVr4 documents an additional error condition EMFILE.
 .PP
 In SVID 3 (or perhaps earlier),
index 82411180b9aa07878e3ec75ade4b7a58a886a3f4..41fcc61d4287f30e6023f4fb7e1fce0326cc83f6 100644 (file)
@@ -67,9 +67,10 @@ The file descriptor
 .I sockfd
 does not refer to a socket.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.4BSD
-.RB ( shutdown ()
-first appeared in 4.2BSD).
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.4BSD
+(first appeared in 4.2BSD).
 .SH NOTES
 The constants
 .BR SHUT_RD ,
index c352da8b5c44e87c58a1e14b0b57f361f6528f85..6c241561b314b9f0a294941642c897e7441fa107 100644 (file)
@@ -942,35 +942,63 @@ This will also be generated if an attempt
 is made to change the action for
 .BR SIGKILL " or " SIGSTOP ,
 which cannot be caught or ignored.
+.SH VERSIONS
+.SS C library/kernel differences
+The glibc wrapper function for
+.BR sigaction ()
+gives an error
+.RB ( EINVAL )
+on attempts to change the disposition of the two real-time signals
+used internally by the NPTL threading implementation.
+See
+.BR nptl (7)
+for details.
+.PP
+On architectures where the signal trampoline resides in the C library,
+the glibc wrapper function for
+.BR sigaction ()
+places the address of the trampoline code in the
+.I act.sa_restorer
+field and sets the
+.B SA_RESTORER
+flag in the
+.I act.sa_flags
+field.
+See
+.BR sigreturn (2).
+.PP
+The original Linux system call was named
+.BR sigaction ().
+However, with the addition of real-time signals in Linux 2.2,
+the fixed-size, 32-bit
+.I sigset_t
+type supported by that system call was no longer fit for purpose.
+Consequently, a new system call,
+.BR rt_sigaction (),
+was added to support an enlarged
+.I sigset_t
+type.
+The new system call takes a fourth argument,
+.IR "size_t sigsetsize" ,
+which specifies the size in bytes of the signal sets in
+.I act.sa_mask
+and
+.IR oldact.sa_mask .
+This argument is currently required to have the value
+.I sizeof(sigset_t)
+(or the error
+.B EINVAL
+results).
+The glibc
+.BR sigaction ()
+wrapper function hides these details from us, transparently calling
+.BR rt_sigaction ()
+when the kernel provides it.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
 .\" SVr4 does not document the EINTR condition.
-.SH NOTES
-A child created via
-.BR fork (2)
-inherits a copy of its parent's signal dispositions.
-During an
-.BR execve (2),
-the dispositions of handled signals are reset to the default;
-the dispositions of ignored signals are left unchanged.
-.PP
-According to POSIX, the behavior of a process is undefined after it
-ignores a
-.BR SIGFPE ,
-.BR SIGILL ,
-or
-.B SIGSEGV
-signal that was not generated by
-.BR kill (2)
-or
-.BR raise (3).
-Integer division by zero has undefined result.
-On some architectures it will generate a
-.B SIGFPE
-signal.
-(Also dividing the most negative integer by \-1 may generate
-.BR SIGFPE .)
-Ignoring this signal might lead to an endless loop.
 .PP
 POSIX.1-1990 disallowed setting the action for
 .B SIGCHLD
@@ -1018,6 +1046,32 @@ allowed the receipt of any signal, not just the one we are installing
 (effectively overriding any
 .I sa_mask
 settings).
+.SH NOTES
+A child created via
+.BR fork (2)
+inherits a copy of its parent's signal dispositions.
+During an
+.BR execve (2),
+the dispositions of handled signals are reset to the default;
+the dispositions of ignored signals are left unchanged.
+.PP
+According to POSIX, the behavior of a process is undefined after it
+ignores a
+.BR SIGFPE ,
+.BR SIGILL ,
+or
+.B SIGSEGV
+signal that was not generated by
+.BR kill (2)
+or
+.BR raise (3).
+Integer division by zero has undefined result.
+On some architectures it will generate a
+.B SIGFPE
+signal.
+(Also dividing the most negative integer by \-1 may generate
+.BR SIGFPE .)
+Ignoring this signal might lead to an endless loop.
 .PP
 .BR sigaction ()
 can be called with a NULL second argument to query the current signal
@@ -1040,58 +1094,6 @@ See
 for a list of the async-signal-safe functions that can be
 safely called inside from inside a signal handler.
 .\"
-.SS C library/kernel differences
-The glibc wrapper function for
-.BR sigaction ()
-gives an error
-.RB ( EINVAL )
-on attempts to change the disposition of the two real-time signals
-used internally by the NPTL threading implementation.
-See
-.BR nptl (7)
-for details.
-.PP
-On architectures where the signal trampoline resides in the C library,
-the glibc wrapper function for
-.BR sigaction ()
-places the address of the trampoline code in the
-.I act.sa_restorer
-field and sets the
-.B SA_RESTORER
-flag in the
-.I act.sa_flags
-field.
-See
-.BR sigreturn (2).
-.PP
-The original Linux system call was named
-.BR sigaction ().
-However, with the addition of real-time signals in Linux 2.2,
-the fixed-size, 32-bit
-.I sigset_t
-type supported by that system call was no longer fit for purpose.
-Consequently, a new system call,
-.BR rt_sigaction (),
-was added to support an enlarged
-.I sigset_t
-type.
-The new system call takes a fourth argument,
-.IR "size_t sigsetsize" ,
-which specifies the size in bytes of the signal sets in
-.I act.sa_mask
-and
-.IR oldact.sa_mask .
-This argument is currently required to have the value
-.I sizeof(sigset_t)
-(or the error
-.B EINVAL
-results).
-The glibc
-.BR sigaction ()
-wrapper function hides these details from us, transparently calling
-.BR rt_sigaction ()
-when the kernel provides it.
-.\"
 .SS Undocumented
 Before the introduction of
 .BR SA_SIGINFO ,
index cdc8a8e39f70b151a1d5322232549a3c6aaa2fc1..095c95742bb3a92ee5c58e4a530a97a35af78920 100644 (file)
@@ -211,11 +211,12 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SUSv2, SVr4.
+POSIX.1-2008.
 .PP
-The
 .B SS_AUTODISARM
-flag is a Linux extension.
+is a Linux extension.
+.SH HISTORY
+POSIX.1-2001, SUSv2, SVr4.
 .SH NOTES
 The most common usage of an alternate signal stack is to handle the
 .B SIGSEGV
index d340c734b05c5c57359a3d491ad0a9a3c81ff4e5..c05b0ee452c7a6d43663cc98f6aec6bce2af00c6 100644 (file)
@@ -93,43 +93,7 @@ is set to indicate the error.
 .B EINVAL
 .I signum
 is invalid.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99.
-.SH NOTES
-The effects of
-.BR signal ()
-in a multithreaded process are unspecified.
-.PP
-According to POSIX, the behavior of a process is undefined after it
-ignores a
-.BR SIGFPE ,
-.BR SIGILL ,
-or
-.B SIGSEGV
-signal that was not generated by
-.BR kill (2)
-or
-.BR raise (3).
-Integer division by zero has undefined result.
-On some architectures it will generate a
-.B SIGFPE
-signal.
-(Also dividing the most negative integer by \-1 may generate
-.BR SIGFPE .)
-Ignoring this signal might lead to an endless loop.
-.PP
-See
-.BR sigaction (2)
-for details on what happens when the disposition
-.B SIGCHLD
-is set to
-.BR SIG_IGN .
-.PP
-See
-.BR signal\-safety (7)
-for a list of the async-signal-safe functions that can be
-safely called from inside a signal handler.
-.PP
+.SH VERSIONS
 The use of
 .I sighandler_t
 is a GNU extension, exposed if
@@ -173,6 +137,10 @@ POSIX.1 solved the portability mess by specifying
 which provides explicit control of the semantics when a
 signal handler is invoked; use that interface instead of
 .BR signal ().
+.SH STANDARDS
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
 .PP
 In the original UNIX systems, when a handler that was established using
 .BR signal ()
@@ -257,6 +225,40 @@ provides System\ V semantics.
 .\" then
 .\" .BR signal ()
 .\" provides BSD semantics.
+.SH NOTES
+The effects of
+.BR signal ()
+in a multithreaded process are unspecified.
+.PP
+According to POSIX, the behavior of a process is undefined after it
+ignores a
+.BR SIGFPE ,
+.BR SIGILL ,
+or
+.B SIGSEGV
+signal that was not generated by
+.BR kill (2)
+or
+.BR raise (3).
+Integer division by zero has undefined result.
+On some architectures it will generate a
+.B SIGFPE
+signal.
+(Also dividing the most negative integer by \-1 may generate
+.BR SIGFPE .)
+Ignoring this signal might lead to an endless loop.
+.PP
+See
+.BR sigaction (2)
+for details on what happens when the disposition
+.B SIGCHLD
+is set to
+.BR SIG_IGN .
+.PP
+See
+.BR signal\-safety (7)
+for a list of the async-signal-safe functions that can be
+safely called from inside a signal handler.
 .SH SEE ALSO
 .BR kill (1),
 .BR alarm (2),
index f0c27991bb3f78d59d9d3db93bd853f35efec391..8e86d65285d18fd986807fecd90a0c4d49545b4b 100644 (file)
@@ -328,18 +328,43 @@ Could not mount (internal) anonymous inode device.
 .B ENOMEM
 There was insufficient memory to create a new signalfd file descriptor.
 .SH VERSIONS
+.SS C library/kernel differences
+The underlying Linux system call requires an additional argument,
+.IR "size_t sizemask" ,
+which specifies the size of the
+.I mask
+argument.
+The glibc
 .BR signalfd ()
-is available since Linux 2.6.22.
-Working support is provided since glibc 2.8.
-.\" signalfd() is in glibc 2.7, but reportedly does not build
-The
+wrapper function does not include this argument,
+since it provides the required value for the underlying system call.
+.PP
+There are two underlying Linux system calls:
+.BR signalfd ()
+and the more recent
+.BR signalfd4 ().
+The former system call does not implement a
+.I flags
+argument.
+The latter system call implements the
+.I flags
+values described above.
+Starting with glibc 2.9, the
+.BR signalfd ()
+wrapper function will use
 .BR signalfd4 ()
-system call (see NOTES) is available since Linux 2.6.27.
+where it is available.
 .SH STANDARDS
+Linux.
+.SH HISTORY
+.TP
 .BR signalfd ()
-and
+Linux 2.6.22,
+glibc 2.8.
+.\" signalfd() is in glibc 2.7, but reportedly does not build
+.TP
 .BR signalfd4 ()
-are Linux-specific.
+Linux 2.6.27.
 .SH NOTES
 A process can create multiple signalfd file descriptors.
 This makes it possible to accept different signals
@@ -400,33 +425,6 @@ handler that writes to a file descriptor monitored by
 .BR poll (2),
 or
 .BR epoll (7).
-.\"
-.SS C library/kernel differences
-The underlying Linux system call requires an additional argument,
-.IR "size_t sizemask" ,
-which specifies the size of the
-.I mask
-argument.
-The glibc
-.BR signalfd ()
-wrapper function does not include this argument,
-since it provides the required value for the underlying system call.
-.PP
-There are two underlying Linux system calls:
-.BR signalfd ()
-and the more recent
-.BR signalfd4 ().
-The former system call does not implement a
-.I flags
-argument.
-The latter system call implements the
-.I flags
-values described above.
-Starting with glibc 2.9, the
-.BR signalfd ()
-wrapper function will use
-.BR signalfd4 ()
-where it is available.
 .SH BUGS
 Before Linux 2.6.25, the
 .I ssi_ptr
index 517058b9ebb526fb1e02aa38fe1aeb6b362daea5..b0a9c247e3a6fe7c1285006fe63b964c8928dcbf 100644 (file)
@@ -46,27 +46,9 @@ is set to indicate the error.
 .I set
 points to memory which is not a valid part of the process address space.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-See
-.BR sigsetops (3)
-for details on manipulating signal sets.
-.PP
-If a signal is both blocked and has a disposition of "ignored", it is
-.I not
-added to the mask of pending signals when generated.
-.PP
-The set of signals that is pending for a thread
-is the union of the set of signals that is pending for that thread
-and the set of signals that is pending for the process as a whole; see
-.BR signal (7).
-.PP
-A child created via
-.BR fork (2)
-initially has an empty pending signal set;
-the pending signal set is preserved across an
-.BR execve (2).
-.\"
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SS C library/kernel differences
 The original Linux system call was named
 .BR sigpending ().
@@ -93,7 +75,25 @@ The glibc
 wrapper function hides these details from us, transparently calling
 .BR rt_sigpending ()
 when the kernel provides it.
-.\"
+.SH NOTES
+See
+.BR sigsetops (3)
+for details on manipulating signal sets.
+.PP
+If a signal is both blocked and has a disposition of "ignored", it is
+.I not
+added to the mask of pending signals when generated.
+.PP
+The set of signals that is pending for a thread
+is the union of the set of signals that is pending for that thread
+and the set of signals that is pending for the process as a whole; see
+.BR signal (7).
+.PP
+A child created via
+.BR fork (2)
+initially has an empty pending signal set;
+the pending signal set is preserved across an
+.BR execve (2).
 .SH BUGS
 Up to and including glibc 2.2.1,
 there is a bug in the wrapper function for
index ae65e3400cbe5369bfde05f12a678c2f3bceab3c..692ce601ff1f2465a855ebaa4de3480e40d62de5 100644 (file)
@@ -116,45 +116,7 @@ Either the value specified in
 .I how
 was invalid or the kernel does not support the size passed in
 .I sigsetsize.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-It is not possible to block
-.BR SIGKILL " or " SIGSTOP .
-Attempts to do so are silently ignored.
-.PP
-Each of the threads in a process has its own signal mask.
-.PP
-A child created via
-.BR fork (2)
-inherits a copy of its parent's signal mask;
-the signal mask is preserved across
-.BR execve (2).
-.PP
-If
-.BR SIGBUS ,
-.BR SIGFPE ,
-.BR SIGILL ,
-or
-.B SIGSEGV
-are generated
-while they are blocked, the result is undefined,
-unless the signal was generated by
-.BR kill (2),
-.BR sigqueue (3),
-or
-.BR raise (3).
-.PP
-See
-.BR sigsetops (3)
-for details on manipulating signal sets.
-.PP
-Note that it is permissible (although not very useful) to specify both
-.I set
-and
-.I oldset
-as NULL.
-.\"
+.SH VERSIONS
 .SS C library/kernel differences
 The kernel's definition of
 .I sigset_t
@@ -209,6 +171,46 @@ wrapper function hides these details from us, transparently calling
 .BR rt_sigprocmask ()
 when the kernel provides it.
 .\"
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.SH NOTES
+It is not possible to block
+.BR SIGKILL " or " SIGSTOP .
+Attempts to do so are silently ignored.
+.PP
+Each of the threads in a process has its own signal mask.
+.PP
+A child created via
+.BR fork (2)
+inherits a copy of its parent's signal mask;
+the signal mask is preserved across
+.BR execve (2).
+.PP
+If
+.BR SIGBUS ,
+.BR SIGFPE ,
+.BR SIGILL ,
+or
+.B SIGSEGV
+are generated
+while they are blocked, the result is undefined,
+unless the signal was generated by
+.BR kill (2),
+.BR sigqueue (3),
+or
+.BR raise (3).
+.PP
+See
+.BR sigsetops (3)
+for details on manipulating signal sets.
+.PP
+Note that it is permissible (although not very useful) to specify both
+.I set
+and
+.I oldset
+as NULL.
 .SH SEE ALSO
 .BR kill (2),
 .BR pause (2),
index a4f0e131505b926faa3e8cace068fae4397cec83..861e8d25dafc597f4b5e791ca12fb6818ce7838d 100644 (file)
@@ -52,12 +52,14 @@ at the point where it was interrupted by the signal.
 .SH RETURN VALUE
 .BR sigreturn ()
 never returns.
-.SH STANDARDS
+.SH VERSIONS
 Many UNIX-type systems have a
 .BR sigreturn ()
 system call or near equivalent.
 However, this call is not specified in POSIX,
 and details of its behavior vary across systems.
+.SH STANDARDS
+None.
 .SH NOTES
 .BR sigreturn ()
 exists only to allow the implementation of signal handlers.
index 8493d296913ad47fc0201c9e9521ff55eb4f17eb..c5c22c2c1361f5cf3df2c626db164b9cfe637db4 100644 (file)
@@ -68,29 +68,9 @@ points to memory which is not a valid part of the process address space.
 The call was interrupted by a signal;
 .BR signal (7).
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-Normally,
-.BR sigsuspend ()
-is used in conjunction with
-.BR sigprocmask (2)
-in order to prevent delivery of a signal during the execution of a
-critical code section.
-The caller first blocks the signals with
-.BR sigprocmask (2).
-When the critical code has completed, the caller then waits for the
-signals by calling
-.BR sigsuspend ()
-with the signal mask that was returned by
-.BR sigprocmask (2)
-(in the
-.I oldset
-argument).
-.PP
-See
-.BR sigsetops (3)
-for details on manipulating signal sets.
-.\"
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SS C library/kernel differences
 The original Linux system call was named
 .BR sigsuspend ().
@@ -118,6 +98,27 @@ wrapper function hides these details from us, transparently calling
 .BR rt_sigsuspend ()
 when the kernel provides it.
 .\"
+.SH NOTES
+Normally,
+.BR sigsuspend ()
+is used in conjunction with
+.BR sigprocmask (2)
+in order to prevent delivery of a signal during the execution of a
+critical code section.
+The caller first blocks the signals with
+.BR sigprocmask (2).
+When the critical code has completed, the caller then waits for the
+signals by calling
+.BR sigsuspend ()
+with the signal mask that was returned by
+.BR sigprocmask (2)
+(in the
+.I oldset
+argument).
+.PP
+See
+.BR sigsetops (3)
+for details on manipulating signal sets.
 .SH SEE ALSO
 .BR kill (2),
 .BR pause (2),
index 42209c1806e9e0618430976516bcae96f900c60f..fb797e8036585a85611a03dcbba21787f5573434 100644 (file)
@@ -110,8 +110,53 @@ The wait was interrupted by a signal handler; see
 .B EINVAL
 .I timeout
 was invalid.
+.SH VERSIONS
+.SS C library/kernel differences
+On Linux,
+.BR sigwaitinfo ()
+is a library function implemented on top of
+.BR sigtimedwait ().
+.PP
+The glibc wrapper functions for
+.BR sigwaitinfo ()
+and
+.BR sigtimedwait ()
+silently ignore attempts to wait for the two real-time signals that
+are used internally by the NPTL threading implementation.
+See
+.BR nptl (7)
+for details.
+.PP
+The original Linux system call was named
+.BR sigtimedwait ().
+However, with the addition of real-time signals in Linux 2.2,
+the fixed-size, 32-bit
+.I sigset_t
+type supported by that system call was no longer fit for purpose.
+Consequently, a new system call,
+.BR rt_sigtimedwait (),
+was added to support an enlarged
+.I sigset_t
+type.
+The new system call takes a fourth argument,
+.IR "size_t sigsetsize" ,
+which specifies the size in bytes of the signal set in
+.IR set .
+This argument is currently required to have the value
+.I sizeof(sigset_t)
+(or the error
+.B EINVAL
+results).
+The glibc
+.BR sigtimedwait ()
+wrapper function hides these details from us, transparently calling
+.BR rt_sigtimedwait ()
+when the kernel provides it.
+.\"
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 In normal usage, the calling program blocks the signals in
 .I set
@@ -171,49 +216,6 @@ unspecified, permitting the possibility that this has the same meaning
 as a call to
 .BR sigwaitinfo (),
 and indeed this is what is done on Linux.
-.\"
-.SS C library/kernel differences
-On Linux,
-.BR sigwaitinfo ()
-is a library function implemented on top of
-.BR sigtimedwait ().
-.PP
-The glibc wrapper functions for
-.BR sigwaitinfo ()
-and
-.BR sigtimedwait ()
-silently ignore attempts to wait for the two real-time signals that
-are used internally by the NPTL threading implementation.
-See
-.BR nptl (7)
-for details.
-.PP
-The original Linux system call was named
-.BR sigtimedwait ().
-However, with the addition of real-time signals in Linux 2.2,
-the fixed-size, 32-bit
-.I sigset_t
-type supported by that system call was no longer fit for purpose.
-Consequently, a new system call,
-.BR rt_sigtimedwait (),
-was added to support an enlarged
-.I sigset_t
-type.
-The new system call takes a fourth argument,
-.IR "size_t sigsetsize" ,
-which specifies the size in bytes of the signal set in
-.IR set .
-This argument is currently required to have the value
-.I sizeof(sigset_t)
-(or the error
-.B EINVAL
-results).
-The glibc
-.BR sigtimedwait ()
-wrapper function hides these details from us, transparently calling
-.BR rt_sigtimedwait ()
-when the kernel provides it.
-.\"
 .SH SEE ALSO
 .BR kill (2),
 .BR sigaction (2),
index 0caf77c506426f7733d362acc58a031157b46888..2c681020b6ffbab20fdf2338f6541489ca1a5f6b 100644 (file)
@@ -428,20 +428,21 @@ supported within this domain.
 .PP
 Other errors may be generated by the underlying protocol modules.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.4BSD.
+POSIX.1-2008.
 .PP
-The
 .B SOCK_NONBLOCK
 and
 .B SOCK_CLOEXEC
-flags are Linux-specific.
+are Linux-specific.
+.SH HISTORY
+POSIX.1-2001, 4.4BSD.
 .PP
 .BR socket ()
 appeared in 4.2BSD.
 It is generally portable to/from
 non-BSD systems supporting clones of the BSD socket layer (including
 System\ V variants).
-.SH NOTES
+.PP
 The manifest constants used under 4.x BSD for protocol families
 are
 .BR PF_UNIX ,
index a5803eea680ab8bac037a62b808d9908ff72ae7e..b4c09608510f7d8cf23cff6c7171176b25144bf5 100644 (file)
@@ -142,10 +142,7 @@ T}:T{
 .BR sendmmsg (2)
 T}
 .TE
-.SH STANDARDS
-This call is specific to Linux, and should not be used in programs
-intended to be portable.
-.SH NOTES
+.SH VERSIONS
 On some architectures\[em]for example, x86-64 and ARM\[em]there is no
 .BR socketcall ()
 system call; instead
@@ -153,6 +150,8 @@ system call; instead
 .BR accept (2),
 .BR bind (2),
 and so on really are implemented as separate system calls.
+.SH STANDARDS
+Linux.
 .PP
 On x86-32,
 .BR socketcall ()
index bc80614a1f2e4f7de4d2c8f49cffb8076c2b21c6..9831c9715a84f72194791c150351fba14b9bf83d 100644 (file)
@@ -77,14 +77,7 @@ The specified protocol does not support creation of socket pairs.
 .TP
 .B EPROTONOSUPPORT
 The specified protocol is not supported on this machine.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.4BSD.
-.BR socketpair ()
-first appeared in 4.2BSD.
-It is generally portable to/from
-non-BSD systems supporting clones of the BSD socket layer (including
-System\ V variants).
-.SH NOTES
+.SH VERSIONS
 On Linux, the only supported domains for this call are
 .B AF_UNIX
 (or synonymously,
@@ -93,6 +86,16 @@ and
 .B AF_TIPC
 .\" commit: 70b03759e9ecfae400605fa34f3d7154cccbbba3
 (since Linux 4.12).
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.4BSD.
+.PP
+.BR socketpair ()
+first appeared in 4.2BSD.
+It is generally portable to/from
+non-BSD systems supporting clones of the BSD socket layer (including
+System\ V variants).
 .PP
 Since Linux 2.6.27,
 .BR socketpair ()
index 38d8f703b1a1e21598f7fe8912d7bafa2b2f864e..dd78e8cd4c5f01d5fb43b1fa2a0b5c1df2d9728c 100644 (file)
@@ -176,13 +176,21 @@ Either
 or
 .I off_out
 was not NULL, but the corresponding file descriptor refers to a pipe.
-.SH VERSIONS
-The
-.BR splice ()
-system call first appeared in Linux 2.6.17;
-library support was added in glibc 2.5.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.17,
+glibc 2.5.
+.PP
+In Linux 2.6.30 and earlier,
+exactly one of
+.I fd_in
+and
+.I fd_out
+was required to be a pipe.
+Since Linux 2.6.31,
+.\" commit 7c77f0b3f9208c339a4b40737bb2cb0f0319bb8d
+both arguments may refer to pipes.
 .SH NOTES
 The three system calls
 .BR splice (),
@@ -234,16 +242,6 @@ only pointers are copied, not the pages of the buffer.
 .\" the data and choose to forward it to two or more different
 .\" users - for things like logging etc.).
 .\"
-.PP
-In Linux 2.6.30 and earlier,
-exactly one of
-.I fd_in
-and
-.I fd_out
-was required to be a pipe.
-Since Linux 2.6.31,
-.\" commit 7c77f0b3f9208c339a4b40737bb2cb0f0319bb8d
-both arguments may refer to pipes.
 .SH EXAMPLES
 See
 .BR tee (2).
index d7215fd78132a1d1574f1041c84d90547e1da321..2e4abeac9e08c217beb3fb88d27bbe294b336896 100644 (file)
@@ -244,22 +244,10 @@ must point to a location beneath the mount point of
 .BR spufs .
 By convention, it gets mounted in
 .IR /spu .
-.SH VERSIONS
-The
-.BR spu_create ()
-system call was added in Linux 2.6.16.
 .SH STANDARDS
-This call is Linux-specific and implemented only on the PowerPC
-architecture.
-Programs using this system call are not portable.
-.SH NOTES
-.BR spu_create ()
-is meant to be used from libraries that implement a more abstract
-interface to SPUs, not to be used from regular applications.
-See
-.UR http://www.bsc.es\:/projects\:/deepcomputing\:/linuxoncell/
-.UE
-for the recommended libraries.
+Linux on PowerPC.
+.SH HISTORY
+Linux 2.6.16.
 .PP
 Prior to the addition of the
 .B SPU_CREATE_AFFINITY_SPU
@@ -268,6 +256,14 @@ flag in Linux 2.6.23, the
 system call took only three arguments (i.e., there was no
 .I neighbor_fd
 argument).
+.SH NOTES
+.BR spu_create ()
+is meant to be used from libraries that implement a more abstract
+interface to SPUs, not to be used from regular applications.
+See
+.UR http://www.bsc.es\:/projects\:/deepcomputing\:/linuxoncell/
+.UE
+for the recommended libraries.
 .SH EXAMPLES
 See
 .BR spu_run (2)
index 720a49997c2d9c0ed996649d4f80b64ce2795a8b..c3df3ad63a6121b893145f1137594c67a9347a82 100644 (file)
@@ -181,14 +181,10 @@ resulting from a Memory Flow Controller (MFC) direct memory access.
 The functionality is not provided by the current system, because
 either the hardware does not provide SPUs or the spufs module is not
 loaded.
-.SH VERSIONS
-The
-.BR spu_run ()
-system call was added in Linux 2.6.16.
 .SH STANDARDS
-This call is Linux-specific and implemented only by the PowerPC
-architecture.
-Programs using this system call are not portable.
+Linux on PowerPC.
+.SH HISTORY
+Linux 2.6.16.
 .SH NOTES
 .BR spu_run ()
 is meant to be used from libraries that implement a more abstract
index 8479befccd8dd6fd76c2d455306cf89d991e9af8..546e80ab433e1dceafba081d2cef199f6cf187fb 100644 (file)
@@ -306,15 +306,16 @@ calls
 on a file whose size exceeds
 .I (1<<31)\-1
 bytes.
-.SH VERSIONS
-.BR fstatat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
 .SH STANDARDS
-.BR stat (),
-.BR fstat (),
-.BR lstat ():
-SVr4, 4.3BSD, POSIX.1-2001, POSIX.1.2008.
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR stat ()
+.TQ
+.BR fstat ()
+.TQ
+.BR lstat ()
+SVr4, 4.3BSD, POSIX.1-2001.
 .\" SVr4 documents additional
 .\" .BR fstat ()
 .\" error conditions EINTR, ENOLINK, and EOVERFLOW.  SVr4
@@ -323,9 +324,11 @@ SVr4, 4.3BSD, POSIX.1-2001, POSIX.1.2008.
 .\" and
 .\" .BR lstat ()
 .\" error conditions EINTR, EMULTIHOP, ENOLINK, and EOVERFLOW.
-.PP
-.BR fstatat ():
+.TP
+.BR fstatat ()
 POSIX.1-2008.
+Linux 2.6.16,
+glibc 2.4.
 .PP
 According to POSIX.1-2001,
 .BR lstat ()
@@ -349,7 +352,6 @@ fields may be less portable.
 (They were introduced in BSD.
 The interpretation differs between systems,
 and possibly on a single system when NFS mounts are involved.)
-.SH NOTES
 .SS C library/kernel differences
 Over time, increases in the size of the
 .I stat
index 8c4d6236f258821d537f3ed93b612c2422462340..0496ab6c910794d9ed560bcce94b56bcb47ab3f6 100644 (file)
@@ -267,61 +267,7 @@ is not a directory.
 .TP
 .B EOVERFLOW
 Some values were too large to be represented in the returned struct.
-.SH STANDARDS
-Linux-specific.
-The Linux
-.BR statfs ()
-was inspired by the 4.4BSD one
-(but they do not use the same structure).
-.SH NOTES
-The
-.I __fsword_t
-type used for various fields in the
-.I statfs
-structure definition is a glibc internal type,
-not intended for public use.
-This leaves the programmer in a bit of a conundrum when trying to copy
-or compare these fields to local variables in a program.
-Using
-.I "unsigned\ int"
-for such variables suffices on most systems.
-.PP
-The original Linux
-.BR statfs ()
-and
-.BR fstatfs ()
-system calls were not designed with extremely large file sizes in mind.
-Subsequently, Linux 2.6
-added new
-.BR statfs64 ()
-and
-.BR fstatfs64 ()
-system calls that employ a new structure,
-.IR statfs64 .
-The new structure contains the same fields as the original
-.I statfs
-structure, but the sizes of various fields are increased,
-to accommodate large file sizes.
-The glibc
-.BR statfs ()
-and
-.BR fstatfs ()
-wrapper functions transparently deal with the kernel differences.
-.PP
-Some systems have only \fI<sys/vfs.h>\fP, other systems also have
-\fI<sys/statfs.h>\fP, where the former includes the latter.
-So it seems
-including the former is the best choice.
-.PP
-LSB has deprecated the library calls
-.BR statfs ()
-and
-.BR fstatfs ()
-and tells us to use
-.BR statvfs (3)
-and
-.BR fstatvfs (3)
-instead.
+.SH VERSIONS
 .SS The f_fsid field
 Solaris, Irix, and POSIX have a system call
 .BR statvfs (2)
@@ -366,6 +312,62 @@ Under some operating systems, the
 can be used as the second argument to the
 .BR sysfs (2)
 system call.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+The Linux
+.BR statfs ()
+was inspired by the 4.4BSD one
+(but they do not use the same structure).
+.PP
+The original Linux
+.BR statfs ()
+and
+.BR fstatfs ()
+system calls were not designed with extremely large file sizes in mind.
+Subsequently, Linux 2.6
+added new
+.BR statfs64 ()
+and
+.BR fstatfs64 ()
+system calls that employ a new structure,
+.IR statfs64 .
+The new structure contains the same fields as the original
+.I statfs
+structure, but the sizes of various fields are increased,
+to accommodate large file sizes.
+The glibc
+.BR statfs ()
+and
+.BR fstatfs ()
+wrapper functions transparently deal with the kernel differences.
+.PP
+LSB has deprecated the library calls
+.BR statfs ()
+and
+.BR fstatfs ()
+and tells us to use
+.BR statvfs (3)
+and
+.BR fstatvfs (3)
+instead.
+.SH NOTES
+The
+.I __fsword_t
+type used for various fields in the
+.I statfs
+structure definition is a glibc internal type,
+not intended for public use.
+This leaves the programmer in a bit of a conundrum when trying to copy
+or compare these fields to local variables in a program.
+Using
+.I "unsigned\ int"
+for such variables suffices on most systems.
+.PP
+Some systems have only \fI<sys/vfs.h>\fP, other systems also have
+\fI<sys/statfs.h>\fP, where the former includes the latter.
+So it seems
+including the former is the best choice.
 .SH BUGS
 From Linux 2.6.38 up to and including Linux 3.1,
 .\" broken in commit ff0c7d15f9787b7e8c601533c015295cc68329f8
index c79f3c219d4d6fed173237a7ad64bac2eb7aa256..ef35efd981b16f5b2172ef61adeab45c5f80d3c0 100644 (file)
@@ -589,12 +589,11 @@ is not a directory or
 is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
-.SH VERSIONS
-.BR statx ()
-was added in Linux 4.11; library support was added in glibc 2.28.
 .SH STANDARDS
-.BR statx ()
-is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 4.11,
+glibc 2.28.
 .SH SEE ALSO
 .BR ls (1),
 .BR stat (1),
index fd77385d1dee39667dc390a8c295338b6cd94bfc..ec0a9d02b12cdc86c3038bea9ebec16b6cb4a443 100644 (file)
@@ -59,8 +59,10 @@ Under Linux, the
 .B CAP_SYS_TIME
 privilege is required.
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr4.
-.SH NOTES
+.PP
 Starting with glibc 2.31,
 this function is no longer available to newly linked applications
 and is no longer declared in
index 374ddce9d8376a5a438f151bc92b5ca70032b85f..2719e9ceba06f1e678a84b88513b0c961262cd75 100644 (file)
@@ -76,14 +76,13 @@ address space of the process or to a region that consists of huge pages.
 .TP
 .B ENOMEM
 Out of memory.
-.SH VERSIONS
-This system call is provided on the PowerPC architecture
-since Linux 2.6.25.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.6.25 (PowerPC).
+.PP
 The system call is provided only if the kernel is configured with
 .BR CONFIG_PPC_64K_PAGES .
-No library support is provided.
-.SH STANDARDS
-This system call is Linux-specific.
 .SH NOTES
 Normal page protections (at the 64-kB page level) also apply;
 the subpage protection mechanism is an additional constraint,
index db9dc3dff7c0fd9cc7e12b4b34c1f689ede92d22..8f798ef7bb9d17caf50965f50f70fdf72fda29dd 100644 (file)
@@ -148,9 +148,9 @@ capability.
 Alternatively, the maximum number of swap files are already in use;
 see NOTES below.
 .SH STANDARDS
-These functions are Linux-specific and should not be used in programs
-intended to be portable.
-The second
+Linux.
+.SH HISTORY
+The
 .I swapflags
 argument was introduced in Linux 1.3.2.
 .SH NOTES
index 13b2ed1ccd5b23b31593e2e2707c06e964e5a385..4475bcb90a8f019a8353c80def72bcb320aefab2 100644 (file)
@@ -214,29 +214,21 @@ does not support the creation of symbolic links.
 .B EROFS
 .I linkpath
 is on a read-only filesystem.
-.SH VERSIONS
-.BR symlinkat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
 .SH STANDARDS
-.BR symlink ():
-SVr4, 4.3BSD, POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR symlink ()
+SVr4, 4.3BSD, POSIX.1-2001.
 .\" SVr4 documents additional error codes EDQUOT and ENOSYS.
 .\" See
 .\" .BR open (2)
 .\" re multiple files with the same name, and NFS.
-.PP
-.BR symlinkat ():
+.TP
+.BR symlinkat ()
 POSIX.1-2008.
-.SH NOTES
-No checking of
-.I target
-is done.
-.PP
-Deleting the name referred to by a symbolic link will actually delete the
-file (unless it also has other hard links).
-If this behavior is not desired, use
-.BR link (2).
+Linux 2.6.16,
+glibc 2.4.
 .SS glibc notes
 On older kernels where
 .BR symlinkat ()
@@ -250,6 +242,15 @@ glibc constructs a pathname based on the symbolic link in
 that corresponds to the
 .I newdirfd
 argument.
+.SH NOTES
+No checking of
+.I target
+is done.
+.PP
+Deleting the name referred to by a symbolic link will actually delete the
+file (unless it also has other hard links).
+If this behavior is not desired, use
+.BR link (2).
 .SH SEE ALSO
 .BR ln (1),
 .BR namei (1),
index 24576ec37f2491b5ce9287e8356a4ac19fd9d11b..c1257fdc254420bcdeb421b2145f6e38e19aa45a 100644 (file)
@@ -88,25 +88,6 @@ allocate space at the time of a
 system call, and some previous write failed due to insufficient
 storage space.
 .SH VERSIONS
-.BR syncfs ()
-first appeared in Linux 2.6.39;
-library support was added in glibc 2.14.
-.SH STANDARDS
-.BR sync ():
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
-.PP
-.BR syncfs ()
-is Linux-specific.
-.SH NOTES
-Since glibc 2.2.2, the Linux prototype for
-.BR sync ()
-is as listed above,
-following the various standards.
-In glibc 2.2.1 and earlier,
-it was "int sync(void)", and
-.BR sync ()
-always returned 0.
-.PP
 According to the standard specification (e.g., POSIX.1-2001),
 .BR sync ()
 schedules the writes, but may return before the actual
@@ -120,6 +101,30 @@ provide the same guarantees as
 .BR fsync ()
 called on every file in
 the system or filesystem respectively.
+.SH STANDARDS
+.TP
+.BR sync ()
+POSIX.1-2008.
+.TP
+.BR syncfs ()
+Linux.
+.SH HISTORY
+.TP
+.BR sync ()
+POSIX.1-2001, SVr4, 4.3BSD.
+.TP
+.BR syncfs ()
+Linux 2.6.39,
+glibc 2.14.
+.PP
+Since glibc 2.2.2, the Linux prototype for
+.BR sync ()
+is as listed above,
+following the various standards.
+In glibc 2.2.1 and earlier,
+it was "int sync(void)", and
+.BR sync ()
+always returned 0.
 .PP
 In mainline kernel versions prior to Linux 5.8,
 .BR syncfs ()
index 7557cad448afabccbb31f5598cfb1b67c7b2a3e5..d633b08ffe8b54ab6ce10776ac8d80f015305e72 100644 (file)
@@ -155,12 +155,6 @@ Out of disk space.
 refers to something other than a regular file, a block device, or
 a directory.
 .SH VERSIONS
-.BR sync_file_range ()
-appeared in Linux 2.6.17.
-.SH STANDARDS
-This system call is Linux-specific, and should be avoided
-in portable programs.
-.SH NOTES
 .SS sync_file_range2()
 Some architectures (e.g., PowerPC, ARM)
 need 64-bit arguments to be aligned in a suitable pair of registers.
@@ -188,7 +182,11 @@ system call that orders the arguments suitably:
 .PP
 The behavior of this system call is otherwise exactly the same as
 .BR sync_file_range ().
-.PP
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.6.17.
+.SS sync_file_range2()
 A system call with this signature first appeared on the ARM architecture
 in Linux 2.6.20, with the name
 .BR arm_sync_file_range ().
@@ -199,6 +197,7 @@ glibc transparently wraps
 .BR sync_file_range2 ()
 under the name
 .BR sync_file_range ().
+.SH NOTES
 .SH SEE ALSO
 .BR fdatasync (2),
 .BR fsync (2),
index 679b20a74d1365da167dd799da0c9d116def8a3f..83af5efd4c424c7a3b3d4afa7a8eda90b90caa47 100644 (file)
@@ -73,12 +73,12 @@ non-NULL, but allowed zero room in
 .B ENOTDIR
 .I name
 was not found.
-.SH VERSIONS
-This system call first appeared in Linux 1.3.57.
-It was removed in Linux 5.5; glibc support was removed in glibc 2.32.
 .SH STANDARDS
-This call is Linux-specific, and should not be used in programs
-intended to be portable.
+Linux.
+.SH HISTORY
+Linux 1.3.57.
+Removed in Linux 5.5, glibc 2.32.
+.PP
 It originated in
 4.4BSD.
 Only Linux has the
index d2303a7d866c8998b2db6db38856c1bc5be8756b..2e51426fe488204f230e100dc072df7c90382fc5 100644 (file)
@@ -79,8 +79,10 @@ is out-of-bounds;
 .I option
 is invalid.
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr4.
-.SH NOTES
+.PP
 This System-V derived system call is obsolete; don't use it.
 On systems with
 .IR /proc ,
index 2e4035122105dedf5bcd6003a58553e0cac847e2..69fe280b621703d4f73ac7f11613fba542a7a1d4 100644 (file)
@@ -93,12 +93,10 @@ is set to indicate the error.
 .B EFAULT
 .I info
 is not a valid address.
-.SH VERSIONS
-.BR sysinfo ()
-first appeared in Linux 0.98.pl6.
 .SH STANDARDS
-This function is Linux-specific, and should not be used in programs
-intended to be portable.
+Linux.
+.SH HISTORY
+Linux 0.98.pl6.
 .SH NOTES
 All of the information provided by this system call is also available via
 .I /proc/meminfo
index 09c086f181e34449bf09d6e040e685f3a246a22e..99403ceb0c78570b46c6e3f507cee54dbd35639e 100644 (file)
@@ -363,9 +363,8 @@ capability).
 System call was interrupted by a signal; nothing was read.
 (This can be seen only during a trace.)
 .SH STANDARDS
-This system call is Linux-specific and should not be used in programs
-intended to be portable.
-.SH NOTES
+Linux.
+.SH HISTORY
 From the very start, people noted that it is unfortunate that
 a system call and a library routine of the same name are entirely
 different animals.
index 6c412a475bb415865bdddf33aa0591696cffef78..35975badf664f744c000704ad352ff2cf0fd9644 100644 (file)
@@ -100,13 +100,11 @@ refer to the same pipe.
 .TP
 .B ENOMEM
 Out of memory.
-.SH VERSIONS
-The
-.BR tee ()
-system call first appeared in Linux 2.6.17;
-library support was added in glibc 2.5.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.17,
+glibc 2.5.
 .SH NOTES
 Conceptually,
 .BR tee ()
index 2be79cf7820af20ebf02c4149e3e9b64435ca360..65db67a34157c7b2c18394c1239a2997cd0811e6 100644 (file)
@@ -47,12 +47,7 @@ wrapper function invokes an implementation provided by the
 an invalid address may instead trigger a
 .B SIGSEGV
 signal.
-.SH STANDARDS
-SVr4, 4.3BSD, C89, C99, POSIX.1-2001.
-.\" Under 4.3BSD, this call is obsoleted by
-.\" .BR gettimeofday (2).
-POSIX does not specify any error conditions.
-.SH NOTES
+.SH VERSIONS
 POSIX.1 defines
 .I seconds since the Epoch
 using a formula that approximates the number of seconds between a
@@ -88,6 +83,17 @@ range.
 Applications intended to run after 2038 should use ABIs with
 .I time_t
 wider than 32 bits.
+.SS C library/kernel differences
+On some architectures, an implementation of
+.BR time ()
+is provided in the
+.BR vdso (7).
+.SH STANDARDS
+C11, POSIX.1-2008.
+.SH HISTORY
+SVr4, 4.3BSD, C89, POSIX.1-2001.
+.\" Under 4.3BSD, this call is obsoleted by
+.\" .BR gettimeofday (2).
 .SH BUGS
 Error returns from this system call are indistinguishable from
 successful reports that the time is a few seconds
@@ -102,12 +108,6 @@ argument is obsolescent and should always be NULL in new code.
 When
 .I tloc
 is NULL, the call cannot fail.
-.\"
-.SS C library/kernel differences
-On some architectures, an implementation of
-.BR time ()
-is provided in the
-.BR vdso (7).
 .SH SEE ALSO
 .BR date (1),
 .BR gettimeofday (2),
index 6d49da17f89a55c340323dcd9451a9e0043225c5..ba5ad78fb367a200c64164d3501086b594783248 100644 (file)
@@ -222,9 +222,51 @@ but the caller did not have the
 .B CAP_WAKE_ALARM
 capability.
 .SH VERSIONS
-This system call is available since Linux 2.6.
+.SS C library/kernel differences
+Part of the implementation of the POSIX timers API is provided by glibc.
+.\" See nptl/sysdeps/unix/sysv/linux/timer_create.c
+In particular:
+.IP \[bu] 3
+Much of the functionality for
+.B SIGEV_THREAD
+is implemented within glibc, rather than the kernel.
+(This is necessarily so,
+since the thread involved in handling the notification is one
+that must be managed by the C library POSIX threads implementation.)
+Although the notification delivered to the process is via a thread,
+internally the NPTL implementation uses a
+.I sigev_notify
+value of
+.B SIGEV_THREAD_ID
+along with a real-time signal that is reserved by the implementation (see
+.BR nptl (7)).
+.IP \[bu]
+The implementation of the default case where
+.I evp
+is NULL is handled inside glibc,
+which invokes the underlying system call with a suitably populated
+.I sigevent
+structure.
+.IP \[bu]
+The timer IDs presented at user level are maintained by glibc,
+which maps these IDs to the timer IDs employed by the kernel.
+.\" See the glibc source file kernel-posix-timers.h for the structure
+.\" that glibc uses to map user-space timer IDs to kernel timer IDs
+.\" The kernel-level timer ID is exposed via siginfo.si_tid.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+Linux 2.6.
+POSIX.1-2001.
+.PP
+Prior to Linux 2.6,
+glibc provided an incomplete user-space implementation
+.RB ( CLOCK_REALTIME
+timers only) using POSIX threads,
+and before glibc 2.17,
+.\" glibc commit 93a78ac437ba44f493333d7e2a4b0249839ce460
+the implementation falls back to this technique on systems
+running kernels older than Linux 2.6.
 .SH NOTES
 A program may create multiple interval timers using
 .BR timer_create ().
@@ -277,48 +319,6 @@ support for POSIX timers is a configurable option that is enabled by default.
 Kernel support can be disabled via the
 .B CONFIG_POSIX_TIMERS
 option.
-.\"
-.SS C library/kernel differences
-Part of the implementation of the POSIX timers API is provided by glibc.
-.\" See nptl/sysdeps/unix/sysv/linux/timer_create.c
-In particular:
-.IP \[bu] 3
-Much of the functionality for
-.B SIGEV_THREAD
-is implemented within glibc, rather than the kernel.
-(This is necessarily so,
-since the thread involved in handling the notification is one
-that must be managed by the C library POSIX threads implementation.)
-Although the notification delivered to the process is via a thread,
-internally the NPTL implementation uses a
-.I sigev_notify
-value of
-.B SIGEV_THREAD_ID
-along with a real-time signal that is reserved by the implementation (see
-.BR nptl (7)).
-.IP \[bu]
-The implementation of the default case where
-.I evp
-is NULL is handled inside glibc,
-which invokes the underlying system call with a suitably populated
-.I sigevent
-structure.
-.IP \[bu]
-The timer IDs presented at user level are maintained by glibc,
-which maps these IDs to the timer IDs employed by the kernel.
-.\" See the glibc source file kernel-posix-timers.h for the structure
-.\" that glibc uses to map user-space timer IDs to kernel timer IDs
-.\" The kernel-level timer ID is exposed via siginfo.si_tid.
-.PP
-The POSIX timers system calls first appeared in Linux 2.6.
-Prior to this,
-glibc provided an incomplete user-space implementation
-.RB ( CLOCK_REALTIME
-timers only) using POSIX threads,
-and before glibc 2.17,
-.\" glibc commit 93a78ac437ba44f493333d7e2a4b0249839ce460
-the implementation falls back to this technique on systems
-running kernels older than Linux 2.6.
 .SH EXAMPLES
 The program below takes two arguments: a sleep period in seconds,
 and a timer frequency in nanoseconds.
index c489d9ec0dffd939a91ecc9b08542004432dd7b0..7db4ce1fdffba97d93c758fe368ed8e2bb2fd3dd 100644 (file)
@@ -45,10 +45,11 @@ is set to indicate the error.
 .B EINVAL
 .I timerid
 is not a valid timer ID.
-.SH VERSIONS
-This system call is available since Linux 2.6.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+Linux 2.6.
+POSIX.1-2001.
 .SH SEE ALSO
 .BR clock_gettime (2),
 .BR timer_create (2),
index 3591e5de5df5d19e2bc7e2bccb2452f310a44c6d..90d9e00400e1e1c18691eb617cc98cfaaa999369 100644 (file)
@@ -76,10 +76,6 @@ is set to indicate the error.
 .I timerid
 is not a valid timer ID.
 .SH VERSIONS
-This system call is available since Linux 2.6.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
 When timer notifications are delivered via signals
 .RB ( SIGEV_SIGNAL ),
 on Linux it is also possible to obtain the overrun count via the
@@ -96,6 +92,11 @@ POSIX.1 discusses timer overruns only in the context of
 timer notifications using signals.
 .\" FIXME . Austin bug filed, 11 Feb 09
 .\" https://www.austingroupbugs.net/view.php?id=95
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+Linux 2.6.
+POSIX.1-2001.
 .SH BUGS
 POSIX.1 specifies that if the timer overrun count
 is equal to or greater than an implementation-defined maximum,
index c02636554342743e8fd8e1045f1575e7d44419f4..589da08c5129d6f33eb0319b34c2db905c1ad982 100644 (file)
@@ -172,10 +172,11 @@ may fail with the following errors:
 is negative; or
 .I new_value.it_value.tv_nsec
 is negative or greater than 999,999,999.
-.SH VERSIONS
-These system calls are available since Linux 2.6.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+Linux 2.6.
+POSIX.1-2001.
 .SH EXAMPLES
 See
 .BR timer_create (2).
index 315f3fe3530119b008cbb0d064dfd69cb92bb965..516e050b35309a307888ede63e20323b6e5deead 100644 (file)
@@ -468,11 +468,11 @@ falls outside the range zero to 999,999,999).
 .\" In older kernel versions, no check was made for invalid flags.
 .I flags
 is invalid.
-.SH VERSIONS
-These system calls are available since Linux 2.6.25.
-Library support is provided since glibc 2.8.
 .SH STANDARDS
-These system calls are Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.25,
+glibc 2.8.
 .SH NOTES
 Suppose the following scenario for
 .B CLOCK_REALTIME
index 6c4d4ce8e913490d8980770481a40b87d5ff43cd..0c14bd6e985dfde3899586ff9f89006341c36470 100644 (file)
@@ -101,19 +101,25 @@ is set to indicate the error.
 .B EFAULT
 .I tms
 points outside the process's address space.
+.SH VERSIONS
+On Linux,
+the
+.I buf
+argument can be specified as NULL,
+with the result that
+.BR times ()
+just returns a function result.
+However,
+POSIX does not specify this behavior,
+and most
+other UNIX implementations require a non-NULL value for
+.IR buf .
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 POSIX.1-2001,
-POSIX.1-2008,
 SVr4,
 4.3BSD.
-.SH NOTES
-The number of clock ticks per second can be obtained using:
-.PP
-.in +4n
-.EX
-sysconf(_SC_CLK_TCK);
-.EE
-.in
 .PP
 In POSIX.1-1996 the symbol \fBCLK_TCK\fP (defined in
 .IR <time.h> )
@@ -141,28 +147,6 @@ This nonconformance is rectified in Linux 2.6.9 and later.
 .\"    or waitpid() returns the process ID of this terminated child.
 .PP
 On Linux,
-the
-.I buf
-argument can be specified as NULL,
-with the result that
-.BR times ()
-just returns a function result.
-However,
-POSIX does not specify this behavior,
-and most
-other UNIX implementations require a non-NULL value for
-.IR buf .
-.PP
-Note that
-.BR clock (3)
-also returns a value of type
-.IR clock_t ,
-but this value is measured in units of
-.BR CLOCKS_PER_SEC ,
-not the clock ticks used by
-.BR times ().
-.PP
-On Linux,
 the \[lq]arbitrary point in the past\[rq]
 from which the return value of
 .BR times ()
@@ -183,7 +167,7 @@ instead.
 .\" .PP
 .\" On older systems the number of clock ticks per second is given
 .\" by the variable HZ.
-.SS Historical
+.PP
 SVr1-3 returns
 .I long
 and the struct members are of type
@@ -196,6 +180,23 @@ for the struct members,
 because it had no type
 .I time_t
 yet.
+.SH NOTES
+The number of clock ticks per second can be obtained using:
+.PP
+.in +4n
+.EX
+sysconf(_SC_CLK_TCK);
+.EE
+.in
+.PP
+Note that
+.BR clock (3)
+also returns a value of type
+.IR clock_t ,
+but this value is measured in units of
+.BR CLOCKS_PER_SEC ,
+not the clock ticks used by
+.BR times ().
 .SH BUGS
 A limitation of the Linux system call conventions on some architectures
 (notably i386) means that on Linux 2.6 there is a small time window
index 05e19e295a7b5d07e5cabad83ed5efa9fb827c51..d5c55ef52881fb6f10de6a32ca856840b75f7ddb 100644 (file)
@@ -107,30 +107,22 @@ For the required permissions, see
 .TP
 .B ESRCH
 No process with the specified thread ID (and thread group ID) exists.
-.SH VERSIONS
-.BR tkill ()
-is supported since Linux 2.4.19 / 2.5.4.
-.BR tgkill ()
-was added in Linux 2.5.75.
-.PP
-Library support for
-.BR tgkill ()
-was added in glibc 2.30.
 .SH STANDARDS
+Linux.
+.SH HISTORY
+.TP
 .BR tkill ()
-and
+Linux 2.4.19 / 2.5.4.
+.TP
 .BR tgkill ()
-are Linux-specific and should not be used
-in programs that are intended to be portable.
+Linux 2.5.75,
+glibc 2.30.
 .SH NOTES
 See the description of
 .B CLONE_THREAD
 in
 .BR clone (2)
 for an explanation of thread groups.
-.PP
-Before glibc 2.30, there was also no wrapper function for
-.BR tgkill ().
 .SH SEE ALSO
 .BR clone (2),
 .BR gettid (2),
index 8a00ec3ffba22a267dc57aacb6f228521f83e46d..703f598b3d51737bf6d0091f345745680c5b149a 100644 (file)
@@ -176,25 +176,7 @@ POSIX permits, and portable applications should handle,
 either error for this case.
 (Linux produces
 .BR EINVAL .)
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008,
-4.4BSD, SVr4 (these calls first appeared in 4.2BSD).
-.\" POSIX.1-1996 has
-.\" .BR ftruncate ().
-.\" POSIX.1-2001 also has
-.\" .BR truncate (),
-.\" as an XSI extension.
-.\" .LP
-.\" SVr4 documents additional
-.\" .BR truncate ()
-.\" error conditions EMFILE, EMULTIHP, ENFILE, ENOLINK.  SVr4 documents for
-.\" .BR ftruncate ()
-.\" an additional EAGAIN error condition.
-.SH NOTES
-.BR ftruncate ()
-can also be used to set the size of a POSIX shared memory object; see
-.BR shm_open (3).
-.PP
+.SH VERSIONS
 The details in DESCRIPTION are for XSI-compliant systems.
 For non-XSI-compliant systems, the POSIX standard allows
 two behaviors for
@@ -216,6 +198,27 @@ to be used to extend a file beyond its current length:
 a notable example on Linux is VFAT.
 .\" At the very least: OSF/1, Solaris 7, and FreeBSD conform, mtk, Jan 2002
 .PP
+On some 32-bit architectures,
+the calling signature for these system calls differ,
+for the reasons described in
+.BR syscall (2).
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001,
+4.4BSD, SVr4 (first appeared in 4.2BSD).
+.\" POSIX.1-1996 has
+.\" .BR ftruncate ().
+.\" POSIX.1-2001 also has
+.\" .BR truncate (),
+.\" as an XSI extension.
+.\" .LP
+.\" SVr4 documents additional
+.\" .BR truncate ()
+.\" error conditions EMFILE, EMULTIHP, ENFILE, ENOLINK.  SVr4 documents for
+.\" .BR ftruncate ()
+.\" an additional EAGAIN error condition.
+.PP
 The original Linux
 .BR truncate ()
 and
@@ -229,11 +232,10 @@ system calls that handle large files.
 However, these details can be ignored by applications using glibc, whose
 wrapper functions transparently employ the more recent system calls
 where they are available.
-.PP
-On some 32-bit architectures,
-the calling signature for these system calls differ,
-for the reasons described in
-.BR syscall (2).
+.SH NOTES
+.BR ftruncate ()
+can also be used to set the size of a POSIX shared memory object; see
+.BR shm_open (3).
 .SH BUGS
 A header file bug in glibc 2.12 meant that the minimum value of
 .\" http://sourceware.org/bugzilla/show_bug.cgi?id=12037
index 541d81c665ff93b6fcb3ebe81a5fa144efadbdf3..07e0b5e7698c5e33a7de22f2be2fc20427ae8b93 100644 (file)
@@ -100,7 +100,9 @@ resulting file will be:
 This system call always succeeds and the previous value of the mask
 is returned.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH NOTES
 A child process created via
 .BR fork (2)
index fc0e32feec1dde245bd976b3357553f5c4e0fbc0..3defe48ac91d2cd3c1d110bb2e5a3a7c459e8201 100644 (file)
@@ -154,15 +154,25 @@ The kernel could not allocate a free page to copy filenames or data into.
 .TP
 .B EPERM
 The caller does not have the required privileges.
-.SH VERSIONS
+.SH STANDARDS
+Linux.
+.SH HISTORY
 .B MNT_DETACH
 and
 .B MNT_EXPIRE
 .\" http://sourceware.org/bugzilla/show_bug.cgi?id=10092
 are available since glibc 2.11.
-.SH STANDARDS
-These functions are Linux-specific and should not be used in
-programs intended to be portable.
+.PP
+The original
+.BR umount ()
+function was called as \fIumount(device)\fP and would return
+.B ENOTBLK
+when called with something other than a block device.
+In Linux 0.98p4, a call \fIumount(dir)\fP was added, in order to
+support anonymous devices.
+In Linux 2.3.99-pre7, the call \fIumount(device)\fP was removed,
+leaving only \fIumount(dir)\fP (since now devices can be mounted
+in more than one place, so specifying the device does not suffice).
 .SH NOTES
 .SS umount() and shared mounts
 Shared mounts cause any mount activity on a mount, including
@@ -196,17 +206,6 @@ and
 prior to
 .BR umount ()
 being called.
-.SS Historical details
-The original
-.BR umount ()
-function was called as \fIumount(device)\fP and would return
-.B ENOTBLK
-when called with something other than a block device.
-In Linux 0.98p4, a call \fIumount(dir)\fP was added, in order to
-support anonymous devices.
-In Linux 2.3.99-pre7, the call \fIumount(device)\fP was removed,
-leaving only \fIumount(dir)\fP (since now devices can be mounted
-in more than one place, so specifying the device does not suffice).
 .SH SEE ALSO
 .BR mount (2),
 .BR mount_namespaces (7),
index c44f9cf26d1896d505c0b765c7c2db760818b07f..4a274a2383cffac194bd9fb0ce503393b0372738 100644 (file)
@@ -56,24 +56,10 @@ is set to indicate the error.
 .B EFAULT
 .I buf
 is not valid.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.4BSD.
-.PP
+.SH VERSIONS
 The
 .I domainname
 member (the NIS or YP domain name) is a GNU extension.
-.SH NOTES
-The kernel has the name, release, version, and supported machine type built in.
-Conversely, the
-.I nodename
-field is configured by the administrator to match the network
-(this is what the BSD historically calls the "hostname",
-and is set via
-.BR sethostname (2)).
-Similarly, the
-.I domainname
-field is set via
-.BR setdomainname (2).
 .PP
 The length of the fields in the struct varies.
 Some operating systems
@@ -90,13 +76,10 @@ Clearly, it is a bad
 idea to use any of these constants; just use sizeof(...).
 SVr4 uses 257, "to support Internet hostnames"
 \[em] this is the largest value likely to be encountered in the wild.
-.PP
-Part of the utsname information is also accessible via
-.IR /proc/sys/kernel/ { ostype ,
-.IR hostname ,
-.IR osrelease ,
-.IR version ,
-.IR domainname }.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.4BSD.
 .SS C library/kernel differences
 Over time, increases in the size of the
 .I utsname
@@ -125,6 +108,25 @@ The glibc
 .BR uname ()
 wrapper function hides these details from applications,
 invoking the most recent version of the system call provided by the kernel.
+.SH NOTES
+The kernel has the name, release, version, and supported machine type built in.
+Conversely, the
+.I nodename
+field is configured by the administrator to match the network
+(this is what the BSD historically calls the "hostname",
+and is set via
+.BR sethostname (2)).
+Similarly, the
+.I domainname
+field is set via
+.BR setdomainname (2).
+.PP
+Part of the utsname information is also accessible via
+.IR /proc/sys/kernel/ { ostype ,
+.IR hostname ,
+.IR osrelease ,
+.IR version ,
+.IR domainname }.
 .SH SEE ALSO
 .BR uname (1),
 .BR getdomainname (2),
index 954a19f1534a06bd2740325c467059097d9ba269..1f66aca8f0a0a7682ae0d23c8bd5c7c2b8db9bf1 100644 (file)
@@ -252,20 +252,20 @@ was not specified in
 is relative and
 .I dirfd
 is a file descriptor referring to a file other than a directory.
-.SH VERSIONS
-.BR unlinkat ()
-was added in Linux 2.6.16;
-library support was added in glibc 2.4.
 .SH STANDARDS
-.BR unlink ():
-SVr4, 4.3BSD, POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR unlink ()
+SVr4, 4.3BSD, POSIX.1-2001.
 .\" SVr4 documents additional error
 .\" conditions EINTR, EMULTIHOP, ETXTBSY, ENOLINK.
-.PP
-.BR unlinkat ():
+.TP
+.BR unlinkat ()
 POSIX.1-2008.
-.SH NOTES
-.SS glibc notes
+Linux 2.6.16,
+glibc 2.4.
+.SS glibc
 On older kernels where
 .BR unlinkat ()
 is unavailable, the glibc wrapper function falls back to the use of
index 2c5c0b8590846accb1942695d7c8f0522b6b7c88..229e065c80478d74a298d2eff557e3a1164bc311 100644 (file)
@@ -419,14 +419,10 @@ and the limit on the number of nested user namespaces would be exceeded.
 See the discussion of the
 .B ENOSPC
 error above.
-.SH VERSIONS
-The
-.BR unshare ()
-system call was added in Linux 2.6.16.
 .SH STANDARDS
-The
-.BR unshare ()
-system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.16.
 .SH NOTES
 Not all of the process attributes that can be shared when
 a new process is created using
index 34365cc845527f4ce1bd9760551a92d63161885d..449e8d5779deb66c5b9a1270a951c9cc488ac0ba 100644 (file)
@@ -56,10 +56,8 @@ The file specified by
 is not an executable of a known type;
 for example, it does not have the correct magic numbers.
 .SH STANDARDS
-.BR uselib ()
-is Linux-specific, and should not be used in programs
-intended to be portable.
-.SH NOTES
+Linux.
+.SH HISTORY
 This obsolete system call is not supported by glibc.
 No declaration is provided in glibc headers, but, through a quirk of history,
 glibc before glibc 2.23 did export an ABI for this system call.
index 7a0181f2a37f289ce39510cda20edd6755ecac8a..4fe404edd06cd2452fb4db3e15780834a6de6d30 100644 (file)
@@ -632,17 +632,13 @@ The caller is not privileged (does not have the
 capability in the initial user namespace), and
 .I /proc/sys/vm/unprivileged_userfaultfd
 has the value 0.
-.SH VERSIONS
-The
-.BR userfaultfd ()
-system call first appeared in Linux 4.3.
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 4.3.
 .PP
-The support for hugetlbfs and shared memory areas and
+Support for hugetlbfs and shared memory areas and
 non-page-fault events was added in Linux 4.11
-.SH STANDARDS
-.BR userfaultfd ()
-is Linux-specific and should not be used in programs intended to be
-portable.
 .SH NOTES
 The userfaultfd mechanism can be used as an alternative to
 traditional user-space paging techniques based on the use of the
index 8a96239a499565c499db8c496144d88fc76c906b..b52dea303ecd7d3841346c1baa27a962f0b1927b 100644 (file)
@@ -72,13 +72,14 @@ The mounted filesystem referenced by
 .I dev
 does not support this operation,
 or any version of Linux before Linux 1.3.16.
-.SH VERSIONS
-Since glibc 2.28, glibc no longer provides a wrapper for this system call.
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr4.
+Removed in glibc 2.28.
 .\" SVr4 documents additional error conditions ENOLINK, ECOMM, and EINTR
 .\" but has no ENOSYS condition.
-.SH NOTES
+.PP
 .BR ustat ()
 is deprecated and has been provided only for compatibility.
 All new programs should use
index c364c439038430d598b70b763058adae0428305c..5edbf97deacd5ffbd5f6658e26c2fd4b9d79fcf4 100644 (file)
@@ -149,13 +149,14 @@ capability).
 .I path
 resides on a read-only filesystem.
 .SH STANDARDS
-.BR utime ():
-SVr4, POSIX.1-2001.
-POSIX.1-2008 marks
+POSIX.1-2008.
+.SH HISTORY
+.TP
 .BR utime ()
-as obsolete.
-.PP
-.BR utimes ():
+SVr4, POSIX.1-2001.
+POSIX.1-2008 marks it as obsolete.
+.TP
+.BR utimes ()
 4.3BSD, POSIX.1-2001.
 .SH NOTES
 Linux does not allow changing the timestamps on an immutable file,
index 803828e31f0c3aa15ea0cb6d4682b05ee872e765..9a1fb840d146abf640b05e32be7d29b1753b999f 100644 (file)
@@ -387,43 +387,6 @@ T} Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-.BR utimensat ()
-was added in Linux 2.6.22;
-glibc support was added with glibc 2.6.
-.PP
-Support for
-.BR futimens ()
-first appeared in glibc 2.6.
-.SH STANDARDS
-.BR futimens ()
-and
-.BR utimensat ()
-are specified in POSIX.1-2008.
-.SH NOTES
-.BR utimensat ()
-obsoletes
-.BR futimesat (2).
-.PP
-On Linux, timestamps cannot be changed for a file marked immutable,
-and the only change permitted for files marked append-only is to
-set the timestamps to the current time.
-(This is consistent with the historical behavior of
-.BR utime (2)
-and
-.BR utimes (2)
-on Linux.)
-.PP
-If both
-.I tv_nsec
-fields are specified as
-.BR UTIME_OMIT ,
-then the Linux implementation of
-.BR utimensat ()
-succeeds even if the file referred to by
-.I dirfd
-and
-.I pathname
-does not exist.
 .SS C library/kernel ABI differences
 On Linux,
 .BR futimens ()
@@ -455,6 +418,43 @@ disallows passing NULL as the value for
 the wrapper function returns the error
 .B EINVAL
 in this case.
+.SH STANDARDS
+POSIX.1-2008.
+.SH VERSIONS
+.TP
+.BR utimensat ()
+Linux 2.6.22,
+glibc 2.6.
+POSIX.1-2008.
+.TP
+.BR futimens ()
+glibc 2.6.
+POSIX.1-2008.
+.SH NOTES
+.BR utimensat ()
+obsoletes
+.BR futimesat (2).
+.PP
+On Linux, timestamps cannot be changed for a file marked immutable,
+and the only change permitted for files marked append-only is to
+set the timestamps to the current time.
+(This is consistent with the historical behavior of
+.BR utime (2)
+and
+.BR utimes (2)
+on Linux.)
+.PP
+If both
+.I tv_nsec
+fields are specified as
+.BR UTIME_OMIT ,
+then the Linux implementation of
+.BR utimensat ()
+succeeds even if the file referred to by
+.I dirfd
+and
+.I pathname
+does not exist.
 .SH BUGS
 Several bugs afflict
 .BR utimensat ()
index 5e6b8226c301a41d1c37364a8b9e937e88564357..3a65010cab70dfd4f9924a8acc74c0704537559f 100644 (file)
@@ -134,11 +134,7 @@ The use of
 was tricky: for example, not modifying data
 in the parent process depended on knowing which variables were
 held in a register.
-.SH STANDARDS
-4.3BSD; POSIX.1-2001 (but marked OBSOLETE).
-POSIX.1-2008 removes the specification of
-.BR vfork ().
-.PP
+.SH VERSIONS
 The requirements put on
 .BR vfork ()
 by the standards are weaker than those put on
@@ -149,7 +145,7 @@ remaining blocked until the child either terminates or calls
 .BR execve (2),
 and cannot rely on any specific behavior with respect to shared memory.
 .\" In AIXv3.1 vfork is equivalent to fork.
-.SH NOTES
+.PP
 Some consider the semantics of
 .BR vfork ()
 to be an architectural blemish, and the 4.2BSD man page stated:
@@ -205,44 +201,6 @@ in this scenario requires either committing an amount of memory equal
 to the size of the parent process (if strict overcommitting is in force)
 or overcommitting memory with the risk that a process is terminated
 by the out-of-memory (OOM) killer.
-.\"
-.SS Caveats
-The child process should take care not to modify the memory in unintended ways,
-since such changes will be seen by the parent process once
-the child terminates or executes another program.
-In this regard, signal handlers can be especially problematic:
-if a signal handler that is invoked in the child of
-.BR vfork ()
-changes memory, those changes may result in an inconsistent process state
-from the perspective of the parent process
-(e.g., memory changes would be visible in the parent,
-but changes to the state of open file descriptors would not be visible).
-.PP
-When
-.BR vfork ()
-is called in a multithreaded process,
-only the calling thread is suspended until the child terminates
-or executes a new program.
-This means that the child is sharing an address space with other running code.
-This can be dangerous if another thread in the parent process
-changes credentials (using
-.BR setuid (2)
-or similar),
-since there are now two processes with different privilege levels
-running in the same address space.
-As an example of the dangers,
-suppose that a multithreaded program running as root creates a child using
-.BR vfork ().
-After the
-.BR vfork (),
-a thread in the parent process drops the process to an unprivileged user
-in order to run some untrusted code
-(e.g., perhaps via plug-in opened with
-.BR dlopen (3)).
-In this case, attacks are possible where the parent process uses
-.BR mmap (2)
-to map in code that will be executed by the privileged child process.
-.\"
 .SS Linux notes
 Fork handlers established using
 .BR pthread_atfork (3)
@@ -268,7 +226,13 @@ specified as:
  CLONE_VM | CLONE_VFORK | SIGCHLD
 .EE
 .in
-.SS History
+.SH STANDARDS
+None.
+.SH HISTORY
+4.3BSD; POSIX.1-2001 (but marked OBSOLETE).
+POSIX.1-2008 removes the specification of
+.BR vfork ().
+.PP
 The
 .BR vfork ()
 system call appeared in 3.0BSD.
@@ -286,6 +250,44 @@ until Linux 2.2.0-pre6 or so.
 Since Linux 2.2.0-pre9 (on i386, somewhat later on
 other architectures) it is an independent system call.
 Support was added in glibc 2.0.112.
+.\"
+.SH CAVEATS
+The child process should take care not to modify the memory in unintended ways,
+since such changes will be seen by the parent process once
+the child terminates or executes another program.
+In this regard, signal handlers can be especially problematic:
+if a signal handler that is invoked in the child of
+.BR vfork ()
+changes memory, those changes may result in an inconsistent process state
+from the perspective of the parent process
+(e.g., memory changes would be visible in the parent,
+but changes to the state of open file descriptors would not be visible).
+.PP
+When
+.BR vfork ()
+is called in a multithreaded process,
+only the calling thread is suspended until the child terminates
+or executes a new program.
+This means that the child is sharing an address space with other running code.
+This can be dangerous if another thread in the parent process
+changes credentials (using
+.BR setuid (2)
+or similar),
+since there are now two processes with different privilege levels
+running in the same address space.
+As an example of the dangers,
+suppose that a multithreaded program running as root creates a child using
+.BR vfork ().
+After the
+.BR vfork (),
+a thread in the parent process drops the process to an unprivileged user
+in order to run some untrusted code
+(e.g., perhaps via plug-in opened with
+.BR dlopen (3)).
+In this case, attacks are possible where the parent process uses
+.BR mmap (2)
+to map in code that will be executed by the privileged child process.
+.\"
 .SH BUGS
 Details of the signal handling are obscure and differ between systems.
 The BSD man page states:
index 78ece4600b1fc642c190b638bada2b33bbd47458..9bf304831e7a67efba1f40a4f4a2dd8fd386b3b6 100644 (file)
@@ -52,8 +52,7 @@ the
 .B CAP_SYS_TTY_CONFIG
 capability is required.
 .SH STANDARDS
-This call is Linux-specific, and should not be used in programs
-intended to be portable.
+Linux.
 .SH SEE ALSO
 .BR init (1),
 .BR capabilities (7)
index 9c9102dc3eab93de8b21b0bd9caf8717360be4af..437f68fa744e5b5ea0cee8d7152d446aaa74eb98 100644 (file)
@@ -55,5 +55,4 @@ Saved kernel stack exists.
 (This is a kernel sanity check; the saved
 stack should exist only within vm86 mode itself.)
 .SH STANDARDS
-This call is specific to Linux on 32-bit Intel processors,
-and should not be used in programs intended to be portable.
+Linux on 32-bit Intel processors.
index 01ac37b3584f4c4fe6b8d8a309d106703506f569..569d0ddd1690c32a0256e911b8b14dec88649c6e 100644 (file)
@@ -132,13 +132,11 @@ set.
 .TP
 .B ENOMEM
 Out of memory.
-.SH VERSIONS
-The
-.BR vmsplice ()
-system call first appeared in Linux 2.6.17;
-library support was added in glibc 2.5.
 .SH STANDARDS
-This system call is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.17,
+glibc 2.5.
 .SH NOTES
 .BR vmsplice ()
 follows the other vectorized read/write type functions when it comes to
index e2dcd59bda0916ee8a639ce7aa60a4e470bc240f..7386dffef956a80d0985a5c8c50716249b0c41f2 100644 (file)
@@ -460,7 +460,34 @@ or
 .I pid
 is equal to
 .BR INT_MIN .
+.SH VERSIONS
+.SS C library/kernel differences
+.BR wait ()
+is actually a library function that (in glibc) is implemented as a call to
+.BR wait4 (2).
+.PP
+On some architectures, there is no
+.BR waitpid ()
+system call;
+.\" e.g., i386 has the system call, but not x86-64
+instead, this interface is implemented via a C library
+wrapper function that calls
+.BR wait4 (2).
+.PP
+The raw
+.BR waitid ()
+system call takes a fifth argument, of type
+.IR "struct rusage\ *" .
+If this argument is non-NULL,
+then it is used to return resource usage information about the child,
+in the same manner as
+.BR wait4 (2).
+See
+.BR getrusage (2)
+for details.
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 SVr4, 4.3BSD, POSIX.1-2001.
 .SH NOTES
 A child that terminates, but has not been waited for becomes a "zombie".
@@ -577,30 +604,6 @@ Since Linux 4.7,
 the
 .B __WALL
 flag is automatically implied if the child is being ptraced.
-.SS C library/kernel differences
-.BR wait ()
-is actually a library function that (in glibc) is implemented as a call to
-.BR wait4 (2).
-.PP
-On some architectures, there is no
-.BR waitpid ()
-system call;
-.\" e.g., i386 has the system call, but not x86-64
-instead, this interface is implemented via a C library
-wrapper function that calls
-.BR wait4 (2).
-.PP
-The raw
-.BR waitid ()
-system call takes a fifth argument, of type
-.IR "struct rusage\ *" .
-If this argument is non-NULL,
-then it is used to return resource usage information about the child,
-in the same manner as
-.BR wait4 (2).
-See
-.BR getrusage (2)
-for details.
 .SH BUGS
 According to POSIX.1-2008, an application calling
 .BR waitid ()
index a5b38108d318fceee3aa812b309f17dca3385936..fe0c175f90d79a55dee55dc535f140d0768d0692 100644 (file)
@@ -132,6 +132,8 @@ As for
 As for
 .BR waitpid (2).
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD.
 .PP
 SUSv1 included a specification of
@@ -140,7 +142,7 @@ SUSv2 included
 .BR wait3 (),
 but marked it LEGACY;
 SUSv3 removed it.
-.SH NOTES
+.PP
 Including
 .I <sys/time.h>
 is not required these days, but increases portability.
index 9f4a814b6ad5286b51930e176e61597f08815dab..6160e91fa0e9569b4476b49ede3246642666c9ed 100644 (file)
@@ -226,6 +226,8 @@ catches, blocks or ignores this signal.)
 Other errors may occur, depending on the object connected to
 .IR fd .
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 SVr4, 4.3BSD, POSIX.1-2001.
 .\" SVr4 documents additional error
 .\" conditions EDEADLK, ENOLCK, ENOLNK, ENOSR, ENXIO, or ERANGE.
index f42d190a15238c500269801ff2270edc50adb044..90657e1fd3f169ac13947d430aa7a12a879381af 100644 (file)
@@ -46,6 +46,6 @@ Therefore, a user
 .I must
 zero-fill this structure on initialization.
 .SH STANDARDS
-This type is Linux-specific.
+Linux.
 .SH SEE ALSO
 .BR openat2 (2)
index 56b425c5a682723015175a294c64d4a58a8e7cfd..46acaa88fbc2e25202de5e156dd85f11444fb952 100644 (file)
@@ -224,7 +224,9 @@ returns the number of bytes required to store a
 CPU set of the specified cardinality.
 .PP
 The other functions do not return a value.
-.SH VERSIONS
+.SH STANDARDS
+Linux.
+.SH HISTORY
 The
 .BR CPU_ZERO (),
 .BR CPU_SET (),
@@ -253,8 +255,6 @@ first appeared in glibc 2.6.
 and
 .BR CPU_EQUAL_S ()
 first appeared in glibc 2.7.
-.SH STANDARDS
-These interfaces are Linux-specific.
 .SH NOTES
 To duplicate a CPU set, use
 .BR memcpy (3).
index 0b4342a6276547f5596f72338b2c49da42e7a9a5..d90091f9a08d52918cccf66b09925b03c71ceb43 100644 (file)
@@ -55,6 +55,8 @@ and
 respectively,
 that represent a large positive value, possibly positive infinity.
 .SH STANDARDS
+C11.
+.SH HISTORY
 C99.
 .PP
 On a glibc system, the macro
index a6c429d9bcfb4295146fd52c0b3e7c88e60625f3..eb9710912ec30db255c8791159968959b71cd469 100644 (file)
@@ -27,7 +27,7 @@ possibly converted to a different type (see BUGS).
 These macros may raise the "invalid" floating-point exception
 when any of the arguments is NaN.
 .SH STANDARDS
-These nonstandard macros are present in glibc and the BSDs.
+GNU, BSD.
 .SH NOTES
 If either of the arguments is of a floating-point type,
 you might prefer to use
index 409d49c48c1821993eb9bd9e742597d8c829f502..a1cb3046f5660ff52124848d873e0f932771a83f 100644 (file)
@@ -31,7 +31,9 @@ An integer in the range [1,
 .BR MB_LEN_MAX ].
 The value 1 denotes traditional 8-bit encoded characters.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR MB_LEN_MAX (3),
 .BR mblen (3),
index dd642d0b3750bebcebee3656ffcee2ad2e61a402..c28bbb1505febd0559dd049756b2fa63e3ae9902 100644 (file)
@@ -27,7 +27,9 @@ wide character, in any of the supported locales.
 .SH RETURN VALUE
 A constant integer greater than zero.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH NOTES
 The entities
 .B MB_LEN_MAX
index db1620f5f47582883ff1b0023668d0d5173d8633..378eb338c7a8eb7b4cf0f843b0f686b937a31032 100644 (file)
@@ -25,7 +25,9 @@ is not evaluated.
 This is especially useful for writing type-generic macros,
 that will behave differently depending on the type of the argument.
 .SH STANDARDS
-C11 and later.
+C11.
+.SH HISTORY
+C11.
 .SH EXAMPLES
 The following program demonstrates how to write
 a replacement for the standard
index 666658823eb7f2f605b00217d81ea47c559710dd..ec720419128ae2181f3b0847024ec2469a2e7994 100644 (file)
@@ -36,16 +36,17 @@ Time Base Register.
 .BR __ppc_get_timebase_freq ()
 returns a 64-bit unsigned integer that represents the frequency at
 which the Time Base Register is updated.
-.SH VERSIONS
-GNU C Library support for
-.\" commit d9dc34cd569bcfe714fe8c708e58c028106e8b2e
+.SH STANDARDS
+GNU.
+.SH HISTORY
+.TP
 .BR __ppc_get_timebase ()
-has been provided since glibc 2.16 and
-.\" commit 8ad11b9a9cf1de82bd7771306b42070b91417c11
+.\" commit d9dc34cd569bcfe714fe8c708e58c028106e8b2e
+glibc 2.16.
+.TP
 .BR __ppc_get_timebase_freq ()
-has been available since glibc 2.17.
-.SH STANDARDS
-Both functions are nonstandard GNU extensions.
+.\" commit 8ad11b9a9cf1de82bd7771306b42070b91417c11
+glibc 2.17.
 .SH EXAMPLES
 The following program will calculate the time, in microseconds, spent
 between two calls to
index 474b0fdff0d073353be6eead972934225d7bd392..4f5afda8a3f0b508583a518a9ecbb5927ba99a01 100644 (file)
@@ -83,20 +83,21 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The functions
-.BR __ppc_set_ppr_med (),
-.BR __ppc_set_ppr_low (),
-and
+.SH STANDARDS
+GNU.
+.SH HISTORY
+.TP
+.BR __ppc_set_ppr_med ()
+.TQ
+.BR __ppc_set_ppr_low ()
+.TQ
 .BR __ppc_set_ppr_med_low ()
-are provided since glibc 2.18.
-The functions
+glibc 2.18.
+.TP
 .BR __ppc_set_ppr_very_low ()
-and
+.TQ
 .BR __ppc_set_ppr_med_high ()
-first appeared in glibc 2.23.
-.SH STANDARDS
-These functions are nonstandard GNU extensions.
+glibc 2.23.
 .SH NOTES
 The functions
 .BR __ppc_set_ppr_very_low ()
index d802fa1f48ce32eef8a812c5e4447219578a3b5d..52ed3038a894f2f57fd1fdfcef30343c120ac90c 100644 (file)
@@ -60,10 +60,10 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions first appeared in glibc 2.18.
 .SH STANDARDS
-These functions are nonstandard GNU extensions.
+GNU.
+.SH HISTORY
+glibc 2.18.
 .SH SEE ALSO
 .BR __ppc_set_ppr_med (3)
 .PP
index 64efa658c6900ad3c61d4327d39571d51f55c066..25542e909e33d0b2c891bf5857f06a0ddb8ddf24 100644 (file)
@@ -23,9 +23,10 @@ to the registers of the FPU (floating-point unit) on the i386 architecture.
 This was used to control floating-point precision,
 rounding and floating-point exceptions.
 .SH STANDARDS
-This function was a nonstandard GNU extension.
+GNU.
+.SH HISTORY
+Removed in glibc 2.1.
 .SH NOTES
-As of glibc 2.1 this function does not exist anymore.
 There are new functions from C99, with prototypes in
 .IR <fenv.h> ,
 to control FPU rounding modes, like
index b3594d4e3e2cef707a8c311e6a282341351e81e3..598bef9fe57d7b850f663fcee8990ffc05ed0b8e 100644 (file)
@@ -83,7 +83,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The value returned by
 .BR l64a ()
index b0570585d0b49dd2a4b878a3be91f4355185f7b2..c63eace5ea86967fe2dfef76107c2a06b96b5225 100644 (file)
@@ -69,8 +69,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-SVr4, POSIX.1-2001, POSIX.1-2008, 4.3BSD, C89, C99.
-.SH NOTES
+C11, POSIX.1-2008.
+.SH HISTORY
+SVr4, POSIX.1-2001, 4.3BSD, C89.
+.PP
 Up until glibc 2.26,
 if the
 .BR abort ()
index a1293f385649e16ea6becd616fbfe590dc757535..2c705b8019cc980341625272d4421f5be42683ff 100644 (file)
@@ -76,10 +76,13 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99, SVr4, 4.3BSD.
 .\" POSIX.1 (1996 edition) requires only the
 .\" .BR abs ()
 .\" function.
+.PP
 C89 only
 includes the
 .BR abs ()
index 15466bb20f21b20e8ad71927829135a74b7181fe..5c28c2f49fea56f6ce8b5b2c4c8c130d3383846f 100644 (file)
@@ -106,12 +106,14 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
 also conforms to
-SVr4, 4.3BSD, C89.
+C89, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR asin (3),
 .BR atan (3),
index 4dd3fa4778187d6e31d132a994e66929113ceda8..717c0c37649cc2186ff5bec3dd3e9f5db2a1e36c 100644 (file)
@@ -110,7 +110,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 0e4e626fc6ac278f1f9273d35fdf39ba50f52d09..69505675d3c194a05f958185d89838bca4aceb46 100644 (file)
@@ -78,16 +78,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR addseverity ()
-is provided since glibc 2.1.
 .SH STANDARDS
-This function is not specified in the X/Open Portability Guide
-although the
-.BR fmtmsg (3)
-function is.
-It is available on System V
-systems.
+GNU.
+.SH HISTORY
+glibc 2.1.
+System V.
 .SH NOTES
 New severity classes can also be added by setting the environment variable
 .BR SEV_LEVEL .
index 1c4a071ce7888f069ba3175e3d930b197b192afc..389af6f02b4f9c46ca93a998e16f04cd74e34ea4 100644 (file)
@@ -109,6 +109,8 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD, System V.
 .SH NOTES
 The adjustment that
index a01909e4ec251d62acd78f3f77572c02424b1c5d..7a3dfdeb53d6780fd29b6b951d5151d19f487d24 100644 (file)
@@ -109,12 +109,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR aio_cancel ()
-function is available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .SH EXAMPLES
 See
 .BR aio (7).
index efb04957b1d4b927ddddb4d779380813690b7ea8..e28fdaa0da7e8d74d3512755fd77c3089d632220 100644 (file)
@@ -79,12 +79,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR aio_error ()
-function is available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .SH EXAMPLES
 See
 .BR aio (7).
index 1a12a549fb4812a392ee615e8f6b48af216521a1..4138224fca4d8986fb8ad9b5487b619a295d1b20 100644 (file)
@@ -98,12 +98,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR aio_fsync ()
-function is available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .SH SEE ALSO
 .BR aio_cancel (3),
 .BR aio_error (3),
index e4ad8c60a699cc89d1e58020980287b49a0e2950..012e58ebdf679a515149aeba19bc85812add17e1 100644 (file)
@@ -70,11 +70,9 @@ This field specifies the amount of time in seconds that a
 worker thread should wait for further requests before terminating,
 after having completed a previous request.
 The default value is 1.
-.SH VERSIONS
-The
-.BR aio_init ()
-function is available since glibc 2.1.
 .SH STANDARDS
-This function is a GNU extension.
+GNU.
+.SH HISTORY
+glibc 2.1.
 .SH SEE ALSO
 .BR aio (7)
index ecdbd1081a22a8e464036e522cdbb19a85361db3..59d757545ae6a78e2ed2145948262608328dcd02 100644 (file)
@@ -131,12 +131,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR aio_read ()
-function is available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .SH NOTES
 It is a good idea to zero out the control block before use.
 The control block must not be changed while the read operation
index 4b91794132aac70fba0642d128cc9eb08fb9090e..1d9210ef84e33655011ba13e6c28e60aaad1b8be 100644 (file)
@@ -73,12 +73,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR aio_return ()
-function is available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .SH EXAMPLES
 See
 .BR aio (7).
index 57ef7d344d4d169e9fb4c576ab26d993342259c6..1bf70135fb0beda3f71069fc96b94217b571989c 100644 (file)
@@ -99,12 +99,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR aio_suspend ()
-function is available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .PP
 POSIX doesn't specify the parameters to be
 .IR restrict ;
index 11a302ee41c32fa6df13c1323020c5d07c21b577..2f918ecdca758de98b291e49f2bfeb8eae113f9f 100644 (file)
@@ -136,12 +136,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR aio_write ()
-function is available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .SH NOTES
 It is a good idea to zero out the control block before use.
 The control block must not be changed while the write operation
index 1b9ffeeadda254c96c89882678500fafc56a2a8c..ddc1d6b4fe3773ed537063dc5259376629a45a4d 100644 (file)
@@ -58,10 +58,9 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-This function is not in POSIX.1.
-.PP
-.BR alloca ()
-originates from PWB and 32V, and appears in all their derivatives.
+None.
+.SH HISTORY
+PWB, 32V.
 .SH NOTES
 The
 .BR alloca ()
index f51c4dbfa02371c65e076081558e99b3b84578c5..81cb2f56105a14f478eac9a2586e12053766afe3 100644 (file)
@@ -232,7 +232,7 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-These functions are a GNU extension.
+GNU.
 .SH BUGS
 Argz vectors without a terminating null byte may lead to
 Segmentation Faults.
index e2cbfe96ec137a1813cda6255555ee85d4596fa7..5e8e93824db90af2ac759369f8f2151daf83a681 100644 (file)
@@ -102,7 +102,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 33e120fac18be776c0d9c20333bc47d477528c40..5c7837d540f3c19fd9919c8b3dbd438a6170c413 100644 (file)
@@ -95,7 +95,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index fc3493f3daef48ee087f638e76266413757fab31..5b9f86248835e832901f7b11b09cc8dd8ccd2cdc 100644 (file)
@@ -61,12 +61,12 @@ T}  Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-These functions are GNU extensions, not in C or POSIX.
-They are also available under *BSD.
+.SH VERSIONS
 The FreeBSD implementation sets
 .I strp
 to NULL on error.
+.SH STANDARDS
+GNU, BSD.
 .SH SEE ALSO
 .BR free (3),
 .BR malloc (3),
index 0e0418e6f674687a09061e8f0fd3df8ef1ab0d58..11aa193d4ba4b8f59cb448f8fab6332eba0e5a61 100644 (file)
@@ -74,7 +74,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, C99, POSIX.1-2001.
+.PP
 In C89,
 .I expression
 is required to be of type
index 12faa292b96f504976aa886349cbd01a381aa0fd..ddf6ca73062c9e8557332dfe2fd0eaa5b3f61c8a 100644 (file)
@@ -58,7 +58,7 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-This is a GNU extension.
+GNU.
 .SH BUGS
 The purpose of the assert macros is to help programmers find bugs in
 their programs, things that cannot happen unless there was a coding mistake.
index f95bc073cf0eee60fdcfcceb7cbd00499045c629..4c89bcdda1ca010edd01ce8a132435f1d6812db8 100644 (file)
@@ -87,7 +87,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index e4284d3434eb0ba5cf9889a8c5125f3002a50269..b6338dda291a77c4548672b2cd7bfadf7971bdef 100644 (file)
@@ -159,7 +159,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 1caa364de7df1a194b9971f4e0d929511c11e4fd..9081f5f505dfd3885ce9092d1f0f6ce1d4a5c24a 100644 (file)
@@ -129,7 +129,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 363124cc5af8c30704d6dc74b43cd0951594e4c3..32682a337ce08a2ae1301a499a34f25a026f4959 100644 (file)
@@ -75,23 +75,7 @@ T}   Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
-.SH NOTES
-Functions registered using
-.BR atexit ()
-(and
-.BR on_exit (3))
-are not called if a process terminates abnormally because
-of the delivery of a signal.
-.PP
-If one of the registered functions calls
-.BR _exit (2),
-then any remaining functions are not invoked,
-and the other process termination steps performed by
-.BR exit (3)
-are not performed.
-.PP
+.SH VERSIONS
 POSIX.1 says that the result of calling
 .\" POSIX.1-2001, POSIX.1-2008
 .BR exit (3)
@@ -109,6 +93,24 @@ portable programs should not invoke
 .BR exit (3)
 inside a function registered using
 .BR atexit ().
+.SH STANDARDS
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, C99, SVr4, 4.3BSD.
+.SH NOTES
+Functions registered using
+.BR atexit ()
+(and
+.BR on_exit (3))
+are not called if a process terminates abnormally because
+of the delivery of a signal.
+.PP
+If one of the registered functions calls
+.BR _exit (2),
+then any remaining functions are not invoked,
+and the other process termination steps performed by
+.BR exit (3)
+are not performed.
 .PP
 The
 .BR atexit ()
index 22d1c50da531ca0a77588f05eb3b2451561d9147..1d18c86a3f58130f692d2e76489daa4fa09d22c6 100644 (file)
@@ -58,7 +58,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, C99, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR atoi (3),
 .BR atol (3),
index 10cc66ebaed28af905060db76ea4ef9ab3ea47d6..51e9a78cd10ef24d159c2a647ed31decc2c38eef 100644 (file)
@@ -83,8 +83,16 @@ T}   Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
+.SH VERSIONS
+POSIX.1 leaves the return value of
+.BR atoi ()
+on error unspecified.
+On glibc, musl libc, and uClibc, 0 is returned on error.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001, SVr4, 4.3BSD.
+.PP
 C89 and
 POSIX.1-1996 include the functions
 .BR atoi ()
@@ -102,11 +110,6 @@ only.
 .\" .BR atoll ()
 .\" function is present since glibc 2.0.2, but
 .\" not in libc4 or libc5.
-.SH NOTES
-POSIX.1 leaves the return value of
-.BR atoi ()
-on error unspecified.
-On glibc, musl libc, and uClibc, 0 is returned on error.
 .SH BUGS
 .I errno
 is not set on error so there is no way to distinguish between 0 as an
index 4d23f71f660689f988c13cac20e497ef9df8ab27..157fca076ffe631eec75237d1355ef9455be4e3f 100644 (file)
@@ -149,14 +149,10 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR backtrace (),
-.BR backtrace_symbols (),
-and
-.BR backtrace_symbols_fd ()
-are provided since glibc 2.1.
 .SH STANDARDS
-These functions are GNU extensions.
+GNU.
+.SH HISTORY
+glibc 2.1.
 .SH NOTES
 These functions make some assumptions about how a function's return
 address is stored on the stack.
index 6f22bb58cc231d341d969c8e92887eb831af09d9..fdbfa163699522ee41e5c30e99f341eeef76aa0f 100644 (file)
@@ -128,9 +128,7 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 There are two different versions of
 .BR basename ()
 - the POSIX version described above, and the GNU version, which one gets
@@ -155,6 +153,10 @@ With glibc, one gets the POSIX version of
 when
 .I <libgen.h>
 is included, and the GNU version otherwise.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH BUGS
 In the glibc implementation,
 the POSIX versions of these functions modify the
index 7bad3387f0f55bb0fb05067ab56d2413eda1264b..9f23894cdfc4d84b025d077b47d01c54cc2b2e8c 100644 (file)
@@ -21,9 +21,10 @@ is identical to
 .BR memcmp (3);
 use it instead.
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD.
-This function is deprecated (marked as LEGACY in POSIX.1-2001);
-POSIX.1-2008 removes the specification of
-.BR bcmp ().
+Marked as LEGACY in POSIX.1-2001;
+removed in POSIX.1-2008.
 .SH SEE ALSO
 .BR memcmp (3)
index 49eed122e96b37b5b058c52a613397d13644b076..cf4dff0ad9b1cc03dd210b81bb81e2d5ff8ea5a5 100644 (file)
@@ -54,8 +54,11 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD.
-This function is deprecated (marked as LEGACY in POSIX.1-2001): use
+.PP
+Marked as LEGACY in POSIX.1-2001: use
 .BR memcpy (3)
 or
 .BR memmove (3)
index cf96ca835763795dd3d1fd20eecff6a639e9287e..2630212adf07925e3868e4b3fd5c6df0fabb2bfe 100644 (file)
@@ -102,8 +102,7 @@ The
 .BR bindresvport ()
 function uses a static variable that was not protected by a lock
 before glibc 2.17, rendering the function MT-Unsafe.
-.SH STANDARDS
-Not in POSIX.1.
+.SH VERSIONS
 Present on the BSDs, Solaris, and many other systems.
 .SH NOTES
 Unlike some
@@ -111,6 +110,8 @@ Unlike some
 implementations,
 the glibc implementation ignores any value that the caller supplies in
 .IR sin\->sin_port .
+.SH STANDARDS
+BSD.
 .SH SEE ALSO
 .BR bind (2),
 .BR getsockname (2)
index 33f2641459ce1c2d3ff158160bd9b56d8c99e7ca..3fc3110e2a8e199eec7d03e0763c7a5d19120bae 100644 (file)
@@ -76,14 +76,7 @@ T}   Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-4.2BSD, POSIX.1-2001.
-POSIX.1-2008 removes the specification of
-.BR bsd_signal (),
-recommending the use of
-.BR sigaction (2)
-instead.
-.SH NOTES
+.SH VERSIONS
 Use of
 .BR bsd_signal ()
 should be avoided; use
@@ -107,6 +100,14 @@ is a GNU extension;
 this type is defined only if the
 .B _GNU_SOURCE
 feature test macro is defined.
+.SH STANDARDS
+None.
+.SH HISTORY
+4.2BSD, POSIX.1-2001.
+Removed in POSIX.1-2008,
+recommending the use of
+.BR sigaction (2)
+instead.
 .SH SEE ALSO
 .BR sigaction (2),
 .BR signal (2),
index d27a57475547aae16acf1f2bdc48603cd757c872..b0760f72bb2c61a41bb44aa1ca406538cbe9eb3c 100644 (file)
@@ -78,7 +78,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, C99, SVr4, 4.3BSD.
 .SH EXAMPLES
 The example below first sorts an array of structures using
 .BR qsort (3),
index e26e320675ae0623bc216bcd9544552eb1ad7ac8..41dad78ed2da80a37d5fdf84ee6d78330565541a 100644 (file)
@@ -24,7 +24,7 @@ These functions return the value of their argument with the bytes reversed.
 .SH ERRORS
 These functions always succeed.
 .SH STANDARDS
-These functions are GNU extensions.
+GNU.
 .SH EXAMPLES
 The program below swaps the bytes of the 8-byte integer supplied as
 its command-line argument.
index 60270c6fdc6b7ff60ba6b32d3e80e76ece8d01b1..8a4db6b6dff9a966455aa2acd0177bf7a3e97ddd 100644 (file)
@@ -63,7 +63,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH NOTES
 The behavior of
 .BR btowc ()
index b0b11260285a39333cd088e1f785b4937ad935aa..c7a97548dd3f5dc1d4c95f9ee9c4384a086ce6e1 100644 (file)
@@ -76,7 +76,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .BR bswap (3),
 .BR endian (3),
index 1b203fef63e314f339f419470a0a561d510e7b63..70e076439ac9ca9fbfa96816dee778eb5e9d0fe6 100644 (file)
@@ -56,21 +56,13 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR explicit_bzero ()
-first appeared in glibc 2.25.
 .SH STANDARDS
-The
-.BR bzero ()
-function is deprecated (marked as LEGACY in POSIX.1-2001); use
-.BR memset (3)
-in new programs.
-POSIX.1-2008 removes the specification of
-.BR bzero ().
-The
-.BR bzero ()
-function first appeared in 4.3BSD.
-.PP
+None.
+.SH HISTORY
+.TP
+.BR explicit_bzero ()
+glibc 2.25.
+.IP
 The
 .BR explicit_bzero ()
 function is a nonstandard extension that is also present on some of the BSDs.
@@ -78,6 +70,12 @@ Some other implementations have a similar function, such as
 .BR memset_explicit ()
 or
 .BR memset_s ().
+.TP
+.BR bzero ()
+4.3BSD.
+.IP
+Marked as LEGACY in POSIX.1-2001.
+Removed in POSIX.1-2008.
 .SH NOTES
 The
 .BR explicit_bzero ()
index 1cd489aed014cafec8ada0215762e84e2c5c80b9..042945418e347933815f07645fbc163524282336 100644 (file)
@@ -40,10 +40,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH NOTES
 The function is actually an alias for
 .I "hypot(a,\ b)"
index 554553b595df818db0ce4b70e7b4b6b151551d6a..a32826e98f158e9f410bf26f1e86db952c496702 100644 (file)
@@ -50,10 +50,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH EXAMPLES
 .\" SRC BEGIN (cacos.c)
 .EX
index 3aa69baba572b8450cd5a13b2f4f154b96e2323b..979bad42a4ad02269e3dcfe931f6b9e4b9bdce2c 100644 (file)
@@ -53,10 +53,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
+glibc 2.1.
 .SH EXAMPLES
 .\" SRC BEGIN (cacosh.c)
 .EX
index d04be48618215756db469b769eac045be5f171c4..944eb272445adafbc686b0c015b903d8c3e5eb1c 100644 (file)
@@ -77,7 +77,7 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-This function is a GNU extension.
+GNU.
 .SH SEE ALSO
 .BR readlink (2),
 .BR realpath (3)
index f90873278ecaad9d93a617d5d025ea9ca00ea0b6..758afce92647e941fc2147b6f6675ba965139484 100644 (file)
@@ -81,10 +81,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR complex (7)
index 04d77918f5b1860ffe2d6c4fa2521bff6e829bd0..17fa10fc8a97ae5acb3a01c429285df285dcc3f4 100644 (file)
@@ -49,10 +49,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR clog (3),
 .BR csin (3),
index 3aab28abc5b38e70f9b5ce6d66696453478c0fce..ec4e5d0b41661849d9629a733170d6d4bf358a76 100644 (file)
@@ -51,10 +51,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR asinh (3),
 .BR cabs (3),
index 244bea87ad73631da0f7e317197dfb6e18b80275..3c0cc84da691d6f68596da1a25119a764a22621d 100644 (file)
@@ -50,10 +50,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH EXAMPLES
 .\" SRC BEGIN (catan.c)
 .EX
index 1f590a65e2e695bbfef40919b7eca02d46158f15..c936cc5e29721e88e392ef2e81975fee0ba3b5d1 100644 (file)
@@ -52,10 +52,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH EXAMPLES
 .\" SRC BEGIN (catanh.c)
 .EX
index c1c8c8598c2ac756619d4ed6f0a7bbb243d1fc80..988d6aa3a8e7e08f7a9d5ee2a0babb4515be7dca 100644 (file)
@@ -67,11 +67,14 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.PP
 The
 .BR catgets ()
 function is available only in libc.so.4.4.4c and above.
+.PP
 The Jan 1987 X/Open Portability Guide specifies a more subtle
 error return:
 .I message
index 00cf0fc04b03d921c67f0064314531ad225aa5f5..de8ac6c2b8319073191449b791c88c10311cbc5f 100644 (file)
@@ -148,18 +148,7 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.\" In XPG 1987, Vol. 3 it says:
-.\" .I "The flag argument of catopen is reserved for future use"
-.\" .IR "and should be set to 0" .
-.\"
-.\" It is unclear what the source was for the constants
-.\" .B MCLoadBySet
-.\" and
-.\" .B MCLoadAll
-.\" (see below).
-.SH NOTES
+.SH VERSIONS
 The above is the POSIX.1 description.
 The glibc value for
 .B NL_CAT_LOCALE
@@ -193,6 +182,19 @@ The default path varies, but usually looks at a number of places below
 .\" .I /etc/locale
 .\" and
 .\" .IR /usr/lib/locale .
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.\" In XPG 1987, Vol. 3 it says:
+.\" .I "The flag argument of catopen is reserved for future use"
+.\" .IR "and should be set to 0" .
+.\"
+.\" It is unclear what the source was for the constants
+.\" .B MCLoadBySet
+.\" and
+.\" .B MCLoadAll
+.\" (see below).
 .SH SEE ALSO
 .BR catgets (3),
 .BR setlocale (3)
index 39be019a5c0a96af3aa8f28f8a2d5c94fab6eac9..50c3557dc7c769b58e8e858ed9776f97bb468452 100644 (file)
@@ -80,7 +80,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .\" .BR cbrt ()
 .\" was a GNU extension. It is now a C99 requirement.
 .SH SEE ALSO
index 6193a3384ab6b92c8dbac76ad38c642f62971b95..d50811ca2c0141eaa57e298ca56942e96116c309 100644 (file)
@@ -47,10 +47,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR cacos (3),
index 983b22869200ecf4ef03193e89991bb58beee667..2f96be25b4c6883cc65cc95a4debcfa2d433bbaa 100644 (file)
@@ -27,10 +27,11 @@ The complex hyperbolic cosine function is defined as:
 ccosh(z) = (exp(z)+exp(\-z))/2
 .EE
 .in
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR cacosh (3),
index 3957c514d73aea844cbb7b2c6173c574a408f713..d619d4cf8b5815781cc09c75ad4b670df2055f2c 100644 (file)
@@ -74,7 +74,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 0fc6daf535b61cece7d281b3dda330c0bf733369..3a0a011e57bc0463703751d3f90122a851b9693b 100644 (file)
@@ -48,10 +48,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR cexp2 (3),
index f4e3d1f534a98d0c7237233c8cef5b630e498f9f..ccd2f05cdd0653c262ce3bddffbe4e2cacede511 100644 (file)
@@ -122,15 +122,14 @@ T}        Thread safety   MT-Safe /* In glibc */
 .ad
 .sp 1
 .SH VERSIONS
-The
-.BR cfree ()
-function was removed
-.\" commit 025b33ae84bb8f15b2748a1d8605dca453fce112
-in glibc 2.26.
-.SH STANDARDS
 The 3-argument version of
 .BR cfree ()
 as used by SCO conforms to the iBCSe2 standard:
 Intel386 Binary Compatibility Specification, Edition 2.
+.SH STANDARDS
+None.
+.SH HISTORY
+.\" commit 025b33ae84bb8f15b2748a1d8605dca453fce112
+Removed in glibc 2.26.
 .SH SEE ALSO
 .BR malloc (3)
index 026915ff135bd9dbdcb343480ac02642db1241c8..04402b2eddffd3431ac5206e788737249901ea1d 100644 (file)
@@ -48,12 +48,13 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-These functions were added in glibc 2.1.
-.SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-gcc also supports __imag__.
+GCC also supports __imag__.
 That is a GNU extension.
+.SH STANDARDS
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR creal (3),
index 25c3bf58e41e024eee4aa54fdf406f3bb880be34..d8bf80302af8f63158b2d3de9567771dce6c0c59 100644 (file)
@@ -238,9 +238,7 @@ they return
 returns an initializer that can be assigned to the queue
 .IR head .
 .SH STANDARDS
-Not in POSIX.1, POSIX.1-2001, or POSIX.1-2008.
-Present on the BSDs
-(CIRCLEQ macros first appeared in 4.4BSD).
+BSD.
 .SH BUGS
 .BR CIRCLEQ_FOREACH ()
 and
index 078b447ec87ca37789ad8d62365ff3b9996b8ad9..bae57ea6f65e3910e52e1a3a958ed8c170e6a2f7 100644 (file)
@@ -62,9 +62,22 @@ T}   Thread safety   MT-Unsafe const:env
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-Available since glibc 2.0.
 .SH STANDARDS
+.TP
+.BR putenv ()
+POSIX.1-2008.
+.TP
+.BR clearenv ()
+None.
+.SH HISTORY
+.TP
+.BR putenv ()
+glibc 2.0.
+POSIX.1-2001.
+.TP
+.BR clearenv ()
+glibc 2.0.
+.PP
 Various UNIX variants (DG/UX, HP-UX, QNX, ...).
 POSIX.9 (bindings for FORTRAN77).
 POSIX.1-1996 did not accept
index 49d92238c3236c24eb94dd0275a4970404706273..6dfce042ac3e81d5e3c7198b34c203d0f72d02df 100644 (file)
@@ -48,23 +48,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99.
+.SH VERSIONS
 XSI requires that
 .B CLOCKS_PER_SEC
 equals 1000000 independent
 of the actual resolution.
-.SH NOTES
-The C standard allows for arbitrary values at the start of the program;
-subtract the value returned from a call to
-.BR clock ()
-at the start of the program to get maximum portability.
-.PP
-Note that the time can wrap around.
-On a 32-bit system where
-.B CLOCKS_PER_SEC
-equals 1000000 this function will return the same
-value approximately every 72 minutes.
 .PP
 On several other implementations,
 the value returned by
@@ -84,6 +72,10 @@ The
 .BR times (2)
 function, which explicitly returns (separate) information about the
 caller and its children, may be preferable.
+.SH STANDARDS
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89.
 .PP
 In glibc 2.17 and earlier,
 .BR clock ()
@@ -95,6 +87,17 @@ since glibc 2.18, it is implemented on top of
 (using the
 .B CLOCK_PROCESS_CPUTIME_ID
 clock).
+.SH NOTES
+The C standard allows for arbitrary values at the start of the program;
+subtract the value returned from a call to
+.BR clock ()
+at the start of the program to get maximum portability.
+.PP
+Note that the time can wrap around.
+On a 32-bit system where
+.B CLOCKS_PER_SEC
+equals 1000000 this function will return the same
+value approximately every 72 minutes.
 .SH SEE ALSO
 .BR clock_gettime (2),
 .BR getrusage (2),
index 1a5dccb9b5321ad34a2be4bba8a70583426a0ba9..4c249b1205b0e062921c408a07646148e66ccde7 100644 (file)
@@ -84,12 +84,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR clock_getcpuclockid ()
-function is available since glibc 2.2.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.2.
+POSIX.1-2001.
 .SH NOTES
 Calling
 .BR clock_gettime (2)
index 3eba791c70b158833297da5d4bad52a0c9dd4f31..2b63a5509146df21ff7d9585b8dfbd4750f8a7b1 100644 (file)
@@ -61,10 +61,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR cexp (3),
index ba3f865da9f2f69238e9175f9c41965c47d897f9..594cfe73eded8212d21a8752612945a54a888f53 100644 (file)
@@ -64,10 +64,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions first appeared in glibc 2.1.
 .SH STANDARDS
-These functions are GNU extensions.
+GNU.
+.SH HISTORY
+glibc 2.1.
+.PP
 The identifiers are reserved for future use in C99 and C11.
 .SH SEE ALSO
 .BR cabs (3),
index f147cb02922b2776f53bd9b3a08a68b7ee829550..b3f18171a9b74d79c6d20407929ba5c82d7a5f49 100644 (file)
@@ -31,6 +31,8 @@ Note that
 .I z
 close to zero will cause an overflow.
 .SH STANDARDS
+None.
+.SH HISTORY
 These function names are reserved for future use in C99.
 .PP
 Not yet in glibc, as at glibc 2.19.
index a1c6886c9901489402faa733f5e966862fff9bb6..da1c2706224ec81aaf355ee1e1ec791502b15d31 100644 (file)
@@ -65,7 +65,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR close (2),
 .BR opendir (3),
index 8e7b857b24eb903e0065f52563d99106a66c777d..ee7ba45e0ab231691d250db1c53aa766578c852a 100644 (file)
@@ -160,27 +160,9 @@ For more information on the
 .IR msghdr ,
 see
 .BR recvmsg (2).
-.SH STANDARDS
-This ancillary data model conforms to the POSIX.1g draft, 4.4BSD-Lite,
-the IPv6 advanced API described in RFC\ 2292 and SUSv2.
-.BR CMSG_FIRSTHDR (),
-.BR CMSG_NXTHDR (),
-and
-.BR CMSG_DATA ()
-are specified in POSIX.1-2008.
-.BR CMSG_SPACE ()
-and
-.BR CMSG_LEN ()
-.\" https://www.austingroupbugs.net/view.php?id=978#c3242
-will be included in the next POSIX release (Issue 8).
-.PP
-.BR CMSG_ALIGN ()
-is a Linux extension.
-.SH NOTES
+.SH VERSIONS
 For portability, ancillary data should be accessed using only the macros
 described here.
-.BR CMSG_ALIGN ()
-is a Linux extension and should not be used in portable programs.
 .PP
 In Linux,
 .BR CMSG_LEN (),
@@ -190,6 +172,30 @@ and
 are constant expressions (assuming their argument is constant),
 meaning that these values can be used to declare the size of global variables.
 This may not be portable, however.
+.SH STANDARDS
+.TP
+.BR CMSG_FIRSTHDR ()
+.TQ
+.BR CMSG_NXTHDR ()
+.TQ
+.BR CMSG_DATA ()
+POSIX.1-2008.
+.TP
+.BR CMSG_SPACE ()
+.TQ
+.BR CMSG_LEN ()
+.TQ
+.BR CMSG_ALIGN ()
+Linux.
+.SH HISTORY
+This ancillary data model conforms to the POSIX.1g draft, 4.4BSD-Lite,
+the IPv6 advanced API described in RFC\ 2292 and SUSv2.
+.PP
+.BR CMSG_SPACE ()
+and
+.BR CMSG_LEN ()
+.\" https://www.austingroupbugs.net/view.php?id=978#c3242
+will be included in the next POSIX release (Issue 8).
 .SH EXAMPLES
 This code looks for the
 .B IP_TTL
index b340bdcf06c2ea0ea636eca7f66729a05aea1fd8..20a7781e7352e16de7d51ac55caf537a3ca1037d 100644 (file)
@@ -130,7 +130,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH EXAMPLES
 The following code fragment determines the path where to find
 the POSIX.2 system utilities:
index 941c4453621a9daa4f6d5974738de24517bcb45f..4cc22f1317c4c2367daf5e6f1f30ec4ef110fa23 100644 (file)
@@ -48,10 +48,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR csqrt (3),
index 606cfccbd5e71ece3a22dbea540efeca13f7d1d8..1282cf112eae2c8f7a2dad1b79daa20a6fa3d1df 100644 (file)
@@ -81,14 +81,15 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
+.SH VERSIONS
+On architectures where the floating-point formats are not IEEE 754 compliant,
+these functions may treat a negative zero as positive.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
-.\" 4.3BSD.
+C11, POSIX.1-2008.
+.PP
 This function is defined in IEC 559 (and the appendix with
 recommended functions in IEEE 754/IEEE 854).
-.SH NOTES
-On architectures where the floating-point formats are not IEEE 754 compliant,
-these
-functions may treat a negative zero as positive.
+.SH HISTORY
+C99, POSIX.1-2001, 4.3BSD.
 .SH SEE ALSO
 .BR signbit (3)
index 69f88044b1082cf9ef5a24b8337a96454ec9e3d5..d00d7a06f4bd9ecb53bc5a5b9a85d4364b379f7d 100644 (file)
@@ -95,7 +95,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index d35b977ea3a8a3556ff7f625a777a126c117d2b5..bdf06f583b2d19692975341bf36f616bbea394c1 100644 (file)
@@ -111,7 +111,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index e69d34e8ce43e76c5cfc852d339783aa8bb2cb1f..2b6c10dcb54a4b00bdc827b859a48eba2eb67f60 100644 (file)
@@ -45,10 +45,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR pow (3),
index 32dd29165d4832d3582ce47dac1d17f71af2b151..6292c28dd6a918fd3ee7f91bf7cdececcf18aed3 100644 (file)
@@ -46,11 +46,12 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
+.PP
 In glibc 2.11 and earlier, the implementation does something different
 (a
 .I stereographic
index 8fe7f5a51a8cadd6e1153eec4f514a5b4a79d3cf..6b8916bd3805efd9d331177d781556d594c3d1b8 100644 (file)
@@ -46,12 +46,13 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-These functions were added in glibc 2.1.
-.SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-The gcc supports also __real__.
+GCC supports also __real__.
 That is a GNU extension.
+.SH STANDARDS
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR cimag (3),
index a4b37774ac403539b4e42c996e911d1de1f334b3..1f3e4792ec8d0a0eb3ecce79f3041937aac0d7fb 100644 (file)
@@ -187,11 +187,16 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-.BR crypt ():
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+.TP
+.BR crypt ()
+POSIX.1-2008.
+.TP
 .BR crypt_r ()
-is a GNU extension.
-.SH NOTES
+GNU.
+.SH HISTORY
+.TP
+.BR crypt ()
+POSIX.1-2001, SVr4, 4.3BSD.
 .SS Availability in glibc
 The
 .BR crypt (),
@@ -217,6 +222,7 @@ for the function prototypes;
 otherwise
 .I libxcrypt
 is an ABI-compatible drop-in replacement.
+.SH NOTES
 .SS Features in glibc
 The glibc version of this function supports additional
 encryption algorithms.
index 3119535ca15fb0b9036ebc599f447dc6d59a371c..fc1ccb2cddd4cba3ca90f17018426a6b64dfebec 100644 (file)
@@ -47,10 +47,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR casin (3),
index b8f5d5a9f0b6e591834a1d5bf4c557da8c8454a1..c212f8e280f65335db638ea6ec515d5f272cec50 100644 (file)
@@ -47,10 +47,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR casinh (3),
index b9cf8ba6108b060548a08db3dda9bcc4fb0d55d3..e1469ee22681c454af90ab9886146e43eb5379b1 100644 (file)
@@ -43,10 +43,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR cexp (3),
index 9caaf42d63fbc518b6f8cf9a79d0296c34e6d764..42e7f78f492c425256b632f18b134f46063cabc9 100644 (file)
@@ -47,10 +47,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR catan (3),
index 9eb02dd252a18144ae33ea32b05b3a0846a16268..86e645db0fbac52be102afb2f45447823151baf9 100644 (file)
@@ -48,10 +48,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR cabs (3),
 .BR catanh (3),
index 96c521d780ed6d9918489e99c50b4f038783aeb6..681a893ef0c22c112046268f8380adc9f722c052 100644 (file)
@@ -61,7 +61,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, Svr4.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, Svr4.
 .SH BUGS
 The returned pathname may not uniquely identify the controlling
 terminal; it may, for example, be
index 31f3e66db2758165d956d3f2f69df867d8828947..a6021f451f83a950fd22bf66fbae3274b75b943a 100644 (file)
@@ -300,31 +300,77 @@ T}
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001.
-C89 and C99 specify
-.BR asctime (),
-.BR ctime (),
-.BR gmtime (),
-.BR localtime (),
-and
-.BR mktime ().
-POSIX.1-2008 marks
-.BR asctime (),
-.BR asctime_r (),
-.BR ctime (),
-and
-.BR ctime_r ()
-as obsolete,
-recommending the use of
-.BR strftime (3)
-instead.
-.PP
+.SH VERSIONS
 POSIX doesn't specify the parameters of
 .BR ctime_r ()
 to be
 .IR restrict ;
 that is specific to glibc.
+.PP
+In many implementations, including glibc, a 0 in
+.I tm_mday
+is interpreted as meaning the last day of the preceding month.
+.PP
+According to POSIX.1-2001,
+.BR localtime ()
+is required to behave as though
+.BR tzset (3)
+was called, while
+.BR localtime_r ()
+does not have this requirement.
+.\" See http://thread.gmane.org/gmane.comp.time.tz/2034/
+For portable code,
+.BR tzset (3)
+should be called before
+.BR localtime_r ().
+.SH STANDARDS
+.TP
+.BR asctime ()
+.TQ
+.BR ctime ()
+.TQ
+.BR gmtime ()
+.TQ
+.BR localtime ()
+.TQ
+.BR mktime ()
+C11, POSIX.1-2008.
+.TP
+.BR asctime_r ()
+.TQ
+.BR ctime_r ()
+.TQ
+.BR gmtime_r ()
+.TQ
+.BR localtime_r ()
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR gmtime ()
+.TQ
+.BR localtime ()
+.TQ
+.BR mktime ()
+C89, POSIX.1-2001.
+.TP
+.BR asctime ()
+.TQ
+.BR ctime ()
+C89, POSIX.1-2001.
+Marked obsolete in POSIX.1-2008 (recommending
+.BR strftime (3)).
+.TP
+.BR gmtime_r ()
+.TQ
+.BR localtime_r ()
+POSIX.1-2001.
+.TP
+.BR asctime_r ()
+.TQ
+.BR ctime_r ()
+POSIX.1-2001.
+Marked obsolete in POSIX.1-2008 (recommending
+.BR strftime (3)).
 .SH NOTES
 The four functions
 .BR asctime (),
@@ -354,23 +400,6 @@ a broken-down time structure and an array of type
 Execution of any of the functions may overwrite the information returned
 in either of these objects by any of the other functions."
 This can occur in the glibc implementation.
-.PP
-In many implementations, including glibc, a 0 in
-.I tm_mday
-is interpreted as meaning the last day of the preceding month.
-.PP
-According to POSIX.1-2001,
-.BR localtime ()
-is required to behave as though
-.BR tzset (3)
-was called, while
-.BR localtime_r ()
-does not have this requirement.
-.\" See http://thread.gmane.org/gmane.comp.time.tz/2034/
-For portable code,
-.BR tzset (3)
-should be called before
-.BR localtime_r ().
 .SH SEE ALSO
 .BR date (1),
 .BR gettimeofday (2),
index 44a8ff7e204e067231e4c90313bb4cc1d94eff96..dcd57c3325b5059a4f28c1b32874532367e28b59 100644 (file)
@@ -91,13 +91,9 @@ T}   Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-Not in POSIX.1.
+.SH VERSIONS
 A similar function appears on the BSDs.
-The
-.BR daemon ()
-function first appeared in 4.4BSD.
-.SH NOTES
+.PP
 The glibc implementation can also return \-1 when
 .I /dev/null
 exists but is not a character device with the expected
@@ -105,6 +101,10 @@ major and minor numbers.
 In this case,
 .I errno
 need not be set.
+.SH STANDARDS
+None.
+.SH HISTORY
+4.4BSD.
 .SH BUGS
 The GNU C library implementation of this function was taken from BSD,
 and does not employ the double-fork technique (i.e.,
index e486d92a5fe1373b6e00cf37dc76455a4b98da26..af57bc6f4a570c136bf6fefd4ab5a374efd72de1 100644 (file)
@@ -23,16 +23,17 @@ Standard C library
 .\" .B #include <des_crypt.h>
 .B #include <rpc/des_crypt.h>
 .PP
-.BI "int ecb_crypt(char *" key ", char " data [. datalen "], \
-unsigned int " datalen ,
-.BI "              unsigned int " mode );
-.BI "int cbc_crypt(char *" key ", char " data [. datalen "], \
-unsigned int " datalen ,
-.BI "              unsigned int " mode ", char *" ivec );
+.BI "[[deprecated]] int ecb_crypt(char *" key ", char " data [. datalen ],
+.BI "                             unsigned int " datalen ", \
+unsigned int " mode );
+.BI "[[deprecated]] int cbc_crypt(char *" key ", char " data [. datalen ],
+.BI "                             unsigned int " datalen ", \
+unsigned int " mode ,
+.BI "                             char *" ivec );
 .PP
-.BI "void des_setparity(char *" key );
+.BI "[[deprecated]] void des_setparity(char *" key );
 .PP
-.BI "int DES_FAILED(int " status );
+.BI "[[deprecated]] int DES_FAILED(int " status );
 .fi
 .SH DESCRIPTION
 .BR ecb_crypt ()
@@ -148,22 +149,18 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
+.SH STANDARDS
+None.
+.SH HISTORY
+4.3BSD.
+glibc 2.1.
+Removed in glibc 2.28.
 .PP
 Because they employ the DES block cipher,
 which is no longer considered secure,
-.BR ecb_crypt (),
-.BR ecb_crypt (),
-.BR crypt_r (),
-and
-.BR des_setparity ()
-were removed in glibc 2.28.
+these functions were removed.
 Applications should switch to a modern cryptography library, such as
 .BR libgcrypt .
-.SH STANDARDS
-4.3BSD.
-Not in POSIX.1.
 .SH SEE ALSO
 .BR des (1),
 .BR crypt (3),
index 051800888f8ff1ba45f34333af25ab9a08cfe461..60d348977694708aa4194d24710e383eb3a13fc2 100644 (file)
@@ -47,7 +47,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD.
 .SH NOTES
 On a POSIX system,
 .I time_t
index 6c1d33bdf59e8ba9ed527d9bb8413e56eec632a9..ea30498866d892feb77e45ecd2b9fd9cf3a26da7 100644 (file)
@@ -81,7 +81,8 @@ T}    Thread safety   MT-Safe
 .sp 1
 .SH STANDARDS
 POSIX.1-2008.
-This function was a BSD extension, present in 4.3BSD-Reno, not in 4.2BSD.
+.SH HISTORY
+4.3BSD-Reno (not in 4.2BSD).
 .\" It is present in libc5 (since 5.1.2) and in glibc 2.
 .SH SEE ALSO
 .BR open (2),
index 29b9493a25917f1eb4870b8693b1eedc0388e222..97d19334e58f431327c41a98adf6e91e975fcc21 100644 (file)
@@ -85,8 +85,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
-The functions
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, C99, SVr4, 4.3BSD.
+.PP
 .BR lldiv ()
 and
 .BR imaxdiv ()
index 0b65919bf8d36ee6731b93c14be92f10fef2d950..101fa0628be711cdbd9f31c2c891fe71762c0419 100644 (file)
@@ -200,12 +200,6 @@ T} Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-.BR dl_iterate_phdr ()
-has been supported since glibc 2.2.4.
-.SH STANDARDS
-The
-.BR dl_iterate_phdr ()
-function is not specified in any standard.
 Various other systems provide a version of this function,
 although details of the returned
 .I dl_phdr_info
@@ -217,14 +211,18 @@ On the BSDs and Solaris, the structure includes the fields
 and
 .I dlpi_phnum
 in addition to other implementation-specific fields.
-.SH NOTES
+.PP
 Future versions of the C library may add further fields to the
 .I dl_phdr_info
 structure; in that event, the
 .I size
 argument provides a mechanism for the callback function to discover
 whether it is running on a system with added fields.
-.PP
+.SH STANDARDS
+None.
+.SH HISTORY
+glibc 2.2.4.
+.SH NOTES
 The first object visited by
 .I callback
 is the main program.
index 77b7b9afec6bad7d04d7fd3a7dfd48a14cc4b94e..90b770cb852bc22fed78090cb8bf31cafa7014e6 100644 (file)
@@ -231,14 +231,17 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
+.SH STANDARDS
+GNU.
+.SH HISTORY
+.TP
 .BR dladdr ()
-is present in glibc 2.0 and later.
+glibc 2.0.
+.TP
 .BR dladdr1 ()
-first appeared in glibc 2.3.3.
-.SH STANDARDS
-These functions are nonstandard GNU extensions
-that are also present on Solaris.
+glibc 2.3.3.
+.PP
+Solaris.
 .SH BUGS
 Sometimes, the function pointers you pass to
 .BR dladdr ()
index 3265dfcf34fbb65e0cf62204edfbbfe03a6cde07..39e0f78894173e7e6149c0bf22c1215a95809ded 100644 (file)
@@ -48,11 +48,13 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR dlerror ()
-is present in glibc 2.0 and later.
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.0.
 POSIX.1-2001.
+.PP
+SunOS.
 .SH NOTES
 The message returned by
 .BR dlerror ()
@@ -69,8 +71,6 @@ calls.
 .\" .in +5
 .\" .B "const char *dlerror(void);"
 .\" .in
-.SS History
-This function is part of the dlopen API, derived from SunOS.
 .SH EXAMPLES
 See
 .BR dlopen (3).
index 960265faf0e532f86ef5f5f2211f0fdb2ba95bd2..5163aeab042c1b47aa7f0a11f729418996776d8f 100644 (file)
@@ -218,15 +218,13 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-.BR dlinfo ()
-first appeared in glibc 2.3.3.
-.SH STANDARDS
-This function is a nonstandard GNU extension.
-.SH NOTES
-This function derives from the Solaris function of the same name
-and also appears on some other systems.
 The sets of requests supported by the various implementations
 overlaps only partially.
+.SH STANDARDS
+GNU.
+.SH HISTORY
+glibc 2.3.3.
+Solaris.
 .SH EXAMPLES
 The program below opens a shared objects using
 .BR dlopen (3)
index 3df952650a9ac02606959d682d184de067ecef87..90c365a65f479ff1480ae4e0e1b549aee458d4ba 100644 (file)
@@ -365,29 +365,32 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
+.SH STANDARDS
+.TP
 .BR dlopen ()
-and
+.TQ
 .BR dlclose ()
-are present in glibc 2.0 and later.
+POSIX.1-2008.
+.TP
 .BR dlmopen ()
-first appeared in glibc 2.3.4.
-.SH STANDARDS
-POSIX.1-2001 describes
+.TQ
+.B RTLD_NOLOAD
+.TQ
+.B RTLD_NODELETE
+GNU.
+.TP
+.B RTLD_DEEPBIND
+Solaris.
+.SH HISTORY
+.TP
+.BR dlopen ()
+.TQ
 .BR dlclose ()
-and
-.BR dlopen ().
-The
+glibc 2.0.
+POSIX.1-2001.
+.TP
 .BR dlmopen ()
-function is a GNU extension.
-.PP
-The
-.BR RTLD_NOLOAD ,
-.BR RTLD_NODELETE ,
-and
-.B RTLD_DEEPBIND
-flags are GNU extensions;
-the first two of these flags are also present on Solaris.
+glibc 2.3.4.
 .SH NOTES
 .SS dlmopen() and namespaces
 A link-map list defines an isolated namespace for the
index de071d1f083a07b306ab905b5aeb42fa6eb4148e..8a648c6daf574c259b3a52727f5b753821181776 100644 (file)
@@ -120,17 +120,21 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
+.SH STANDARDS
+.TP
 .BR dlsym ()
-is present in glibc 2.0 and later.
+POSIX.1-2008.
+.TP
 .BR dlvsym ()
-first appeared in glibc 2.1.
-.SH STANDARDS
-POSIX.1-2001 describes
-.BR dlsym ().
-The
+GNU.
+.SH HISTORY
+.TP
+.BR dlsym ()
+glibc 2.0.
+POSIX.1-2001.
+.TP
 .BR dlvsym ()
-function is a GNU extension.
+glibc 2.1.
 .SH NOTES
 There are several scenarios when the address of a global symbol is NULL.
 For example, a symbol can be placed at zero address by the linker, via
index a93b8655e095ded340c97d1a08315a4544e244bb..1d12570e233cf6563bba7c5c0b7b89e2c542bebf 100644 (file)
@@ -255,7 +255,9 @@ The above
 functions record global state information for the random number generator,
 so they are not thread-safe.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
 .SH SEE ALSO
 .BR rand (3),
 .BR random (3)
index d34055c16df4821040c88b167f608e54664b4659..dff7554e5ade919a9bc26ef3738561704e1df584 100644 (file)
@@ -100,7 +100,7 @@ T}  Thread safety   MT-Safe race:buffer
 .ad
 .sp 1
 .SH STANDARDS
-These functions are GNU extensions and are not portable.
+GNU.
 .SH SEE ALSO
 .BR drand48 (3),
 .BR rand (3),
index a069c827f729d34787ca353092585934d3411938..c8872a09135c730d495723b14bec5d232ab2dce1 100644 (file)
@@ -54,12 +54,10 @@ to indicate the error.
 .TP
 .B ENOMEM
 Insufficient memory to create the duplicate locale object.
-.SH VERSIONS
-The
-.BR duplocale ()
-function were added in glibc 2.3.
 .SH STANDARDS
 POSIX.1-2008.
+.SH HISTORY
+glibc 2.3.
 .SH NOTES
 Duplicating a locale can serve the following purposes:
 .IP \[bu] 3
index f3e1a888857d96b343989e038dd1c8e5120c3e65..b0d5455c4e332a5f39bfd2d9e8f19a49ba8a089f 100644 (file)
@@ -61,8 +61,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-This function occurs in SunOS 4.x.
-.SH NOTES
+None.
+.SH HISTORY
+SunOS 4.x.
+.PP
 This is a compatibility function only.
 Don't use it in new programs.
 .\" The SCO version of this function had a year-2000 problem.
index 1a56ca8171408b5e51d4692f110f9fd7edf35bef..53ad0b351666111de808e0c583a56e78045e7b1b 100644 (file)
@@ -107,6 +107,8 @@ T}  Thread safety   MT-Unsafe race:fcvt
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr2;
 marked as LEGACY in POSIX.1-2001.
 POSIX.1-2008 removes the specifications of
index f16ca57941645608f9117ea61a1375fa53be246a..2046983ba9956d8aeadde340ad8c84a42d5fc06b 100644 (file)
@@ -91,7 +91,7 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-These functions are GNU extensions.
+GNU.
 .SH NOTES
 These functions are obsolete.
 Instead,
index c71a62e6e9fb246005e43a31dae1e767baf17eb9..d0d35e92280d8306b4c49c75a4881a4146600c03 100644 (file)
@@ -126,28 +126,30 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
+.SH STANDARDS
+.TP
+.BR encrypt ()
+.TQ
+.BR setkey ()
+POSIX.1-2008.
+.TP
+.BR encrypt_r ()
+.TQ
+.BR setkey_r ()
+None.
+.SH HISTORY
+Removed in glibc 2.28.
+.PP
 Because they employ the DES block cipher,
 which is no longer considered secure,
-.BR encrypt (),
-.BR encrypt_r (),
-.BR setkey (),
-and
-.BR setkey_r ()
-were removed in glibc 2.28.
+these functions were removed from glibc.
 Applications should switch to a modern cryptography library, such as
 .BR libgcrypt .
-.SH STANDARDS
-.BR encrypt (),
-.BR setkey ():
-POSIX.1-2001, POSIX.1-2008, SUS, SVr4.
-.PP
-The functions
-.BR encrypt_r ()
-and
-.BR setkey_r ()
-are GNU extensions.
-.SH NOTES
+.TP
+.BR encrypt ()
+.TQ
+.BR setkey ()
+POSIX.1-2001, SUS, SVr4.
 .SS Availability in glibc
 See
 .BR crypt (3).
index 6531a07927a81e9be7c5d6932f6a4134a0807a31..2b54bf5beb66f02572a680417c91c26f5acff806 100644 (file)
@@ -28,6 +28,8 @@ initialized data segment.
 This is the first address past the end of the
 uninitialized data segment (also known as the BSS segment).
 .SH STANDARDS
+None.
+.SH HISTORY
 Although these symbols have long been provided on most UNIX systems,
 they are not standardized; use with caution.
 .SH NOTES
index 17f72f111a223afe5f468629f21733604ceefde9..28f8fbee9c875e882d380b40a28effd682a38279 100644 (file)
@@ -80,9 +80,6 @@ from big-endian order to host byte order.
 The functions with names of the form "le\fInn\fPtoh" convert
 from little-endian order to host byte order.
 .SH VERSIONS
-These functions were added in glibc 2.9.
-.SH STANDARDS
-These functions are nonstandard.
 Similar functions are present on the BSDs,
 where the required header file is
 .I <sys/endian.h>
@@ -96,7 +93,11 @@ whereby the
 component always appears at the end of the function name
 (thus, for example, in NetBSD, FreeBSD, and glibc,
 the equivalent of OpenBSDs "betoh32" is "be32toh").
-.SH NOTES
+.SH STANDARDS
+None.
+.SH HISTORY
+glibc 2.9.
+.PP
 These functions are similar to the older
 .BR byteorder (3)
 family of functions.
index 3786e023b36154520574ce5231e618379db46bd1..c7a4cf1821e3ba2c2df43a16fd8fc2e12c5cb71b 100644 (file)
@@ -142,7 +142,7 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-These functions are a GNU extension.
+GNU.
 .SH EXAMPLES
 .\" SRC BEGIN (envz_add.c)
 .EX
index a2a1002366d35540b9131bb57739dfac34edeb2e..11752280501e38d29b1c29aa36a4a84600589695 100644 (file)
@@ -120,7 +120,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 267dda8dd151d2bc46cec3fb223559bc49957ccc..a02c528bd79a2bcf72fb8a1b6a2a76561efa8efa 100644 (file)
@@ -113,7 +113,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index b44b2332f301976895437cdb538106635ed32c6f..dc7f43b612a0315d4f1de826056ecf5812deb5f3 100644 (file)
@@ -103,14 +103,13 @@ T}        Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-These functions are nonstandard BSD extensions.
-.\" .SH HISTORY
-.\" The
-.\" .BR err ()
-.\" and
-.\" .BR warn ()
-.\" functions first appeared in
-.\" 4.4BSD.
+BSD.
+.SH HISTORY
+.TP
+.BR err ()
+.TQ
+.BR warn ()
+4.4BSD.
 .SH EXAMPLES
 Display the current
 .I errno
index 2df5df0cf7a3bebb4dadc931884c4cefa945c145..b6ac915dd80d9f119f42fbd727b57ae7ba8b6024 100644 (file)
@@ -160,8 +160,7 @@ After that,
 is very much like
 .BR error ().
 .SH STANDARDS
-These functions and variables are GNU extensions, and should not be
-used in programs intended to be portable.
+GNU.
 .SH SEE ALSO
 .BR err (3),
 .BR errno (3),
index 920a065fad5a54f7a0afc622dd5bd7e0e5ca4c9f..842cc47c3d70afa97836e90325799f1af91381a6 100644 (file)
@@ -131,6 +131,8 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD, SunOS.
 .SH BUGS
 In glibc 2.2.5 and earlier, the implementation of
index d17590bc006ade637b6d46fb07be21c674d2bfed..2ff79e60a58768ed9416fded4751bf52e561de3f 100644 (file)
@@ -69,15 +69,16 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-The
-.BR eaccess ()
-function was added in glibc 2.4.
-.SH STANDARDS
-These functions are nonstandard.
 Some other systems have an
 .\" e.g., FreeBSD 6.1.
 .BR eaccess ()
 function.
+.SH STANDARDS
+None.
+.SH HISTORY
+.TP
+.BR eaccess ()
+glibc 2.4.
 .SH NOTES
 .IR Warning :
 Using this function to check a process's permissions on a file before
index d8c0e0712edebfc7ce385adc35fce9431bd2c275..d770dcadbcaf8f6e5e8296b46590358d3650e576 100644 (file)
@@ -197,16 +197,6 @@ T} Thread safety   MT-Safe env
 .ad
 .sp 1
 .SH VERSIONS
-The
-.BR execvpe ()
-function first appeared in glibc 2.11.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.PP
-The
-.BR execvpe ()
-function is a GNU extension.
-.SH NOTES
 The default search path (used when the environment
 does not contain the variable \fBPATH\fR)
 shows some variation across systems.
@@ -254,6 +244,40 @@ and
 upon which they returned.
 They now return if any error other than the ones
 described above occurs.
+.SH STANDARDS
+.TP
+.B environ
+.TQ
+.BR execl ()
+.TQ
+.BR execlp ()
+.TQ
+.BR execle ()
+.TQ
+.BR execv ()
+.TQ
+.BR execvp ()
+POSIX.1-2008.
+.TP
+.BR execvpe ()
+GNU.
+.SH HISTORY
+.TP
+.B environ
+.TQ
+.BR execl ()
+.TQ
+.BR execlp ()
+.TQ
+.BR execle ()
+.TQ
+.BR execv ()
+.TQ
+.BR execvp ()
+POSIX.1-2001.
+.TP
+.BR execvpe ()
+glibc 2.11.
 .SH BUGS
 Before glibc 2.24,
 .BR execl ()
index d94ac6eb7307ffcc4a08aa7c36dc2bf56af5912d..05b7fb54dbbcfa9842ab6433d2339c1a26d08255 100644 (file)
@@ -94,7 +94,9 @@ The
 function uses a global variable that is not protected,
 so it is not thread-safe.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001, SVr4, 4.3BSD.
 .SH NOTES
 The behavior is undefined if one of the functions registered using
 .BR atexit (3)
index d8d49da5e34ae3bf1f3bb4b07a3fa37007483d04..ce4c29eb4860dd90b9314a835e0845579279b675 100644 (file)
@@ -119,7 +119,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 290d495cac448e82ffed09a899cb0b86fc8fc211..20a92d227cfe1240e1e80ca16cf3242ce0de8a24 100644 (file)
@@ -66,10 +66,10 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions first appeared in glibc 2.1.
 .SH STANDARDS
-These functions are GNU extensions.
+GNU.
+.SH HISTORY
+glibc 2.1.
 .SH BUGS
 Before glibc 2.19, the glibc implementation of these functions did not set
 .I errno
index 574507df6a31e8d064dae87ea25f60d54a36d184..1d1286b8217050777562173740fb32257e556dd8 100644 (file)
@@ -77,10 +77,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 832660f2fe54eadfe28fdbe9038615f63becfc88..7720141a4b8edf4c53b8fe9f1ad59eb6d96223be 100644 (file)
@@ -126,8 +126,10 @@ T} Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
-.\" BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
+BSD.
 .SH BUGS
 Before glibc 2.17,
 .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6778
index ccb41d0a6c8e04a17a2b4d47de620e5e42cde0da..265b1336afc1a80dde0a3c310b95290adc5c3458 100644 (file)
@@ -78,7 +78,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 213e36bb760f7951664459e652bac7f870a464b0..d454fb7b6f6eab553a51eeaeff2e8e981fed8ec6 100644 (file)
@@ -83,7 +83,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
 .SH NOTES
 Note that
 .BR fclose ()
index e00f1849fa0f6e3cb5d0676fd50f90cec8f92bab..49afea4c723dfd412a33e26765a2d7a721e0a047 100644 (file)
@@ -58,7 +58,7 @@ The
 .BR fcloseall ()
 function does not lock the streams, so it is not thread-safe.
 .SH STANDARDS
-This function is a GNU extension.
+GNU.
 .SH SEE ALSO
 .BR close (2),
 .BR fclose (3),
index 7eaacb0d72651295df56de2e3a79753aee17b8c2..d503eca66d620a8f6cf9ee1208e6202aad4df65a 100644 (file)
@@ -84,10 +84,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH BUGS
 Before glibc 2.24
 .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6796
index cbaa342fd44dea8d26e9a4a53c7d74be723f9622..e96ff6be0e9e69401e9bbf7586212c3b4e909c95 100644 (file)
@@ -274,10 +274,11 @@ T}
 .ad
 .sp 1
 .hy
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-IEC 60559 (IEC 559:1989), ANSI/IEEE 854, C99, POSIX.1-2001.
+C11, POSIX.1-2008, IEC 60559 (IEC 559:1989), ANSI/IEEE 854.
+.SH HISTORY
+C99, POSIX.1-2001.
+glibc 2.1.
 .SH NOTES
 .SS glibc notes
 If possible, the GNU C Library defines a macro
index 9d9ebe23a6c65dc07265dd27a02f203847fe4f86..1508eaf4961963a263de62ba68e0d6579aa18470 100644 (file)
@@ -88,12 +88,9 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-The functions
-.BR clearerr (),
-.BR feof (),
-and
-.BR ferror ()
-conform to C89, C99, POSIX.1-2001, and POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
 .SH NOTES
 POSIX.1-2008 specifies
 .\"https://www.austingroupbugs.net/view.php?id=401
index 78d0efee99212cc67a0a850d9dcdff97bdc8a019..2adb1d66bb178f302c879c7006e433cdc99f57f2 100644 (file)
@@ -95,15 +95,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR fexecve ()
-is implemented since glibc 2.3.2.
 .SH STANDARDS
 POSIX.1-2008.
-This function is not specified in POSIX.1-2001,
-and is not widely available on other systems.
-It is specified in POSIX.1-2008.
-.SH NOTES
+.SH HISTORY
+glibc 2.3.2.
+.PP
 On Linux with glibc versions 2.26 and earlier,
 .BR fexecve ()
 is implemented using the
@@ -120,7 +116,7 @@ system call, then
 is implemented using that system call, with the benefit that
 .I /proc
 does not need to be mounted.
-.PP
+.SH NOTES
 The idea behind
 .BR fexecve ()
 is to allow the caller to verify (checksum) the contents of
index 927ff8b2b0f5fe6aa1871deb978a8fa2917743ba..327786cef9aaa803e7a3a00bdc2184a03e186cc2 100644 (file)
@@ -91,7 +91,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C89, C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001, POSIX.1-2008.
 .PP
 POSIX.1-2001 did not specify the behavior for flushing of input streams,
 but the behavior is specified in POSIX.1-2008.
index bebd16b03e8da6c9a407bbd09e04015f0c349439..ee1f2a1784943d882cef737814d5fea237121d6f 100644 (file)
@@ -90,17 +90,17 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
+.SH VERSIONS
+BSD systems have a prototype in
+.IR <string.h> .
 .SH STANDARDS
-.BR ffs ():
+.TP
+.BR ffs ()
 POSIX.1-2001, POSIX.1-2008, 4.3BSD.
-.PP
-The
+.TP
 .BR ffsl ()
-and
+.TQ
 .BR ffsll ()
-functions are glibc extensions.
-.SH NOTES
-BSD systems have a prototype in
-.IR <string.h> .
+GNU.
 .SH SEE ALSO
 .BR memchr (3)
index 75bb9231b2d2cdaef26161328e231f93fca1a6dc..75dcaeaf62c0f162841ba8224cbef0a0ec7ba025 100644 (file)
@@ -126,8 +126,10 @@ T} Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99.
-.PP
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89.
+.SH NOTES
 It is not advisable to mix calls to input functions from the
 .I stdio
 library with low-level calls to
index c3bf60d9bf146ceffd98340d6f389a15ea0334bb..193e8f737598f8c720f594b9377b7ad8b7eed2c7 100644 (file)
@@ -106,6 +106,8 @@ T}  Thread safety   MT-Unsafe race:fgetgrent
 .\" race:fgetgrent, however, something about the copyright impeded the
 .\" progress.
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr4.
 .SH SEE ALSO
 .BR endgrent (3),
index fad2fc0e666a49b90a05bbdcc38588398989db17..51cf41271211b9aebdd7b833a90bbcf49da62933 100644 (file)
@@ -114,6 +114,8 @@ T}  Thread safety   MT-Unsafe race:fgetpwent
 .\" race:fgetpwent, however, something about the copyright impeded the
 .\" progress.
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr4.
 .SH SEE ALSO
 .BR endpwent (3),
index 4bd326eb53aa54f1f732749cb208baaa02e04b8e..4d3e58efddf5fef6f72d43e343f0b3ccb1bb1e3b 100644 (file)
@@ -84,7 +84,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR fgetwc ()
index 076061a0e3d42834193e171dd80dd794e9b6be5a..75ed37aa37a64553b147b25b3251a79c9b2e6236 100644 (file)
@@ -67,7 +67,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR fgetws ()
index bf0ec06d575a877bbc0072c37936426a2a2010e3..53d5bde547a80bc97d54ffef60762988230f625a 100644 (file)
@@ -82,9 +82,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-The function
-.BR fileno ()
-conforms to POSIX.1-2001 and POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .BR open (2),
 .BR fdopen (3),
index 01b0cc47d6f193d8d6542967a5715255f4d8f6e4..36d8e79ca5803a1b434f6a7c64d258e0cf3e9fdd 100644 (file)
@@ -125,7 +125,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .PP
 These functions are available when
 .B _POSIX_THREAD_SAFE_FUNCTIONS
index 1be5bc0944d2f6f7b31c09c02f5af7a892b88bb0..aee548954874615c2ae634cfb779014965f17b51 100644 (file)
@@ -73,13 +73,15 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
 also conforms to
 SVr4, 4.3BSD, C89.
-.SH NOTES
+.PP
 SUSv2 and POSIX.1-2001 contain text about overflow (which might set
 .I errno
 to
index 616a265929b8d06acd18fc72841ef1b16f106b25..c269e0cc9400fccee0c2f59007d016461e9603ca 100644 (file)
@@ -160,10 +160,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR remainder (3),
 .BR remquo (3)
index 5001084ec2f00f4113ffca08b942ad2478023776..ca2a33770911e2e825144ff4935451d126701ce3 100644 (file)
@@ -66,10 +66,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR fdim (3),
 .BR fmin (3)
index 744865bc7c09f9069e23b4904a89e283370b3566..c623878befa0767ba02778b01ec2ef9b4e7c026a 100644 (file)
@@ -164,13 +164,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR fmemopen ()
-was already available in glibc 1.0.x.
 .SH STANDARDS
 POSIX.1-2008.
-This function is not specified in POSIX.1-2001,
-and is not widely available on other systems.
+.SH HISTORY
+glibc 1.0.x.
+POSIX.1-2008.
 .PP
 POSIX.1-2008 specifies that \[aq]b\[aq] in
 .I mode
@@ -179,12 +177,6 @@ However, Technical Corrigendum 1
 .\" http://austingroupbugs.net/view.php?id=396
 adjusts the standard to allow implementation-specific treatment for this case,
 thus permitting the glibc treatment of \[aq]b\[aq].
-.SH NOTES
-There is no file descriptor associated with the file stream
-returned by this function
-(i.e.,
-.BR fileno (3)
-will return an error if called on the returned stream).
 .PP
 With glibc 2.22, binary mode (see below) was removed,
 many longstanding bugs in the implementation of
@@ -220,6 +212,12 @@ by
 Binary mode was removed in glibc 2.22; a \[aq]b\[aq] specified in
 .I mode
 has no effect.
+.SH NOTES
+There is no file descriptor associated with the file stream
+returned by this function
+(i.e.,
+.BR fileno (3)
+will return an error if called on the returned stream).
 .SH BUGS
 Before glibc 2.22, if
 .I size
index d952bf10464064589bad393871a1999d03703382..06021a4ed93c66d5b5414f3eeb21e2c71b6a6be0 100644 (file)
@@ -66,10 +66,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR fdim (3),
 .BR fmax (3)
index 57546fe32ed949918e1aa3899c3a4bfb2eaa8ef6..5e01ca474160e6be9e900eebd7c2f92cb36626c6 100644 (file)
@@ -137,7 +137,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index ec964948c6fc9ce0879252be45debd3f0759cfd0..97f74c569c96d1d36329adc67567a773d7c10022 100644 (file)
@@ -249,26 +249,26 @@ Since glibc 2.16,
 the
 .BR fmtmsg ()
 function uses a lock to protect the static variable, so it is thread-safe.
-.SH VERSIONS
-.BR fmtmsg ()
-is provided since glibc 2.1.
 .SH STANDARDS
-The functions
+.TP
 .BR fmtmsg ()
-and
-.BR addseverity (3),
-and environment variables
+.TQ
 .B MSGVERB
-and
-.B SEV_LEVEL
-come from System V.
-.PP
-The function
+POSIX.1-2008.
+.SH HISTORY
+.TP
 .BR fmtmsg ()
-and the environment variable
+System V.
+POSIX.1-2001 and POSIX.1-2008.
+glibc 2.1.
+.TP
 .B MSGVERB
-are described in POSIX.1-2001 and POSIX.1-2008.
-.SH NOTES
+System V.
+POSIX.1-2001 and POSIX.1-2008.
+.TP
+.B SEV_LEVEL
+System V.
+.PP
 System V and UnixWare man pages tell us that these functions
 have been replaced by "pfmt() and addsev()" or by "pfmt(),
 vpfmt(), lfmt(), and vlfmt()", and will be removed later.
index 583f9111e6d354d8cea1a44d7a7278e21516cfdf..b0dae22a32722b7c2a516415b7740e2f673f7d76 100644 (file)
@@ -122,10 +122,20 @@ T}        Thread safety   MT-Safe env locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, POSIX.2.
-The
-.BR FNM_FILE_NAME ", " FNM_LEADING_DIR ", and " FNM_CASEFOLD
-flags are GNU extensions.
+.TP
+.BR fnmatch ()
+POSIX.1-2008.
+.TP
+.B FNM_FILE_NAME
+.TQ
+.B FNM_LEADING_DIR
+.TQ
+.B FNM_CASEFOLD
+GNU.
+.SH HISTORY
+.TP
+.BR fnmatch ()
+POSIX.1-2001, POSIX.2.
 .SH SEE ALSO
 .BR sh (1),
 .BR glob (3),
index 2cdaa387ce02bcfa8193e2bbed7d8550c5e3b123..4d9b74d704da49d842935ecbed1e0ceabd81da66 100644 (file)
@@ -289,12 +289,23 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-.BR fopen (),
-.BR freopen ():
-POSIX.1-2001, POSIX.1-2008, C89, C99.
-.PP
-.BR fdopen ():
-POSIX.1-2001, POSIX.1-2008.
+.TP
+.BR fopen ()
+.TQ
+.BR freopen ()
+C11, POSIX.1-2008.
+.TP
+.BR fdopen ()
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR fopen ()
+.TQ
+.BR freopen ()
+POSIX.1-2001, C89.
+.TP
+.BR fdopen ()
+POSIX.1-2001.
 .SH NOTES
 .SS glibc notes
 The GNU C library allows the following extensions for the string specified in
index 6c82ce6be26327f45ae6458a9d81c3cc8813ba35..36616af1280810f57f88e83fbd0d29266d6c42d3 100644 (file)
@@ -260,7 +260,7 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-This function is a nonstandard GNU extension.
+GNU.
 .SH EXAMPLES
 The program below implements a custom stream whose functionality
 is similar (but not identical) to that available via
index ec42d95bbb4c6b205aea48e8aee1e0c421fb3234..a36f07930f2368360217c097154b0958952ad046 100644 (file)
@@ -256,7 +256,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 Files with name lengths longer than the value returned for
 .I name
index 264090e369c194b46032881384fb97ab04120b3f..0dd6ead84a588dca5ca6a843084ecf231be102a3 100644 (file)
@@ -126,19 +126,21 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .PP
-For
-.BR isinf (),
-the standards merely say that the return value is nonzero
-if and only if the argument has an infinite value.
-.SH NOTES
 In glibc 2.01 and earlier,
 .BR isinf ()
 returns a nonzero value (actually: 1) if
 .I x
 is positive infinity or negative infinity.
 (This is all that C99 requires.)
+.SH NOTES
+For
+.BR isinf (),
+the standards merely say that the return value is nonzero
+if and only if the argument has an infinite value.
 .SH SEE ALSO
 .BR finite (3),
 .BR INFINITY (3),
index 43d8084a6adaca957439b6122f28e7ed4f704458..c84d9c5f2f91e8093d64a2dbd369863f59eb25a1 100644 (file)
@@ -68,13 +68,15 @@ T}  Thread safety   MT-Safe race:stream
 .ad
 .sp 1
 .SH STANDARDS
-These functions are nonstandard and not portable.
-The function
+None.
+.SH HISTORY
+.TP
 .BR fpurge ()
-was introduced in 4.4BSD and is not available under Linux.
-The function
+4.4BSD.
+Not available under Linux.
+.TP
 .BR __fpurge ()
-was introduced in Solaris, and is present in glibc 2.1.95 and later.
+Solaris, glibc 2.1.95.
 .SH NOTES
 Usually it is a mistake to want to discard input buffers.
 .SH SEE ALSO
index 4b510c9df1308bf9344944c57df08814c839074b..07d0c390f214fde5e0562a8e830d08669fd22c45 100644 (file)
@@ -83,7 +83,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH NOTES
 The behavior of
 .BR fputwc ()
index 4342e1ae09cc7b8baf2b6658aa4bcf3c99a3707e..cad8e11fc15fffa310dbd720ec509de201bbc6b6 100644 (file)
@@ -58,7 +58,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR fputws ()
index 160ea5f44823bb39a2168904fc67df2ad5a4edab..7f4dac813b8b8d8780d264e9447e365b6f8404d3 100644 (file)
@@ -98,7 +98,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89.
 .SH EXAMPLES
 The program below demonstrates the use of
 .BR fread ()
index 8a36927104e7c30cea8f606039829a1b55eb232f..79aa513428f13609558d8b5930bc333c93225ca2 100644 (file)
@@ -97,7 +97,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 7c211a8de0e82b1d222ca8df053c8b2a9f638066..2a32c7df1b8a2350c8f5318ae26723b41ab56fbf 100644 (file)
@@ -172,7 +172,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89.
 .SH SEE ALSO
 .BR lseek (2),
 .BR fseeko (3)
index fbd58863c0bdc4e5fb9385931ca82963714694ee..f071f0e1c7748f23c9c0e113c79f170c02ed1c87 100644 (file)
@@ -91,10 +91,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions are available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SUSv2.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001, SUSv2.
 .SH NOTES
 The declarations of these functions can also be obtained by defining
 the obsolete
index 5e6430f647558be9cc71675151987f6e3bcff07a..a54eb8a8273410af8b2aa4cb7f3593091c1e25be 100644 (file)
@@ -77,19 +77,12 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-Starting with glibc 2.33, the
-.BR ftime ()
-function and the
-.I <sys/timeb.h>
-header have been removed.
-To support old binaries,
-glibc continues to provide a compatibility symbol for
-applications linked against glibc 2.32 and earlier.
 .SH STANDARDS
+None.
+.SH HISTORY
+Removed in glibc 2.33.
 4.2BSD, POSIX.1-2001.
-POSIX.1-2008 removes the specification of
-.BR ftime ().
+Removed in POSIX.1-2008.
 .PP
 This function is obsolete.
 Don't use it.
index 40797d0f4d3dc71ce34308c99cc81cb5b4a98acb..ec0c0832ca686e569f2fc536d4c41b08bb6c7dd6 100644 (file)
@@ -68,7 +68,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 On some ancient systems, the prototype was:
 .PP
index bf17849b9b2ee0ca25a0da1756e3d804928d1436..66b2fcab36b55a4eb55e1937bc9d872c684e5797 100644 (file)
@@ -782,9 +782,10 @@ T} Thread safety   MT-Unsafe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions are available in Linux since glibc2.
 .SH STANDARDS
+None.
+.SH HISTORY
+glibc 2.
 4.4BSD.
 .SH BUGS
 Before glibc 2.23,
index 561d27dd9f948a0b1fb4956207ac5fe1637c2273..59931bb3bf9005698b2cf98d788a6af151d1b204 100644 (file)
@@ -371,28 +371,10 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-.BR nftw ()
-is available since glibc 2.1.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, SUSv1.
-POSIX.1-2008 marks
-.BR ftw ()
-as obsolete.
-.SH NOTES
-POSIX.1-2008 notes that the results are unspecified if
-.I fn
-does not preserve the current working directory.
-.PP
-The function
-.BR nftw ()
-and the use of \fBFTW_SL\fP with
-.BR ftw ()
-were introduced in SUSv1.
-.PP
 In some implementations (e.g., glibc),
 .BR ftw ()
-will never use \fBFTW_SL\fP, on other systems \fBFTW_SL\fP occurs only
-for symbolic links that do not point to an existing file,
+will never use \fBFTW_SL\fP; on other systems \fBFTW_SL\fP occurs only
+for symbolic links that do not point to an existing file;
 and again on other systems
 .BR ftw ()
 will use \fBFTW_SL\fP for each symbolic link.
@@ -406,6 +388,24 @@ is passed in
 .IR typeflag .
 For predictable results, use
 .BR nftw ().
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR ftw ()
+POSIX.1-2001, SVr4, SUSv1.
+POSIX.1-2008 marks it as obsolete.
+.TP
+.BR nftw ()
+glibc 2.1.
+POSIX.1-2001, SUSv1.
+.TP
+.B FTW_SL
+POSIX.1-2001, SUSv1.
+.SH NOTES
+POSIX.1-2008 notes that the results are unspecified if
+.I fn
+does not preserve the current working directory.
 .SH BUGS
 According to POSIX.1-2008, when the
 .I typeflag
index 3cf660d68590dcabcc1fa6c021325ca5aebfd02e..f7794c0094a83bdacd27543a14f2ad5524f6250c 100644 (file)
@@ -89,16 +89,20 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
+.SH STANDARDS
+Linux, BSD.
+.SH HISTORY
+.TP
 .BR futimes ()
-is available since glibc 2.3.
+glibc 2.3.
+.TP
 .BR lutimes ()
-is available since glibc 2.6, and is implemented using the
+glibc 2.6.
+.SH NOTES
+.BR lutimes ()
+is implemented using the
 .BR utimensat (2)
-system call, which is supported since Linux 2.6.22.
-.SH STANDARDS
-These functions are not specified in any standard.
-Other than Linux, they are available only on the BSDs.
+system call.
 .SH SEE ALSO
 .BR utime (2),
 .BR utimensat (2),
index 867c1dce272eb9a5166d8081e51f36567d31ad17..14eeb75bc8a8a01fdf62601e513ecf7db73d8a2b 100644 (file)
@@ -67,7 +67,9 @@ A positive return value means wide-character oriented.
 A negative return value means byte oriented.
 A return value of zero means undecided.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 Wide-character output to a byte oriented stream can be performed through the
 .BR fprintf (3)
index 9c9e9ea21a4708affa20d5affb90e394a7952350..54b8424f71c3f5087eb79495a848e9d96ce004da 100644 (file)
@@ -84,11 +84,13 @@ T}  Thread safety   MT-Unsafe race:signgam
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
+SVID 2.
+.PP
 Because of historical variations in behavior across systems,
 this function is not specified in any recent standard.
-It was documented in SVID 2.
-.SH NOTES
-.SS History
+.PP
 4.2BSD had a
 .BR gamma ()
 that computed
index ea613e954365556d33ff318573056c55c087a144..b8109839a65174a672f4bff3d0c44c9f12956011 100644 (file)
@@ -70,9 +70,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 Marked as LEGACY in POSIX.1-2001.
-POSIX.1-2008 removes the specification of
-.BR gcvt (),
+POSIX.1-2008 removed it,
 recommending the use of
 .BR sprintf (3)
 instead (though
index b34a77e03d06ff479bfdb5030616cc1a77345938..092c6affa84ed7da1474a5631835493497395714 100644 (file)
@@ -49,7 +49,7 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-These functions are GNU extensions.
+GNU.
 .SH NOTES
 The current
 .\" glibc 2.15
index bb57a40c817dcd7e833fbe2cc13c5148e4fd5e1d..78e79f06fc1a5d473822b978e34a442e63f79ac2 100644 (file)
@@ -39,8 +39,8 @@ The system could not provide the required information
 .I /proc
 filesystem was not mounted).
 .SH STANDARDS
-These functions are GNU extensions.
-.SH NOTES
+GNU.
+.SH HISTORY
 Before glibc 2.23,
 these functions obtained the required information by scanning the
 .I MemTotal
@@ -51,7 +51,7 @@ fields of
 Since glibc 2.23,
 these functions obtain the required information by calling
 .BR sysinfo (2).
-.PP
+.SH NOTES
 The following
 .BR sysconf (3)
 calls provide a portable means of obtaining the same information as the
index b98e3616afad78bf42a4c330f2922f01221b528e..5af0709fc3cd3ee7f3005de907d188e31d11d4df 100644 (file)
@@ -598,25 +598,7 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-The
-.BR getaddrinfo ()
-function is documented in RFC\ 2553.
-.SH NOTES
-.BR getaddrinfo ()
-supports the
-.IB address % scope-id
-notation for specifying the IPv6 scope-ID.
-.PP
-.BR AI_ADDRCONFIG ,
-.BR AI_ALL ,
-and
-.B AI_V4MAPPED
-are available since glibc 2.3.3.
-.B AI_NUMERICSERV
-is available since glibc 2.3.4.
-.PP
+.SH VERSIONS
 According to POSIX.1, specifying
 .\" POSIX.1-2001, POSIX.1-2008
 .I hints
@@ -627,6 +609,28 @@ The GNU C library instead assumes a value of
 .B (AI_V4MAPPED\~|\~AI_ADDRCONFIG)
 for this case,
 since this value is considered an improvement on the specification.
+.SH STANDARDS
+POSIX.1-2008.
+.TP
+.BR getaddrinfo ()
+RFC\ 2553.
+.SH HISTORY
+POSIX.1-2001.
+.TP
+.B AI_ADDRCONFIG
+.TQ
+.B AI_ALL
+.TQ
+.B AI_V4MAPPED
+glibc 2.3.3.
+.TP
+.B AI_NUMERICSERV
+glibc 2.3.4.
+.SH NOTES
+.BR getaddrinfo ()
+supports the
+.IB address % scope-id
+notation for specifying the IPv6 scope-ID.
 .SH EXAMPLES
 .\" getnameinfo.3 refers to this example
 .\" socket.2 refers to this example
index f92a1bea1b929936691c5ec9ef17e2bc1626d82d..525720812d8b5966008efec9f7cb955195d0f824 100644 (file)
@@ -304,9 +304,10 @@ T} Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-These functions are GNU extensions;
-they first appeared in glibc 2.2.3.
-.SH NOTES
+GNU.
+.SH HISTORY
+glibc 2.2.3.
+.PP
 The interface of
 .BR getaddrinfo_a ()
 was modeled after the
index 465716ba53edcbdacf983a6a79ca0f6c8e9d01bf..a0e2e5df50e97d67d69deea894d474798612f958 100644 (file)
@@ -227,12 +227,10 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR getauxval ()
-function was added in glibc 2.16.
 .SH STANDARDS
-This function is a nonstandard glibc extension.
+GNU.
+.SH HISTORY
+glibc 2.16.
 .SH NOTES
 The primary consumer of the information in the auxiliary vector
 is the dynamic linker,
index c9561fbf4b79a36b02ea53596a8983febd468c92..3a35afca1026e675086004ed29ed9de7ead06bfe 100644 (file)
@@ -157,9 +157,11 @@ T} Thread safety   MT-Safe race:ucp
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 SUSv2, POSIX.1-2001.
-POSIX.1-2008 removes the specification of
-.BR getcontext (),
+.PP
+POSIX.1-2008 removes these functions,
 citing portability issues, and
 recommending that applications be rewritten to use POSIX threads instead.
 .SH NOTES
index e591b439ea96b9d7601cc8a26bfbd6aeb51a7e8f..6ad82922055e59e4cc42dfe1fa278917c2a58e50 100644 (file)
@@ -203,48 +203,17 @@ T}        Thread safety   MT-Safe env
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-.BR getcwd ()
-conforms to POSIX.1-2001.
-Note however that POSIX.1-2001 leaves the behavior of
+.SH VERSIONS
+POSIX.1-2001 leaves the behavior of
 .BR getcwd ()
 unspecified if
 .I buf
 is NULL.
 .PP
-.BR getwd ()
-is present in POSIX.1-2001, but marked LEGACY.
-POSIX.1-2008 removes the specification of
-.BR getwd ().
-Use
-.BR getcwd ()
-instead.
 POSIX.1-2001
 does not define any errors for
 .BR getwd ().
-.PP
-.BR get_current_dir_name ()
-is a GNU extension.
-.SH NOTES
-Under Linux, these functions make use of the
-.BR getcwd ()
-system call (available since Linux 2.1.92).
-On older systems they would query
-.IR /proc/self/cwd .
-If both system call and proc filesystem are missing, a
-generic implementation is called.
-Only in that case can
-these calls fail under Linux with
-.BR EACCES .
-.PP
-These functions are often used to save the location of the current working
-directory for the purpose of returning to it later.
-Opening the current
-directory (".") and calling
-.BR fchdir (2)
-to return is usually a faster and more reliable alternative when sufficiently
-many file descriptors are available, especially on platforms other than Linux.
-.\"
+.SH VERSIONS
 .SS C library/kernel differences
 On Linux, the kernel provides a
 .BR getcwd ()
@@ -282,6 +251,46 @@ functions described in this page
 should consider checking whether the returned pathname starts
 with '/' or '(' to avoid misinterpreting an unreachable path
 as a relative pathname.
+.SH STANDARDS
+.TP
+.BR getcwd ()
+POSIX.1-2008.
+.TP
+.BR get_current_dir_name ()
+GNU.
+.TP
+.BR getwd ()
+None.
+.SH HISTORY
+.TP
+.BR getcwd ()
+POSIX.1-2001.
+.TP
+.BR getwd ()
+POSIX.1-2001, but marked LEGACY.
+Removed in POSIX.1-2008.
+Use
+.BR getcwd ()
+instead.
+.PP
+Under Linux, these functions make use of the
+.BR getcwd ()
+system call (available since Linux 2.1.92).
+On older systems they would query
+.IR /proc/self/cwd .
+If both system call and proc filesystem are missing, a
+generic implementation is called.
+Only in that case can
+these calls fail under Linux with
+.BR EACCES .
+.SH NOTES
+These functions are often used to save the location of the current working
+directory for the purpose of returning to it later.
+Opening the current
+directory (".") and calling
+.BR fchdir (2)
+to return is usually a faster and more reliable alternative when sufficiently
+many file descriptors are available, especially on platforms other than Linux.
 .SH BUGS
 Since the Linux 2.6.36 change that added "(unreachable)" in the
 circumstances described above, the glibc implementation of
index bbb14426790b91b2802c4f00b98134a8228615ee..b84199898635551e9443966c889259be63181a65 100644 (file)
@@ -201,9 +201,7 @@ T}
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 The POSIX.1 specification for
 .BR strptime (3)
 contains conversion specifications using the
@@ -217,6 +215,10 @@ In glibc,
 is implemented using
 .BR strptime (3),
 so that precisely the same conversions are supported by both.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH EXAMPLES
 The program below calls
 .BR getdate ()
index a6ce0e840d5aff6600c4102c9c372ef5508c7cf5..6d28b0508d9a8192ab01463312e9556784a90f80 100644 (file)
@@ -71,8 +71,8 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-Not in POSIX.1.
-Present on the BSDs, and a few other systems.
+BSD.
+.SH NOTES
 Use
 .BR opendir (3)
 and
index cb433c6f0ca93d77d2bee14158ca6a2fe4241bfc..826fa9a2b542ba6e2dbbcf47fe59b9a02059a769 100644 (file)
@@ -62,15 +62,7 @@ T}   Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-SVr4, 4.4BSD (the
-.BR getdtablesize ()
-function first appeared in 4.2BSD).
-It is not specified in POSIX.1;
-portable applications should employ
-.I sysconf(_SC_OPEN_MAX)
-instead of this call.
-.SH NOTES
+.SH VERSIONS
 The glibc version of
 .BR getdtablesize ()
 calls
@@ -83,6 +75,15 @@ when that fails.
 .\" The libc4 and libc5 versions return
 .\" .B OPEN_MAX
 .\" (set to 256 since Linux 0.98.4).
+.PP
+Portable applications should employ
+.I sysconf(_SC_OPEN_MAX)
+instead of this call.
+.SH STANDARDS
+None.
+.SH HISTORY
+SVr4, 4.4BSD
+(first appeared in 4.2BSD).
 .SH SEE ALSO
 .BR close (2),
 .BR dup (2),
index f105a0f68e8ddf88fcbff76425aa0b155d8d1946..dc06aa3f5fe9dc15937a0ecfc349e635cbe818e7 100644 (file)
@@ -66,13 +66,11 @@ with random data.
 This kernel version does not implement the
 .BR getrandom (2)
 system call required to implement this function.
-.SH VERSIONS
-The
-.BR getentropy ()
-function first appeared in glibc 2.25.
 .SH STANDARDS
-This function is nonstandard.
-It is also present on OpenBSD.
+None.
+.SH HISTORY
+glibc 2.25.
+OpenBSD.
 .SH NOTES
 The
 .BR getentropy ()
index 7e4b45542d444a4315e47231c47a9f9fc6ba8999..edf7d9ec8cf37e464866a5545b2181a2196ffbcc 100644 (file)
@@ -93,15 +93,20 @@ T}  Thread safety   MT-Safe env
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR secure_getenv ()
-first appeared in glibc 2.17.
 .SH STANDARDS
-.BR getenv ():
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
-.PP
+.TP
+.BR getenv ()
+C11, POSIX.1-2008.
+.TP
+.BR secure_getenv ()
+GNU.
+.SH HISTORY
+.TP
+.BR getenv ()
+POSIX.1-2001, C89, C99, SVr4, 4.3BSD.
+.TP
 .BR secure_getenv ()
-is a GNU extension.
+glibc 2.17.
 .SH NOTES
 The strings in the environment list are of the form \fIname=value\fP.
 .PP
index b8d587124a46aceb41eef4569227acadca1ac276..8d7f84609d722588dcabb5a72b7b480dde7163f1 100644 (file)
@@ -91,10 +91,6 @@ while
 .BR setfsent ()
 returns 1.
 Upon failure or end-of-file, these functions return NULL and 0, respectively.
-.\" .SH HISTORY
-.\" The
-.\" .BR getfsent ()
-.\" function appeared in 4.0BSD; the other four functions appeared in 4.3BSD.
 .SH ATTRIBUTES
 For an explanation of the terms used in this section, see
 .BR attributes (7).
@@ -122,9 +118,8 @@ T}
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-These functions are not in POSIX.1.
-Several operating systems have them, for example,
+.SH VERSIONS
+Several operating systems have these functions, for example,
 *BSD, SunOS, Digital UNIX, AIX (which also has a
 .BR getfstype ()).
 HP-UX has functions of the same names,
@@ -134,6 +129,12 @@ instead of a
 .IR "struct fstab" ,
 and calls these functions obsolete, superseded by
 .BR getmntent (3).
+.SH STANDARDS
+None.
+.SH HISTORY
+The
+.BR getfsent ()
+function appeared in 4.0BSD; the other four functions appeared in 4.3BSD.
 .SH NOTES
 These functions are not thread-safe.
 .PP
index 6847d2c5633078b254c295ffd5933f6c1d408d69..d48ad5b8d45ca142e0aaa7acdd8ff9fcf0634630 100644 (file)
@@ -190,7 +190,9 @@ or
 are used in parallel in different threads of a program,
 then data races could occur.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR fgetgrent (3),
 .BR getgrent_r (3),
index f2ac1050f567f742799847bd0ce192b51e9eeb6f..3fef0f39915a384d82739030c58583245b83020f 100644 (file)
@@ -141,10 +141,7 @@ or
 .BR getgrent_r ()
 are used in parallel in different threads of a program,
 then data races could occur.
-.SH STANDARDS
-These functions are GNU extensions, done in a style resembling
-the POSIX version of functions like
-.BR getpwnam_r (3).
+.SH VERSIONS
 Other systems use the prototype
 .PP
 .in +4n
@@ -162,6 +159,12 @@ int getgrent_r(struct group *grp, char *buf, int buflen,
                FILE **gr_fp);
 .EE
 .in
+.SH STANDARDS
+GNU.
+.SH HISTORY
+These functions are done in a style resembling
+the POSIX version of functions like
+.BR getpwnam_r (3).
 .SH NOTES
 The function
 .BR getgrent_r ()
index 51ec2d028b83d80a0904eb9df22fe5979cf4fcab..3908671162f46c327a231e4bb91103af8fd94c7e 100644 (file)
@@ -220,9 +220,7 @@ T}  Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
-.SH NOTES
+.SH VERSIONS
 The formulation given above under "RETURN VALUE" is from POSIX.1.
 .\" POSIX.1-2001, POSIX.1-2008
 It does not call "not found" an error, hence does not specify what value
@@ -244,6 +242,10 @@ situation: 0, ENOENT, EBADF, ESRCH, EWOULDBLOCK, EPERM, and probably others.
 .\" FreeBSD 4.8, OpenBSD 3.2, NetBSD 1.6 - give EPERM
 .\" SunOS 5.8 - gives EBADF
 .\" Tru64 5.1b, HP-UX-11i, SunOS 5.7 - give 0
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR endgrent (3),
 .BR fgetgrent (3),
index d57532195752124ee5a073716127c47b41d956e2..470a001c8a1a4605ee10b8b9280dc425d8f7afbc 100644 (file)
@@ -100,10 +100,10 @@ T}        Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-This function is present since glibc 2.2.4.
 .SH STANDARDS
-This function is nonstandard; it appears on most BSDs.
+None.
+.SH HISTORY
+glibc 2.2.4.
 .SH BUGS
 Before glibc 2.3.3,
 the implementation of this function contains a buffer-overrun bug:
index 99eb29728e800049464dbbbe77bbcdf5f1c48361..492e22d692c8aa1b420e8cf73c0e28760b89f792 100644 (file)
@@ -381,24 +381,35 @@ or
 are used in parallel in different threads of a program,
 then data races could occur.
 .SH STANDARDS
-POSIX.1-2001 specifies
-.BR gethostbyname (),
-.BR gethostbyaddr (),
-.BR sethostent (),
-.BR endhostent (),
-.BR gethostent (),
-and
-.IR h_errno ;
-.BR gethostbyname (),
-.BR gethostbyaddr (),
-and
+.TP
+.BR sethostent ()
+.TQ
+.BR endhostent ()
+.TQ
+.BR gethostent ()
+POSIX.1-2008.
+.TP
+.BR gethostent_r ()
+GNU.
+.TP
+Others:
+None.
+.SH HISTORY
+.TP
+.BR sethostent ()
+.TQ
+.BR endhostent ()
+.TQ
+.BR gethostent ()
+POSIX.1-2001.
+.TP
+.BR gethostbyname ()
+.TQ
+.BR gethostbyaddr ()
+.TQ
 .I h_errno
-are marked obsolescent in that standard.
-POSIX.1-2008 removes the specifications of
-.BR gethostbyname (),
-.BR gethostbyaddr (),
-and
-.IR h_errno ,
+Marked obsolescent in POSIX.1-2001.
+Removed in POSIX.1-2008,
 recommending the use of
 .BR getaddrinfo (3)
 and
index 13da0523fa0455d84dd4d4e61e9410b8739c14b0..4c01bb08f0f9a2176cea989b7290570e94ce390b 100644 (file)
@@ -106,18 +106,7 @@ T}
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-4.2BSD; these functions were dropped in 4.4BSD.
-SVr4 includes
-.BR gethostid ()
-but not
-.BR sethostid ().
-.PP
-POSIX.1-2001 and POSIX.1-2008 specify
-.BR gethostid ()
-but not
-.BR sethostid ().
-.SH NOTES
+.SH VERSIONS
 In the glibc implementation, the
 .I hostid
 is stored in the file
@@ -137,6 +126,19 @@ passes that hostname to
 in order to obtain the host's IPv4 address,
 and returns a value obtained by bit-twiddling the IPv4 address.
 (This value may not be unique.)
+.SH STANDARDS
+.TP
+.BR gethostid ()
+POSIX.1-2008.
+.TP
+.BR sethostid ()
+None.
+.SH HISTORY
+4.2BSD; dropped in 4.4BSD.
+SVr4 and POSIX.1-2001 include
+.BR gethostid ()
+but not
+.BR sethostid ().
 .SH BUGS
 It is impossible to ensure that the identifier is globally unique.
 .SH SEE ALSO
index ab1df42c1a596f2251d66f40f80355b9511e7e80..d7ffe52618edd9fd77646e02db30e9e7dabb4599 100644 (file)
@@ -160,16 +160,9 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR getifaddrs ()
-function first appeared in glibc 2.3, but before glibc 2.3.3,
-the implementation supported only IPv4 addresses;
-IPv6 support was added in glibc 2.3.3.
-Support of address families other than IPv4 is available only
-on kernels that support netlink.
 .SH STANDARDS
-Not in POSIX.1.
+None.
+.SH HISTORY
 This function first appeared in BSDi and is
 present on the BSD systems, but with slightly different
 semantics documented\[em]returning one entry per interface,
@@ -188,6 +181,13 @@ differs on various systems.
 .\" appears to be confused and obsolete on this point.
 .\" i.e., commonly it still says one of them will be NULL, even if
 .\" the ifa_ifu union is already present
+.PP
+.BR getifaddrs ()
+first appeared in glibc 2.3, but before glibc 2.3.3,
+the implementation supported only IPv4 addresses;
+IPv6 support was added in glibc 2.3.3.
+Support of address families other than IPv4 is available only
+on kernels that support netlink.
 .SH NOTES
 The addresses returned on Linux will usually be the IPv4 and IPv6 addresses
 assigned to the interface, but also one
index ed83ed5d2c8edff765bf28f59ac373bdbccb17b9..3c5f51fc94eda45653dc7cd3a4f0963e7303e4cb 100644 (file)
@@ -238,11 +238,12 @@ This is an array of one or more pointers to network address structures for the
 network host.
 The array is terminated by a null pointer.
 .SH STANDARDS
-RFC\ 2553.
+None.
+.SH HISTORY
 .\" Not in POSIX.1-2001.
-.SH NOTES
-These functions were present in glibc 2.1.91-95, but were
-removed again.
+RFC\ 2553.
+.PP
+Present in glibc 2.1.91-95, but removed again.
 Several UNIX-like systems support them, but all
 call them deprecated.
 .SH SEE ALSO
index 9ba0681f198c0427a36ef63501b554231cf807fe..b3e6ca4fe863c89229c434a07b21ab3f4a9a1c9d 100644 (file)
@@ -137,12 +137,9 @@ T} Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-Both
-.BR getline ()
-and
-.BR getdelim ()
-were originally GNU extensions.
-They were standardized in POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+GNU, POSIX.1-2008.
 .SH EXAMPLES
 .\" SRC BEGIN (getline.c)
 .EX
index 332bb12b8e49988467c1428c44df3e48af28984a..23faa258e42b454dcd09c7962190673f2298bd5b 100644 (file)
@@ -47,11 +47,6 @@ over the last 1, 5, and 15 minutes, respectively.
 .SH RETURN VALUE
 If the load average was unobtainable, \-1 is returned; otherwise,
 the number of samples actually retrieved is returned.
-.\" .SH HISTORY
-.\" The
-.\" BR getloadavg ()
-.\" function appeared in
-.\" 4.3BSD Reno .
 .SH ATTRIBUTES
 For an explanation of the terms used in this section, see
 .BR attributes (7).
@@ -69,12 +64,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-This function is available since glibc 2.2.
 .SH STANDARDS
-Not in POSIX.1.
-Present on the BSDs and Solaris.
-.\" mdoc seems to have a bug - there must be no newline here
+BSD.
+.SH HISTORY
+4.3BSD-Reno, Solaris.
+glibc 2.2.
 .SH SEE ALSO
 .BR uptime (1),
 .BR proc (5)
index 283a3c7bd0de0f48e4fbd722b379dab4de76fb50..0d9fc59a02c98a9532ef9fd47a7ea668751f68d2 100644 (file)
@@ -178,29 +178,40 @@ and
 .BR getlogin_r ()
 call those functions,
 so we use race:utent to remind users.
-.SH STANDARDS
+.SH VERSIONS
+OpenBSD has
 .BR getlogin ()
 and
+.BR setlogin (),
+and a username
+associated with a session, even if it has no controlling terminal.
+.SH STANDARDS
+.TP
+.BR getlogin ()
+.TQ
+.BR getlogin_r ()
+POSIX.1-2008.
+.TP
+.BR cuserid ()
+None.
+.SH STANDARDS
+.TP
+.BR getlogin ()
+.TQ
 .BR getlogin_r ():
-POSIX.1-2001, POSIX.1-2008.
-.PP
+POSIX.1-2001.
+OpenBSD.
+.TP
+.BR cuserid ()
+System V, POSIX.1-1988.
+Removed in POSIX.1-1990.
+SUSv2.
+Removed in POSIX.1-2001.
+.IP
 System V has a
 .BR cuserid ()
 function which uses the real
 user ID rather than the effective user ID.
-The
-.BR cuserid ()
-function
-was included in the 1988 version of POSIX,
-but removed from the 1990 version.
-It was present in SUSv2, but removed in POSIX.1-2001.
-.PP
-OpenBSD has
-.BR getlogin ()
-and
-.BR setlogin (),
-and a username
-associated with a session, even if it has no controlling terminal.
 .SH BUGS
 Unfortunately, it is often rather easy to fool
 .BR getlogin ().
index 7e73f5becf3d3ef3c5cc33c798d074d20129e151..5c0cfde0a94dda34cf3781562f2a9ddd49f18666 100644 (file)
@@ -232,13 +232,15 @@ T}        Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 The nonreentrant functions are from SunOS 4.1.3.
 A routine
 .BR getmntent_r ()
 was introduced in HP-UX 10, but it returns an
 .IR int .
 The prototype shown above is glibc-only.
-.SH NOTES
+.PP
 System V also has a
 .BR getmntent ()
 function but the calling sequence
index ff9d88d115531697e966a32654b167e0fa367142..6e4331884e2f50ed84461b8cc2f6437b9c2323ee 100644 (file)
@@ -228,11 +228,19 @@ T}        Thread safety   MT-Safe env locale
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR getnameinfo ()
-is provided since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, RFC\ 2553.
+POSIX.1-2008.
+RFC\ 2553.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
+.PP
+Before glibc 2.2, the
+.I hostlen
+and
+.I servlen
+arguments were typed as
+.IR size_t .
 .SH NOTES
 In order to assist the programmer in choosing reasonable sizes
 for the supplied buffers,
@@ -264,13 +272,6 @@ in recent versions of BIND's
 header file.
 The latter is a guess based on the services listed
 in the current Assigned Numbers RFC.
-.PP
-Before glibc 2.2, the
-.I hostlen
-and
-.I servlen
-arguments were typed as
-.IR size_t .
 .SH EXAMPLES
 The following code tries to get the numeric hostname and service name,
 for a given socket address.
index 6957079679cbbc60648268cadf9d67d928e8341b..31799d0df602f335bebfc1b36b3bb4cbf2646a87 100644 (file)
@@ -175,8 +175,10 @@ or
 are used in parallel in different threads of a program,
 then data races could occur.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
-.SH NOTES
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD.
+.PP
 Before glibc 2.2, the
 .I net
 argument of
index 3b3927b5138cbd21150019185e9c89e659f4b7e8..f6e19360fdf8fdd98f2a2dd616fe073046760938 100644 (file)
@@ -143,10 +143,11 @@ T}        Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-These functions are GNU extensions.
+.SH VERSIONS
 Functions with similar names exist on some other systems,
 though typically with different calling signatures.
+.SH STANDARDS
+GNU.
 .SH SEE ALSO
 .BR getnetent (3),
 .BR networks (5)
index f887f2dabd9eec22fdf61933983e3af7d1b6c5e8..b04b52631c424e2a755331faad0501f66a2c3566 100644 (file)
@@ -348,11 +348,9 @@ T}
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-.TP
-.BR getopt ():
-POSIX.1-2001, POSIX.1-2008, and POSIX.2,
-provided the environment variable
+.SH VERSIONS
+.BR getopt ()
+conforms to POSIX provided the environment variable
 .B POSIXLY_CORRECT
 is set.
 Otherwise, the elements of \fIargv\fP aren't really
@@ -361,11 +359,24 @@ because these functions permute them.
 Nevertheless,
 .I const
 is used in the prototype to be compatible with other systems.
+.SH STANDARDS
+.TP
+.BR getopt ()
+POSIX.1-2008.
+.TP
+.BR getopt_long ()
+.TQ
+.BR getopt_long_only ()
+GNU.
 .IP
 The use of \[aq]+\[aq] and \[aq]\-\[aq] in
 .I optstring
 is a GNU extension.
-.IP
+.SH HISTORY
+.TP
+.BR getopt ()
+POSIX.1-2001, and POSIX.2.
+.PP
 On some older implementations,
 .BR getopt ()
 was declared in
@@ -379,9 +390,6 @@ POSIX.1-1996 marked the use of
 for this purpose as LEGACY.
 POSIX.1-2001 does not require the declaration to appear in
 .IR <stdio.h> .
-.TP
-.BR getopt_long "() and " getopt_long_only ():
-These functions are GNU extensions.
 .SH NOTES
 A program that scans multiple argument vectors,
 or rescans the same vector more than once,
index 378580495b1210ac33f5ef1a04f9fa9ebf86619d..0992e167afe9af0c3fcdd2e29acc01c4c9c11c51 100644 (file)
@@ -67,10 +67,6 @@ is set to indicate the error, and NULL is returned.
 The process does not have a controlling terminal.
 .SH FILES
 .I /dev/tty
-.\" .SH HISTORY
-.\" A
-.\" .BR getpass ()
-.\" function appeared in Version 7 AT&T UNIX.
 .SH ATTRIBUTES
 For an explanation of the terms used in this section, see
 .BR attributes (7).
@@ -89,6 +85,9 @@ T}    Thread safety   MT-Unsafe term
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
+Version 7 AT&T UNIX.
 Present in SUSv2, but marked LEGACY.
 Removed in POSIX.1-2001.
 .SH NOTES
index c22ae344ce35f6edd14a4d094d8cabfec2cf6a16..84ccdd18f583640a39e293b1041a4c883e37148c 100644 (file)
@@ -170,7 +170,9 @@ or
 are used in parallel in different threads of a program,
 then data races could occur.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD.
 .SH SEE ALSO
 .BR getnetent (3),
 .BR getprotoent_r (3),
index 438ace484008d378a0740a86043b0f8423ef1195..5bdcdb1b122ea1b1b11bf90b8c0cab46c85ed913 100644 (file)
@@ -133,10 +133,11 @@ T}        Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-These functions are GNU extensions.
+.SH VERSIONS
 Functions with similar names exist on some other systems,
 though typically with different calling signatures.
+.SH STANDARDS
+GNU.
 .SH EXAMPLES
 The program below uses
 .BR getprotobyname_r ()
index f3f8507247afe0798f6c5568240b1987753fdc26..38cecdf233065ab597a39b50bceb7fd989ee6fa7 100644 (file)
@@ -61,14 +61,13 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-.BR getpt ()
-is provided since glibc 2.1.
-.SH STANDARDS
-.BR getpt ()
-is glibc-specific;
-use
+Use
 .BR posix_openpt (3)
 instead.
+.SH STANDARDS
+GNU.
+.SH HISTORY
+glibc 2.1.
 .SH SEE ALSO
 .BR grantpt (3),
 .BR posix_openpt (3),
index 63df3a796916af34ba91b364306951ddaa5e5fff..48843410828fb95b1edb5c48c45c1ef26daf01ce 100644 (file)
@@ -107,6 +107,8 @@ T}  Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr2.
 .SH BUGS
 The
index dbce51386f21ba8c855e01b97f6cc702d086b2e3..10230a1adc3980ce551ebcd1bb246671e8389703 100644 (file)
@@ -169,11 +169,14 @@ or
 .BR endpwent ()
 are used in parallel in different threads of a program,
 then data races could occur.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+.SH VERSIONS
 The
 .I pw_gecos
 field is not specified in POSIX, but is present on most implementations.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR fgetpwent (3),
 .BR getpw (3),
index 34f8ec6cee4635f56fe4562905bfb511abfd12bd..0e3ed2e2711be4660e844e269c538140b42a8a72 100644 (file)
@@ -144,10 +144,7 @@ or
 .BR getpwent_r ()
 are used in parallel in different threads of a program,
 then data races could occur.
-.SH STANDARDS
-These functions are GNU extensions, done in a style resembling
-the POSIX version of functions like
-.BR getpwnam_r (3).
+.SH VERSIONS
 Other systems use the prototype
 .PP
 .in +4n
@@ -166,6 +163,12 @@ getpwent_r(struct passwd *pwd, char *buf, int buflen,
            FILE **pw_fp);
 .EE
 .in
+.SH STANDARDS
+None.
+.SH HISTORY
+These functions are done in a style resembling
+the POSIX version of functions like
+.BR getpwnam_r (3).
 .SH NOTES
 The function
 .BR getpwent_r ()
index 130110552fd38dc3cc6c5524c5edb77cdb965d20..e65a6cd35891cc21cea306621ae362e6c9aee673 100644 (file)
@@ -228,11 +228,14 @@ T}
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+.SH VERSIONS
 The
 .I pw_gecos
 field is not specified in POSIX, but is present on most implementations.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH NOTES
 The formulation given above under "RETURN VALUE" is from POSIX.1-2001.
 It does not call "not found" an error, and hence does not specify what value
index a24de76ce41ea111a13307eb1dc512393c6f8a78..99261200253db998416ee903cd5315144a471b6f 100644 (file)
@@ -122,8 +122,9 @@ T}  Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-Not in POSIX.1.
-Present on the BSDs, Solaris, and many other systems.
+BSD.
+.SH HISTORY
+BSD, Solaris.
 .SH BUGS
 All information
 is contained in a static area
index 52ab0f7ca2f3883e6e1c141598a3f48a043c3399..465e6332b513da5353b1001c468629a5370bc667 100644 (file)
@@ -129,10 +129,11 @@ T}        Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-These functions are GNU extensions.
+.SH VERSIONS
 Functions with similar names exist on some other systems,
 though typically with different calling signatures.
+.SH STANDARDS
+GNU.
 .SH SEE ALSO
 .BR getrpcent (3),
 .BR rpc (5)
index 52ea2f0d5949e6898aadfd2bb534ad5cc3aa61b5..53c9e57f192754d31d40ff8438aa7c58bcbce448 100644 (file)
@@ -57,5 +57,6 @@ T}    Thread safety   MT-Safe env locale
 .ad
 .sp 1
 .SH STANDARDS
-Not in POSIX.1.
-Present on the BSDs, Solaris, and many other systems.
+BSD.
+.SH HISTORY
+BSD, Solaris.
index 5c3e7b4b238f17b61b09d3a3bda239d39c414777..b07dda31e13ccadff601b34d18a64be183724833 100644 (file)
@@ -57,7 +57,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C89, C99, POSIX.1-2001.
+POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
 .PP
 LSB deprecates
 .BR gets ().
index 29a2d69ba5a61b1ffc853f9fd8669058ed8a5837..3a43c299c8145f9a64ec8d654875b3524947ea4a 100644 (file)
@@ -187,7 +187,9 @@ or
 are used in parallel in different threads of a program,
 then data races could occur.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD.
 .SH SEE ALSO
 .BR getnetent (3),
 .BR getprotoent (3),
index d8b6ecdcc88b3503e1d7c09951f8606c5f654e7d..4c0652ed3fad83c19ba5132ecb4615d15431616a 100644 (file)
@@ -134,10 +134,11 @@ T}        Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-These functions are GNU extensions.
+.SH VERSIONS
 Functions with similar names exist on some other systems,
 though typically with different calling signatures.
+.SH STANDARDS
+GNU.
 .SH EXAMPLES
 The program below uses
 .BR getservbyport_r ()
index 3014c970b0d8efe1f9630f78f8d3d7e96a7e51f3..abcb339c1ca3aa77b947ac6a77ca463cee554121 100644 (file)
@@ -309,10 +309,10 @@ or
 .BR endspent ()
 are used in parallel in different threads of a program,
 then data races could occur.
+.SH VERSIONS
+Many other systems provide a similar API.
 .SH STANDARDS
-The shadow password database and its associated API are
-not specified in POSIX.1.
-However, many other systems provide a similar API.
+None.
 .SH SEE ALSO
 .BR getgrnam (3),
 .BR getpwnam (3),
index e565a6ece520d7b8785a5239d2152a43ccd38a23..9aee2321b875809002b69dd47cac7c794bbb2af1 100644 (file)
@@ -147,7 +147,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 Since
 .BR getsubopt ()
index c7e0351afd91c3c97147e9bba88f3a3108c5c672..05bf8cc6cfe77c1e3e602ddf845931884c4d0c49 100644 (file)
@@ -93,8 +93,7 @@ T}    Thread safety   MT-Unsafe race:ttyent
 .ad
 .sp 1
 .SH STANDARDS
-Not in POSIX.1.
-Present on the BSDs, and perhaps other systems.
+BSD.
 .SH NOTES
 Under Linux, the file
 .IR /etc/ttys ,
index 496fb3d9dfe9d36018c53c39a3eb44c3887932c1..d134dc3c49fe8e8d3a5f8fbd75551d3ce1eede50 100644 (file)
@@ -94,6 +94,8 @@ T}    Thread safety   MT-Unsafe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD.
 .SH SEE ALSO
 .BR shells (5)
index c7256bce15cc390a26ef1fef3eca422790922d14..f794797155c8d52ec5e58453a3d802c1ee208921 100644 (file)
@@ -196,6 +196,8 @@ or
 are used in parallel in different threads of a program,
 then data races could occur.
 .SH STANDARDS
+None.
+.SH HISTORY
 XPG2, SVr4.
 .PP
 In XPG2 and SVID 2 the function
index 5f29ef7ad3f50710343ef7ed83245706ed842801..e50caedc49f3a6f0d2dc4425f0131d4e4a1a7723 100644 (file)
@@ -52,11 +52,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.1.
 .SH STANDARDS
-These functions are nonstandard, but appear on a few other systems,
-such as Solaris and NetBSD.
+None.
+.SH HISTORY
+glibc 2.1.1.
+Solaris, NetBSD.
 .SH NOTES
 These functions exist primarily for compatibility with other
 systems where the
index 46ff12e988e9be7244177d67f3c8afc84334f093..e311b78dc3e5578c4a6a509f888b2ca54ff8e94e 100644 (file)
@@ -72,8 +72,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr4, SUSv2.
-Not present in POSIX.1.
 .SH BUGS
 The value returned on error is also a legitimate data value.
 .BR ferror (3)
index 696f2edae55ff81b9eaf6d084379053252dae2e0..308ebadb0b997525bd3becf11c79c987535624a3 100644 (file)
@@ -69,7 +69,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH NOTES
 The behavior of
 .BR getwchar ()
index 5fb53ec29149ed6fe70601c47b50991240a4d9c1..c8b5be332f3f2daf372b2b5c2887491be978a288 100644 (file)
@@ -292,7 +292,9 @@ then data races could occur.
 calls those functions,
 so we use race:utent to remind users.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, POSIX.2.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, POSIX.2.
 .SH NOTES
 The structure elements
 .I gl_pathc
index af6315d3ffe8a39ca1189cc71a5f6c163d8cdf52..86f0ebeb4082c9e319d6bcac698bdd9ab3595b3b 100644 (file)
@@ -46,10 +46,10 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions first appeared in glibc 2.1.
 .SH STANDARDS
-These functions are glibc-specific.
+GNU.
+.SH HISTORY
+glibc 2.1.
 .SH EXAMPLES
 When run, the program below will produce output such as the following:
 .PP
index 31706e2b7a26b9939c01de58695b26b27b9675e7..a19172a3edb9179d6ceefeb0691de15915f278ae 100644 (file)
@@ -84,14 +84,6 @@ T}   Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH VERSIONS
-.BR grantpt ()
-is provided since glibc 2.1.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-This is part of the UNIX 98 pseudoterminal support, see
-.BR pts (4).
-.PP
 Many systems implement this function via a set-user-ID helper binary
 called "pt_chown".
 On Linux systems with a devpts filesystem (present since Linux 2.2),
@@ -103,6 +95,14 @@ so that nothing must be done by
 Thus, no such helper binary is required
 (and indeed it is configured to be absent during the
 glibc build that is typical on many systems).
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
+.PP
+This is part of the UNIX 98 pseudoterminal support, see
+.BR pts (4).
 .SH SEE ALSO
 .BR open (2),
 .BR posix_openpt (3),
index ed07191900ebf7285f9a8951e472c90e471d6072..e82bca9d7511c85423bb8b20db3414d1397eeb63 100644 (file)
@@ -40,7 +40,7 @@ supplementary group IDs matches
 .IR gid ,
 and zero otherwise.
 .SH STANDARDS
-This function is a nonstandard GNU extension.
+GNU.
 .SH SEE ALSO
 .BR getgid (2),
 .BR getgroups (2),
index d6450ec39e2f372c01343a069492c05f08bb512c..205f9297e39cac197fb2e712755dc999fb539ace 100644 (file)
@@ -102,7 +102,9 @@ T}  Thread safety   MT-Safe sigintr
 .ad
 .sp 1
 .SH STANDARDS
-These functions are available under AIX, DG/UX, HP-UX, SCO, Solaris, Tru64.
+None.
+.SH HISTORY
+AIX, DG/UX, HP-UX, SCO, Solaris, Tru64.
 They are called obsolete under most of these systems, and are
 broken under
 .\" Linux libc and
index ef50b2c3a611017425ffbc73572595a88ea5ae6a..dfd7787c7a6cd02340cc4138cf34445ef47e70ad 100644 (file)
@@ -235,19 +235,35 @@ T}        Thread safety   MT-Safe race:htab
 .ad
 .sp 1
 .SH STANDARDS
-The functions
-.BR hcreate (),
-.BR hsearch (),
-and
+.TP
+.BR hcreate ()
+.TQ
+.BR hsearch ()
+.TQ
 .BR hdestroy ()
-are from SVr4, and are described in POSIX.1-2001 and POSIX.1-2008.
-.PP
-The functions
-.BR hcreate_r (),
-.BR hsearch_r (),
-and
+POSIX.1-2008.
+.TP
+.BR hcreate_r ()
+.TQ
+.BR hsearch_r ()
+.TQ
+.BR hdestroy_r ()
+GNU.
+.SH HISTORY
+.TP
+.BR hcreate ()
+.TQ
+.BR hsearch ()
+.TQ
+.BR hdestroy ()
+SVr4, POSIX.1-2001.
+.TP
+.BR hcreate_r ()
+.TQ
+.BR hsearch_r ()
+.TQ
 .BR hdestroy_r ()
-are GNU extensions.
+GNU.
 .SH NOTES
 Hash table implementations are usually more efficient when the
 table contains enough free space to minimize collisions.
index edff250fda455967edb267156b3f1f16292ca57e..119609b5ed02c980efbd8da9a94d89ca2544fb04 100644 (file)
@@ -145,7 +145,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 1dfa4c61989ce77e275603a57c059bd26160ecc3..66f59b8c3280c71fd3ae8600233c4bf846d3a5ce 100644 (file)
@@ -165,10 +165,11 @@ function is MT-Safe, as long as callers arrange for
 mutual exclusion on the
 .I cd
 argument.
-.SH VERSIONS
-This function is available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .SH NOTES
 In each series of calls to
 .BR iconv (),
index 6f47ca539ae384d9f7e913703d87d5352d66c2f4..4fc291444fc8a9a2d1c9a64bc39bf1c6eb430676 100644 (file)
@@ -49,10 +49,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-This function is available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SUSv2.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .SH SEE ALSO
 .BR iconv (3),
 .BR iconv_open (3)
index f363cd0d47189d4c695c94eb04f8b298b1cfca4f..c6e4b6cdd1033316ddfab18347b69d96d7054104 100644 (file)
@@ -117,10 +117,11 @@ T}        Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-This function is available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SUSv2.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001, SUSv2.
 .SH SEE ALSO
 .BR iconv (1),
 .BR iconv (3),
index 692b3639f96c4558538f1c9e05260a782a8e722d..4453cfd585d1eda79aa8b8a6b279b83c784b9653 100644 (file)
@@ -96,17 +96,17 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR if_nameindex ()
-function first appeared in glibc 2.1, but before glibc 2.3.4,
+.SH STANDARDS
+POSIX.1-2008, RFC\ 3493.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001. 
+BSDi.
+.PP
+Before glibc 2.3.4,
 the implementation supported only interfaces with IPv4 addresses.
 Support of interfaces that don't have IPv4 addresses is available only
 on kernels that support netlink.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, RFC\ 3493.
-.PP
-This function first appeared in BSDi.
 .SH EXAMPLES
 The program below demonstrates the use of the functions described
 on this page.
index 12a274d1833cdc45c8eeb0007ecb80f8bb9a1a37..0b20e61f12e616d60883854b46f6828bf89a2822 100644 (file)
@@ -92,9 +92,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, RFC\ 3493.
-.PP
-This function first appeared in BSDi.
+POSIX.1-2008, RFC\ 3493.
+.SH HISTORY
+POSIX.1-2001.
+BSDi.
 .SH SEE ALSO
 .BR getifaddrs (3),
 .BR if_nameindex (3),
index 3e141e323c350c47c9607b2618ac8ee060ab585b..76266f3efdcad621077011ca3fc24928baed2a5b 100644 (file)
@@ -128,7 +128,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH BUGS
 .\" Bug raised: https://www.sourceware.org/bugzilla/show_bug.cgi?id=6794
 Before glibc 2.16, the following bugs existed in the
index 89ef316a5c19f95978cd44b8fa39b957f4e07ab9..7007a0c7e22bb576a2e26613a468b23b634caa36 100644 (file)
@@ -30,11 +30,10 @@ and
 .BR strrchr (3)
 instead of these functions.
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD; marked as LEGACY in POSIX.1-2001.
-POSIX.1-2008 removes the specifications of
-.BR index ()
-and
-.BR rindex (),
+Removed in POSIX.1-2008,
 recommending
 .BR strchr (3)
 and
index 3a6f3b0df41b4425710c9cb9d87dcf9abbe7b7b3..8c691278862b85484c7cddba76fab2e227049796 100644 (file)
@@ -40,10 +40,11 @@ Standard C library
 .PP
 .BI "[[deprecated]] char *inet_ntoa(struct in_addr " in );
 .PP
-.BI "struct in_addr inet_makeaddr(in_addr_t " net ", in_addr_t " host );
+.BI "[[deprecated]] struct in_addr inet_makeaddr(in_addr_t " net ,
+.BI "                                            in_addr_t " host );
 .PP
-.BI "in_addr_t inet_lnaof(struct in_addr " in );
-.BI "in_addr_t inet_netof(struct in_addr " in );
+.BI "[[deprecated]] in_addr_t inet_lnaof(struct in_addr " in );
+.BI "[[deprecated]] in_addr_t inet_netof(struct in_addr " in );
 .fi
 .PP
 .RS -4
@@ -228,16 +229,20 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-.BR inet_addr (),
-.BR inet_ntoa ():
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
-.PP
+.TP
+.BR inet_addr ()
+.TQ
+.BR inet_ntoa ()
+POSIX.1-2008.
+.TP
 .BR inet_aton ()
-is not specified in POSIX.1, but is available on most systems.
-.SH NOTES
-On x86 architectures, the host byte order is Least Significant Byte
-first (little endian), whereas the network byte order, as used on the
-Internet, is Most Significant Byte first (big endian).
+None.
+.SH STANDARDS
+.TP
+.BR inet_addr ()
+.TQ
+.BR inet_ntoa ()
+POSIX.1-2001, 4.3BSD.
 .PP
 .BR inet_lnaof (),
 .BR inet_netof (),
@@ -270,6 +275,10 @@ Classful network addresses are now obsolete,
 having been superseded by Classless Inter-Domain Routing (CIDR),
 which divides addresses into network and host components at
 arbitrary bit (rather than byte) boundaries.
+.SH NOTES
+On x86 architectures, the host byte order is Least Significant Byte
+first (little endian), whereas the network byte order, as used on the
+Internet, is Most Significant Byte first (big endian).
 .SH EXAMPLES
 An example of the use of
 .BR inet_aton ()
index 4eda6e005870e5caa15da62ae2393d153fa377b4..0da4030deeb709d0f3a860d15647ec13572ca35b 100644 (file)
@@ -132,11 +132,7 @@ The size of the output buffer was insufficient.
 .I pres
 was not in correct presentation format.
 .SH STANDARDS
-The
-.BR inet_net_pton ()
-and
-.BR inet_net_ntop ()
-functions are nonstandard, but widely available.
+None.
 .SH NOTES
 .SS Input presentation format for inet_net_pton()
 The network number may be specified either
index 67a514cf7fe929a06218f8a7d594838e3bb308ba..ed2fad1af3ed554eb7d522f6690b3ef2dc65b965 100644 (file)
@@ -99,7 +99,10 @@ T}   Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.PP
 Note that RFC\ 2553 defines a prototype where the last argument
 .I size
 is of type
index 1169bac280da16a4379011b0b0bae7ba0b590466..d51f838fd3c7e47bf64e8fedebfbf706604f5ba5 100644 (file)
@@ -130,9 +130,7 @@ T}  Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 Unlike
 .BR inet_aton (3)
 and
@@ -151,6 +149,10 @@ four bytes to be explicitly written).
 For an interface that handles both IPv6 addresses, and IPv4
 addresses in numbers-and-dots notation, see
 .BR getaddrinfo (3).
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH BUGS
 .B AF_INET6
 does not recognize IPv4 addresses.
index e27e2e1f396db3e51172c783f375067dc20ba5b6..f81824a7925eab513656c0f1d7128a059bc8a1a9 100644 (file)
@@ -92,6 +92,8 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR getgroups (2),
index cc47c8e76cf9ee357124d4ab01520601e5ac9d15..8793fd272399ba9e977fb791b5d186f17deb7a07 100644 (file)
@@ -97,9 +97,7 @@ T}    Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 On ancient systems,
 .\" e.g., SunOS, Linux libc4 and libc5
 the arguments of these functions were of type \fIstruct qelem *\fP,
@@ -126,6 +124,10 @@ The above is the POSIX version.
 Some systems place them in \fI<string.h>\fP.
 .\" Linux libc4 and libc 5 placed them
 .\" in \fI<stdlib.h>\fP.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH BUGS
 In glibc 2.4 and earlier, it was not possible to specify
 .I prev
index 11101f4dc0927e498899d5056045a8a7747738bd..000e816d71e788c99ae5582ffacefcafcf2c5d96 100644 (file)
@@ -227,71 +227,124 @@ T}       Thread safety   MT-Safe
 .ad
 .sp 1
 .\" FIXME: need a thread-safety statement about the *_l functions
-.SH VERSIONS
-.BR isalnum_l (),
-.BR isalpha_l (),
-.BR isblank_l (),
-.BR iscntrl_l (),
-.BR isdigit_l (),
-.BR isgraph_l (),
-.BR islower_l (),
-.BR isprint_l (),
-.BR ispunct_l (),
-.BR isspace_l (),
-.BR isupper_l (),
-.BR isxdigit_l (),
-and
-.BR isascii_l ()
-are available since glibc 2.3.
 .SH STANDARDS
-C89 specifies
-.BR isalnum (),
-.BR isalpha (),
-.BR iscntrl (),
-.BR isdigit (),
-.BR isgraph (),
-.BR islower (),
-.BR isprint (),
-.BR ispunct (),
-.BR isspace (),
-.BR isupper (),
-and
-.BR isxdigit (),
-but not
-.BR isascii ()
-and
-.BR isblank ().
-POSIX.1-2001
-also specifies those functions, and also
+.TP
+.BR isalnum ()
+.TQ
+.BR isalpha ()
+.TQ
+.BR iscntrl ()
+.TQ
+.BR isdigit ()
+.TQ
+.BR isgraph ()
+.TQ
+.BR islower ()
+.TQ
+.BR isprint ()
+.TQ
+.BR ispunct ()
+.TQ
+.BR isspace ()
+.TQ
+.BR isupper ()
+.TQ
+.BR isxdigit ()
+.TQ
+.BR isblank ()
+C11, POSIX.1-2008.
+.TP
 .BR isascii ()
-(as an XSI extension)
-and
-.BR isblank ().
-C99 specifies all of the preceding functions, except
-.BR isascii ().
-.PP
-POSIX.1-2008 marks
+.TQ
+.BR isalnum_l ()
+.TQ
+.BR isalpha_l ()
+.TQ
+.BR isblank_l ()
+.TQ
+.BR iscntrl_l ()
+.TQ
+.BR isdigit_l ()
+.TQ
+.BR isgraph_l ()
+.TQ
+.BR islower_l ()
+.TQ
+.BR isprint_l ()
+.TQ
+.BR ispunct_l ()
+.TQ
+.BR isspace_l ()
+.TQ
+.BR isupper_l ()
+.TQ
+.BR isxdigit_l ()
+POSIX.1-2008.
+.TP
+.BR isascii_l ()
+GNU.
+.SH HISTORY
+.TP
+.BR isalnum ()
+.TQ
+.BR isalpha ()
+.TQ
+.BR iscntrl ()
+.TQ
+.BR isdigit ()
+.TQ
+.BR isgraph ()
+.TQ
+.BR islower ()
+.TQ
+.BR isprint ()
+.TQ
+.BR ispunct ()
+.TQ
+.BR isspace ()
+.TQ
+.BR isupper ()
+.TQ
+.BR isxdigit ()
+C89, POSIX.1-2001.
+.TP
+.BR isblank ()
+C99, POSIX.1-2001.
+.TP
 .BR isascii ()
-as obsolete,
+POSIX.1-2001 (XSI).
+.IP
+POSIX.1-2008 marks it as obsolete,
 noting that it cannot be used portably in a localized application.
-.PP
-POSIX.1-2008 specifies
-.BR isalnum_l (),
-.BR isalpha_l (),
-.BR isblank_l (),
-.BR iscntrl_l (),
-.BR isdigit_l (),
-.BR isgraph_l (),
-.BR islower_l (),
-.BR isprint_l (),
-.BR ispunct_l (),
-.BR isspace_l (),
-.BR isupper_l (),
-and
-.BR isxdigit_l ().
-.PP
+.TP
+.BR isalnum_l ()
+.TQ
+.BR isalpha_l ()
+.TQ
+.BR isblank_l ()
+.TQ
+.BR iscntrl_l ()
+.TQ
+.BR isdigit_l ()
+.TQ
+.BR isgraph_l ()
+.TQ
+.BR islower_l ()
+.TQ
+.BR isprint_l ()
+.TQ
+.BR ispunct_l ()
+.TQ
+.BR isspace_l ()
+.TQ
+.BR isupper_l ()
+.TQ
+.BR isxdigit_l ()
+glibc 2.3.
+POSIX.1-2008.
+.TP
 .BR isascii_l ()
-is a GNU extension.
+glibc 2.3.
 .SH NOTES
 The standards require that the argument
 .I c
index c2a010f8a5e449a2b1c14e44e02841fced269fbc..fdde6daef23303241fa5f6d5d2f842a5a0cbe739 100644 (file)
@@ -63,7 +63,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR fstat (2),
 .BR ttyname (3)
index e2fa13e27485c365f684fda580e0392c74bca293..6287ff562aecd91f49a9dda6b9b73c74f085ee11 100644 (file)
@@ -61,19 +61,17 @@ The
 .BR isfdtype ()
 function can fail with any of the same errors as
 .BR fstat (2).
+.SH VERSIONS
+Portable applications should use
+.BR fstat (2)
+instead.
 .SH STANDARDS
-The
-.BR isfdtype ()
-function is not specified in any standard,
-but did appear in the draft POSIX.1g standard.
+None.
+.SH HISTORY
+It appeared in the draft POSIX.1g standard.
 It is present on OpenBSD and Tru64 UNIX
 (where the required header file in both cases is just
 .IR <sys/stat.h> ,
-as shown in the POSIX.1g draft),
-and possibly other systems.
-.SH NOTES
-Portable applications should use
-.BR fstat (2)
-instead.
+as shown in the POSIX.1g draft).
 .SH SEE ALSO
 .BR fstat (2)
index cef462b070fc86d68929a276d8f72671fe7641cd..87533ea5a65ad0981bbdf200363c8308ad7b7376 100644 (file)
@@ -133,13 +133,15 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
-.SH NOTES
+.SH VERSIONS
 Not all hardware supports these functions,
 and where hardware support isn't provided, they will be emulated by macros.
 This will result in a performance penalty.
 Don't use these functions if NaN is of no concern for you.
+.SH STANDARDS
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR fpclassify (3),
 .BR isnan (3)
index 3fd1f3da851e1588d62586583a1f4df11716f5cd..1eabd151f1c058f70c82bd947384ee93c3d1f23d 100644 (file)
@@ -83,7 +83,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR iswalnum ()
index e338d22c19a6d64d6cecd2d39b967bde91baad26..3e61dd3a16935377103c75f2e197ad9966aa8048 100644 (file)
@@ -84,7 +84,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR iswalpha ()
index 21eeb14a252131389802284eac08b4f712b37568..5c9944f65cddb83eca91f3fb0d1e7f3aafee0c6b 100644 (file)
@@ -77,7 +77,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The behavior of
 .BR iswblank ()
index 7504c5c0e54b8697a65af0e025ff38ccd10e045b..09712ebee7e125027afd039d4b8b4633f3dcfbc5 100644 (file)
@@ -68,7 +68,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR iswcntrl ()
index fb6ca5458fa92953689cfe4f61eee5dbbb2f9e8d..6b0476df86d4f89941443a4aac5727c7d61209af 100644 (file)
@@ -71,7 +71,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR iswctype ()
index 630208a9b82e09a9764a645f70ddb864d11568d0..d05bf6e2cf2445c842c9de5f47b4965af1c5cca0 100644 (file)
@@ -83,7 +83,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR iswdigit ()
index a02a7796c59a070e2547d2edc760e799d72190bd..8a4386b5f7f4e74fe16db25655c6c388d0964913 100644 (file)
@@ -76,7 +76,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR iswgraph ()
index f384b28b5b81a06a3ba74aced194e501b43efa5c..98156ee47bcb45b0daf1227fecf6f0fb723d7a1a 100644 (file)
@@ -90,7 +90,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR iswlower ()
index 5e7c4546a8730d87d2679bb4607fc03b5ec6b3cf..e9c4c922bd8681d033048701719c33ffab8a8cae 100644 (file)
@@ -62,7 +62,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR iswprint ()
index f3a9b10358f51c5f137e721e9a5f288849eaf264..921321cfc44306954476855d6b5897ba8146bbcc 100644 (file)
@@ -74,7 +74,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR iswpunct ()
index c4ca84c685f6fd2a563dd94c3d1c0d9638810e82..2b737e5c66ed0acbe168a084b266a3df0dc36c5e 100644 (file)
@@ -71,7 +71,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR iswspace ()
index 778379f9e479832266d49e4845466e9215136527..90d677b6f56d56e41ade938857c5f777518c0579 100644 (file)
@@ -84,7 +84,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR iswupper ()
index be10101d9af6322a83e8e01e66830f5d0b0056c7..63caf155617c2d6caf5a8400b6049029f2f3e269 100644 (file)
@@ -75,7 +75,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR iswxdigit ()
index c9ee0561e18366c0b8aff87bccb692ad54d5c177..a81eb46fe02e81ab6cea4390868c871832637511 100644 (file)
--- a/man3/j0.3
+++ b/man3/j0.3
@@ -159,11 +159,28 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-The functions returning
-.I double
-conform to SVr4, 4.3BSD,
-POSIX.1-2001, and POSIX.1-2008.
-The others are nonstandard functions that also exist on the BSDs.
+.TP
+.BR j0 ()
+.TQ
+.BR j1 ()
+.TQ
+.BR jn ()
+POSIX.1-2008.
+.TP
+Others:
+BSD.
+.SH HISTORY
+.TP
+.BR j0 ()
+.TQ
+.BR j1 ()
+.TQ
+.BR jn ()
+SVr4, 4.3BSD,
+POSIX.1-2001, POSIX.1-2008.
+.TP
+Others:
+BSD.
 .SH BUGS
 There are errors of up to 2e\-16 in the values returned by
 .BR j0 (),
index dc5a6b0b9bef63b0205712c426e7638d235c4b27..68c008c79a01107815200975ed539dceecab35f8 100644 (file)
@@ -81,11 +81,7 @@ No process can be found in the process group specified by
 .B ESRCH
 The process group was given as 0 but the sending process does not
 have a process group.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.4BSD
-.RB ( killpg ()
-first appeared in 4BSD).
-.SH NOTES
+.SH VERSIONS
 There are various differences between the permission checking
 in BSD-type systems and System\ V-type systems.
 See the POSIX rationale for
@@ -104,6 +100,11 @@ On Linux,
 .BR killpg ()
 is implemented as a library function that makes the call
 .IR "kill(\-pgrp,\ sig)" .
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.4BSD
+(first appeared in 4BSD).
 .SH SEE ALSO
 .BR getpgrp (2),
 .BR kill (2),
index e28456c1f3051af65f30549dcffa6a4300f6d8b0..107ba5c7d469d885e1f60f47a7074f054eee0ca7 100644 (file)
@@ -120,7 +120,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index c86ac24c172baad424b139e9f532e0f7d538bed6..ae1474236c3e035a187c15de34857552b15f29dd 100644 (file)
@@ -153,14 +153,41 @@ is raised.
 .\" glibc (as at 2.8) also supports an inexact
 .\" exception for various cases.
 .SH STANDARDS
-The
+.TP
 .BR lgamma ()
-functions are specified in C99, POSIX.1-2001, and POSIX.1-2008.
+.TQ
+.BR lgammaf ()
+.TQ
+.BR lgammal ()
+C11, POSIX.1-2008.
+.TP
 .I signgam
-is specified in POSIX.1-2001 and POSIX.1-2008, but not in C99.
-The
+POSIX.1-2008.
+.TP
 .BR lgamma_r ()
-functions are nonstandard, but present on several other systems.
+.TQ
+.BR lgammaf_r ()
+.TQ
+.BR lgammal_r ()
+None.
+.SH HISTORY
+.TP
+.BR lgamma ()
+.TQ
+.BR lgammaf ()
+.TQ
+.BR lgammal ()
+C99, POSIX.1-2001.
+.TP
+.I signgam
+POSIX.1-2001.
+.TP
+.BR lgamma_r ()
+.TQ
+.BR lgammaf_r ()
+.TQ
+.BR lgammal_r ()
+None.
 .SH BUGS
 In glibc 2.9 and earlier,
 .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6777
index 90ccb587aee37ed9212be36dc2324571df38dfd4..103e951fdb00533aa4d0ae9a65ea28733517b092 100644 (file)
@@ -200,12 +200,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR lio_listio ()
-function is available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .SH NOTES
 It is a good idea to zero out the control blocks before use.
 The control blocks must not be changed while the I/O operations
index fb2267905eab6782be92f8f952e789b4d9c35049..03f26e0c83eb0311f30ddbfad388741bc27b505f 100644 (file)
@@ -233,9 +233,9 @@ structure, respectively.
 returns an initializer that can be assigned to the list
 .IR head .
 .SH STANDARDS
-Not in POSIX.1, POSIX.1-2001, or POSIX.1-2008.
-Present on the BSDs
-(LIST macros first appeared in 4.4BSD).
+BSD.
+.SH HISTORY
+4.4BSD.
 .SH BUGS
 .BR LIST_FOREACH ()
 doesn't allow
index f900fc1193c55d9c41a5fcc0df3e2c61edac774a..911ff0399ab9dead00db1613b696ca37d845a51a 100644 (file)
@@ -66,7 +66,9 @@ T}
 .ad
 .sp 1
 .SH STANDARDS
-C89, C99.
+C11.
+.SH HISTORY
+C89.
 .SH BUGS
 The
 .BR printf (3)
index 4be81f156b9272b2fccc85554ae8b274a3166e4b..83e8b04b6be17a0e28bcd11fc0dc1c1b093714a2 100644 (file)
@@ -161,7 +161,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
 .SH SEE ALSO
 .BR fcntl (2),
 .BR flock (2)
index bde58d9f7a9b8ab66e1097dc9e5e50d79ce0efb9..b58a628db56eaecc389f0cc6599836e5eb5507e3 100644 (file)
@@ -119,7 +119,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 00013ca7632bed328babaf3b22f18f9eaea876a2..1aa5b8dfafaa63cf5821c56392d5b3f1ffcda9a7 100644 (file)
@@ -80,7 +80,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index d36219f9423ee84c933c7aceb2f72fe83418a7ca..3f15633bcf6d4f11369c8950789f9f22a208500b 100644 (file)
@@ -129,7 +129,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .\" BSD
 .SH BUGS
 Before glibc 2.22, the glibc implementation did not set
index 27ed980839baea4be604989ca653c16df3ac9336..b9360853c1d241312f14216c85a604504d8337a0 100644 (file)
@@ -78,10 +78,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 3fbb9a3f1a801d5059062d09a7d9de492b9a4d52..009ca5a78cad33a8d80de1eb2bd8731d0cd9a1a7 100644 (file)
@@ -112,11 +112,6 @@ These functions do not set
 .\" log(), log2(), log10() do set errno
 .\" Bug raised: https://www.sourceware.org/bugzilla/show_bug.cgi?id=6793
 .\"
-.\" .SH HISTORY
-.\" The
-.\" .BR logb ()
-.\" function occurs in 4.3BSD.
-.\" see IEEE.3 in the 4.3BSD manual
 .SH ATTRIBUTES
 For an explanation of the terms used in this section, see
 .BR attributes (7).
@@ -137,7 +132,13 @@ T} Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
+.TP
+.BR logb ()
+4.3BSD
+(see IEEE.3 in the 4.3BSD manual).
 .SH SEE ALSO
 .BR ilogb (3),
 .BR log (3)
index 396092950a4916e9bb25891f77c2251f786753cf..099a9a03d2578a558440cc690308ebc9800f992e 100644 (file)
@@ -130,12 +130,8 @@ and
 .BR logout ()
 calls those functions,
 so we use race:utent to remind users.
-.SH STANDARDS
-Not in POSIX.1.
-Present on the BSDs.
-.SH NOTES
-Note that the
-member
+.SH VERSIONS
+The member
 .I ut_user
 of
 .I struct utmp
@@ -148,6 +144,8 @@ is defined as an alias for
 .I ut_user
 in
 .IR <utmp.h> .
+.SH STANDARDS
+BSD.
 .SH SEE ALSO
 .BR getutent (3),
 .BR utmp (5)
index 87dc6aaec944274b28b910d104b6007ea2b13668..a013b525b8678e554384f7131d8aa0390ed7d13b 100644 (file)
@@ -99,10 +99,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR ceil (3),
 .BR floor (3),
index c2084518c71a8ea601788108f358c8b799f1c6d9..5bb659d491ee2276a08903618d9f161a7edcd932 100644 (file)
@@ -102,10 +102,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR ceil (3),
 .BR floor (3),
index cb21d5f575422951d59fd889b2339c8a97f940e0..855b1a6ac460c27f486171449959f69a9a434297 100644 (file)
@@ -85,8 +85,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
-Present in libc since libc-4.6.27.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
+libc-4.6.27.
 .SH BUGS
 The naming is unfortunate.
 .SH SEE ALSO
index ad426fa58d051beaa7a9fa6a054dd5411f528221..c46fb8708ccddc7aa99b8fc5348f86e99cf855ce 100644 (file)
@@ -109,17 +109,12 @@ T}
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR makecontext ()
-and
-.BR swapcontext ()
-are provided since glibc 2.1.
 .SH STANDARDS
+None.
+.SH HISTORY
+glibc 2.1.
 SUSv2, POSIX.1-2001.
-POSIX.1-2008 removes the specifications of
-.BR makecontext ()
-and
-.BR swapcontext (),
+Removed in POSIX.1-2008,
 citing portability issues, and
 recommending that applications be rewritten to use POSIX threads instead.
 .SH NOTES
index e2ad24284cde7ef897a9dd030f224a9278e4dd89..40903f87b4117c70e971c109ba8f2495dd5f1467 100644 (file)
@@ -61,18 +61,16 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
+.SH VERSIONS
+The BSDs expose the definitions for these macros via
+.IR <sys/types.h> .
 .SH STANDARDS
-The
-.BR makedev (),
-.BR major (),
-and
-.BR minor ()
-functions are not specified in POSIX.1,
-but are present on many other systems.
-.\" The BSDs, HP-UX, Solaris, AIX, Irix.
+None.
+.SH HISTORY
+BSD, HP-UX, Solaris, AIX, Irix.
 .\" The header location is inconsistent:
 .\" Could be sys/mkdev.h, sys/sysmacros.h, or sys/types.h.
-.SH NOTES
+.PP
 These interfaces are defined as macros.
 Since glibc 2.3.3,
 they have been aliases for three GNU-specific functions:
@@ -82,11 +80,10 @@ and
 .BR gnu_dev_minor ().
 The latter names are exported, but the traditional names are more portable.
 .PP
-The BSDs expose the definitions for these macros via
-.IR <sys/types.h> .
 Depending on the version,
-glibc also exposes definitions for these macros from that
-header file if suitable feature test macros are defined.
+glibc also exposes definitions for these macros from
+.IR <sys/types.h>
+if suitable feature test macros are defined.
 However, this behavior was deprecated in glibc 2.25,
 .\" glibc commit dbab6577c6684c62bd2521c1c29dc25c3cac966f
 and since glibc 2.28,
index 6819f101930a4dd77d5d96a4468e187d0afe671f..3a7ee0da667921b99d52f4c035bdbb6d32d9b69c 100644 (file)
@@ -150,19 +150,17 @@ would modify the global internal objects with atomics, that make sure
 .BR mallinfo ()/
 .BR mallinfo2 ()
 is safe enough, others modify with non-atomically maybe not.
-.SH VERSIONS
-.\" mallinfo(): Available already in glibc 2.0, possibly earlier
-The
-.BR mallinfo2 ()
-function was added
-.\" commit e3960d1c57e57f33e0e846d615788f4ede73b945
-in glibc 2.33.
 .SH STANDARDS
-These functions are not specified by POSIX or the C standards.
-A
+None.
+.SH HISTORY
+.TP
 .BR mallinfo ()
-function exists on many System V derivatives,
-and was specified in the SVID.
+glibc 2.0.
+SVID.
+.TP
+.BR mallinfo2 ()
+.\" commit e3960d1c57e57f33e0e846d615788f4ede73b945
+glibc 2.33.
 .SH BUGS
 .\" FIXME . http://sourceware.org/bugzilla/show_bug.cgi?id=208
 .\" See the 24 Aug 2011 mail by Paul Pluzhnikov:
index 2d6e9818e267e5c481ea20aa7ff03d54f2f51985..ad7eed289565ab56643c52d5d35730e8f87177ee 100644 (file)
@@ -246,9 +246,33 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
+.SH STANDARDS
+.TP
+.BR malloc ()
+.TQ
+.BR free ()
+.TQ
+.BR calloc ()
+.TQ
+.BR realloc ()
+C11, POSIX.1-2008.
+.TP
+.BR reallocarray ()
+None.
+.SH HISTORY
+.TP
+.BR malloc ()
+.TQ
+.BR free ()
+.TQ
+.BR calloc ()
+.TQ
+.BR realloc ()
+POSIX.1-2001, C89.
+.TP
 .BR reallocarray ()
-was added in glibc 2.26.
+glibc 2.26.
+OpenBSD 5.6, FreeBSD 11.0.
 .PP
 .BR malloc ()
 and related functions rejected sizes greater than
@@ -259,15 +283,6 @@ starting in glibc 2.30.
 preserved
 .I errno
 starting in glibc 2.33.
-.SH STANDARDS
-.BR malloc (),
-.BR free (),
-.BR calloc (),
-.BR realloc ():
-POSIX.1-2001, POSIX.1-2008, C89, C99.
-.PP
-.BR reallocarray ()
-is a nonstandard extension that first appeared in OpenBSD 5.6 and FreeBSD 11.0.
 .SH NOTES
 By default, Linux follows an optimistic memory allocation strategy.
 This means that when
index a49b46fa045791a7f21902f95e6688beb9f45705..23bfa2d8dc6bfced9e834bc7d4c6e125f2e824fd 100644 (file)
@@ -89,7 +89,7 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-These functions are GNU extensions.
+GNU.
 .SH NOTES
 These functions are useful when using this
 .BR malloc (3)
index e7091de436693243642665f6ad9fdc9ab2e5dfc0..83b213cd56abd9ededec90cb40fe840a82532161 100644 (file)
@@ -81,7 +81,7 @@ points at a function that is called each time after
 .BR sbrk (2)
 was asked for more memory.
 .SH STANDARDS
-These functions are GNU extensions.
+GNU.
 .SH NOTES
 The use of these hook functions is not safe in multithreaded programs,
 and they are now deprecated.
index af96c0142b44e16706dddf8b9aacfdd3be302a10..70f5a8e03c1e594563ca4babdcd3c6e719e8f70c 100644 (file)
@@ -58,11 +58,10 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR malloc_info ()
-was added in glibc 2.10.
 .SH STANDARDS
-This function is a GNU extension.
+GNU.
+.SH HISTORY
+glibc 2.10.
 .SH NOTES
 The memory-allocation information is provided as an XML string
 (rather than a C structure)
index 4dd2d8ca79ddacf8314e4f4f0e74816baa816d51..fdf471ad8c8b167fae4542a974e06f89d67bb260 100644 (file)
@@ -52,10 +52,10 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.\" .SH VERSIONS
-.\" Available already in glibc 2.0, possibly earlier
 .SH STANDARDS
-This function is a GNU extension.
+GNU.
+.SH HISTORY
+glibc 2.0.
 .SH NOTES
 More detailed information about memory allocations in the main arena
 can be obtained using
index b94fcb5a2e266a45a80360f7bd6ea6e369a0672c..ec9d7d2d410c2dab0ea8d1363153476ccf02ac89 100644 (file)
@@ -59,10 +59,10 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.\" .SH VERSIONS
-.\" Available already in glibc 2.0, possibly earlier
 .SH STANDARDS
-This function is a GNU extension.
+GNU.
+.SH VERSIONS
+glibc 2.0.
 .SH NOTES
 Only the main heap (using
 .BR sbrk (2))
index d63398f011a3146351d9541b0bfab2ce5a16b8be..754b255def7cef6ea4ffa44135d62e3ffe5d777e 100644 (file)
@@ -49,7 +49,7 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-This function is a GNU extension.
+GNU.
 .SH NOTES
 The value returned by
 .BR malloc_usable_size ()
index f9af38ee230f5b2b77ccd7ff7e7ed722cf0fdd11..f43b6d578248c1c7cc31fd02a391c5c665aae353 100644 (file)
@@ -435,10 +435,7 @@ On error,
 is
 .I not
 set.
-.\" .SH VERSIONS
-.\" Available already in glibc 2.0, possibly earlier
-.SH STANDARDS
-This function is not specified by POSIX or the C standards.
+.SH VERSIONS
 A similar function exists on many System V derivatives,
 but the range of values for
 .I param
@@ -450,7 +447,10 @@ The SVID defined options
 and
 .BR M_KEEP ,
 but only the first of these is implemented in glibc.
-.\" .SH NOTES
+.SH STANDARDS
+None.
+.SH HISTORY
+glibc 2.0.
 .SH BUGS
 Specifying an invalid value for
 .I param
index 72ef1dcd0e5ec291fc201f5873b8b574e0b9cc12..e02c5f09a00897225fdb138155bcbaaa0a41de5e 100644 (file)
@@ -100,8 +100,15 @@ T} Thread safety   MT-Unsafe race
 .hy
 .ad
 .sp 1
+.SH VERSIONS
+The function
+.BR mbrlen (3)
+provides a better interface to the same
+functionality.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR mblen ()
@@ -109,10 +116,5 @@ depends on the
 .B LC_CTYPE
 category of the
 current locale.
-.PP
-The function
-.BR mbrlen (3)
-provides a better interface to the same
-functionality.
 .SH SEE ALSO
 .BR mbrlen (3)
index dd80c57a15c0c983c59fdd7ed47a21295037513c..b9613535e9fc69bf893322dd0060860b682b743d 100644 (file)
@@ -119,7 +119,9 @@ T}  Thread safety   MT-Unsafe race:mbrlen/!ps
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR mbrlen ()
index b644b709d0d25093a4bd91db4459f368c1a58e85..6248621a1e7945711d069dcc87fd9fb191993c09 100644 (file)
@@ -189,7 +189,9 @@ T}  Thread safety   MT-Unsafe race:mbrtowc/!ps
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR mbrtowc ()
index f93d48132f6959badce860846e2b249d1e773004..db8d2857047e5ed0d65ba7d91baaf91fce4f9118 100644 (file)
@@ -102,7 +102,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR mbsinit ()
index fc52d661dff32c8ad717746916c1a39af9074305..1d2b2e1ed81e41e0f0a28567c0d6c8253f9cc248 100644 (file)
@@ -142,7 +142,9 @@ T}
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR mbsrtowcs ()
index 376006fcac6237aeccb0a98d2a911e0ef0f37791..8337cb1bd1228dfebf326ee8107791b3c8122cab 100644 (file)
@@ -109,8 +109,15 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
+.SH VERSIONS
+The function
+.BR mbsrtowcs (3)
+provides a better interface to the same
+functionality.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR mbstowcs ()
@@ -118,11 +125,6 @@ depends on the
 .B LC_CTYPE
 category of the
 current locale.
-.PP
-The function
-.BR mbsrtowcs (3)
-provides a better interface to the same
-functionality.
 .SH EXAMPLES
 The program below illustrates the use of
 .BR mbstowcs (),
index d2eda1c7095df458485f1c3556e4e7eb0e6d6203..8eb14b717ac1daa9980ed4cf718d00ec2352799d 100644 (file)
@@ -127,8 +127,16 @@ T} Thread safety   MT-Unsafe race
 .hy
 .ad
 .sp 1
+.SH VERSIONS
+This function is not multithread safe.
+The function
+.BR mbrtowc (3)
+provides
+a better interface to the same functionality.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR mbtowc ()
@@ -136,12 +144,6 @@ depends on the
 .B LC_CTYPE
 category of the
 current locale.
-.PP
-This function is not multithread safe.
-The function
-.BR mbrtowc (3)
-provides
-a better interface to the same functionality.
 .SH SEE ALSO
 .BR MB_CUR_MAX (3),
 .BR mblen (3),
index 41868bff79c16c80d689bf42be850b3b3bb4daf6..adf98213a83ef04a82f45a64beae918ff526b6f8 100644 (file)
@@ -136,19 +136,19 @@ T}
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
+.SH STANDARDS
+GNU.
+.SH HISTORY
+.TP
 .BR mcheck_pedantic ()
-and
+.TQ
 .BR mcheck_check_all ()
-functions are available since glibc 2.2.
-The
+glibc 2.2.
+.TP
 .BR mcheck ()
-and
+.TQ
 .BR mprobe ()
-functions are present since at least glibc 2.0
-.SH STANDARDS
-These functions are GNU extensions.
+glibc 2.0.
 .SH NOTES
 Linking a program with
 .I \-lmcheck
index 0c5b0b81e9d1aa446e15ad70c37b02672e278e74..5266fc7519e64e5282a096828401c982e0c7952d 100644 (file)
@@ -70,7 +70,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR bcopy (3),
 .BR bstring (3),
index 877910c59a9eb09bc42d4e6cce1b46978e901ff7..e2916dc9a9786dc4ed38cc43294c6a04c5cba44b 100644 (file)
@@ -113,23 +113,25 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR rawmemchr ()
-first appeared in glibc 2.1.
-.PP
-.BR memrchr ()
-first appeared in glibc 2.2.
 .SH STANDARDS
-.BR memchr ():
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
-.PP
-The
+.TP
+.BR memchr ()
+C11, POSIX.1-2008.
+.TP
 .BR memrchr ()
-function is a GNU extension, available since glibc 2.1.91.
-.PP
-The
+.TQ
+.BR rawmemchr ()
+GNU.
+.SH HISTORY
+.TP
+.BR memchr ()
+POSIX.1-2001, C89, SVr4, 4.3BSD.
+.TP
+.BR memrchr ()
+glibc 2.2.
+.TP
 .BR rawmemchr ()
-function is a GNU extension, available since glibc 2.1.
+glibc 2.1.
 .SH SEE ALSO
 .BR bstring (3),
 .BR ffs (3),
index e58719848698865170fd1c3ac92f1b0a539ef779..5a56f19727cf7e98b67a42299c0dfc6c4a36ee41 100644 (file)
@@ -63,8 +63,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
-.SH NOTES
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD.
+.SH CAVEATS
 Do not use
 .BR memcmp ()
 to compare security critical data, such as cryptographic secrets,
index 77169a27ee80e5bdb8f15cca4d8db93c6701116a..c243e9f3b723f50673f37ec61dbbb23caf48b168 100644 (file)
@@ -53,8 +53,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
-.SH NOTES
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD.
+.SH CAVEATS
 Failure to observe the requirement that the memory areas
 do not overlap has been the source of significant bugs.
 (POSIX and the C standards are explicit that employing
index b3da3dfa522287de93dcfdc6eccc8fcbe4d202e7..a75a032765f79885f3b4591d7e204460a5ad9509 100644 (file)
@@ -57,10 +57,7 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-The
-.BR memfrob ()
-function is unique to the
-GNU C Library.
+GNU.
 .SH SEE ALSO
 .BR bstring (3),
 .BR strfry (3)
index 7a532ea276bea02da1830a9fedabb087bc6409cd..0a81054e6490040675c6ddff044f29d890b8ce62 100644 (file)
@@ -58,11 +58,10 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-This function is not specified in POSIX.1,
-but is present on a number of other systems,
-including:
+None.
+.SH HISTORY
 musl libc 0.9.7;
-FreeBSD 6.0, OpenBSD 5.4, NetBSD, and Illumos.
+FreeBSD 6.0, OpenBSD 5.4, NetBSD, Illumos.
 .SH BUGS
 .\" This function was broken in Linux libraries up to and including libc 5.0.9;
 .\" there the
index 8ee7150e2aaf7b6528ac90dd20533509ad817257..7745c4e29700bb06167f51ead54e9b750a37fcff 100644 (file)
@@ -61,7 +61,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR bcopy (3),
 .BR bstring (3),
index 371d341ae0b4b9f643d2f582a140f9fa7093d9de..98c1c6f8d138bf7d2fe453df08c62712ba57940d 100644 (file)
@@ -75,11 +75,10 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR mempcpy ()
-first appeared in glibc 2.1.
 .SH STANDARDS
-This function is a GNU extension.
+GNU.
+.SH HISTORY
+glibc 2.1.
 .SH EXAMPLES
 .EX
 void *
index cce27bb9595b0f54f282333106283b211ae63d0a..92764b14520a07d7d53e7f0d2785ebd4bd63f89b 100644 (file)
@@ -53,7 +53,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR bstring (3),
 .BR bzero (3),
index e7aa99efba0d026710f30420d296eca65c00457b..a3c28728eaebe5f056a3bed8313d2a1e38ac6c21 100644 (file)
@@ -74,13 +74,12 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-Available since glibc 2.1.91.
 .SH STANDARDS
 POSIX.1-2008.
-This function is present on the BSDs.
-.\" As at 2006, this function is being considered for a revision of POSIX.1
-.\" Also in NetBSD 1.4.
+.SH HISTORY
+glibc 2.1.91.
+NetBSD 1.4.
+POSIX.1-2008.
 .SH SEE ALSO
 .BR mktemp (1),
 .BR mkdir (2),
index 32cd31bdaded4bf9fdd86a341bf228a96cc6eec0..89d0fb2fad55c6923120271b8569e2b8b7a2ec61 100644 (file)
@@ -181,16 +181,17 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-.BR mkfifoat ()
-was added in glibc 2.4.
 It is implemented using
-.BR mknodat (2),
-available since Linux 2.6.16.
+.BR mknodat (2).
 .SH STANDARDS
-.BR mkfifo ():
-POSIX.1-2001, POSIX.1-2008.
-.PP
-.BR mkfifoat ():
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR mkfifo ()
+POSIX.1-2001.
+.TP
+.BR mkfifoat ()
+glibc 2.4.
 POSIX.1-2008.
 .SH SEE ALSO
 .BR mkfifo (1),
index 8c699ca15695facd5153e3d38bb866787634f0ea..0b4967ec8ea288fa22fb86d6516f20b814d3996f 100644 (file)
@@ -189,27 +189,35 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR mkostemp ()
-is available since glibc 2.7.
-.BR mkstemps ()
-and
-.BR mkostemps ()
-are available since glibc 2.11.
 .SH STANDARDS
-.BR mkstemp ():
-4.3BSD, POSIX.1-2001.
-.PP
-.BR mkstemps ():
-unstandardized, but appears on several other systems.
+.TP
+.BR mkstemp ()
+POSIX.1-2001.
+.TP
+.BR mkstemps ()
+BSD.
 .\" mkstemps() appears to be at least on the BSDs, Mac OS X, Solaris,
 .\" and Tru64.
-.PP
+.TP
 .BR mkostemp ()
-and
-.BR mkostemps ():
-are glibc extensions.
-.SH NOTES
+.TQ
+.BR mkostemps ()
+GNU.
+.SH HISTORY
+.TP
+.BR mkstemp ()
+4.3BSD, POSIX.1-2001.
+.TP
+.BR mkstemps ()
+glibc 2.11.
+BSD, Mac OS X, Solaris, Tru64.
+.TP
+.BR mkostemp ()
+glibc 2.7.
+.TP
+.BR mkostemps ()
+glibc 2.11.
+.PP
 In glibc versions 2.06 and earlier, the file is created with permissions 0666,
 that is, read and write for all users.
 This old behavior may be
index a1968ec685e2e361ef8cde23755e2fb3ee4e42a3..2b5ace8ae14a4e65fd125c0c0a6684aab3843bc4 100644 (file)
@@ -87,9 +87,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD, POSIX.1-2001.
-POSIX.1-2008 removes the specification of
-.BR mktemp ().
+Removed in POSIX.1-2008.
 .\" .SH NOTES
 .\" The prototype is in
 .\" .I <unistd.h>
index 5662b5a06856286d48722fd46302e40dc0f8b749..103b5c2be0abed984f730d296e114a8d8fb763af 100644 (file)
@@ -84,7 +84,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index de6f023a8e6e8dd55eff6dfae5e5cf0db8920a0d..1d09060aced524c8c984a304ffc3b9ac7cf8e819 100644 (file)
@@ -197,8 +197,7 @@ function may fail and set
 for any of the errors specified for the library routine
 .BR free (3).
 .SH STANDARDS
-Not in POSIX.1.
-Present on the BSDs.
+BSD.
 .SH SEE ALSO
 .BR btree (3),
 .BR dbopen (3),
index 76358c53bfd8584809dfecca83221ab64e8b509e..c422ec7ecc793d0f532d3210edb77868b33b2a8e 100644 (file)
@@ -56,7 +56,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 All open message queues are automatically closed on process termination,
 or upon
index 754f56c0f00ed3b3b4ef41938f383b4d3a5ce37f..895c4067bb57b250124785751b1c90da350070d2 100644 (file)
@@ -132,9 +132,7 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 On Linux,
 .BR mq_getattr ()
 and
@@ -142,6 +140,10 @@ and
 are library functions layered on top of the
 .BR mq_getsetattr (2)
 system call.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH EXAMPLES
 The program below can be used to show the default
 .I mq_maxmsg
index 6974074707ab061e8721585a49954325af9d650a..371ae4617a4d3548b7f68def355904eabc462cb2 100644 (file)
@@ -170,10 +170,7 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001.
-.SH NOTES
-.\"
+.SH VERSIONS
 .SS C library/kernel differences
 In the glibc implementation, the
 .BR mq_notify ()
@@ -194,6 +191,10 @@ The implementation involves the use of a raw
 .BR netlink (7)
 socket and creates a new thread for each notification that is
 delivered to the process.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH EXAMPLES
 The following program registers a notification request for the
 message queue named in its command-line argument.
index 09a6ff037b07c255c0897cc3a7c09c91bd7c1293..8897d5e567cb18f1ff12b20fc670e4058dc8914e 100644 (file)
@@ -265,9 +265,7 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 .SS C library/kernel differences
 The
 .BR mq_open ()
@@ -285,6 +283,10 @@ so the C library function passes
 without the preceding slash (i.e.,
 .IR name+1 )
 to the system call.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH BUGS
 Before Linux 2.6.14,
 the process umask was not applied to the permissions specified in
index 6be6223582c24fd5d1d38066f939ffe02cb2c379..fd49ad879757245222cbd8d23d38e657a39460d5 100644 (file)
@@ -144,14 +144,16 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 On Linux,
 .BR mq_timedreceive ()
 is a system call, and
 .BR mq_receive ()
 is a library function layered on top of that system call.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .BR mq_close (3),
 .BR mq_getattr (3),
index ae0bc74d80661f863523131946e0a04ae1430e6c..3dc05b7a266d0297645cde8630225c73d857f00b 100644 (file)
@@ -151,14 +151,16 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 On Linux,
 .BR mq_timedsend ()
 is a system call, and
 .BR mq_send ()
 is a library function layered on top of that system call.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .BR mq_close (3),
 .BR mq_getattr (3),
index 687fe43426e1a58ff684749cadd56332ac332049..17e15c145ec8df6be90b81c8cf451efa25091623 100644 (file)
@@ -58,7 +58,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .BR mq_close (3),
 .BR mq_getattr (3),
index b9f1c4b366bafd08fa2a94767536079f8dc2e4a9..3713ffedf4ab050c170fddc2faec3d1eafa7f28f 100644 (file)
@@ -88,7 +88,7 @@ T}    Thread safety   MT-Unsafe
 .\" glibc manual says muntrace should have marking locale because it calls
 .\" fprintf(), but muntrace does not execute area which cause locale problem.
 .SH STANDARDS
-These functions are GNU extensions.
+GNU.
 .SH NOTES
 In normal usage,
 .BR mtrace ()
index 24c9b95c9d5886f181397c2641d00503b99763bc..996e740676bab590a8971ddd3bc17a164754af6d 100644 (file)
@@ -85,12 +85,14 @@ T}  Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.PP
 See also IEC 559 and the appendix with
 recommended functions in IEEE 754/IEEE 854.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR isnan (3),
 .BR strtod (3),
index 4e6709a9fe79e41ecebd160ae0c25285c429b37c..5da97632b67798e4c010bc68f69deb75ce34dcb8 100644 (file)
@@ -76,12 +76,12 @@ is in a form suitable for parsing.
 .BR NLMSG_PAYLOAD ()
 Return the length of the payload associated with the
 .IR nlmsghdr .
-.SH STANDARDS
-These macros are nonstandard Linux extensions.
-.SH NOTES
+.SH VERSIONS
 It is often better to use netlink via
 .I libnetlink
 than via the low-level kernel interface.
+.SH STANDARDS
+Linux.
 .SH SEE ALSO
 .BR libnetlink (3),
 .BR netlink (7)
index 3ba72a77d68e96b8e4287ca88312ea89dbb9d5f7..48fbeff6e7afaff4cca4d2fa8349f028fa8bdc37 100644 (file)
@@ -182,14 +182,10 @@ is not a string pointer referring to a valid locale.
 .TP
 .B ENOMEM
 Insufficient memory to create a locale object.
-.SH VERSIONS
-The
-.BR newlocale ()
-and
-.BR freelocale ()
-functions first appeared in glibc 2.3.
 .SH STANDARDS
 POSIX.1-2008.
+.SH HISTORY
+glibc 2.3.
 .SH NOTES
 Each locale object created by
 .BR newlocale ()
index f4d7d0552c087ef2cca6289f5100bf10ae806385..f691aacbfb73668cc924d9cbd946f6729f7bf259 100644 (file)
@@ -183,9 +183,12 @@ T} Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.PP
 This function is defined in IEC 559 (and the appendix with
 recommended functions in IEEE 754/IEEE 854).
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH BUGS
 In glibc 2.5 and earlier, these functions do not raise an underflow
 floating-point
index 0adcaac3931a7e2e36a8686c837f7a6bc7b5c153..7000489a342dc906ad7f974f6d39c35f877fb145 100644 (file)
@@ -85,13 +85,13 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.24.
 .SH STANDARDS
 These functions are described in
 .I IEEE Std 754-2008 - Standard for Floating-Point Arithmetic
 and
 .IR "ISO/IEC TS 18661".
+.SH HISTORY
+glibc 2.24.
 .SH SEE ALSO
 .BR nearbyint (3),
 .BR nextafter (3)
index c684c8a26d6ca3e0195d83a96b507f18a7320ecd..63d411745b64f09e98432217d67a6875e8fac054 100644 (file)
@@ -310,7 +310,9 @@ T}  Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SUSv2.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SUSv2.
 .SH NOTES
 The behavior of
 .BR nl_langinfo_l ()
index dd1b359db75b614f8f98cdc44206963a81673b56..8899b56e97137410903aed3621d45d37705bad5f 100644 (file)
@@ -113,18 +113,20 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
+.SH STANDARDS
+.TP
 .BR ntp_gettime ()
-function is available since glibc 2.1.
-The
+NTP Kernel Application Program Interface.
+.TP
 .BR ntp_gettimex ()
-function is available since glibc 2.12.
-.SH STANDARDS
+GNU.
+.SH HISTORY
+.TP
 .BR ntp_gettime ()
-is described in the NTP Kernel Application Program Interface.
+glibc 2.1.
+.TP
 .BR ntp_gettimex ()
-is a GNU extension.
+glibc 2.12.
 .SH SEE ALSO
 .BR adjtimex (2),
 .BR ntp_adjtime (3),
index 7cfba984d5be03d324d5fd007c7448f1807fddc0..b234e5ce1b7e73d96b6bda87851668a59ee91e5e 100644 (file)
@@ -64,7 +64,9 @@ within the given
 .IR type ,
 in units of bytes.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89.
 .SH EXAMPLES
 On a Linux/i386 system, when compiled using the default
 .BR gcc (1)
index d12f920058cf4b1908a5b8bca16ac7da308c6cdb..f2fbec75d2ace453e4ce30d6aa658cee1928a0ef 100644 (file)
@@ -85,12 +85,14 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-This function comes from SunOS 4, but is also present in glibc.
-It no longer occurs in Solaris (SunOS 5).
-Portable application should avoid this function, and use the standard
+None.
+.SH HISTORY
+SunOS 4, glibc.
+Removed in Solaris (SunOS 5).
+Use the standard
 .BR atexit (3)
 instead.
-.SH NOTES
+.SH CAVEATS
 By the time
 .I function
 is executed, stack
index 5a8c18c73719ba55545e98b2b4d7add7da338144..5c3f666b52d86c30219dade6819ec668d1739435 100644 (file)
@@ -113,15 +113,15 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR open_memstream ()
-was already available in glibc 1.0.x.
-.BR open_wmemstream ()
-is available since glibc 2.4.
 .SH STANDARDS
 POSIX.1-2008.
-These functions are not specified in POSIX.1-2001,
-and are not widely available on other systems.
+.SH HISTORY
+.TP
+.BR open_memstream ()
+glibc 1.0.x.
+.TP
+.BR open_wmemstream ()
+glibc 2.4.
 .SH NOTES
 There is no file descriptor associated with the file stream
 returned by these functions
index 778da47967ed07bb31a5a78014a923bc435fc867..0dcae187fb2a2845c4adf679b147a3e7342d94c9 100644 (file)
@@ -107,14 +107,16 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR fdopendir ()
-is available since glibc 2.4.
 .SH STANDARDS
+POSIX.1-2008.
+.SH STANDARDS
+.TP
 .BR opendir ()
-is present on SVr4, 4.3BSD, and specified in POSIX.1-2001.
+SVr4, 4.3BSD, POSIX.1-2001.
+.TP
 .BR fdopendir ()
-is specified in POSIX.1-2008.
+POSIX.1-2008.
+glibc 2.4.
 .SH NOTES
 Filename entries can be read from a directory stream using
 .BR readdir (3).
index 84a8100ad45946c8c181971e162e34659d3890de..0b1d4632d5133858fbe0c6de0989a84253a69a4e 100644 (file)
@@ -148,9 +148,8 @@ T}  Thread safety   MT-Unsafe race:ttyname
 .ad
 .sp 1
 .SH STANDARDS
-These are BSD functions, present in glibc.
-They are not standardized in POSIX.
-.SH NOTES
+BSD.
+.SH HISTORY
 The
 .B const
 modifiers were added to the structure pointer arguments of
index 5f87b93fd122276a69d02a2fe3a70d3d46e97fe1..75e6aa20eaccb4892974b6e1e93e933fea35c9df 100644 (file)
@@ -116,38 +116,28 @@ T}        Thread safety   MT-Safe race:stderr
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-Since glibc 2.32, the declarations of
-.I sys_errlist
-and
-.I sys_nerr
-are no longer exposed by
-.IR <stdio.h> .
 .SH STANDARDS
-.BR perror (),
-.IR errno :
-POSIX.1-2001, POSIX.1-2008, C89, C99, 4.3BSD.
-.PP
-The externals
+.TP
+.I errno
+.TQ
+.BR perror ()
+C11, POSIX.1-2008.
+.TP
 .I sys_nerr
-and
+.TQ
 .I sys_errlist
-derive from BSD, but are not specified in POSIX.1.
-.SH NOTES
-The externals
+BSD.
+.SH HISTORY
+.TP
+.I errno
+.TQ
+.BR perror ()
+POSIX.1-2001, C89, 4.3BSD.
+.TP
 .I sys_nerr
-and
+.TQ
 .I sys_errlist
-are defined by glibc, but in
-.IR <stdio.h> .
-.\" and only when _BSD_SOURCE is defined.
-.\" When
-.\" .B _GNU_SOURCE
-.\" is defined, the symbols
-.\" .I _sys_nerr
-.\" and
-.\" .I _sys_errlist
-.\" are provided.
+Removed in glibc 2.32.
 .SH SEE ALSO
 .BR err (3),
 .BR errno (3),
index 7d4736ec8585b8af7a0692984971b08212ff1787..b955f318249523f0a954a9bd710342b1f040bc00 100644 (file)
@@ -165,15 +165,16 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.PP
+.SH VERSIONS
 The \[aq]e\[aq] value for
 .I type
 is a Linux extension.
-.SH NOTES
-.BR Note :
-carefully read Caveats in
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.SH CAVEATS
+Carefully read Caveats in
 .BR system (3).
 .SH BUGS
 Since the standard input of a command opened for reading shares its seek
index a9b40fe3071e33f4523c813af44c41434d7e4425..8f3b7142202beb24a32997d32fca82e1c34d6cfe 100644 (file)
@@ -110,11 +110,11 @@ T}
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR posix_fallocate ()
-is available since glibc 2.1.94.
 .SH STANDARDS
-POSIX.1-2001.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.94.
+POSIX.1-2001
 .PP
 POSIX.1-2008 says that an implementation
 .I shall
@@ -138,7 +138,7 @@ was less than 0, and
 give the error if
 .I len
 equals zero.
-.SH NOTES
+.SH CAVEATS
 In the glibc implementation,
 .BR posix_fallocate ()
 is implemented using the
index 501295239dda9738c4fc7bc98423c21c78443bf2..06c657afca397a483ff6165bb279b47b60139cf0 100644 (file)
@@ -86,12 +86,6 @@ is invalid.
 Addresses in the specified range are partially or completely outside
 the caller's address space.
 .SH VERSIONS
-Support for
-.BR posix_madvise ()
-was added in glibc 2.2.
-.SH STANDARDS
-POSIX.1-2001.
-.SH NOTES
 POSIX.1 permits an implementation to generate an error if
 .I len
 is 0.
@@ -108,6 +102,11 @@ is treated as a no-op, because the corresponding
 value,
 .BR MADV_DONTNEED ,
 has destructive semantics.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.2.
+POSIX.1-2001.
 .SH SEE ALSO
 .BR madvise (2),
 .BR posix_fadvise (2)
index 43f621915c320f153b9efb2d30dc88cf974c99b7..9bc6eb9a4116e4ff1a324790d57157866754c1c5 100644 (file)
@@ -168,44 +168,43 @@ T}        Thread safety   MT-Unsafe init
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The functions
-.BR memalign (),
-.BR valloc (),
-and
+.SH STANDARDS
+.TP
+.BR aligned_alloc ()
+C11.
+.TP
+.BR posix_memalign ()
+POSIX.1-2008.
+.TP
+.BR memalign ()
+.TQ
+.BR valloc ()
+None.
+.TP
 .BR pvalloc ()
-have been available since at least glibc 2.0.
-.PP
-The function
+GNU.
+.SH HISTORY
+.TP
 .BR aligned_alloc ()
-was added in glibc 2.16.
-.PP
-The function
+glibc 2.16.
+C11.
+.TP
 .BR posix_memalign ()
-is available since glibc 2.1.91.
-.SH STANDARDS
-The function
+glibc 2.1.91.
+POSIX.1d, POSIX.1-2001.
+.TP
+.BR memalign ()
+glibc 2.0.
+SunOS 4.1.3.
+.TP
 .BR valloc ()
-appeared in 3.0BSD.
-It is documented as being obsolete in 4.3BSD,
+glibc 2.0.
+3.0BSD.
+Documented as obsolete in 4.3BSD,
 and as legacy in SUSv2.
-It does not appear in POSIX.1.
-.PP
-The function
+.TP
 .BR pvalloc ()
-is a GNU extension.
-.PP
-The function
-.BR memalign ()
-appears in SunOS 4.1.3 but not in 4.4BSD.
-.PP
-The function
-.BR posix_memalign ()
-comes from POSIX.1d and is specified in POSIX.1-2001 and POSIX.1-2008.
-.PP
-The function
-.BR aligned_alloc ()
-is specified in the C11 standard.
+glibc 2.0.
 .\"
 .SS Headers
 Everybody agrees that
index 2605b87ec804457b39e79f7b077949aa885d20ce..0560879a0af7518bed26fbef5e1f1b9bd7a7318e 100644 (file)
@@ -71,15 +71,13 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-glibc support for
-.BR posix_openpt ()
-has been provided since glibc 2.2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.2.1.
+POSIX.1-2001.
 .PP
-.BR posix_openpt ()
-is part of the UNIX 98 pseudoterminal support (see
+It is part of the UNIX 98 pseudoterminal support (see
 .BR pts (4)).
 .SH NOTES
 Some older UNIX implementations that support System V
index 1a6daaf824d9ef922f21b62188cbed36b8dd1a29..32dc1211ce4b2c0b5b5a0c63ca5028c4522a3f41 100644 (file)
@@ -508,14 +508,11 @@ In addition, these functions fail if:
 .TP
 .B ENOSYS
 Function not supported on this system.
-.SH VERSIONS
-The
-.BR posix_spawn ()
-and
-.BR posix_spawnp ()
-functions are available since glibc 2.2.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.2.
+POSIX.1-2001.
 .\" FIXME . This piece belongs in spawnattr_setflags(3)
 .\" The
 .\" .B POSIX_SPAWN_USEVFORK
index a1c48c31b11c134167943116feb620416485df04..cfa0f90392a48a1abf709230827cd439f37bbc58 100644 (file)
@@ -326,7 +326,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index aeac782869c0221e013613f6b428c1be46233ed1..6af433caee0e617ee24b436694d4d2247fb014d1 100644 (file)
@@ -48,13 +48,12 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
+.SH STANDARDS
+GNU.
 .SH VERSIONS
-These functions were added in glibc 2.1.
-Since glibc 2.27,
+glibc 2.1.
+Removed in glibc 2.27.
 .\" glibc commit 5a80d39d0d2587e9bd8e72f19e92eeb2a66fbe9e
-the use of these functions in new programs is no longer supported.
-.SH STANDARDS
-This functions are nonstandard GNU extensions.
 .SH SEE ALSO
 .BR exp10 (3),
 .BR pow (3)
index 04d58dbf89866a82111797f4445988915057aea2..65420bfdcc0d4b4575954929d44665c494927972 100644 (file)
@@ -31,7 +31,7 @@ if
 is a power of 2 or not,
 respectively.
 .SH STANDARDS
-This nonstandard macro is present in glibc and the BSDs.
+BSD.
 .SH CAVEATS
 The arguments may be evaluated more than once.
 .PP
index 763b5e2a276f446de34fdbc4604c9ddb347a747e..790ebf4d8ff61b8dfe2d330eef3d43d8dc25fb25 100644 (file)
@@ -919,7 +919,70 @@ T} Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH VERSIONS
+.SH STANDARDS
+.TP
+.BR fprintf ()
+.TQ
+.BR printf ()
+.TQ
+.BR sprintf ()
+.TQ
+.BR vprintf ()
+.TQ
+.BR vfprintf ()
+.TQ
+.BR vsprintf ()
+.TQ
+.BR snprintf ()
+.TQ
+.BR vsnprintf ()
+C11, POSIX.1-2008.
+.TP
+.BR dprintf ()
+.TQ
+.BR vdprintf ()
+GNU, POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR fprintf ()
+.TQ
+.BR printf ()
+.TQ
+.BR sprintf ()
+.TQ
+.BR vprintf ()
+.TQ
+.BR vfprintf ()
+.TQ
+.BR vsprintf ()
+C89, POSIX.1-2001.
+.TP
+.BR snprintf ()
+.TQ
+.BR vsnprintf ()
+SUSv2, C99, POSIX.1-2001.
+.IP
+Concerning the return value of
+.BR snprintf (),
+SUSv2 and C99 contradict each other: when
+.BR snprintf ()
+is called with
+.IR size =0
+then SUSv2 stipulates an unspecified return value less than 1,
+while C99 allows
+.I str
+to be NULL in this case, and gives the return value (as always)
+as the number of characters that would have been written in case
+the output string has been large enough.
+POSIX.1-2001 and later align their specification of
+.BR snprintf ()
+with C99.
+.TP
+.BR dprintf ()
+.TQ
+.BR vdprintf ()
+GNU, POSIX.1-2008.
+.PP
 .\" Linux libc4 knows about the five C standard flags.
 .\" It knows about the length modifiers \fBh\fP, \fBl\fP, \fBL\fP,
 .\" and the conversions
@@ -959,42 +1022,7 @@ of the
 .B m
 conversion specifier, that is
 .IR %#m .
-.SH STANDARDS
-.BR fprintf (),
-.BR printf (),
-.BR sprintf (),
-.BR vprintf (),
-.BR vfprintf (),
-.BR vsprintf ():
-POSIX.1-2001, POSIX.1-2008, C89, C99.
-.PP
-.BR snprintf (),
-.BR vsnprintf ():
-POSIX.1-2001, POSIX.1-2008, C99.
-.PP
-The
-.BR dprintf ()
-and
-.BR vdprintf ()
-functions were originally GNU extensions that were later standardized
-in POSIX.1-2008.
-.PP
-Concerning the return value of
-.BR snprintf (),
-SUSv2 and C99 contradict each other: when
-.BR snprintf ()
-is called with
-.IR size =0
-then SUSv2 stipulates an unspecified return value less than 1,
-while C99 allows
-.I str
-to be NULL in this case, and gives the return value (as always)
-as the number of characters that would have been written in case
-the output string has been large enough.
-POSIX.1-2001 and later align their specification of
-.BR snprintf ()
-with C99.
-.SH NOTES
+.SH CAVEATS
 Some programs imprudently rely on code such as the following
 .PP
 .in +4n
index 69a94fdc260cd362322fc5455c95ef706070f2c0..7791064a30b8150367f347ca482a1fec6d79fafe 100644 (file)
@@ -77,7 +77,9 @@ T}    Thread safety   MT-Unsafe
 .ad
 .sp 1
 .SH STANDARDS
-Similar to a call in SVr4 (but not POSIX.1).
+None.
+.SH HISTORY
+Similar to a call in SVr4.
 .SH BUGS
 .BR profil ()
 cannot be used on a program that also uses
index 97d7874708443484238ac94303694c332bcede2c..94b8866a0197376dcf302b1d24d196477384f3cb 100644 (file)
@@ -56,12 +56,11 @@ with all text up to and including the final slash (/), if any, removed.
 .PP
 These variables are automatically initialized by the glibc run-time
 startup code.
-.SH STANDARDS
-These variables are GNU extensions, and should not be
-used in programs intended to be portable.
-.SH NOTES
+.SH VERSIONS
 The Linux-specific
-.I /proc/[number]/cmdline
+.IR /proc/ pid /cmdline
 file provides access to similar information.
+.SH STANDARDS
+GNU.
 .SH SEE ALSO
 .BR proc (5)
index 39aff2a33ba49abe8e7620241c9f10d742a73f69..f428c0e7cedc397ade1010d5aa517518082ff8d1 100644 (file)
@@ -93,11 +93,10 @@ T}  Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR psiginfo ()
-function was added in glibc 2.10.
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.10.
 POSIX.1-2008, 4.3BSD.
 .SH BUGS
 Up to glibc 2.12,
index 1875bbdb4ac57fc5c041ffc4288bf88ebec17e0a..42811f85e2df94cf8af33b78675d35267ea27d28 100644 (file)
@@ -65,7 +65,9 @@ handlers are called in the order of registration.
 .B ENOMEM
 Could not allocate memory to record the fork handler list entry.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 When
 .BR fork (2)
index d0919101df82e9c16e01d84c57a1da4f6456a8df..22abc969d973f19176707f73ce2db2620a4e90ef 100644 (file)
@@ -77,7 +77,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The
 .I pthread_attr_t
index 7cb20eb0f1fab55fa226524bd80a71af55df014c..c095815d7a268ad65427d1434507c5e6c45a0304 100644 (file)
@@ -103,11 +103,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions are provided since glibc 2.3.4.
 .SH STANDARDS
-These functions are nonstandard GNU extensions;
+GNU;
 hence the suffix "_np" (nonportable) in the names.
+.SH HISTORY
+glibc 2.3.4.
 .SH NOTES
 In glibc 2.3.3 only,
 versions of these functions were provided that did not have a
index 7f692f698818c7b2164f84ebec87b5127d7640f2..402d8e01eff43f17710a5516da13f98cf2de3261 100644 (file)
@@ -85,7 +85,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 See
 .BR pthread_create (3)
index 01d9af47c0dacc62c51debd9226231229a3c0a52..00c65e4ff9215c107ac17dd4d2c3917ba0c3c86b 100644 (file)
@@ -101,10 +101,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions are provided since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .SH NOTES
 A guard area consists of virtual memory pages that are protected
 to prevent read and write access.
index 0ed304eb05f72b409f96c70312fcc25e87c0ce19..98dc2eea1d2d1a8c37735b0a1aa90e2725e4e2d4 100644 (file)
@@ -105,10 +105,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.\" .SH VERSIONS
-.\" Available since glibc 2.0.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.0.
+POSIX.1-2001.
 .SH BUGS
 As at glibc 2.8, if a thread attributes object is initialized using
 .BR pthread_attr_init (3),
index 834c08905cddaf3f3eb3106f7506ff2da5c1b6ad..c4ad066bff1197ea206c18399a601aab7ff4fa63 100644 (file)
@@ -102,10 +102,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.\" .SH VERSIONS
-.\" Available since glibc 2.0.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+glibc 2.0.
 .SH NOTES
 See
 .BR pthread_attr_setschedpolicy (3)
index df370c2089a64180aea486dfc71141769277d2f4..f727e7bdb65a6704f854919b1dc7a5aa521c5619 100644 (file)
@@ -94,10 +94,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.\" .SH VERSIONS
-.\" Available since glibc 2.0.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.0.
+POSIX.1-2001.
 .SH EXAMPLES
 See
 .BR pthread_setschedparam (3).
index 6a7dd184016e17a4083f6bdc8f18c4228cd4c33d..038661567e7b83753d68c0004ec8f81c00e25e19 100644 (file)
@@ -116,7 +116,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The
 .B PTHREAD_SCOPE_SYSTEM
index 8ba91c4303b4e6bd932c186a5368cc302a189eff..c005cb5ac8ad6633f3a56cb7ce944a87e1a96de6 100644 (file)
@@ -86,11 +86,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions are provided since glibc 2.32.
 .SH STANDARDS
-These functions are nonstandard GNU extensions;
+GNU;
 hence the suffix "_np" (nonportable) in the names.
+.SH HISTORY
+glibc 2.32.
 .SH NOTES
 The signal mask attribute determines the signal mask that will be assigned to
 a thread created using the thread attributes object
index be52f85b28d919eba7b0d72672dfcf28d17d66f4..0f883c26ca70d1cc3fce58b644ca38221731ddec 100644 (file)
@@ -107,10 +107,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions are provided since glibc 2.2.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.2.
+POSIX.1-2001.
 .SH NOTES
 These functions are provided for applications that must ensure that
 a thread's stack is placed in a particular location.
index a19aeda210c3090023727fa567a51676f6e07328..e92e442db3b689f3462c3c7f8a05f76b71b6514f 100644 (file)
@@ -15,8 +15,10 @@ POSIX threads library
 .nf
 .B #include <pthread.h>
 .PP
+.B [[deprecated]]
 .BI "int pthread_attr_setstackaddr(pthread_attr_t *" attr \
 ", void *" stackaddr );
+.B [[deprecated]]
 .BI "int pthread_attr_getstackaddr(const pthread_attr_t *restrict " attr ,
 .BI "                              void **restrict " stackaddr );
 .fi
@@ -78,11 +80,12 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions are provided since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001 specifies these functions but marks them as obsolete.
-POSIX.1-2008 removes the specification of these functions.
+None.
+.SH HISTORY
+glibc 2.1.
+Marked obsolete in POSIX.1-2001.
+Removed in POSIX.1-2008.
 .SH NOTES
 .I Do not use these functions!
 They cannot be portably used, since they provide no way of specifying
index a6bd16bd0cdc04d56b2dbe881c6a8591570295be..231466119c36dbee79f985a3c5a10d31738c325b 100644 (file)
@@ -119,11 +119,7 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.\" .SH VERSIONS
-.\" Available since glibc 2.0
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 On Linux, cancelation is implemented using signals.
 Under the NPTL threading implementation,
 the first real-time signal (i.e., signal 32) is used for this purpose.
@@ -131,6 +127,11 @@ On LinuxThreads, the second real-time signal is used,
 if real-time signals are available, otherwise
 .B SIGUSR2
 is used.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.0
+POSIX.1-2001.
 .SH EXAMPLES
 The program below creates a thread and then cancels it.
 The main thread joins with the canceled thread to check
index 90649b4cf10494ff848f3c86336b4d78754cb478..658b732770c9072913f9fc3f60fa70455a3469d8 100644 (file)
@@ -121,12 +121,8 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.\" SH VERSIONS
-.\" Available since glibc 2.0
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-On Linux, the
+.SH VERSIONS
+On glibc, the
 .BR pthread_cleanup_push ()
 and
 .BR pthread_cleanup_pop ()
@@ -151,6 +147,11 @@ and
 .BR pthread_cleanup_pop ()
 is undefined.
 Portable applications should avoid doing this.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+glibc 2.0.
 .SH EXAMPLES
 The program below provides a simple example of the use of the functions
 described in this page.
index e7eb957e583a95739e7fe317b0afff65f63864b7..b14c11a8663159fe219e62f589fd882936334aac 100644 (file)
@@ -87,11 +87,11 @@ pthread_setcanceltype(oldtype, NULL);
 pthread_cleanup_pop(execute);
 .EE
 .in
-.\" SH VERSIONS
-.\" Available since glibc 2.0
 .SH STANDARDS
-These functions are nonstandard GNU extensions;
+GNU;
 hence the suffix "_np" (nonportable) in the names.
+.SH HISTORY
+glibc 2.0
 .SH SEE ALSO
 .BR pthread_cancel (3),
 .BR pthread_cleanup_push (3),
index 5c872641de738bebf51ebe25a70d9c3fd4eab4d5..b90bd749412cad64258e08ee6edc02e692fa0444 100644 (file)
@@ -152,7 +152,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 See
 .BR pthread_self (3)
index 3ccce10b58f58f052b01ba34b88010118a6e15bc..946ae31402eaec4953cf45416327ab9b40d2a77a 100644 (file)
@@ -61,7 +61,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 Once a thread has been detached, it can't be joined with
 .BR pthread_join (3)
index 0e34afe010549d84409b7299658c7f8861eab2ff..8777e682b85314b19eafcb6cad5f6bc7421f2a1d 100644 (file)
@@ -44,7 +44,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The
 .BR pthread_equal ()
index 2f22a3428fc0045cd16dd1a5f43a7becc4f59129..65b36cda52ec4d0ee6fb992a857d010606c46888 100644 (file)
@@ -72,7 +72,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 Performing a return from the start function of any thread other
 than the main thread results in an implicit call to
index a20e9ad137a80eb666db5057e9736d85a1f96914..271df0852a4eb9e53a2f5f53f5f2735d6a0eee28 100644 (file)
@@ -76,11 +76,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions are available since glibc 2.18.
 .SH STANDARDS
-These functions are nonstandard GNU extensions;
+GNU;
 hence the suffix "_np" (nonportable) in their names.
+.SH HISTORY
+glibc 2.18.
 .SH EXAMPLES
 The program below uses
 .BR pthread_getattr_default_np ()
index 59e1d628875dc018cdef653ae658b8a2b203b0d4..cc397c36d5baa9c84a8a177a8684baf44d23f8df 100644 (file)
@@ -92,11 +92,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-This function is available since glibc 2.2.3.
 .SH STANDARDS
-This function is a nonstandard GNU extension;
+GNU;
 hence the suffix "_np" (nonportable) in the name.
+.SH HISTORY
+glibc 2.2.3.
 .SH EXAMPLES
 The program below demonstrates the use of
 .BR pthread_getattr_np ().
index 968f9c99666c967eaedea842b57bcf1aa809e1d7..92c4b47a01bb0b5b83fe3cd4de83238dd46751de 100644 (file)
@@ -62,10 +62,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-This function is available since glibc 2.2.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.2.
+POSIX.1-2001.
 .SH NOTES
 When
 .I thread
index 727845dcfb1634ad5de79cc0e2aa9ad4e0af91b9..1cb5ee4173e02d09d509f4791d5f8b18c7c89a4f 100644 (file)
@@ -95,7 +95,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 After a successful call to
 .BR pthread_join (),
index c13c88bc8dcc81cef0521d3988a0122d294f85a2..bce768fda380606f57b23f364f1d605c66dddbcf 100644 (file)
@@ -66,16 +66,7 @@ T}   Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-Signal dispositions are process-wide:
-if a signal handler is installed,
-the handler will be invoked in the thread
-.IR thread ,
-but if the disposition of the signal is "stop", "continue", or "terminate",
-this action will affect the whole process.
-.PP
+.SH VERSIONS
 The glibc implementation of
 .BR pthread_kill ()
 gives an error
@@ -98,6 +89,17 @@ lifetime has ended produces undefined behavior,
 and an attempt to use an invalid thread ID in a call to
 .BR pthread_kill ()
 can, for example, cause a segmentation fault.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.SH NOTES
+Signal dispositions are process-wide:
+if a signal handler is installed,
+the handler will be invoked in the thread
+.IR thread ,
+but if the disposition of the signal is "stop", "continue", or "terminate",
+this action will affect the whole process.
 .SH SEE ALSO
 .BR kill (2),
 .BR sigaction (2),
index 0aee6411ec267a421ba07af1a3647f9ff7dc2e97..950e46f96c47fe21ad3d0e93920be6f17ee9dafd 100644 (file)
@@ -43,11 +43,18 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.\" .SH VERSIONS
-.\" Available since glibc 2.0
+.SH VERSIONS
+In the NPTL threading implementation,
+.BR pthread_kill_other_threads_np ()
+exists, but does nothing.
+(Nothing needs to be done,
+because the implementation does the right thing during an
+.BR execve (2).)
 .SH STANDARDS
-This function is a nonstandard GNU extension;
+GNU;
 hence the suffix "_np" (nonportable) in the name.
+.SH HISTORY
+glibc 2.0
 .SH NOTES
 .BR pthread_kill_other_threads_np ()
 is intended to be called just before a thread calls
@@ -57,13 +64,6 @@ This function is designed to address a limitation in the obsolete
 LinuxThreads implementation whereby the other threads of an application
 are not automatically terminated (as POSIX.1-2001 requires) during
 .BR execve (2).
-.PP
-In the NPTL threading implementation,
-.BR pthread_kill_other_threads_np ()
-exists, but does nothing.
-(Nothing needs to be done,
-because the implementation does the right thing during an
-.BR execve (2).)
 .SH SEE ALSO
 .BR execve (2),
 .BR pthread_cancel (3),
index d2a983db1c4bc50e8d6403ce813afdbef653dc90..57bcca16258dabd7f106b130d730a592ba565ba0 100644 (file)
@@ -44,19 +44,11 @@ it returns a positive error number to indicate the error.
 .TP
 .B EINVAL
 The mutex is either not robust or is not in an inconsistent state.
-.SH VERSIONS
-.BR pthread_mutex_consistent ()
-was added in glibc 2.12.
 .SH STANDARDS
 POSIX.1-2008.
-.SH NOTES
-.BR pthread_mutex_consistent ()
-simply informs the implementation that the state (shared data)
-guarded by the mutex has been restored to a consistent state and that
-normal operations can now be performed with the mutex.
-It is the application's responsibility to ensure that the
-shared data has been restored to a consistent state before calling
-.BR pthread_mutex_consistent ().
+.SH HISTORY
+glibc 2.12.
+POSIX.1-2008.
 .PP
 Before the addition of
 .BR pthread_mutex_consistent ()
@@ -73,6 +65,14 @@ was defined:
 This GNU-specific API, which first appeared in glibc 2.4,
 is nowadays obsolete and should not be used in new programs;
 since glibc 2.34 it has been marked as deprecated.
+.SH NOTES
+.BR pthread_mutex_consistent ()
+simply informs the implementation that the state (shared data)
+guarded by the mutex has been restored to a consistent state and that
+normal operations can now be performed with the mutex.
+It is the application's responsibility to ensure that the
+shared data has been restored to a consistent state before calling
+.BR pthread_mutex_consistent ().
 .SH EXAMPLES
 See
 .BR pthread_mutexattr_setrobust (3).
index 8f55ffd122be9f805aef4bdc66dffcf66d65967f..86056e573ddcf4b969c34df36845536f3aeb601d 100644 (file)
@@ -72,7 +72,9 @@ is invalid.
 .B PTHREAD_PROCESS_SHARED
 but the implementation does not support process-shared mutexes.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .ad l
 .nh
index 6024048cc63e7ced84c9b2722647759f0f1ab918..6d8a6411f8095159613c3a71940d0ff7eb3264b0 100644 (file)
@@ -38,7 +38,9 @@ object are undefined.
 On success, these functions return 0.
 On error, they return a positive error number.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 Subsequent changes to a mutex attributes object do not affect mutex that
 have already been initialized using that object.
index a1205190db8612e3927c88f06187c84e51d3c778..b13ddc8eb38b2e6fd6a95885bdceaa9dac4df538 100644 (file)
@@ -121,13 +121,6 @@ or
 was passed to
 .BR pthread_mutexattr_setrobust ().
 .SH VERSIONS
-.BR pthread_mutexattr_getrobust ()
-and
-.BR pthread_mutexattr_setrobust ()
-were added in glibc 2.12.
-.SH STANDARDS
-POSIX.1-2008.
-.SH NOTES
 In the Linux implementation,
 when using process-shared robust mutexes, a waiting thread also receives the
 .B EOWNERDEAD
@@ -138,6 +131,11 @@ POSIX.1 does not specify this detail,
 but the same behavior also occurs in at least some
 .\" E.g., Solaris, according to its manual page
 other implementations.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.12.
+POSIX.1-2008.
 .PP
 Before the addition of
 .BR pthread_mutexattr_getrobust ()
index 7e750045c5973dacd578334518372239018a674e..ff9051ce6f1c11d756880700ce278cef0791b15e 100644 (file)
@@ -110,14 +110,10 @@ returns a nonzero error number.
 .B EINVAL
 .I pref
 specifies an unsupported value.
-.SH VERSIONS
-The
-.BR pthread_rwlockattr_getkind_np ()
-and
-.BR pthread_rwlockattr_setkind_np ()
-functions first appeared in glibc 2.1.
 .SH STANDARDS
-These functions are non-standard GNU extensions;
+GNU;
 hence the suffix "_np" (nonportable) in the names.
+.SH HISTORY
+glibc 2.1.
 .SH SEE ALSO
 .BR pthreads (7)
index 6066a61a61f7d4cb5e9afbfb927d0da77c5ad8ff..7f99018af4347a5012083c1b1e0396b3aab86597 100644 (file)
@@ -47,7 +47,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 POSIX.1 allows an implementation wide freedom in choosing
 the type used to represent a thread ID;
index 9c148379755521d939207e5691943781fb688980..ed2bb82d77694760cd0adef8cff00b9726b7c54b 100644 (file)
@@ -112,11 +112,18 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions are provided since glibc 2.3.4.
 .SH STANDARDS
-These functions are nonstandard GNU extensions;
+GNU;
 hence the suffix "_np" (nonportable) in the names.
+.SH HISTORY
+glibc 2.3.4.
+.PP
+In glibc 2.3.3 only,
+versions of these functions were provided that did not have a
+.I cpusetsize
+argument.
+Instead the CPU set size given to the underlying system calls was always
+.IR sizeof(cpu_set_t) .
 .SH NOTES
 After a call to
 .BR pthread_setaffinity_np (),
@@ -137,13 +144,6 @@ and
 .BR sched_getaffinity (2)
 system calls.
 .PP
-In glibc 2.3.3 only,
-versions of these functions were provided that did not have a
-.I cpusetsize
-argument.
-Instead the CPU set size given to the underlying system calls was always
-.IR sizeof(cpu_set_t) .
-.PP
 A new thread created by
 .BR pthread_create (3)
 inherits a copy of its creator's CPU affinity mask.
index e44ca91f5e138bd1c9273a0df939453ad04b3101..685ed4fb78054adc0382288b7d10bc04845dd09b 100644 (file)
@@ -122,10 +122,11 @@ T}
 .ad
 .sp 1
 .hy
-.\" .SH VERSIONS
-.\" Available since glibc 2.0
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.0
+POSIX.1-2001.
 .SH NOTES
 For details of what happens when a thread is canceled, see
 .BR pthread_cancel (3).
index 8e44fd7113bf78cb66018fdc54f635e979a6b7cf..dcce679af8d74c97359808405dad7dc81678306c 100644 (file)
@@ -78,10 +78,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions are available since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .SH NOTES
 The default concurrency level is 0.
 .PP
index d5ce530b3089be943059902fa953b4856633bcb5..0e326bc5cd35e55f9c68b21c8f87e7f7c3d5a3e8 100644 (file)
@@ -99,11 +99,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.12.
 .SH STANDARDS
-These functions are nonstandard GNU extensions;
+GNU;
 hence the suffix "_np" (nonportable) in the names.
+.SH HISTORY
+glibc 2.12.
 .SH NOTES
 .BR pthread_setname_np ()
 internally writes to the thread-specific
index 59dbbe609230233cab90735633669d457cae0cc9..4de5d4cd7e9a191b37c414fe143aaf32bfb03018 100644 (file)
@@ -136,10 +136,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.\" .SH VERSIONS
-.\" Available since glibc 2.0
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.0
+POSIX.1-2001.
 .SH NOTES
 For a description of the permissions required to, and the effect of,
 changing a thread's scheduling policy and priority,
index 650a33b6a4b9bf4b5c1ddf5da3b1bdb44af90485..caa61682555ab10eaf10d00c0327fd9ee0dd13d7 100644 (file)
@@ -77,10 +77,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-This function is available since glibc 2.3.4.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.3.4.
+POSIX.1-2001.
 .SH NOTES
 For a description of the permissions required to, and the effect of,
 changing a thread's scheduling priority,
index acbc620bf78d50961ea2bdcae32755b02134521d..f91b6d365df0c844c8ec49c4fb9135adf214c19d 100644 (file)
@@ -64,7 +64,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 A new thread inherits a copy of its creator's signal mask.
 .PP
index 3777609f9cc3d1b05423ab622bfafcd784526a01..cd2c22926491bdbebb3f2bd95d3db920ef08002e 100644 (file)
@@ -89,12 +89,6 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-The
-.BR pthread_sigqueue ()
-function first appeared in glibc 2.11.
-.SH STANDARDS
-This function is a GNU extension.
-.SH NOTES
 The glibc implementation of
 .BR pthread_sigqueue ()
 gives an error
@@ -104,6 +98,10 @@ used internally by the NPTL threading implementation.
 See
 .BR nptl (7)
 for details.
+.SH STANDARDS
+GNU.
+.SH HISTORY
+glibc 2.11.
 .SH SEE ALSO
 .BR rt_tgsigqueueinfo (2),
 .BR sigaction (2),
index 511820fee060cb9bee2c3d5cc99417eb80c4514a..450134f97f50fdb675e63377f885b87c43eecacb 100644 (file)
@@ -103,9 +103,10 @@ a new spin lock.
 .TP
 .B ENOMEM
 Insufficient memory to initialize the spin lock.
-.SH VERSIONS
-These functions were added in glibc 2.2.
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.2.
 POSIX.1-2001.
 .PP
 Support for process-shared spin locks is a POSIX option.
index 7a41f203dcc50f2254172d1c30fb7d2cfb3bdbe0..37898861a308e6f0685b10d5a99600772ad1748c 100644 (file)
@@ -82,11 +82,12 @@ fails with the following errors:
 .TP
 .B EBUSY
 The spin lock is currently locked by another thread.
-.SH VERSIONS
-These functions were added in glibc 2.2.
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.2.
 POSIX.1-2001.
-.SH NOTES
+.SH CAVEATS
 Applying any of the functions described on this page to
 an uninitialized spin lock results in undefined behavior.
 .PP
index 797d38719149413297b75a0e7e89029b7574b71e..b976e1c78a8d79ec22513e8ad80f4c8eb505d91d 100644 (file)
@@ -52,10 +52,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.\" SH VERSIONS
-.\" Available since glibc 2.0
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.0.
+POSIX.1-2001.
 .SH EXAMPLES
 See
 .BR pthread_cleanup_push (3).
index d816f2e07cf6cdb452eaccceca53b9562340fa07..d2def80e10208c996bc984c2cbc61b129508c45d 100644 (file)
@@ -110,11 +110,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.3.3.
 .SH STANDARDS
-These functions are nonstandard GNU extensions;
+GNU;
 hence the suffix "_np" (nonportable) in the names.
+.SH HISTORY
+glibc 2.3.3.
 .SH BUGS
 The
 .BR pthread_timedjoin_np ()
index e68cb532571fd4b43698284612724add36e645b0..ec57bdaef685ee79a4b2ad7a72b1d686ad795b50 100644 (file)
@@ -53,17 +53,17 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-Since glibc 2.34, this function is marked as deprecated.
+On Linux, this function is implemented as a call to
+.BR sched_yield (2).
 .SH STANDARDS
-This call is nonstandard, but present on several other systems.
+None.
+.SH HISTORY
+.\" BSD, Tru64, AIX, and Irix.
+Deprecated since glibc 2.34.
 Use the standardized
 .BR sched_yield (2)
 instead.
-.\" e.g., the BSDs, Tru64, AIX, and Irix.
 .SH NOTES
-On Linux, this function is implemented as a call to
-.BR sched_yield (2).
-.PP
 .BR pthread_yield ()
 is intended for use with real-time scheduling policies (i.e.,
 .B SCHED_FIFO
index a4a4222b4e1e2a7a0608ccf966cdcd2e496240ad..d42ef713f038e344724fb89005cc5ae34d65aa6f 100644 (file)
@@ -110,16 +110,18 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-.BR ptsname ()
-is provided since glibc 2.1.
+A version of
+.BR ptsname_r ()
+is documented on Tru64 and HP-UX,
+but on those implementations,
+\-1 is returned on error, with
+.I errno
+set to indicate the error.
+Avoid using this function in portable programs.
 .SH STANDARDS
 .TP
 .BR ptsname ():
-POSIX.1-2001, POSIX.1-2008.
-.PP
-.BR ptsname ()
-is part of the UNIX 98 pseudoterminal support (see
-.BR pts (4)).
+POSIX.1-2008.
 .PP
 .BR ptsname_r ()
 is a Linux extension, that is proposed for inclusion
@@ -127,11 +129,15 @@ is a Linux extension, that is proposed for inclusion
 .\" http://austingroupbugs.net/tag_view_page.php?tag_id=8
 .\" http://austingroupbugs.net/view.php?id=508
 in the next major revision of POSIX.1 (Issue 8).
-A version of this function is documented on Tru64 and HP-UX, but
-on those implementations, \-1 is returned on error, with
-.I errno
-set to indicate the error.
-Avoid using this function in portable programs.
+.SH HISTORY
+.TP
+.BR ptsname ():
+POSIX.1-2001.
+glibc 2.1.
+.PP
+.BR ptsname ()
+is part of the UNIX 98 pseudoterminal support (see
+.BR pts (4)).
 .SH SEE ALSO
 .BR grantpt (3),
 .BR posix_openpt (3),
index ed13b693b97801066a6bdbe6353ce1a577014ef2..59c2ff1cf7261287818cf678748dc66fd463d824 100644 (file)
@@ -81,8 +81,10 @@ T}   Thread safety   MT-Unsafe const:env
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
-.SH NOTES
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
+.PP
 The
 .BR putenv ()
 function is not required to be reentrant, and the
index 9f01b19d67c93465fd701b7fe36e38b26ec40d53..2373de1e6d352fb30116ca20a98d92bfe1b00160 100644 (file)
@@ -62,7 +62,7 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-This function is a GNU extension.
+GNU.
 .SH SEE ALSO
 .BR fgetgrent (3),
 .BR getgrent (3),
index 615747b3f54734d43ad13788f013872d33349ce4..7683c53196795dfbe925447cc192bbedee0ac91a 100644 (file)
@@ -86,6 +86,8 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 SVr4.
 .SH SEE ALSO
 .BR endpwent (3),
index 10a7f0cb77fd0b57f52a5da838bd211162b06837..34e3a61086c88295712166d5626c56917d8c17f2 100644 (file)
@@ -103,7 +103,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, C99.
 .SH BUGS
 It is not advisable to mix calls to output functions from the
 .I stdio
index ffc3e847e24ba1bcc5bd9691ca2ecf3fd11bc165..f6c7fd750c690c4e4d2d0eae16820fa9602cf1a0 100644 (file)
@@ -74,7 +74,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR putwchar ()
index 7251bd91ad7d01db1383b5f2e4ca1af79408e033..78bcc88c3c632851a5a417c4082668a60ae5d84c 100644 (file)
@@ -93,12 +93,11 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-SVr4.
-Not seen in most common UNIX implementations,
-but occurs in SunOS.
+None.
+.SH HISTORY
+SVr4, SunOS, GNU.
 .\" Not supported by libc4 and libc5.
-Supported by glibc.
-.SH NOTES
+.PP
 These functions are obsolete.
 Instead,
 .BR snprintf (3)
index e652bcd1fb82f3d03f5a5dec02c87ec0a1d5ad8a..0801a7eb0444daff1e92bba7c5ea4d2dedda6545 100644 (file)
@@ -99,12 +99,17 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR qsort_r ()
-was added in glibc 2.8.
 .SH STANDARDS
-.BR qsort ():
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+.TP
+.BR qsort ()
+C11, POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR qsort ()
+POSIX.1-2001, C89, SVr4, 4.3BSD.
+.TP
+.BR qsort_r ()
+glibc 2.8.
 .SH NOTES
 To compare C strings, the comparison function can call
 .BR strcmp (3),
index 82903c118a21353331e83702894940ade1bcdd1e..89afd746ec941548a7056069911c8344b5a5967d 100644 (file)
@@ -63,8 +63,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99.
-.SH NOTES
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89.
+.PP
 Since glibc 2.3.3,
 .BR raise ()
 is implemented by calling
index 2692bc23543cfd062335eb6dccd696ad35c7ca85..e6cd1fa258092bba999a7694824ff0caa5ab90a1 100644 (file)
@@ -133,19 +133,7 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-The functions
-.BR rand ()
-and
-.BR srand ()
-conform to SVr4, 4.3BSD, C89, C99, POSIX.1-2001.
-The function
-.BR rand_r ()
-is from POSIX.1-2001.
-POSIX.1-2008 marks
-.BR rand_r ()
-as obsolete.
-.SH NOTES
+.SH VERSIONS
 The versions of
 .BR rand ()
 and
@@ -164,6 +152,25 @@ when good randomness is needed.
 (Use
 .BR random (3)
 instead.)
+.SH STANDARDS
+.TP
+.BR rand ()
+.TQ
+.BR srand ()
+C11, POSIX.1-2008.
+.TP
+.BR rand_r ()
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR rand ()
+.TQ
+.BR srand ()
+SVr4, 4.3BSD, C89, POSIX.1-2001.
+.TP
+.BR rand_r ()
+POSIX.1-2001.
+Obsolete in POSIX.1-2008.
 .SH EXAMPLES
 POSIX.1-2001 gives the following example of an implementation of
 .BR rand ()
index 7bc300d7ba6ba979d3b51ef4528864cb7cf124dd..94f146a13dded17cad80f6dbfa1307a9c952cfae 100644 (file)
@@ -156,16 +156,10 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD.
 .SH NOTES
-The
-.BR random ()
-function should not be used in multithreaded programs
-where reproducible behavior is required.
-Use
-.BR random_r (3)
-for that purpose.
-.PP
 Random-number generation is a complex topic.
 .I Numerical Recipes in C: The Art of Scientific Computing
 (William H.\& Press, Brian P.\& Flannery, Saul A.\& Teukolsky,
@@ -178,6 +172,14 @@ in depth, see Chapter 3 (Random Numbers) in Donald E.\& Knuth's
 .IR "The Art of Computer Programming" ,
 volume 2 (Seminumerical Algorithms), 2nd ed.; Reading, Massachusetts:
 Addison-Wesley Publishing Company, 1981.
+.SH CAVEATS
+The
+.BR random ()
+function should not be used in multithreaded programs
+where reproducible behavior is required.
+Use
+.BR random_r (3)
+for that purpose.
 .SH BUGS
 According to POSIX,
 .BR initstate ()
index acbff1cd4fc78fd5467fec320bffcd8b2fd5ec2b..b40c6771727cb412263772e60a6781f087819b2d 100644 (file)
@@ -159,7 +159,7 @@ T}  Thread safety   MT-Safe race:buf
 .ad
 .sp 1
 .SH STANDARDS
-These functions are nonstandard glibc extensions.
+GNU.
 .\" These functions appear to be on Tru64, but don't seem to be on
 .\" Solaris, HP-UX, or FreeBSD.
 .SH BUGS
index 35168c4c3d0ae60f76b2179e7ee6b8d06d01a859..c907ec74e400513ebd037cc51e1c78642650142f 100644 (file)
@@ -271,20 +271,20 @@ T}        Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The functions
-.BR iruserok_af (),
-.BR rcmd_af (),
-.BR rresvport_af (),
-and
-.BR ruserok_af ()
-functions are provided since glibc 2.2.
 .SH STANDARDS
-Not in POSIX.1.
-Present on the BSDs, Solaris, and many other systems.
-These
-functions appeared in
-4.2BSD.
+BSD.
+.SH HISTORY
+.TP
+.BR iruserok_af ()
+.TQ
+.BR rcmd_af ()
+.TQ
+.BR rresvport_af ()
+.TQ
+.BR ruserok_af ()
+glibc 2.2.
+.PP
+Solaris, 4.2BSD.
 The "_af" variants are more recent additions,
 and are not present on as wide a range of systems.
 .SH BUGS
index 223bc54348b97412a035697f0f5679d14230f717..0ec5e1e0443ff9b63bbb4626e412ba346ae1fe96 100644 (file)
@@ -65,8 +65,10 @@ T}   Thread safety   MT-Unsafe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD.
-.SH NOTES
+.PP
 These functions are obsolete; the functions documented in
 .BR regcomp (3)
 should be used instead.
index 54f1d39c9f35807066fa150a98d3e482eff7171e..cdb03ab3324b9bf523d7a67cfe8e166ba52f5e38 100644 (file)
@@ -209,17 +209,7 @@ It is expected that a future version of POSIX.1
 will require that
 .BR readdir ()
 be thread-safe when concurrently employed on different directory streams.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
-.SH NOTES
-A directory stream is opened using
-.BR opendir (3).
-.PP
-The order in which filenames are read by successive calls to
-.BR readdir ()
-depends on the filesystem implementation;
-it is unlikely that the names will be sorted in any fashion.
-.PP
+.SH VERSIONS
 Only the fields
 .I d_name
 and (as an XSI extension)
@@ -290,6 +280,18 @@ In such cases, the
 field will contain a value that exceeds the size of the glibc
 .I dirent
 structure shown above.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
+.SH NOTES
+A directory stream is opened using
+.BR opendir (3).
+.PP
+The order in which filenames are read by successive calls to
+.BR readdir ()
+depends on the filesystem implementation;
+it is unlikely that the names will be sorted in any fashion.
 .SH SEE ALSO
 .BR getdents (2),
 .BR read (2),
index cb4cea710a9e32806fb05306d9c9c5cf6ab2549a..9b34f991bf987c497d4918b8d5d4a92980dae924 100644 (file)
@@ -141,6 +141,8 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .BR readdir (3)
index 0cb9e54fafc90ceec215aa5e1f1f762a4d840536..f36d81fd159655d85810be2b78cb57a7312d3a87 100644 (file)
@@ -69,10 +69,6 @@ The caller should deallocate this buffer using
 .\" Even if we use resolved_path == NULL, then realpath() will still
 .\" return ENAMETOOLONG if the resolved pathname would exceed PATH_MAX
 .\" bytes -- MTK, Dec 04
-.\" .SH HISTORY
-.\" The
-.\" .BR realpath ()
-.\" function first appeared in 4.4BSD, contributed by Jan-Simon Pendry.
 .SH RETURN VALUE
 If there is no error,
 .BR realpath ()
@@ -137,14 +133,28 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
+.SH VERSIONS
+.SS GNU extensions
+If the call fails with either
+.B EACCES
+or
+.B ENOENT
+and
+.I resolved_path
+is not NULL, then the prefix of
+.I path
+that is not readable or does not exist is returned in
+.IR resolved_path .
 .SH STANDARDS
-4.4BSD, POSIX.1-2001.
+POSIX.1-2008.
+.SH HISTORY
+4.4BSD, POSIX.1-2001, Solaris.
 .PP
 POSIX.1-2001 says that the behavior if
 .I resolved_path
 is NULL is implementation-defined.
 POSIX.1-2008 specifies the behavior described in this page.
-.SH NOTES
+.PP
 In 4.4BSD and Solaris, the limit on the pathname length is
 .B MAXPATHLEN
 (found in \fI<sys/param.h>\fP).
@@ -184,17 +194,6 @@ A typical source fragment would be
 .\" .BR realpath ()
 .\" is given in \fI<unistd.h>\fP in libc4 and libc5,
 .\" but in \fI<stdlib.h>\fP everywhere else.
-.SS GNU extensions
-If the call fails with either
-.B EACCES
-or
-.B ENOENT
-and
-.I resolved_path
-is not NULL, then the prefix of
-.I path
-that is not readable or does not exist is returned in
-.IR resolved_path .
 .SH BUGS
 The POSIX.1-2001 standard version of this function is broken by design,
 since it is impossible to determine a suitable size for the output buffer,
index 73cd4595622f3712bb7de60a0c2366d92d07e7e0..e8fed51475616d24d2e8d812798384c8e0162e26 100644 (file)
@@ -326,7 +326,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH EXAMPLES
 .EX
 #include <stdint.h>
index 19ca62544312d6bfafb148446133d2a837474645..ab04ae984df1201063a274e2ed702423b9288b1b 100644 (file)
@@ -26,15 +26,14 @@ Math library
 .nf
 .B #include <math.h>
 .PP
-/* The C99 versions */
 .BI "double remainder(double " x ", double " y );
 .BI "float remainderf(float " x ", float " y );
 .BI "long double remainderl(long double " x ", long double " y );
 .PP
 /* Obsolete synonyms */
-.BI "double drem(double " x ", double " y );
-.BI "float dremf(float " x ", float " y );
-.BI "long double dreml(long double " x ", long double " y );
+.BI "[[deprecated]] double drem(double " x ", double " y );
+.BI "[[deprecated]] float dremf(float " x ", float " y );
+.BI "[[deprecated]] long double dreml(long double " x ", long double " y );
 .fi
 .PP
 .RS -4
@@ -175,28 +174,37 @@ T}        Thread safety   MT-Safe
 .sp 1
 .SH STANDARDS
 .\" IEC 60559.
-The functions
-.BR remainder (),
-.BR remainderf (),
-and
+.TP
+.BR remainder ()
+.TQ
+.BR remainderf ()
+.TQ
 .BR remainderl ()
-are specified in C99, POSIX.1-2001, and POSIX.1-2008.
-.PP
-The function
+C11, POSIX.1-2008.
+.TP
 .BR drem ()
-is from 4.3BSD.
-The
-.I float
-and
-.I "long double"
-variants
+.TQ
 .BR dremf ()
-and
+.TQ
 .BR dreml ()
-exist on some systems, such as Tru64 and glibc2.
-Avoid the use of these functions in favor of
+None.
+.SH HISTORY
+.\" IEC 60559.
+.TP
 .BR remainder ()
-etc.
+.TQ
+.BR remainderf ()
+.TQ
+.BR remainderl ()
+C99, POSIX.1-2001.
+.TP
+.BR drem ()
+4.3BSD.
+.TP
+.BR dremf ()
+.TQ
+.BR dreml ()
+Tru64, glibc2.
 .SH BUGS
 Before glibc 2.15,
 .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6779
index a679b8adb373d412880ef7b8d3fd549f779adf99..125eb9e5574abbb76fd2fe0af3536d7d28537391 100644 (file)
@@ -71,7 +71,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, 4.3BSD.
 .\" .SH NOTES
 .\" Under libc4 and libc5,
 .\" .BR remove ()
index 8c764c9e0bfedc857a755cde3464abea315604f5..3b6b803b5d8304673374757a34546d48a3303005 100644 (file)
@@ -130,10 +130,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR fmod (3),
 .BR logb (3),
index b19b89e542762f89d83bf036e035d77ba89c6aa7..e6a3f318e8dbadacb51508234d3c7eb16075f6cd 100644 (file)
@@ -498,6 +498,8 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD.
 .SH SEE ALSO
 .BR gethostbyname (3),
index a125414531e5ce939aa781a618f0eb53a14eabf3..3b7ff779e00dc52af3c2f35a00a6dd33b7f06385 100644 (file)
@@ -51,7 +51,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR closedir (3),
 .BR opendir (3),
index b1f219b57974e2519d9bcb2feb170d376dc6c485..ce0a4cde03b84bb0567d0fba923eb9940e6061d3 100644 (file)
@@ -141,19 +141,15 @@ T}        Thread safety   MT-Unsafe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR rexec_af ()
-function was added in glibc 2.2.
 .SH STANDARDS
-These functions are not in POSIX.1.
-The
+None.
+.SH HISTORY
+.TP
 .BR rexec ()
-function first appeared in
-4.2BSD, and is present on the BSDs, Solaris, and many other systems.
-The
+4.2BSD, BSD, Solaris.
+.TP
 .BR rexec_af ()
-function is more recent, and less widespread.
+glibc 2.2.
 .SH BUGS
 The
 .BR rexec ()
index ac24c4550d3aba838fead64969560a3cd51c2fa7..a21212288cc5306eeeaf9d9ed02eaf118dc9ef52 100644 (file)
@@ -115,7 +115,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH NOTES
 SUSv2 and POSIX.1-2001 contain text about overflow (which might set
 .I errno
index ebfcc2434a35c6121bcd92366c19c36069bd1b9f..34c0efbf6286ec31bcd2d548696df30aeea97942 100644 (file)
@@ -76,10 +76,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH NOTES
 POSIX.1-2001 contains text about overflow (which might set
 .I errno
index 92c46870343c2d4e29c43029ecb7b07d7b676dde..55c59f9f899b529fea28f8f189efa31ad621db2c 100644 (file)
@@ -33,7 +33,7 @@ See CAVEATS.
 .SH RETURN VALUE
 This macro returns the rounded value.
 .SH STANDARDS
-This nonstandard macro is present in glibc and some BSDs.
+None.
 .SH CAVEATS
 The arguments may be evaluated more than once.
 .PP
index 637cd79162014e98976794c4a07fda961ba3efa5..5f5246bb3dabc1ca04f11af8684537f09d2baa9a 100644 (file)
@@ -123,9 +123,9 @@ T}  Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-.BR rpmatch ()
-is not required by any standard,
-but available under the GNU C library, FreeBSD, and AIX.
+None.
+.SH HISTORY
+GNU, FreeBSD, AIX.
 .SH BUGS
 The
 .BR YESEXPR " and " NOEXPR
index 460b2b5a58a617742a79c0dc4b8e53d7eb06be55..8050d31d2ddc1230d1eae12439a3e02c65d94617 100644 (file)
@@ -80,7 +80,7 @@ returns the amount of space which will be needed in a message with
 .I len
 bytes of data.
 .SH STANDARDS
-These macros are nonstandard Linux extensions.
+Linux.
 .SH BUGS
 This manual page is incomplete.
 .SH EXAMPLES
index a25ca078f06f7f6053f9084cea64b28861c22ef2..22cab303a2831dc13b440fe132262113a3ea0c5b 100644 (file)
@@ -172,26 +172,19 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
+.TP
 .BR scalb ()
-is specified in POSIX.1-2001, but marked obsolescent.
-POSIX.1-2008 removes the specification of
-.BR scalb (),
+4.3BSD.
+Obsolescent in POSIX.1-2001;
+Removed in POSIX.1-2008,
 recommending the use of
 .BR scalbln (3),
 .BR scalblnf (3),
 or
 .BR scalblnl (3)
 instead.
-The
-.BR scalb ()
-function is from 4.3BSD.
-.PP
-.BR scalbf ()
-and
-.BR scalbl ()
-are unstandardized;
-.BR scalbf ()
-is nevertheless present on several other systems
 .\" Looking at header files: scalbf() is present on the
 .\" BSDs, Tru64, HP-UX 11, Irix 6.5; scalbl() is on HP-UX 11 and Tru64.
 .SH BUGS
index 4a6acc58bf9eaf741c9424ead62708fe94151810..98fec74da10fbf8b4f0781f98c08cd31154e6098 100644 (file)
@@ -145,11 +145,12 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
+.SH HISTORY
 These functions differ from the obsolete functions described in
 .BR scalb (3)
 in the type of their second argument.
@@ -158,7 +159,7 @@ of an integral type, while those in
 .BR scalb (3)
 have a second argument of type
 .IR double .
-.PP
+.SH NOTES
 If
 .B FLT_RADIX
 equals 2 (which is usual), then
index 83e896442bc189944ab85272a11e3be3a896ae31..27359c923bcab1fb6d0a05ee928e4ac59ea322e9 100644 (file)
@@ -202,21 +202,29 @@ T}        Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH VERSIONS
+.SH STANDARDS
+.TP
+.BR alphasort ()
+.TQ
+.BR scandir ()
+POSIX.1-2008.
+.TP
 .BR versionsort ()
-was added in glibc 2.1.
-.PP
+.TQ
 .BR scandirat ()
-was added in glibc 2.15.
-.SH STANDARDS
-.BR alphasort (),
-.BR scandir ():
+GNU.
+.SH HISTORY
+.TP
+.BR alphasort ()
+.TQ
+.BR scandir ()
 4.3BSD, POSIX.1-2008.
-.PP
+.TP
 .BR versionsort ()
-and
+glibc 2.1.
+.TP
 .BR scandirat ()
-are GNU extensions.
+glibc 2.15.
 .\" .LP
 .\" The functions
 .\" .BR scandir ()
index 249efab575cfc982e17de8d6575eb07cb78263e1..78255e8829544361d99ddabb80187021d1394891 100644 (file)
@@ -136,7 +136,9 @@ T}  Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-These functions conform to C99 and POSIX.1-2001.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR fgets (3),
 .BR getline (3),
index 3bb1029359a76102da11ce486c7eb138f8fc4b0c..f116b2dfb3dced4436a1d96ee63536604829eead 100644 (file)
@@ -63,11 +63,10 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-This function is available since glibc 2.6.
 .SH STANDARDS
-.BR sched_getcpu ()
-is glibc-specific.
+GNU.
+.SH HISTORY
+glibc 2.6.
 .SH NOTES
 The call
 .PP
index befc3e6e1ca5dc63ac512339ce63f74dc68d61c9..5b5b3e988b347bf12753045b90c5f10e9e431c62 100644 (file)
@@ -67,8 +67,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
-.SH NOTES
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD.
+.SH CAVEATS
 Up to glibc 2.1.1, the type of the
 .I loc
 argument was
index 99c49a552131bd1778c79744f318eece2915f4cd..a7b5a604de6eae46e7b82940609dd3e618d9f1f9 100644 (file)
@@ -50,7 +50,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 All open named semaphores are automatically closed on process
 termination, or upon
index 33e9a1a6f8f3421222f5b61c1c5db49758e4d5b6..a14f76a2cba10ea7bec9ff8531bacad43017c3c5 100644 (file)
@@ -62,7 +62,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 An unnamed semaphore should be destroyed with
 .BR sem_destroy ()
index 2fba639f68598f36c7ce9f0cb67314b0c275e9be..57161cd155ae4961ec519afc1d9b0c3c7e204c33 100644 (file)
@@ -64,7 +64,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The value of the semaphore may already have changed by the time
 .BR sem_getvalue ()
index 0a5157cc5672e847cdf1e7e17d386d0a65194e8d..e1dcc586e6ab60d2e782233cf67aa08a56da7520 100644 (file)
@@ -91,8 +91,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 POSIX.1-2001.
-.SH NOTES
+.PP
 Bizarrely, POSIX.1-2001 does not specify the value that should
 be returned by a successful call to
 .BR sem_init ().
index 9cc33926ba6076decc33a802f0af2977b0215825..b8f4ada8c60c1fa3a6ed542c2ea38a6fcaed2e67 100644 (file)
@@ -166,7 +166,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .BR sem_close (3),
 .BR sem_getvalue (3),
index 26fca7bffefbc11925fb547fe6c3f1d016116aca..9b6b026b9c07bea4f24a15da99b5fb8a9b992600 100644 (file)
@@ -57,6 +57,8 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 POSIX.1-2001.
 .SH NOTES
 .BR sem_post ()
index e694fdaf591a1a46cbe46fff3eaae57459882ebd..6ccb17c0e0117eb8e65c82e84a65c58f00bdf5a0 100644 (file)
@@ -58,7 +58,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .BR sem_getvalue (3),
 .BR sem_open (3),
index 788d687a78fa20776da34ce36ee89aecec5feb3c..7b61f6dbe86c92ae1ba39bfe388369aafda234da 100644 (file)
@@ -131,7 +131,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH EXAMPLES
 The (somewhat trivial) program shown below operates on an
 unnamed semaphore.
index 6586e5387334f04673c44ac0572f344700b70f21..0b67451a41f55140f55071136fc9f146881180a4 100644 (file)
@@ -127,7 +127,8 @@ T}  Thread safety   MT-Unsafe
 .ad
 .sp 1
 .SH STANDARDS
-These routines are glibc-specific.
+GNU.
+.SH HISTORY
 The NeXT system has similar routines:
 .PP
 .in +4n
index b4ba7d8f1aa0a26db99f5733096a24605c84d0d5..7ee7c56a06ac5ba21afe520cba4652064bffdc08 100644 (file)
@@ -160,12 +160,18 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-The
+.TP
+.BR setbuf ()
+.TQ
+.BR setvbuf ()
+C11, POSIX.1-2008.
+.SH HISTORY
+.TP
 .BR setbuf ()
-and
+.TQ
 .BR setvbuf ()
-functions conform to C89 and C99.
-.SH NOTES
+C89, POSIX.1-2001.
+.SH CAVEATS
 POSIX notes
 .\" https://www.austingroupbugs.net/view.php?id=397#c799
 .\" 0000397: setbuf and errno
index d2619fd3b7238152d2e5cc6d2148be31074c97bf..86b7860f188fc1e00725aa4924e3424a969d4458 100644 (file)
@@ -120,13 +120,9 @@ T} Thread safety   MT-Unsafe const:env
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
-.SH NOTES
-POSIX.1 does not require
-.BR setenv ()
-or
-.BR unsetenv ()
-to be reentrant.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD.
 .PP
 Prior to glibc 2.2.2,
 .BR unsetenv ()
@@ -135,6 +131,12 @@ as returning
 .IR void ;
 more recent glibc versions follow the
 POSIX.1-compliant prototype shown in the SYNOPSIS.
+.SH CAVEATS
+POSIX.1 does not require
+.BR setenv ()
+or
+.BR unsetenv ()
+to be reentrant.
 .SH BUGS
 POSIX.1 specifies that if
 .I name
index a8516590a2f92b22655ff6db99741c3db025f565..138db4ca2c72809f40429a100594914f344282c4 100644 (file)
@@ -141,14 +141,28 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-.BR setjmp (),
-.BR longjmp ():
-POSIX.1-2001, POSIX.1-2008, C89, C99.
+.TP
+.BR setjmp ()
+.TQ
+.BR longjmp ()
+C11, POSIX.1-2008.
+.TP
+.BR sigsetjmp ()
+.TQ
+.BR siglongjmp ()
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR setjmp ()
+.TQ
+.BR longjmp ()
+POSIX.1-2001, C89.
+.TP
+.BR sigsetjmp ()
+.TQ
+.BR siglongjmp ()
+POSIX.1-2001.
 .PP
-.BR sigsetjmp (),
-.BR siglongjmp ():
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
 POSIX does not specify whether
 .BR setjmp ()
 will save the signal mask
@@ -188,7 +202,7 @@ with calls to
 with a nonzero
 .I savesigs
 argument.
-.PP
+.SH NOTES
 .BR setjmp ()
 and
 .BR longjmp ()
@@ -203,7 +217,7 @@ if you want to portably save and restore signal masks, use
 and
 .BR siglongjmp ().
 See also the discussion of program readability below.
-.PP
+.SH CAVEATS
 The compiler may optimize variables into registers, and
 .BR longjmp ()
 may restore the values of other registers in addition to the
@@ -259,7 +273,7 @@ calls may not even be in the same source code module.
 In summary, nonlocal gotos can make programs harder to understand
 and maintain, and an alternative should be used if possible.
 .\"
-.SS Caveats
+.SS Undefined Behavior
 If the function which called
 .BR setjmp ()
 returns before
index 1604ad883dc11326bbba3d7db55aa24930c6cdb5..cf44d5e8587832d51f7ed90fc198b116659e2055 100644 (file)
@@ -199,19 +199,49 @@ T}        Thread safety   MT-Unsafe const:locale env
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99.
-.PP
-The C standards specify only the categories
-.BR LC_ALL ,
-.BR LC_COLLATE ,
-.BR LC_CTYPE ,
-.BR LC_MONETARY ,
-.BR LC_NUMERIC ,
-and
-.BR LC_TIME .
-POSIX.1 adds
-.BR LC_MESSAGES .
-The remaining categories are GNU extensions.
+C11, POSIX.1-2008.
+.SS Categories
+.TP
+.B LC_ALL
+.TQ
+.B LC_COLLATE
+.TQ
+.B LC_CTYPE
+.TQ
+.B LC_MONETARY
+.TQ
+.B LC_NUMERIC
+.TQ
+.B LC_TIME
+C11, POSIX.1-2008.
+.TP
+.BR LC_MESSAGES
+POSIX.1-2008.
+.TP
+Others:
+GNU.
+.SH HISTORY
+POSIX.1-2001, C89.
+.SS Categories
+.TP
+.B LC_ALL
+.TQ
+.B LC_COLLATE
+.TQ
+.B LC_CTYPE
+.TQ
+.B LC_MONETARY
+.TQ
+.B LC_NUMERIC
+.TQ
+.B LC_TIME
+C89, POSIX.1-2001.
+.TP
+.BR LC_MESSAGES
+POSIX.1-2001.
+.TP
+Others:
+GNU.
 .SH SEE ALSO
 .BR locale (1),
 .BR localedef (1),
index 01c8e75e4c238b5b389aedfb3c6ad437378209b7..c5030e7e0d24c8aa3b05ecb9c2f1e8fab92eacc3 100644 (file)
@@ -74,7 +74,9 @@ T}    Thread safety   MT-Unsafe race:LogMask
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .\" Note that the description in POSIX.1-2001 is flawed.
 .PP
 .BR LOG_UPTO ()
index 7e324b6236889c934b557eb1d92f5ae733000603..38b4920997325b365cceea74b2e4590316f2236c 100644 (file)
@@ -144,8 +144,13 @@ or
 .BR endnetgrent ()
 are used in parallel in different threads of a program,
 then data races could occur.
+.SH VERSIONS
+In the BSD implementation,
+.BR setnetgrent ()
+returns void.
 .SH STANDARDS
-These functions are not in POSIX.1, but
+None.
+.SH HISTORY
 .BR setnetgrent (),
 .BR endnetgrent (),
 .BR getnetgrent (),
@@ -155,10 +160,6 @@ are available on most UNIX systems.
 .BR getnetgrent_r ()
 is not widely available on other systems.
 .\" getnetgrent_r() is on Solaris 8 and AIX 5.1, but not the BSDs.
-.SH NOTES
-In the BSD implementation,
-.BR setnetgrent ()
-returns void.
 .SH SEE ALSO
 .BR sethostent (3),
 .BR setprotoent (3),
index e189f7c551ff566862d70a95f15cdefb1c69893d..c888c969c1c720b676ccdbfb806342310b07c815 100644 (file)
@@ -239,18 +239,6 @@ T} Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH VERSIONS
-These functions are provided in glibc 2.2 and later.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.PP
-POSIX.1-2001 says that the group ownership of a newly created shared
-memory object is set to either the calling process's effective group ID
-or "a system default group ID".
-POSIX.1-2008 says that the group ownership
-may be set to either the calling process's effective group ID
-or, if the object is visible in the filesystem,
-the group ID of the parent directory.
-.SH NOTES
 POSIX leaves the behavior of the combination of
 .B O_RDONLY
 and
@@ -264,6 +252,19 @@ of a dedicated
 .BR tmpfs (5)
 filesystem that is normally mounted under
 .IR /dev/shm .
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.2.
+POSIX.1-2001.
+.PP
+POSIX.1-2001 says that the group ownership of a newly created shared
+memory object is set to either the calling process's effective group ID
+or "a system default group ID".
+POSIX.1-2008 says that the group ownership
+may be set to either the calling process's effective group ID
+or, if the object is visible in the filesystem,
+the group ID of the parent directory.
 .SH EXAMPLES
 The programs below employ POSIX shared memory and POSIX unnamed semaphores
 to exchange a piece of data.
index e849f6e6599c004d160ac0980ae6a551df2863fe..1712bb280517eee5b78c1be8e231a22306d476d2 100644 (file)
@@ -19,7 +19,7 @@ Standard C library
 .nf
 .B #include <signal.h>
 .PP
-.BI "int siginterrupt(int " sig ", int " flag );
+.BI "[[deprecated]] int siginterrupt(int " sig ", int " flag );
 .fi
 .PP
 .RS -4
@@ -86,10 +86,11 @@ T}
 .ad
 .sp 1
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 4.3BSD, POSIX.1-2001.
-POSIX.1-2008 marks
-.BR siginterrupt ()
-as obsolete, recommending the use of
+Obsolete in POSIX.1-2008,
+recommending the use of
 .BR sigaction (2)
 with the
 .B SA_RESTART
index 281e31ab42c2218add19caf3c8870ab578a6d65a..4135da199cb0b24f6a2dda5d3743ff58898c3ad9 100644 (file)
@@ -72,7 +72,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
+.PP
 This function is defined in IEC 559 (and the appendix with
 recommended functions in IEEE 754/IEEE 854).
 .SH SEE ALSO
index 350c311e9f2d167ccb760260c9932084e085a2c5..16486985125f5998e398f8885f281cd28bb14dac 100644 (file)
@@ -67,11 +67,14 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-These functions are nonstandard; the
-.I double
-version is available on a number of other systems.
-.\" .SH HISTORY
-.\" This function came from BSD.
+None.
+.TP
+.BR significand ()
+BSD.
+.SH HISTORY
+.TP
+.BR significand ()
+BSD.
 .SH SEE ALSO
 .BR ilogb (3),
 .BR scalb (3)
index 78b0608b23d329c33d12d5eaf8fbde5689579fd6..bbe743462ef619ee978fc52769a642be0aa64548 100644 (file)
@@ -13,9 +13,9 @@ Standard C library
 .nf
 .B #include <signal.h>
 .PP
-.BI "int sigpause(int " sigmask ");  /* BSD (but see NOTES) */"
+.BI "[[deprecated]] int sigpause(int " sigmask ");  /* BSD (but see NOTES) */"
 .PP
-.BI "int sigpause(int " sig ");      /* System V / UNIX 95 */"
+.BI "[[deprecated]] int sigpause(int " sig ");      /* POSIX.1 / SysV / UNIX 95 */"
 .fi
 .SH DESCRIPTION
 Don't use this function.
@@ -62,29 +62,7 @@ T}   Thread safety   MT-Safe
 .\" glibc manual says /!linux!bsd indicate the preceding marker only applies
 .\" when the underlying kernel is neither Linux nor a BSD kernel.
 .\" So, it is safe in Linux kernel.
-.SH STANDARDS
-The System V version of
-.BR sigpause ()
-is standardized in POSIX.1-2001.
-It is also specified in POSIX.1-2008, where it is marked obsolete.
-.SH NOTES
-.SS History
-The classical BSD version of this function appeared in 4.2BSD.
-It sets the process's signal mask to
-.IR sigmask .
-UNIX 95 standardized the incompatible System V version of
-this function, which removes only the specified signal
-.I sig
-from the process's signal mask.
-.\" __xpg_sigpause: UNIX 95, spec 1170, SVID, SVr4, XPG
-The unfortunate situation with two incompatible functions with the
-same name was solved by the
-.BR \%sigsuspend (2)
-function, that takes a
-.I "sigset_t\ *"
-argument (instead of an
-.IR int ).
-.SS Linux notes
+.SH VERSIONS
 On Linux, this routine is a system call only on the Sparc (sparc64)
 architecture.
 .PP
@@ -119,6 +97,27 @@ should be amended to use
 .\" For the BSD version, one usually uses a zero
 .\" .I sigmask
 .\" to indicate that no signals are to be blocked.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+Obsoleted in POSIX.1-2008.
+.PP
+The classical BSD version of this function appeared in 4.2BSD.
+It sets the process's signal mask to
+.IR sigmask .
+UNIX 95 standardized the incompatible System V version of
+this function, which removes only the specified signal
+.I sig
+from the process's signal mask.
+.\" __xpg_sigpause: UNIX 95, spec 1170, SVID, SVr4, XPG
+The unfortunate situation with two incompatible functions with the
+same name was solved by the
+.BR \%sigsuspend (2)
+function, that takes a
+.I "sigset_t\ *"
+argument (instead of an
+.IR int ).
 .SH SEE ALSO
 .BR kill (2),
 .BR sigaction (2),
index cfb4bc46d901f1635b2229debe57be7c2dd1baf8..c2bff7aa378514376e3ee58d3c711a8379678847 100644 (file)
@@ -115,20 +115,6 @@ T} Thread safety   MT-Safe
 .ad
 .sp 1
 .SH VERSIONS
-.BR sigqueue ()
-and the underlying
-.BR rt_sigqueueinfo (2)
-system call first appeared in Linux 2.2.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-If this function results in the sending of a signal to the process
-that invoked it, and that signal was not blocked by the calling thread,
-and no other threads were willing to handle this signal (either by
-having it unblocked, or by waiting for it using
-.BR sigwait (3)),
-then at least some signal must be delivered to this thread before this
-function returns.
 .SS C library/kernel differences
 On Linux,
 .BR sigqueue ()
@@ -156,6 +142,19 @@ uinfo.si_uid = getuid();   /* Real UID of sender */
 uinfo.si_value = val;      /* Argument supplied to sigqueue() */
 .EE
 .in
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+Linux 2.2.
+POSIX.1-2001.
+.SH NOTES
+If this function results in the sending of a signal to the process
+that invoked it, and that signal was not blocked by the calling thread,
+and no other threads were willing to handle this signal (either by
+having it unblocked, or by waiting for it using
+.BR sigwait (3)),
+then at least some signal must be delivered to this thread before this
+function returns.
 .SH SEE ALSO
 .BR kill (2),
 .BR rt_sigqueueinfo (2),
index c1eea871b8ffe5c5a0a33f7ff7c41c03f0db3698..9e6637ef90078f451fd901ba35133f6a7c440eaf 100644 (file)
@@ -15,11 +15,11 @@ Standard C library
 .PP
 .B typedef void (*sighandler_t)(int);
 .PP
-.BI "sighandler_t sigset(int " sig ", sighandler_t " disp );
+.BI "[[deprecated]] sighandler_t sigset(int " sig ", sighandler_t " disp );
 .PP
-.BI "int sighold(int " sig );
-.BI "int sigrelse(int " sig );
-.BI "int sigignore(int " sig );
+.BI "[[deprecated]] int sighold(int " sig );
+.BI "[[deprecated]] int sigrelse(int " sig );
+.BI "[[deprecated]] int sigignore(int " sig );
 .fi
 .PP
 .RS -4
@@ -171,15 +171,16 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-SVr4, POSIX.1-2001, POSIX.1-2008.
-These functions are obsolete: do not use them in new programs.
-POSIX.1-2008 marks
-.BR sighold (),
-.BR sigignore (),
-.BR sigpause (3),
-.BR sigrelse (),
-and
-.BR sigset ()
+POSIX.1-2008.
+.TP
+.I sighandler_t
+GNU.
+POSIX.1 uses the same type but without a
+.IR typedef .
+.SH HISTORY
+glibc 2.1.
+SVr4, POSIX.1-2001.
+POSIX.1-2008 marks these functions
 as obsolete, recommending the use of
 .BR sigaction (2),
 .BR sigprocmask (2),
@@ -188,14 +189,6 @@ and
 .BR sigsuspend (2)
 instead.
 .SH NOTES
-These functions appeared in glibc 2.1.
-.PP
-The
-.I sighandler_t
-type is a GNU extension; it is used on this page only to make the
-.BR sigset ()
-prototype more easily readable.
-.PP
 The
 .BR sigset ()
 function provides reliable signal handling semantics (as when calling
index b49d8744724890ec40dfddd5907a732139f0cf22..089c3425678805dd63e96b4dd314374cd61d6c04 100644 (file)
@@ -135,18 +135,8 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-When creating a filled signal set, the glibc
-.BR sigfillset ()
-function does not include the two real-time signals used internally
-by the NPTL threading implementation.
-See
-.BR nptl (7)
-for details.
-.\"
-.SS glibc extensions
+.SH VERSIONS
+.SS GNU
 If the
 .B _GNU_SOURCE
 feature test macro is defined, then \fI<signal.h>\fP
@@ -184,6 +174,18 @@ Both functions return 0 on success, and \-1 on failure.
 .PP
 These functions are nonstandard (a few other systems provide similar
 functions) and their use should be avoided in portable applications.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.SH NOTES
+When creating a filled signal set, the glibc
+.BR sigfillset ()
+function does not include the two real-time signals used internally
+by the NPTL threading implementation.
+See
+.BR nptl (7)
+for details.
 .SH SEE ALSO
 .BR sigaction (2),
 .BR sigpending (2),
index 8a0484ca5f7e26625a2ecb8553c0a969b35616bc..6865b9a76ecaf7e73515b11ddce2ac2b684e554c 100644 (file)
@@ -13,13 +13,14 @@ Standard C library
 .nf
 .B #include <signal.h>
 .PP
-.BI "int sigvec(int " sig ", const struct sigvec *" vec ", struct sigvec *" ovec );
+.BI "[[deprecated]] int sigvec(int " sig ", const struct sigvec *" vec ,
+.BI "                          struct sigvec *" ovec );
 .PP
-.BI "int sigmask(int " signum );
+.BI "[[deprecated]] int sigmask(int " signum );
 .PP
-.BI "int sigblock(int " mask );
-.BI "int sigsetmask(int " mask );
-.B int siggetmask(void);
+.BI "[[deprecated]] int sigblock(int " mask );
+.BI "[[deprecated]] int sigsetmask(int " mask );
+.B [[deprecated]] int siggetmask(void);
 .fi
 .PP
 .RS -4
@@ -229,19 +230,24 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-Starting with glibc 2.21, the GNU C library no longer exports the
-.BR sigvec ()
-function as part of the ABI.
-(To ensure backward compatibility,
-the glibc symbol versioning scheme continues to export the interface
-to binaries linked against older versions of the library.)
 .SH STANDARDS
-All of these functions were in
-4.3BSD, except
-.BR siggetmask (),
-whose origin is unclear.
-These functions are obsolete: do not use them in new programs.
+None.
+.SH HISTORY
+.TP
+.BR sigvec ()
+.TQ
+.BR sigblock ()
+.TQ
+.BR sigmask ()
+.TQ
+.BR sigsetmask ()
+4.3BSD.
+.TP
+.BR siggetmask ()
+Unclear origin.
+.TP
+.BR sigvec ()
+Removed in glibc 2.21.
 .SH NOTES
 On 4.3BSD, the
 .BR signal ()
index 321a182fec1ccbd8c37eb5232ae16fc1ec8802d5..3f1df3e2792c979d02432f67ffbc047f41a538a6 100644 (file)
@@ -81,9 +81,7 @@ T}    Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 .BR sigwait ()
 is implemented using
 .BR sigtimedwait (2).
@@ -95,6 +93,10 @@ are used internally by the NPTL threading implementation.
 See
 .BR nptl (7)
 for details.
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH EXAMPLES
 See
 .BR pthread_sigmask (3).
index 65386e10aab2f7e157f4ed0d27062dde20b60ae1..3b403ff3b1c8ec17ebffc8a3494a8540a1e7a8c1 100644 (file)
@@ -99,7 +99,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 7e0f564ac82690dec85d82c8991db27946c91074..6e05c9f00f43e79534d1d0f4e61da2cd28973da5 100644 (file)
@@ -86,10 +86,10 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-These functions are GNU extensions.
+GNU.
+.SH HISTORY
+glibc 2.1.
 .SH NOTES
 To see the performance advantage of
 .BR sincos (),
index 80eb79a6e5a3accbf665a80ac5d9a69fe7b06133..ebb8bbb7e464d2b1381f29656f9f57550199c681 100644 (file)
@@ -115,7 +115,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 387f87e43fa76b9fae2fcdda14b561bb653ff75f..4d2d4e58141f67837cba4d69fa9cbd5b76030148 100644 (file)
@@ -43,9 +43,7 @@ T}    Thread safety   MT-Unsafe sig:SIGCHLD/linux
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 On Linux,
 .BR sleep ()
 is implemented via
@@ -53,7 +51,7 @@ is implemented via
 See the
 .BR nanosleep (2)
 man page for a discussion of the clock used.
-.SS Portability notes
+.PP
 On some systems,
 .BR sleep ()
 may be implemented using
@@ -66,7 +64,11 @@ mixing calls to
 and
 .BR sleep ()
 is a bad idea.
-.PP
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.SH CAVEATS
 Using
 .BR longjmp (3)
 from a signal handler or modifying the handling of
index 030972f7a59559f488f16de602ca710a4be7243c..2aa31865c482edf1ac348193eddebbffa8256e9e 100644 (file)
@@ -241,9 +241,9 @@ structure, respectively.
 returns an initializer that can be assigned to the list
 .IR head .
 .SH STANDARDS
-Not in POSIX.1, POSIX.1-2001, or POSIX.1-2008.
-Present on the BSDs
-(SLIST macros first appeared in 4.4BSD).
+BSD.
+.SH HISTORY
+4.4BSD.
 .SH BUGS
 .BR SLIST_FOREACH ()
 doesn't allow
index b55e4fe95cfb7da3654a394d6d485990407493c2..254145cfc4bcd6557d38d3b5bc1a1451d07d2f77 100644 (file)
@@ -70,11 +70,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR sockatmark ()
-was added in glibc 2.2.4.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.2.4.
+POSIX.1-2001.
 .SH NOTES
 If
 .BR sockatmark ()
index 7fb9a58db42c10dec0ffab59ae89cd9060ffdc7f..010d30561928d5fe0e579ff79b154f1c5af03800 100644 (file)
@@ -98,7 +98,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 308bf42c41234cf0afbff347b734f419a431910f..4269eda27cfb27be9125dfd97fac264fadd76f11 100644 (file)
@@ -558,7 +558,9 @@ T}  Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-These functions conform to C99 and POSIX.1-2001.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
 .PP
 The
 .B q
index 13a154f07cf5eb50ee52151667f43fd77f02839e..ddbcccc83f80aac1f44c65716bb14b219e12c3f7 100644 (file)
@@ -284,11 +284,7 @@ structure, respectively.
 .BR STAILQ_HEAD_INITIALIZER ()
 returns an initializer that can be assigned to the queue
 .IR head .
-.SH STANDARDS
-Not in POSIX.1, POSIX.1-2001, or POSIX.1-2008.
-Present on the BSDs
-(STAILQ macros first appeared in 4.4BSD).
-.SH NOTES
+.SH VERSIONS
 Some BSDs provide SIMPLEQ instead of STAILQ.
 They are identical, but for historical reasons
 they were named differently on different BSDs.
@@ -309,6 +305,10 @@ fixes this limitation by allowing
 .I var
 to safely be removed from the list and freed from within the loop
 without interfering with the traversal.
+.SH STANDARDS
+BSD.
+.SH HISTORY
+4.4BSD.
 .SH EXAMPLES
 .\" SRC BEGIN (stailq.c)
 .EX
index fb2899abcc6bb6ec5316e48a72f3714b50e4ab9d..b1f0e7545aaa343ccf92629c997c78fc528d0905 100644 (file)
@@ -191,9 +191,7 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.PP
+.SH VERSIONS
 Only the
 .B ST_NOSUID
 and
@@ -210,22 +208,6 @@ and
 .BR fstatfs (2)
 to support this library call.
 .PP
-Before glibc 2.13,
-.\" glibc commit 3cdaa6adb113a088fdfb87aa6d7747557eccc58d
-.BR statvfs ()
-populated the bits of the
-.I f_flag
-field by scanning the mount options shown in
-.IR /proc/mounts .
-However, starting with Linux 2.6.36, the underlying
-.BR statfs (2)
-system call provides the necessary information via the
-.I f_flags
-field, and since glibc 2.13, the
-.BR statvfs ()
-function will use information from that field rather than scanning
-.IR /proc/mounts .
-.PP
 The glibc implementations of
 .PP
 .in +4n
@@ -245,5 +227,25 @@ fields returned by a call to
 .BR statvfs ()
 with the argument
 .IR path .
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.PP
+Before glibc 2.13,
+.\" glibc commit 3cdaa6adb113a088fdfb87aa6d7747557eccc58d
+.BR statvfs ()
+populated the bits of the
+.I f_flag
+field by scanning the mount options shown in
+.IR /proc/mounts .
+However, starting with Linux 2.6.36, the underlying
+.BR statfs (2)
+system call provides the necessary information via the
+.I f_flags
+field, and since glibc 2.13, the
+.BR statvfs ()
+function will use information from that field rather than scanning
+.IR /proc/mounts .
 .SH SEE ALSO
 .BR statfs (2)
index 3a660191395169d777a3c337f97ee4f672a895b9..59af5d58e4c6ba06645dc9fdba18c2ff20495ec4 100644 (file)
@@ -224,16 +224,19 @@ T}        Thread safety   MT-Safe race:ap
 .ad
 .sp 1
 .SH STANDARDS
-The
-.BR va_start (),
-.BR va_arg (),
-and
+C11, POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR va_start ()
+.TQ
+.BR va_arg ()
+.TQ
 .BR va_end ()
-macros conform to C89.
-C99 defines the
+C89, POSIX.1-2001.
+.TP
 .BR va_copy ()
-macro.
-.SH BUGS
+C99, POSIX.1-2001.
+.SH CAVEATS
 Unlike the historical
 .B varargs
 macros, the
index caa65a40fdffe9c7208afc024802ab396b6dfcda..e80f482819d655649eb76a57bd67beeef69e3d5b 100644 (file)
@@ -114,14 +114,12 @@ The standard streams are closed by a call to
 .BR exit (3)
 and by normal program termination.
 .SH STANDARDS
-The
-.IR stdin ,
-.IR stdout ,
-and
-.I stderr
-macros conform to C89
-and this standard also stipulates that these three
+C11, POSIX.1-2008.
+.PP
+The standards also stipulate that these three
 streams shall be open at program startup.
+.SH HISTORY
+C89, POSIX.1-2001.
 .SH NOTES
 The stream
 .I stderr
index 628f9b69007a40211087d7d70dec5b5fd8205fd0..fb99cdd2183477ccf9b6a5dbdc65e031f65bb62a 100644 (file)
@@ -333,9 +333,9 @@ T}
 .ad
 .hy
 .SH STANDARDS
-The
-.I stdio
-library conforms to C89.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
 .SH SEE ALSO
 .BR close (2),
 .BR open (2),
index 70e80195c123c4e2579c5d46dcb89730efc3544b..8e2af8c77b712a31bd5643ade5ab9ee5dad7f712 100644 (file)
@@ -16,10 +16,10 @@ Standard C library
 .nf
 .B #include <string.h>
 .PP
-.BI "char *stpncpy(char " dst "[restrict ." sz "], \
+.BI "char *strncpy(char " dst "[restrict ." sz "], \
 const char *restrict " src ,
 .BI "               size_t " sz );
-.BI "char *strncpy(char " dst "[restrict ." sz "], \
+.BI "char *stpncpy(char " dst "[restrict ." sz "], \
 const char *restrict " src ,
 .BI "               size_t " sz );
 .fi
@@ -52,29 +52,29 @@ An implementation of these functions might be:
 .in +4n
 .EX
 char *
-stpncpy(char *restrict dst, const char *restrict src, size_t sz)
+strncpy(char *restrict dst, const char *restrict src, size_t sz)
 {
-    bzero(dst, sz);
-    return mempcpy(dst, src, strnlen(src, sz));
+    stpncpy(dst, src, sz);
+    return dst;
 }
 
 char *
-strncpy(char *restrict dst, const char *restrict src, size_t sz)
+stpncpy(char *restrict dst, const char *restrict src, size_t sz)
 {
-    stpncpy(dst, src, sz);
-    return dst;
+    bzero(dst, sz);
+    return mempcpy(dst, src, strnlen(src, sz));
 }
 .EE
 .in
 .SH RETURN VALUE
 .TP
-.BR stpncpy ()
-returns a pointer to
-one after the last character in the destination character sequence.
-.TP
 .BR strncpy ()
 returns
 .IR dst .
+.TP
+.BR stpncpy ()
+returns a pointer to
+one after the last character in the destination character sequence.
 .SH ATTRIBUTES
 For an explanation of the terms used in this section, see
 .BR attributes (7).
@@ -95,13 +95,19 @@ T}  Thread safety   MT-Safe
 .sp 1
 .SH STANDARDS
 .TP
+.BR strncpy ()
+C11, POSIX.1-2008.
+.TP
 .BR stpncpy ()
 POSIX.1-2008.
-.\" Before that, it was a GNU extension.
-.\" It first appeared in glibc 1.07 in 1993.
+.SH STANDARDS
 .TP
 .BR strncpy ()
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C89, POSIX.1-2001, SVr4, 4.3BSD.
+.TP
+.BR stpncpy ()
+glibc 1.07.
+POSIX.1-2008.
 .SH CAVEATS
 The name of these functions is confusing.
 These functions produce a null-padded character sequence,
@@ -134,14 +140,6 @@ main(void)
     char    buf2[20];
     size_t  len;
 
-    if (sizeof(buf1) < strlen("Hello world!"))
-        warnx("stpncpy: truncating character sequence");
-    p = stpncpy(buf1, "Hello world!", sizeof(buf1));
-    len = p \- buf1;
-
-    printf("[len = %zu]: ", len);
-    printf("%.*s\en", (int) len, buf1);  // "Hello world!"
-
     if (sizeof(buf2) < strlen("Hello world!"))
         warnx("strncpy: truncating character sequence");
     strncpy(buf2, "Hello world!", sizeof(buf2));
@@ -150,6 +148,14 @@ main(void)
     printf("[len = %zu]: ", len);
     printf("%.*s\en", (int) len, buf2);  // "Hello world!"
 
+    if (sizeof(buf1) < strlen("Hello world!"))
+        warnx("stpncpy: truncating character sequence");
+    p = stpncpy(buf1, "Hello world!", sizeof(buf1));
+    len = p \- buf1;
+
+    printf("[len = %zu]: ", len);
+    printf("%.*s\en", (int) len, buf1);  // "Hello world!"
+
     exit(EXIT_SUCCESS);
 }
 .EE
index 146ecfcbe9ef056ad1fe81047b6283a99d22b82f..7bebe7a53da4fe1f6f48eb393366bed194523735 100644 (file)
@@ -77,8 +77,10 @@ T}   Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-4.4BSD, POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+POSIX.1-2008.
+.SH HISTORY
+4.4BSD, POSIX.1-2001.
+.PP
 The
 .BR strcasecmp ()
 and
index 5952009c960d4b3a7712378be0c4879d71996750..d3d88beebfd1d51af2c0a730c9b1242b7ab17e00 100644 (file)
@@ -101,16 +101,24 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR strchrnul ()
-was added in glibc 2.1.1.
 .SH STANDARDS
-.BR strchr (),
-.BR strrchr ():
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
-.PP
+.TP
+.BR strchr ()
+.TQ
+.BR strrchr ()
+C11, POSIX.1-2008.
+.TP
+.BR strchrnul ()
+GNU.
+.SH HISTORY
+.TP
+.BR strchr ()
+.TQ
+.BR strrchr ()
+POSIX.1-2001, C89, SVr4, 4.3BSD.
+.TP
 .BR strchrnul ()
-is a GNU extension.
+glibc 2.1.1.
 .SH SEE ALSO
 .BR memchr (3),
 .BR string (3),
index 63de49e18aa54b077168dfc1fa6253d17bec0e28..2a58c37e0cda971cfb88f66794c34315d6fa4f82 100644 (file)
@@ -94,9 +94,7 @@ T}    Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
-.SH NOTES
+.SH VERSIONS
 POSIX.1 specifies only that:
 .RS
 .PP
@@ -114,6 +112,10 @@ the last compared byte in
 from the last compared byte in
 .IR s1 .
 (If the two characters are equal, this difference is 0.)
+.SH STANDARDS
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD.
 .SH EXAMPLES
 The program below can be used to demonstrate the operation of
 .BR strcmp ()
index 6ebbadcb025bb9403186319a090ade0408dd25c5..56c2fc435b605f2f28ef2bb95eb99be9a09a63e9 100644 (file)
@@ -68,7 +68,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD.
 .SH NOTES
 In the
 .I "POSIX"
index 02b6fbd8ca8431662493ad14ab01f3b01d72d501..03ffeaedc690b591cd5cbba62d4c756ff763e0db 100644 (file)
@@ -123,7 +123,16 @@ POSIX.1-2008.
 .BR strcpy ()
 .TQ
 .BR strcat ()
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH STANDARDS
+.TP
+.BR stpcpy ()
+POSIX.1-2008.
+.TP
+.BR strcpy ()
+.TQ
+.BR strcat ()
+POSIX.1-2001, C89, SVr4, 4.3BSD.
 .SH CAVEATS
 The strings
 .I src
index 0e928b909c3b6523a4c5670adace4e7b2b2f8818..82d438b5e82118b7495839963490f3818bbcf69c 100644 (file)
@@ -116,15 +116,28 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-.\" 4.3BSD-Reno, not (first) 4.3BSD.
+.TP
 .BR strdup ()
-conforms to SVr4, 4.3BSD, POSIX.1-2001.
+.TQ
 .BR strndup ()
-conforms to POSIX.1-2008.
+POSIX.1-2008.
+.TP
 .BR strdupa ()
-and
+.TQ
+.BR strndupa ()
+GNU.
+.SH HISTORY
+.TP
+.BR strdup ()
+SVr4, 4.3BSD-Reno, POSIX.1-2001.
+.TP
+.BR strndup ()
+POSIX.1-2008.
+.TP
+.BR strdupa ()
+.TQ
 .BR strndupa ()
-are GNU extensions.
+GNU.
 .SH SEE ALSO
 .BR alloca (3),
 .BR calloc (3),
index cd9f468407a37e7335aaf7529e49ff36dd63e6f0..1c80449d37a73a7e3d3dada9fc60bc13908096c9 100644 (file)
@@ -243,35 +243,24 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR strerror_l ()
-function first appeared in glibc 2.6.
-.PP
-The
-.BR strerrorname_np ()
-and
-.BR strerrordesc_np ()
-functions first appeared in glibc 2.32.
 .SH STANDARDS
+.TP
 .BR strerror ()
-is specified by POSIX.1-2001, POSIX.1-2008, C89, and C99.
+C11, POSIX.1-2008.
+.TP
 .BR strerror_r ()
-is specified by POSIX.1-2001 and POSIX.1-2008.
 .\" FIXME . for later review when Issue 8 is one day released...
 .\" A future POSIX.1 may remove strerror_r()
 .\" http://austingroupbugs.net/tag_view_page.php?tag_id=8
 .\" http://austingroupbugs.net/view.php?id=508
-.PP
+.TQ
 .BR strerror_l ()
-is specified in POSIX.1-2008.
-.PP
-The GNU-specific functions
-.BR strerror_r (),
-.BR strerrorname_np (),
-and
+POSIX.1-2008.
+.TP
+.BR strerrorname_np ()
+.TQ
 .BR strerrordesc_np ()
-are nonstandard extensions.
+GNU.
 .PP
 POSIX.1-2001 permits
 .BR strerror ()
@@ -292,6 +281,22 @@ to
 .B EINVAL
 if the error number is unknown.
 C99 and POSIX.1-2008 require the return value to be non-NULL.
+.SH HISTORY
+.TP
+.BR strerror ()
+POSIX.1-2001, C89.
+.TP
+.BR strerror_r ()
+POSIX.1-2001.
+.TP
+.BR strerror_l ()
+glibc 2.6.
+POSIX.1-2008.
+.TP
+.BR strerrorname_np ()
+.TQ
+.BR strerrordesc_np ()
+glibc 2.32.
 .SH NOTES
 The GNU C Library uses a buffer of 1024 characters for
 .BR strerror ().
index dc1ce3847990b6659467e8d325f0d429152fe322..a7f7333a2fff530f0b074c8b38d4d3ba4bb0a5fc 100644 (file)
@@ -163,7 +163,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH EXAMPLES
 The call
 .PP
index a6db6922c9b4a798f24a26f17ab69a03b5171405..6101af75c78226086d7098015b1def7428efbb8e 100644 (file)
@@ -174,22 +174,18 @@ T}        Thread safety   MT-Safe locale
 .ad
 .sp 1
 Note: these attributes are preliminary.
+.SH STANDARDS
+ISO/IEC TS 18661-1.
 .SH VERSIONS
-The
-.BR strfromd (),
-.BR strfromf (),
-and
+.TP
+.BR strfromd ()
+.TQ
+.BR strfromf ()
+.TQ
 .BR strfroml ()
-functions are available since glibc 2.25.
-.SH STANDARDS
-C99, ISO/IEC TS 18661-1.
+glibc 2.25.
 .SH NOTES
-The
-.BR strfromd (),
-.BR strfromf (),
-and
-.BR strfroml ()
-functions take account of the
+These functions take account of the
 .B LC_NUMERIC
 category of the current locale.
 .SH EXAMPLES
index 1ba870b8b3812ab067384b7707425b934cb78ff9..f1f539ea0d154fdb456da61444fe368ee91ec897 100644 (file)
@@ -52,10 +52,7 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-The
-.BR strfry ()
-function is unique to the
-GNU C Library.
+GNU.
 .SH SEE ALSO
 .BR memfrob (3),
 .BR string (3)
index b820abf70013ae260efe318ee3402b73cf4ad2de..38bb8814bd64dea87d32d0f9fca7a8f20a4ca1ca 100644 (file)
@@ -541,17 +541,23 @@ T}        Thread safety   MT-Safe env locale
 .ad
 .sp 1
 .SH STANDARDS
-.BR strftime ():
-SVr4, C89, C99.
-.PD 0
-.PP
-.PD
-.BR strftime_l ():
+.TP
+.BR strftime ()
+C11, POSIX.1-2008.
+.TP
+.BR strftime_l ()
 POSIX.1-2008.
-.PP
+.SH HISTORY
+.TP
+.BR strftime ()
+SVr4, C89.
 .\" FIXME strftime() is in POSIX.1-2001 and POSIX.1-2008, but the details
 .\" in the standards changed across versions. Investigate and
 .\" write up.
+.TP
+.BR strftime_l ()
+POSIX.1-2008.
+.PP
 There are strict inclusions between the set of conversions
 given in ANSI C (unmarked), those given in the Single UNIX Specification
 (marked SU), those given in Olson's timezone package (marked TZ),
index f8c9bc0c619b748dddb83d919c2e6dfab38a6197..ac587a48fdaf9e782d0deedd5ca57900447396f3 100644 (file)
@@ -49,7 +49,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, C11, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD.
 .SH NOTES
 In cases where the input buffer may not contain
 a terminating null byte,
index af5027c09c2152b187b0e029876a1ae0a70a4823..9a9fa4f4d22a8e46a8094be863bbb101fbaec7f7 100644 (file)
@@ -66,7 +66,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD.
 .SH CAVEATS
 The name of this function is confusing.
 This function has no relation to
index 528754d8eee7af5baf5bf112df21b0d94fdd9be5..9f922f6cacdc0a898ee82d4d054687640b51fc5f 100644 (file)
@@ -80,5 +80,7 @@ T}    Thread safety   MT-Safe
 .sp 1
 .SH STANDARDS
 POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2008.
 .SH SEE ALSO
 .BR strlen (3)
index f81a263af9721f192646d3822cc193de35c91906..9d4ac932775e958e1fee303e1e75e97cf8c20297 100644 (file)
@@ -55,7 +55,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR memchr (3),
 .BR strchr (3),
index d470d726c316c3f5fb149b7f832929f876e2596d..69996f3989aec8d0ce52e4c26a9933f5e670f0a0 100644 (file)
@@ -279,7 +279,9 @@ T}  Thread safety   MT-Safe env locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SUSv2.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SUSv2.
 .SH NOTES
 In principle, this function does not initialize
 .I tm
index 103d9b7886ab2c6d158532b19558e9ad485805ad..6d7c661769b7c0921f7aef3ba3ded5ab05b05faf 100644 (file)
@@ -83,8 +83,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 4.4BSD.
-.SH NOTES
+.PP
 The
 .BR strsep ()
 function was introduced as a replacement for
index 77c68037fdca8cb047e7ba03697c9cbb2c26a768..03b437ac6a7d4415c080d285f2ea9e7085ba220a 100644 (file)
@@ -132,29 +132,32 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
+.SH STANDARDS
+.TP
+.BR strsignal ()
+POSIX.1-2008.
+.TP
 .BR sigdescr_np ()
-and
+.TQ
 .BR sigabbrev_np ()
-first appeared in glibc 2.32.
-.PP
-Starting with glibc 2.32,
-.\" glibc commit b1ccfc061feee9ce616444ded8e1cd5acf9fa97f
-the
+GNU.
+.TP
 .I sys_siglist
-symbol is no longer exported by glibc.
-.SH STANDARDS
-.BR strsignal ():
+None.
+.\" glibc commit b1ccfc061feee9ce616444ded8e1cd5acf9fa97f
+.SH HISTORY
+.TP
+.BR strsignal ()
 POSIX.1-2008.
-Present on Solaris and the BSDs.
-.PP
+Solaris, BSD.
+.TP
 .BR sigdescr_np ()
-and
+.TQ
 .BR sigabbrev_np ()
-are GNU extensions.
-.PP
+glibc 2.32.
+.TP
 .I sys_siglist
-is nonstandard, but present on many other systems.
+Removed in glibc 2.32.
 .SH NOTES
 .BR sigdescr_np ()
 and
index fbb0b40434bc50aae5fc3f98ac8412507562f738..941d310d7f8d504fae6b8eb05b9bd99d13efb1a3 100644 (file)
@@ -73,7 +73,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR memchr (3),
 .BR strchr (3),
index 2f41cd16280ba8a89510597f0ab5d0890f7fb4ab..53eee808023317ea95a3018a695205846883ea53 100644 (file)
@@ -73,12 +73,19 @@ T}  Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-.BR strstr ():
-POSIX.1-2001, POSIX.1-2008, C89, C99.
-.PP
-The
+.TP
+.BR strstr ()
+C11, POSIX.1-2008.
+.TP
+.BR strcasestr ()
+GNU.
+.SH HISTORY
+.TP
+.BR strstr ()
+POSIX.1-2001, C89.
+.TP
 .BR strcasestr ()
-function is a nonstandard extension.
+GNU.
 .SH SEE ALSO
 .BR memchr (3),
 .BR memmem (3),
index eb1dd650c2b86cb1d1e90f011828d7fb6f269bfd..9d7ab11a8075e08d59ee3ae451f117490aeb8bb6 100644 (file)
@@ -156,21 +156,7 @@ T} Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
-.PP
-.BR strtod ()
-was also described in C89.
-.SH NOTES
-Since
-0 can legitimately be returned
-on both success and failure, the calling program should set
-.I errno
-to 0 before the call,
-and then determine if an error occurred by checking whether
-.I errno
-has a nonzero value after the call.
-.PP
+.SH VERSIONS
 In the glibc implementation, the
 .I n-char-sequence
 that optionally follows "NAN"
@@ -185,6 +171,26 @@ mantissa component of the returned value.
 .\" something similar.
 .\" C11 says: "An implementation may use the n-char sequence to determine
 .\"    extra information to be represented in the NaN's significant."
+.SH STANDARDS
+C11, POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR strtod ()
+C89, POSIX.1-2001.
+.TP
+.BR strtof ()
+.TQ
+.BR strtold ()
+C99, POSIX.1-2001.
+.SH NOTES
+Since
+0 can legitimately be returned
+on both success and failure, the calling program should set
+.I errno
+to 0 before the call,
+and then determine if an error occurred by checking whether
+.I errno
+has a nonzero value after the call.
 .SH EXAMPLES
 See the example on the
 .BR strtol (3)
index ca2c4dc402f634595944c83d074309772cbd5e8b..541e7e481fb4b7fe78c3cc0702f929e527b906e8 100644 (file)
@@ -60,7 +60,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR imaxabs (3),
 .BR imaxdiv (3),
index db52fb25c9a5b72b09fdcf110ffc176a7be83800..e990921106c5abb74989e72298b54c780529ffd0 100644 (file)
@@ -171,14 +171,7 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-.TP
-.BR strtok ()
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
-.TP
-.BR strtok_r ()
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 On some implementations,
 .\" Tru64, according to its manual page
 .I *saveptr
@@ -186,6 +179,20 @@ is required to be NULL on the first call to
 .BR strtok_r ()
 that is being used to parse
 .IR str .
+.SH STANDARDS
+.TP
+.BR strtok ()
+C11, POSIX.1-2008.
+.TP
+.BR strtok_r ()
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR strtok ()
+POSIX.1-2001, C89, SVr4, 4.3BSD.
+.TP
+.BR strtok_r ()
+POSIX.1-2001.
 .SH BUGS
 Be cautious when using these functions.
 If you do use them, note that:
index 34eb63414abe467490e183aa4ada7ec800146652..3c5ddddb300b9bf49ff11ba52de235440ad4f052 100644 (file)
@@ -160,11 +160,14 @@ T}        Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-.BR strtol ():
-POSIX.1-2001, POSIX.1-2008, C89, C99 SVr4, 4.3BSD.
-.PP
-.BR strtoll ():
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR strtol ()
+POSIX.1-2001, C89, SVr4, 4.3BSD.
+.TP
+.BR strtoll ()
+POSIX.1-2001, C99.
 .SH NOTES
 Since
 .BR strtol ()
index b43a0b1dd38a2a6b35aea2b6e59d68843bba5511..14c72fb774147816012d751b9861978ea84fa823 100644 (file)
@@ -160,11 +160,14 @@ T}        Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-.BR strtoul ():
-POSIX.1-2001, POSIX.1-2008, C89, C99 SVr4.
-.PP
-.BR strtoull ():
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR strtoul ()
+POSIX.1-2001, C89, SVr4.
+.TP
+.BR strtoull ()
+POSIX.1-2001, C99.
 .SH NOTES
 Since
 .BR strtoul ()
index ac06c4d8a134cb43cee6394fee28cd7b16ce6c10..ad781ab9a211c9c704e99237d85f4dcfbe63202f 100644 (file)
@@ -99,7 +99,7 @@ T}    Thread safety   MT-Safe
 .\" we may call isdigit() in macro, then strverscmp() should not have locale
 .\" problem.
 .SH STANDARDS
-This function is a GNU extension.
+GNU.
 .SH EXAMPLES
 The program below can be used to demonstrate the behavior of
 .BR strverscmp ().
index 59f96fd94d487f0e11b7fb43a1bd88b9770b9b89..4c92fea4d1f7a40f2c1332857cfbb94658462f22 100644 (file)
@@ -77,7 +77,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR memcmp (3),
 .BR setlocale (3),
index 55564efe7ff7331fe5b935529881d29a561cfbb5..2f7a3236b92b72ba10275a6bc284a06daa768cf2 100644 (file)
@@ -72,6 +72,8 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
 .SH SEE ALSO
 .BR bstring (3)
index 2650cfa860dd429274e13bccacceb287d70463a7..a15e1483a35a9fde15ca60908e0212ced9203fc1 100644 (file)
@@ -370,7 +370,9 @@ T}  Thread safety   MT-Safe env
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH BUGS
 It is difficult to use
 .B ARG_MAX
index e971417acd415a04b32c95a2f70a4b06df4ac2ef..6fa3a1b3f101e9da4ad1ba40c2445f35b278b82c 100644 (file)
@@ -281,14 +281,35 @@ T}        Thread safety   MT-Safe env locale
 .ad
 .sp 1
 .SH STANDARDS
-The functions
-.BR openlog (),
-.BR closelog (),
-and
+.TP
+.BR syslog ()
+.TQ
+.BR openlog ()
+.TQ
+.BR closelog ()
+POSIX.1-2008.
+.TP
+.BR vsyslog ()
+None.
+.SH HISTORY
+.TP
 .BR syslog ()
-(but not
-.BR vsyslog ())
-are specified in SUSv2, POSIX.1-2001, and POSIX.1-2008.
+4.2BSD, SUSv2, POSIX.1-2001.
+.TP
+.BR openlog ()
+.TQ
+.BR closelog ()
+4.3BSD, SUSv2, POSIX.1-2001.
+.\" .SH HISTORY
+.\" 4.3BSD documents
+.\" .BR setlogmask ().
+.TP
+.BR vsyslog ()
+4.3BSD-Reno.
+.\" Of course early v* functions used the
+.\" .I <varargs.h>
+.\" mechanism, which is not compatible with
+.\" .IR <stdarg.h> .
 .PP
 POSIX.1-2001 specifies only the
 .B LOG_USER
@@ -310,22 +331,6 @@ value for
 .I option
 is not specified by POSIX.1-2001 or POSIX.1-2008, but is available
 in most versions of UNIX.
-.\" .SH HISTORY
-.\" A
-.\" .BR syslog ()
-.\" function call appeared in 4.2BSD.
-.\" 4.3BSD documents
-.\" .BR openlog (),
-.\" .BR syslog (),
-.\" .BR closelog (),
-.\" and
-.\" .BR setlogmask ().
-.\" 4.3BSD-Reno also documents
-.\" .BR vsyslog ().
-.\" Of course early v* functions used the
-.\" .I <varargs.h>
-.\" mechanism, which is not compatible with
-.\" .IR <stdarg.h> .
 .SH NOTES
 The argument
 .I ident
index a66ddfa3728c1ea746ca02501940c9a9180054c7..867632bb3e376397ad5ef0a956d6d9ed5e5c078c 100644 (file)
@@ -119,7 +119,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89.
 .SH NOTES
 .BR system ()
 provides simplicity and convenience:
index c80b1b8cafa7352e635e502383351c28521415c4..aa75609b8225b87faeb6017138862bb0f5042c2d 100644 (file)
@@ -59,9 +59,7 @@ T}    Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-This function is nonstandard.
-.SH NOTES
+.SH VERSIONS
 Use of
 .BR sysv_signal ()
 should be avoided; use
@@ -86,6 +84,8 @@ this type is defined only if
 the
 .B _GNU_SOURCE
 feature test macro is defined.
+.SH STANDARDS
+None.
 .SH SEE ALSO
 .BR sigaction (2),
 .BR signal (2),
index 2474a674c905438231dbf92fcd9ab308d12a9e11..e57dd6438e0d6d6215f50a840e3c34a3b8655229 100644 (file)
@@ -315,10 +315,10 @@ structure, respectively.
 returns an initializer that can be assigned to the queue
 .IR head .
 .SH STANDARDS
-Not in POSIX.1, POSIX.1-2001, or POSIX.1-2008.
-Present on the BSDs.
-(TAILQ functions first appeared in 4.4BSD).
-.SH BUGS
+BSD.
+.SH HISTORY
+4.4BSD.
+.SH CAVEATS
 .BR TAILQ_FOREACH ()
 and
 .BR TAILQ_FOREACH_REVERSE ()
index ff8de23086a9a1fc7edfc29c4526e462faa38fbf..e4afae40dfdf3ce5c21a6e522c954e986e14888b 100644 (file)
@@ -124,7 +124,9 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 6846196bca6870cbfe78f4649478b73f567cdc2d..c9bff10b57a9503ff20b597cd02a6f11f7938407 100644 (file)
@@ -91,7 +91,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .PP
 The variant returning
 .I double
index 2c1409f4a939584dc793cc6175938b5378bf220e..edf50a80f84b41dd7fe7bec6b557e359f548da0d 100644 (file)
@@ -109,15 +109,17 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+.SH VERSIONS
 These functions are implemented via the
 .B TIOCGPGRP
 and
 .B TIOCSPGRP
 ioctls.
-.SS History
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.PP
 The ioctls appeared in 4.2BSD.
 The functions are POSIX inventions.
 .SH SEE ALSO
index b560a884a1da689d455cd1b4dfe178b9b8dea414..9ea42bbda4db364762dd7f08611be0e4efbaf43e 100644 (file)
@@ -61,12 +61,12 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR tcgetsid ()
-is provided since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
+.PP
 This function is implemented via the
 .B TIOCGSID
 .BR ioctl (2),
index 42d8b1a7b9cb43a2397d661cf5f4fc0a0a41c4f3..60b4f784afcdb6717e04c8d26bf373e6acd1b2b6 100644 (file)
@@ -67,8 +67,10 @@ T}   Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.3BSD.
-.SH NOTES
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.3BSD.
+.PP
 Up to glibc 2.1.1, the return type of
 .BR telldir ()
 was
index 2d46f09601e5e17931b9249612dc5a467de0daa6..1b517659d6ffcddfc40c73d59cf4536fde6fdb2c 100644 (file)
@@ -109,10 +109,10 @@ T}        Thread safety   MT-Safe env
 .ad
 .sp 1
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 SVr4, 4.3BSD, POSIX.1-2001.
-POSIX.1-2008 marks
-.BR tempnam ()
-as obsolete.
+Obsoleted in POSIX.1-2008.
 .SH NOTES
 Although
 .BR tempnam ()
index 2d7fc69a510627bb26c01535b69040aef0a36ac9..05d342c7aba6d0f6749a5d7de05650f4d470f74d 100644 (file)
@@ -1126,23 +1126,59 @@ T}      Thread safety   MT-Safe
 .\" So, it is safety in Linux kernel.
 .hy
 .SH STANDARDS
-.BR tcgetattr (),
-.BR tcsetattr (),
-.BR tcsendbreak (),
-.BR tcdrain (),
-.BR tcflush (),
-.BR tcflow (),
-.BR cfgetispeed (),
-.BR cfgetospeed (),
-.BR cfsetispeed (),
-and
+.TP
+.BR tcgetattr ()
+.TQ
+.BR tcsetattr ()
+.TQ
+.BR tcsendbreak ()
+.TQ
+.BR tcdrain ()
+.TQ
+.BR tcflush ()
+.TQ
+.BR tcflow ()
+.TQ
+.BR cfgetispeed ()
+.TQ
+.BR cfgetospeed ()
+.TQ
+.BR cfsetispeed ()
+.TQ
 .BR cfsetospeed ()
-are specified in POSIX.1-2001.
-.PP
+POSIX.1-2008.
+.TP
 .BR cfmakeraw ()
-and
+.TQ
+.BR cfsetspeed ()
+BSD.
+.SH HISTORY
+.TP
+.BR tcgetattr ()
+.TQ
+.BR tcsetattr ()
+.TQ
+.BR tcsendbreak ()
+.TQ
+.BR tcdrain ()
+.TQ
+.BR tcflush ()
+.TQ
+.BR tcflow ()
+.TQ
+.BR cfgetispeed ()
+.TQ
+.BR cfgetospeed ()
+.TQ
+.BR cfsetispeed ()
+.TQ
+.BR cfsetospeed ()
+POSIX.1-2001.
+.TP
+.BR cfmakeraw ()
+.TQ
 .BR cfsetspeed ()
-are nonstandard, but available on the BSDs.
+BSD.
 .SH NOTES
 UNIX\ V7 and several later systems have a list of baud rates
 where after the values
index 298e6f109631ff54ca1b7c1ac20721cb159cfd8d..9a4c8d1dd7250e2af2d66e84b9ebc268d5a6f815 100644 (file)
@@ -175,10 +175,11 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH NOTES
 This function had to be called "true gamma function"
 since there is already a function
index b67e1ed365e4670fc9682e183074ccb5261ffba3..ed207d93ae2ba3218628d764b23823c119b66c52 100644 (file)
@@ -13,7 +13,7 @@ Standard C library
 .nf
 .B #include <time.h>
 .PP
-.BI "time_t timelocal(struct tm *" tm );
+.BI "[[deprecated]] time_t timelocal(struct tm *" tm );
 .BI "time_t timegm(struct tm *" tm );
 .PP
 .fi
@@ -79,9 +79,10 @@ T}   Thread safety   MT-Safe env locale
 .ad
 .sp 1
 .SH STANDARDS
-These functions are nonstandard GNU extensions
-that are also present on the BSDs.
-.SH NOTES
+BSD.
+.SH HISTORY
+GNU, BSD.
+.PP
 The
 .BR timelocal ()
 function is equivalent to the POSIX standard function
index 2185edca3ead2e0c11397d97e4da26547bdee676..cf23d6cf2fe4f2c7c775896d9f8bc8a2f6923519 100644 (file)
@@ -135,8 +135,9 @@ return true (nonzero) or false (0).
 .SH ERRORS
 No errors are defined.
 .SH STANDARDS
-Not in POSIX.1.
-Present on most BSD derivatives.
+None.
+.SH HISTORY
+BSD.
 .SH SEE ALSO
 .BR gettimeofday (2),
 .BR time (7)
index fd39b6e1d7e56fda8bb8369ddc37a18a00a40ece..cbb59b9e093257b84762687aa026688b413792cc 100644 (file)
@@ -77,15 +77,7 @@ T}   Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD, SUSv2.
-.SH NOTES
-POSIX.1-2001 specifies:
-an error message may be written to
-.I stdout
-if the stream
-cannot be opened.
-.PP
+.SH VERSIONS
 The standard does not specify the directory that
 .BR tmpfile ()
 will use.
@@ -96,6 +88,16 @@ in
 .IR <stdio.h> ,
 and if that fails, then the directory
 .IR /tmp .
+.SH STANDARDS
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C89, SVr4, 4.3BSD, SUSv2.
+.SH NOTES
+POSIX.1-2001 specifies:
+an error message may be written to
+.I stdout
+if the stream
+cannot be opened.
 .SH SEE ALSO
 .BR exit (3),
 .BR mkstemp (3),
index 8f9a2af5b4cd8bb1ffbf49ffc60ac81f1fceb0c8..a8e93a08380d135e92530b7eadf3e18beeacd962 100644 (file)
@@ -15,8 +15,8 @@ Standard C library
 .nf
 .B #include <stdio.h>
 .PP
-.BI "char *tmpnam(char *" s );
-.BI "char *tmpnam_r(char *" s );
+.BI "[[deprecated]] char *tmpnam(char *" s );
+.BI "[[deprecated]] char *tmpnam_r(char *" s );
 .fi
 .PP
 .RS -4
@@ -106,16 +106,20 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-.BR tmpnam ():
-SVr4, 4.3BSD, C89, C99, POSIX.1-2001.
-POSIX.1-2008 marks
+.TP
 .BR tmpnam ()
-as obsolete.
-.PP
+C11, POSIX.1-2008.
+.TP
+.BR tmpnam_r ()
+None.
+.SH HISTORY
+.TP
+.BR tmpnam ()
+SVr4, 4.3BSD, C89, POSIX.1-2001.
+Obsolete in POSIX.1-2008.
+.TP
 .BR tmpnam_r ()
-is a nonstandard extension that is also available
-.\" Appears to be on Solaris
-on a few other systems.
+Solaris.
 .SH NOTES
 The
 .BR tmpnam ()
index e056b23ba9c0c4b67d313212ce3ba55105c5f24f..f37562580ff93b1af17a55619c9ada67212a74a8 100644 (file)
@@ -57,10 +57,10 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 SVr4, BSD, POSIX.1-2001.
-POSIX.1-2008 marks
-.BR toascii ()
-as obsolete,
+Obsolete in POSIX.1-2008,
 noting that it cannot be used portably in a localized application.
 .SH BUGS
 Many people will be unhappy if you use this function.
index 0df8209d927340e1f415b07838e6a51004922505..fa3d685121e5c0e08d0836baab71b61ce77aa158 100644 (file)
@@ -112,12 +112,26 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-.BR toupper (),
-.BR tolower ():
-C89, C99, 4.3BSD, POSIX.1-2001, POSIX.1-2008.
-.PP
-.BR toupper_l (),
-.BR tolower_l ():
+.TP
+.BR toupper ()
+.TQ
+.BR tolower ()
+C11, POSIX.1-2008.
+.TP
+.BR toupper_l ()
+.TQ
+.BR tolower_l ()
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR toupper ()
+.TQ
+.BR tolower ()
+C89, 4.3BSD, POSIX.1-2001.
+.TP
+.BR toupper_l ()
+.TQ
+.BR tolower_l ()
 POSIX.1-2008.
 .SH NOTES
 The standards require that the argument
index 6165818dffb62b930aa05e9ae80fe49b3a9f2b98..b8dca62ac4bbe4559bbec3ad694dd88ebb0f8935 100644 (file)
@@ -69,7 +69,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR towctrans ()
index edc6b573c9be69bb7ebabd4cfa4bb82d90391f5f..64377c7616063260dfc4e164ffc86d885e9f3c30 100644 (file)
@@ -102,16 +102,21 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
+.SH STANDARDS
+.TP
+.BR towlower ()
+C11, POSIX.1-2008 (XSI).
+.TP
 .BR towlower_l ()
-function first appeared in glibc 2.3.
+POSIX.1-2008.
 .SH STANDARDS
-.BR towlower ():
-C99, POSIX.1-2001 (XSI);
-present as an XSI extension in POSIX.1-2008, but marked obsolete.
-.PP
-.BR towlower_l ():
+.TP
+.BR towlower ()
+C99, POSIX.1-2001 (XSI).
+Obsolete in POSIX.1-2008 (XSI).
+.TP
+.BR towlower_l ()
+glibc 2.3.
 POSIX.1-2008.
 .SH NOTES
 The behavior of these functions depends on the
index e0a943a2e509e561e975fad80705e2bbacb94f2e..7d9aabed9ae17dfa27b1f5c90ee839aa9d108781 100644 (file)
@@ -101,17 +101,22 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR towupper_l ()
-function first appeared in glibc 2.3.
 .SH STANDARDS
-.BR towupper ():
-C99, POSIX.1-2001 (XSI);
-present as an XSI extension in POSIX.1-2008, but marked obsolete.
-.PP
-.BR towupper_l ():
+.TP
+.BR towupper ()
+C11, POSIX.1-2008 (XSI).
+.TP
+.BR towupper_l ()
+POSIX.1-2008.
+.SH HISTORY
+.TP
+.BR towupper ()
+C99, POSIX.1-2001 (XSI).
+Obsolete in POSIX.1-2008 (XSI).
+.TP
+.BR towupper_l ()
 POSIX.1-2008.
+glibc 2.3.
 .SH NOTES
 The behavior of these functions depends on the
 .B LC_CTYPE
index bb2a125ad0e18a6a496ab9fa7ce5fc381ce553d5..42071922ae4604f8034f01c36bcf812816fdfc2f 100644 (file)
@@ -63,10 +63,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-These functions were added in glibc 2.1.
 .SH STANDARDS
-C99, POSIX.1-2001, POSIX.1-2008.
+C11, POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+C99, POSIX.1-2001.
 .SH NOTES
 The integral value returned by these functions may be too large
 to store in an integer type
index 91fc90bbda36c31af3c368d096b7761ba33de66e..35b0528861db2f004682618e476b78fe34053287 100644 (file)
@@ -220,16 +220,34 @@ T}        Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR twalk_r ()
-is available since glibc 2.30.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
-The functions
+.TP
+.BR tsearch ()
+.TQ
+.BR tfind ()
+.TQ
+.BR tdelete ()
+.TQ
+.BR twalk ()
+POSIX.1-2008.
+.TP
 .BR tdestroy ()
-and
+.TQ
+.BR twalk_r ()
+GNU.
+.SH HISTORY
+.TP
+.BR tsearch ()
+.TQ
+.BR tfind ()
+.TQ
+.BR tdelete ()
+.TQ
+.BR twalk ()
+POSIX.1-2001, POSIX.1-2008, SVr4.
+.TP
 .BR twalk_r ()
-are GNU extensions.
+glibc 2.30.
 .SH NOTES
 .BR twalk ()
 takes a pointer to the root, while the other functions
index 4bd7b15eddfb458cb390e81a00d8368b66cb10b2..60f9c9cb2e52425c8072bdfd5686698a660a9f41 100644 (file)
@@ -83,7 +83,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, 4.2BSD.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, 4.2BSD.
 .SH NOTES
 A process that keeps a file descriptor that refers to a
 .BR pts (4)
index 358b9d4fa9a75b9019520c4c73860018d70dfafb..36946bb94d645aafdb842d3679d7f78b00faaddb 100644 (file)
@@ -122,14 +122,16 @@ T}        Thread safety   MT-Unsafe
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-SUSv1; marked as LEGACY in SUSv2; removed in POSIX.1-2001.
-SUSv2 requires \-1 on error.
-.SH NOTES
+.SH VERSIONS
 The utmp file is found in various places on various systems, such as
 .IR /etc/utmp ,
 .IR /var/adm/utmp ,
 .IR /var/run/utmp .
+.SH STANDARDS
+None.
+.SH HISTORY
+SUSv1; marked as LEGACY in SUSv2; removed in POSIX.1-2001.
+SUSv2 requires \-1 on error.
 .PP
 The glibc2 implementation of this function reads the file
 .BR _PATH_TTYS ,
index 1b44c5a71a7024497faf63ed971fff1ec43ca1d7..d7faf8b9864c9e7204b2c65ecf5f1a96c8d4fcc9 100644 (file)
@@ -227,8 +227,10 @@ T} Thread safety   MT-Safe env locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
-.SH NOTES
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4, 4.3BSD.
+.PP
 4.3BSD had a function
 .BI "char *timezone(" zone ", " dst )
 that returned the
index 50b48efe688008c20bfc043454d60e68c4921004..f66d85b3dc4bc34be5b5f7626ff0f24544955292 100644 (file)
@@ -84,14 +84,14 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD, POSIX.1-2001.
-POSIX.1-2001 marks
-.BR ualarm ()
-as obsolete.
-POSIX.1-2008 removes the specification of
-.BR ualarm ().
+POSIX.1-2001 marks it as obsolete.
+Removed in POSIX.1-2008.
+.PP
 4.3BSD, SUSv2, and POSIX do not define any errors.
-.SH NOTES
+.PP
 POSIX.1-2001 does not specify what happens if the
 .I usecs
 argument is 0.
index b9dffa7f56ae18150c2dff9d1648c0e1434a88b2..5f7671d87a04bc8d6de784837098d3f0c5422dee 100644 (file)
@@ -79,10 +79,10 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
 SVr4, POSIX.1-2001.
-POSIX.1-2008 marks
-.BR ulimit ()
-as obsolete.
+POSIX.1-2008 marks it as obsolete.
 .SH SEE ALSO
 .BR bash (1),
 .BR getrlimit (2),
index 43d59f7822ec5518e189f455ad0605927b8367f9..924dd99cbe85bd7327f77aff221cf1362b34bcf7 100644 (file)
@@ -91,7 +91,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR ungetwc ()
index 89c761cb316c27183692e81c04157a65814ebda8..faab29f06627f19dc2ee56fa89b48d18d215b55b 100644 (file)
@@ -159,16 +159,28 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-The four functions
-.BR getc_unlocked (),
-.BR getchar_unlocked (),
-.BR putc_unlocked (),
+.TP
+.BR getc_unlocked ()
+.TQ
+.BR getchar_unlocked ()
+.TQ
+.BR putc_unlocked ()
+.TQ
 .BR putchar_unlocked ()
-are in POSIX.1-2001 and POSIX.1-2008.
-.PP
-The nonstandard
-.BR *_unlocked ()
-variants occur on a few UNIX systems, and are available in recent glibc.
+POSIX.1-2008.
+.TP
+Others:
+None.
+.SH HISTORY
+.TP
+.BR getc_unlocked ()
+.TQ
+.BR getchar_unlocked ()
+.TQ
+.BR putc_unlocked ()
+.TQ
+.BR putchar_unlocked ()
+POSIX.1-2001.
 .\" E.g., in HP-UX 10.0. In HP-UX 10.30 they are called obsolescent, and
 .\" moved to a compatibility library.
 .\" Available in HP-UX 10.0: clearerr_unlocked, fclose_unlocked,
@@ -180,7 +192,6 @@ variants occur on a few UNIX systems, and are available in recent glibc.
 .\" putchar_unlocked, puts_unlocked, putws_unlocked, putw_unlocked,
 .\" putwc_unlocked, putwchar_unlocked, rewind_unlocked, setvbuf_unlocked,
 .\" ungetc_unlocked, ungetwc_unlocked.
-They should probably not be used.
 .SH SEE ALSO
 .BR flockfile (3),
 .BR stdio (3)
index c93a3f267cecadbc95d60f212a7927718f25675d..73b6ef8c15e4e7b1e32a28c39e0a5d409a4bdce9 100644 (file)
@@ -74,11 +74,11 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-.BR unlockpt ()
-is provided since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
+POSIX.1-2001.
 .SH SEE ALSO
 .BR grantpt (3),
 .BR posix_openpt (3),
index 44d5bb6b56423de172155a3e3deb732642b0bd5c..c5373e772cb6817aa42e3e3249608eb7fc64290d 100644 (file)
@@ -57,10 +57,7 @@ T}   Thread safety   MT-Unsafe sig:ALRM timer
 .hy
 .ad
 .sp 1
-.SH STANDARDS
-Not in POSIX.1.
-Present on Solaris, NetBSD, and perhaps other systems.
-.SH NOTES
+.SH VERSIONS
 For consistency with the other "utmpx" functions (see
 .BR getutxent (3)),
 glibc provides (since glibc 2.1):
@@ -78,6 +75,10 @@ This function performs the same task as
 but differs in that it takes a
 .I utmpx
 structure as its last argument.
+.SH STANDARDS
+None.
+.SH HISTORY
+Solaris, NetBSD.
 .SH SEE ALSO
 .BR getutxent (3),
 .BR wtmp (5)
index a813fdc0a2c974c52e5a94a5db81b9bac7aff585..e9c930077f8a845b3b90d0563dc9d20b38857b53 100644 (file)
@@ -70,12 +70,11 @@ to indicate the error.
 .B EINVAL
 .I newloc
 does not refer to a valid locale object.
-.SH VERSIONS
-The
-.BR uselocale ()
-function first appeared in glibc 2.3.
 .SH STANDARDS
 POSIX.1-2008.
+.SH HISTORY
+glibc 2.3.
+POSIX.1-2008.
 .SH NOTES
 Unlike
 .BR setlocale (3),
index 07c7e68a50bf2dd699f0df3768311c0deac97727..03804d4366de71c3a443981f9986f96f7a9e7a96 100644 (file)
@@ -81,12 +81,13 @@ T}  Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
+None.
+.SH HISTORY
 4.3BSD, POSIX.1-2001.
-POSIX.1-2001 declares this function obsolete; use
+POSIX.1-2001 declares it obsolete, suggesting
 .BR nanosleep (2)
 instead.
-POSIX.1-2008 removes the specification of
-.BR usleep ().
+Removed in POSIX.1-2008.
 .PP
 On the original BSD implementation,
 and before glibc 2.2.2, the return type of this function is
@@ -98,7 +99,7 @@ and this is also the prototype used since glibc 2.2.2.
 Only the
 .B EINVAL
 error return is documented by SUSv2 and POSIX.1-2001.
-.SH NOTES
+.SH CAVEATS
 The interaction of this function with the
 .B SIGALRM
 signal, and with other timer functions such as
index 01e870737f96959a8c00fd2d3f47b55f302f72c9..2f1df9a0261b43738b86a48636bd1c2e930aa7d5 100644 (file)
@@ -128,7 +128,9 @@ T}  Thread safety   MT-Unsafe race:wcrtomb/!ps
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR wcrtomb ()
index 5153a09adb55e82da92dc5cf25800491ae2383bb..7f4812b4a04cb9716a966cb744376c370da57efa 100644 (file)
@@ -86,14 +86,10 @@ T}  Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR wcscasecmp ()
-function is provided since glibc 2.1.
 .SH STANDARDS
 POSIX.1-2008.
-This function is not specified in POSIX.1-2001,
-and is not widely available on other systems.
+.SH HISTORY
+glibc 2.1.
 .SH NOTES
 The behavior of
 .BR wcscasecmp ()
index 170c391f2d606df9dad35908e6bcfcf8fd3891fe..597b72a1a002247b1df29e210d36bd84366ee06f 100644 (file)
@@ -63,7 +63,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR strcat (3),
 .BR wcpcpy (3),
index daf637509866f54a87328e6a6e6c25afe4b086db..da39a356df8dc46ad733e2e8120652470e2e3b58 100644 (file)
@@ -61,7 +61,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR strchr (3),
 .BR wcspbrk (3),
index 65cbda96cbf2627f1f5c0789e405087f588d1d5d..7530fae458c8db714dbcdfb87d514aa01a10fc73 100644 (file)
@@ -73,7 +73,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR strcmp (3),
 .BR wcscasecmp (3),
index fdaf5550f2ac2bbddd08f7c66ad8913fc85683a6..9cc5f7a28305f8c44ddad01dd2512754acb2d6e4 100644 (file)
@@ -64,7 +64,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR strcpy (3),
 .BR wcpcpy (3),
index 810c1ec75fb53ad14b5c4c79a81772e358d69514..e118336730ffabcce2975e5910465b975b5359da 100644 (file)
@@ -75,7 +75,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR strcspn (3),
 .BR wcspbrk (3),
index ce52d6dec36af364fad072f303ec48b0a1cf7d50..fc259fbd0a3eb6515fe7b84cc00d68f5614f804d 100644 (file)
@@ -79,9 +79,8 @@ T}    Thread safety   MT-Safe
 .sp 1
 .SH STANDARDS
 POSIX.1-2008.
-This function is not specified in POSIX.1-2001,
-and is not widely available on other systems.
-.\" present in libc5 and glibc 2.0 and later
+.SH HISTORY
+libc5, glibc 2.0.
 .SH SEE ALSO
 .BR strdup (3),
 .BR wcscpy (3)
index 0d0d22aa92874f8236c6648398d4b39e6c38511a..477053a95f0015a18a8065ae65410a18ee919118 100644 (file)
@@ -56,7 +56,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 In cases where the input buffer may not contain
 a terminating null wide character,
index 13cdcedbd972f638b7ad2c5ee7f5748bfa49ccf6..f474fb09dda1a12331601304c589237f282bee2d 100644 (file)
@@ -92,14 +92,10 @@ T}  Thread safety   MT-Safe locale
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR wcsncasecmp ()
-function is provided since glibc 2.1.
 .SH STANDARDS
 POSIX.1-2008.
-This function is not specified in POSIX.1-2001,
-and is not widely available on other systems.
+.SH HISTORY
+glibc 2.1.
 .SH NOTES
 The behavior of
 .BR wcsncasecmp ()
index 0b2ccd274c2b686bc71751f4365fc9ffd24d1aab..f7bae088166eb8e273128b6b95770e91363e3903 100644 (file)
@@ -67,7 +67,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR strncat (3),
 .BR wcscat (3)
index 670a8ef6830609724b31883a1bba84f32ce74de6..f3dbc1ededdf0f3a891456ab7a3c3e9e4f4af4a1 100644 (file)
@@ -88,7 +88,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR strncmp (3),
 .BR wcsncasecmp (3)
index 882650e3d85acdb91edebaffa1c6dc76664a1eb2..8f9b07db1413248ffe5b2a0dfdeabf83b583489b 100644 (file)
@@ -85,6 +85,8 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR strncpy (3)
index 339f6c15f0b21ffb024b25f085b2cd0e86531705..64a7c4d47f6460b0d683a61f564bff84e1d805ae 100644 (file)
@@ -85,12 +85,10 @@ T}  Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
-.SH VERSIONS
-The
-.BR wcsnlen ()
-function is provided since glibc 2.1.
 .SH STANDARDS
 POSIX.1-2008.
+.SH HISTORY
+glibc 2.1.
 .SH SEE ALSO
 .BR strnlen (3),
 .BR wcslen (3)
index c89b6df2d182b0deb7bd25fdfbbf35f7535530e6..6d557bd1b2e2a5511c5a57445a57af9d9ca2ab1e 100644 (file)
@@ -63,7 +63,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR strpbrk (3),
 .BR wcschr (3),
index acb16cae8b10d5c6d18b3be07370df2f1259d720..ec1973687ad8c93a55e08f042b1089a49a3e19c6 100644 (file)
@@ -61,7 +61,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR strrchr (3),
 .BR wcschr (3)
index 5503b99c5ea796c45aa454a23557ca77b76f267e..df094abc21a3f20869d6f1ec2c9db3379f847e64 100644 (file)
@@ -143,7 +143,9 @@ T}
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR wcsrtombs ()
index 7283bfd23e2585d5fdaad2914cc10a53634ff472..8c62063d0f23244a8d32afdb9ed21fd23537e75c 100644 (file)
@@ -73,7 +73,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR strspn (3),
 .BR wcscspn (3)
index 454a69a381c0f0d9180c2a9fa3b61073f01e9a48..175395a97c8345867467c90c47c1e974e525a714 100644 (file)
@@ -70,7 +70,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR strstr (3),
 .BR wcschr (3)
index ccf229ebc077711c8b9fab556b81a0a5c599551c..566dcdb76f3f376ae7976fb6aa5c51ecb6874db8 100644 (file)
@@ -48,7 +48,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR imaxabs (3),
 .BR imaxdiv (3),
index 4a58f5957a4d922aa62fb3873fef8a59bb691292..4cbcc317076ba6e1284f0c8b61d3398f4e719f4d 100644 (file)
@@ -94,7 +94,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The original
 .I wcs
index f13218d97d698cacf156a040e4d87a702ab12bd1..39381005aec4df48bb397a22663ad4f90eb80ae3 100644 (file)
@@ -105,8 +105,14 @@ T} Thread safety   MT-Safe
 .hy
 .ad
 .sp 1
+.SH VERSIONS
+The function
+.BR wcsrtombs (3)
+provides a better interface to the same functionality.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR wcstombs ()
@@ -114,10 +120,6 @@ depends on the
 .B LC_CTYPE
 category of the
 current locale.
-.PP
-The function
-.BR wcsrtombs (3)
-provides a better interface to the same functionality.
 .SH SEE ALSO
 .BR mblen (3),
 .BR mbstowcs (3),
index 6bf797c2689f08a439ad922d3eb06079c8a0f95d..4e9b19062087d83bf3678a9dc6cfb8fb137d2e90 100644 (file)
@@ -61,7 +61,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The behavior of
 .BR wcswidth ()
index 9afb512dcdcbd156c4fd6220965bc8bf0f3a5d99..23bfd222aa0af5e9b4754c492b0483634938a790 100644 (file)
@@ -64,7 +64,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR wctob ()
index cff05d470858eb2f10eecc7aeb3597933f28138b..c5c437720b5bb09d73aa1a0e273bf2c2379c403d 100644 (file)
@@ -97,8 +97,15 @@ T}   Thread safety   MT-Unsafe race
 .hy
 .ad
 .sp 1
+.SH VERSIONS
+The function
+.BR wcrtomb (3)
+provides
+a better interface to the same functionality.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR wctomb ()
@@ -106,11 +113,6 @@ depends on the
 .B LC_CTYPE
 category of the
 current locale.
-.PP
-The function
-.BR wcrtomb (3)
-provides
-a better interface to the same functionality.
 .SH SEE ALSO
 .BR MB_CUR_MAX (3),
 .BR mblen (3),
index b88876d21418195bb26bc382795d63caa9690648..cacf05ea50934270ddcd7498f167423031879416 100644 (file)
@@ -77,7 +77,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR wctrans ()
index b03c412bcf8f9f7713ce42f93b494e6427f87d4c..f2b1429bf7f925d90a50440f1bb0d354224714b2 100644 (file)
@@ -89,7 +89,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR wctype ()
index 31452654fc4d6fef00a3bde9e46cdcf32db8c83b..2bf243b08e5e1a5eb9bd329c428d272ed3796c21 100644 (file)
@@ -59,7 +59,9 @@ T}    Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .PP
 Note that before glibc 2.2.5, glibc used the prototype
 .PP
index dad8051bbd5285beb89931da6b52967e5553927f..8add6a473c423720e217d1425f75d15889c0af5d 100644 (file)
@@ -65,7 +65,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR memchr (3),
 .BR wcschr (3)
index 40b3cbccaf750e0a145bc87f84c5a9f5411322a8..9f470209fd89540a4cab717a402f427036bc957e 100644 (file)
@@ -85,7 +85,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR memcmp (3),
 .BR wcscmp (3)
index 04d43bd5ed54aefc5a3dceef1d595fab59589370..e667dd9724ed1ffdc471dc4e586db200e1ed306f 100644 (file)
@@ -68,7 +68,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR memcpy (3),
 .BR wcscpy (3),
index 98376d201abe3c9b0fdb0da7ff0c5d40a505a048..a2aba5b9e659eaddd3f3f946aeef1e77c75f5719 100644 (file)
@@ -65,7 +65,9 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR memmove (3),
 .BR wmemcpy (3)
index 9d460a48b81cf3551175543b5613122193cf6430..385ebf77c27a9ed9b95ad93333b5f5f069ba71ac 100644 (file)
@@ -57,6 +57,8 @@ T}    Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH SEE ALSO
 .BR memset (3)
index 9350fd63c0e758a8d560e0069aee66373e85b5be..1a1f284bb1369f3dbf1e6c708877de79a5af68a1 100644 (file)
@@ -208,13 +208,11 @@ then data races could occur.
 .BR wordexp ()
 calls those functions,
 so we use race:utent to remind users.
-.SH VERSIONS
-.BR wordexp ()
-and
-.BR wordfree ()
-are provided since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+glibc 2.1.
 .SH EXAMPLES
 The output of the following example program
 is approximately that of "ls [a-c]*.c".
index a496e76c424f38a6f4c0fc9229a5292558c21b7f..16ffb9e439e9e45d8ab78457a2e4e0f1abcf541a 100644 (file)
@@ -226,7 +226,9 @@ T}  Thread safety   MT-Safe locale
 .ad
 .sp 1
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, C99.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, C99.
 .SH NOTES
 The behavior of
 .BR wprintf ()
index a2c9e2174d45d583437f4df194aa629c899696c0..861b6f40b50cc98c8b673b19f75a168aeff47198 100644 (file)
--- a/man3/y0.3
+++ b/man3/y0.3
@@ -224,11 +224,28 @@ T}        Thread safety   MT-Safe
 .ad
 .sp 1
 .SH STANDARDS
-The functions returning
-.I double
-conform to SVr4, 4.3BSD,
-POSIX.1-2001, POSIX.1-2008.
-The others are nonstandard functions that also exist on the BSDs.
+.TP
+.BR y0 ()
+.TQ
+.BR y1 ()
+.TQ
+.BR yn ()
+POSIX.1-2008.
+.TP
+Others:
+BSD.
+.SH HISTORY
+.TP
+.BR y0 ()
+.TQ
+.BR y1 ()
+.TQ
+.BR yn ()
+SVr4, 4.3BSD,
+POSIX.1-2001.
+.TP
+Others:
+BSD.
 .SH BUGS
 Before glibc 2.19,
 .\" http://sourceware.org/bugzilla/show_bug.cgi?id=6807
index 8f1aa6a37e093670654a497324d420cb395b9b82..e432d3cb9afda915b434ef047d4bd634eeb21ca0 100644 (file)
@@ -221,7 +221,9 @@ On error, it should return \-1.
 .TP
 .B EINVAL
 The specifier was not a valid character.
-.SH VERSIONS
+.SH STANDARDS
+GNU.
+.SH HISTORY
 .BR \%register_printf_function (3)
 is an older function similar to
 .BR \%register_printf_specifier (),
@@ -231,8 +233,6 @@ That function can't handle user-defined types.
 .BR \%register_printf_specifier ()
 superseeds
 .BR \%register_printf_function (3).
-.SH STANDARDS
-These nonstandard functions are present in glibc.
 .SH EXAMPLES
 The following example program registers the 'b' and 'B' specifiers
 to print integers in binary format,
index 33e23b9105ae089fa744b9d8e3055dda3dfce213..4014b802841a9dd27c2f2524bc53e2d847506662 100644 (file)
@@ -185,14 +185,14 @@ Something was found in an unconfigured or misconfigured state.
 The numerical values corresponding to the symbolical ones
 are given in parenthesis for easy reference.
 .SH STANDARDS
-Not in POSIX.1.
-Present on the BSDs.
+BSD.
+.SH HISTORY
 The
 .I <sysexits.h>
 file appeared in 4.0BSD for use by the deliverymail utility,
 later renamed to
 .BR sendmail (8).
-.SH BUGS
+.SH CAVEATS
 The choice of an appropriate exit value is often ambiguous.
 .SH SEE ALSO
 .BR err (3),
index 82000d837f0853f43078bca5359ee739703569ef..9025575114b6d4618dfdbbfb920f814eaac193da 100644 (file)
@@ -19,8 +19,9 @@ Standard C library
 .SH DESCRIPTION
 An object type used for streams.
 .SH STANDARDS
-C99 and later;
-POSIX.1-2001 and later.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
 .SH NOTES
 The following header also provides this type:
 .IR <wchar.h> .
index 7bfe97162514d091577f387596d027ef631f2444..945561710437f14b8d679fb515adb13b4152f32f 100644 (file)
@@ -28,7 +28,9 @@ Standard C library
 For further information about this structure, see
 .BR aio (7).
 .SH STANDARDS
-POSIX.1-2001 and later.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .BR aio_cancel (3),
 .BR aio_error (3),
index c9bb2ed403b9ede271ca9de875b805509e5532ad..6b783611569546e4a12a5e725c47f3b1059a873f 100644 (file)
@@ -20,7 +20,9 @@ Standard C library
 Used for file block counts.
 It is a signed integer type.
 .SH STANDARDS
-POSIX.1-2001 and later.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The following header also provides this type:
 .IR <sys/stat.h> .
index 0b1c82bcd47ea463e9b9ac212af3e67a60b84159..5c0a24e81ca21bd021380366d006d048f9be3267 100644 (file)
@@ -20,7 +20,9 @@ Standard C library
 Used for file block sizes.
 It is a signed integer type.
 .SH STANDARDS
-POSIX.1-2001 and later.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The following header also provides this type:
 .IR <sys/stat.h> .
index ef0d441074db904ddd5ed8dba6e4b9bdc1d7906e..f0c7a490c516c00ec5f68297430449b5407cb4a1 100644 (file)
@@ -28,6 +28,8 @@ for modes.
 .PP
 All are unsigned integer types.
 .SH STANDARDS
-POSIX.1-2001 and later.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .BR termios (3)
index b3fdf03468750fcd2b96d03f3eef69f95066cc42..12da83de93e63902a3551bbbf32aa86e7caa82ff 100644 (file)
@@ -24,7 +24,9 @@ Used for system time in clock ticks or
 According to POSIX,
 it is an integer type or a real-floating type.
 .SH STANDARDS
-C99 and later; POSIX.1-2001 and later.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
 .SH NOTES
 The following headers also provide this type:
 .I <sys/types.h>
index 092a07c153d5237ce16d1c7ec2e7c1f7798d95bd..97ce866614836684dbc3423df90d5205ae24cb2c 100644 (file)
@@ -14,7 +14,9 @@ Standard C library
 Used for clock ID type in the clock and timer functions.
 It is defined as an arithmetic type.
 .SH STANDARDS
-POSIX.1-2001 and later.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The following header also provides this type:
 .IR <time.h> .
index 898886b84a009abe4549957e5fc75a64b760cc57..0a3df93535e9baf16c55053c012914ce194aabb4 100644 (file)
@@ -22,7 +22,9 @@ It is an integer type.
 For further details of this type, see
 .BR makedev (3).
 .SH STANDARDS
-POSIX.1-2001 and later.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The following header also provides this type:
 .IR <sys/stat.h> .
index fa4330709182a690a2cdd40a452d8dbf63478c93..d62ea2ccadee992898e9a189d479e9c8f83abd80 100644 (file)
@@ -48,7 +48,9 @@ is the type of the value returned by the
 .BR imaxdiv (3)
 function.
 .SH STANDARDS
-C99 and later; POSIX.1-2001 and later.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR div (3),
 .BR imaxdiv (3),
index e0f820582c014a8c80e9a401464eb3b5984710e7..1bf1946eb7a23a053574a5f1c4f3680f7987118a 100644 (file)
@@ -48,7 +48,9 @@ and
 .I double_t
 are implementation-defined.
 .SH STANDARDS
-C99 and later; POSIX.1-2001 and later.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR float.h (0p),
 .BR math.h (0p)
index 4e4d342841f3ad57cc47c3308a535a00277c438d..4806bca66a0736a143dbaf31e08ca488c8e13cc0 100644 (file)
@@ -33,9 +33,7 @@ The
 .I epoll_event
 structure specifies data that the kernel should save and
 return when the corresponding file descriptor becomes ready.
-.SH STANDARDS
-This type is Linux-specific.
-.SH NOTES
+.SH VERSIONS
 .SS C library/kernel differences
 The Linux kernel headers also provide this type,
 with a slightly different definition:
@@ -50,6 +48,8 @@ struct epoll_event {
 };
 .EE
 .in
+.SH STANDARDS
+Linux.
 .SH SEE ALSO
 .BR epoll_wait (2),
 .BR epoll_ctl (7)
index 086f1d977eb43aa70f18d15e4a66ed7358a2d23e..9e220225730876e72c4ee3078485aab0e534fc77 100644 (file)
@@ -28,6 +28,8 @@ represents the floating-point status flags collectively.
 For further details see
 .BR fenv (3).
 .SH STANDARDS
-C99 and later; POSIX.1-2001 and later.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH SEE ALSO
 .BR fenv (3)
index d6bc97b6f44986949d3bdcd8a22dca849799d839..4c76ad2f6d543667f875033ea204b8f0c43970ac 100644 (file)
@@ -40,7 +40,9 @@ It is an integer type that can be used to contain a
 or
 .IR gid_t .
 .SH STANDARDS
-POSIX.1-2001 and later.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The following headers also provide
 .IR pid_t :
index 09383cd65bbee2be96dbd5a52396b043a5d96125..3a1e51518da59f3e4ee922db65132f100310c91b 100644 (file)
@@ -156,8 +156,13 @@ for scanning
 .I uint8_t
 values.
 .SH STANDARDS
-C99 and later;
-POSIX.1-2001 and later.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
+.PP
+The
+.RB [ U ] INT \fIN\fP _WIDTH
+macros were added in C23.
 .SH NOTES
 The following header also provides these types:
 .IR <inttypes.h> .
index 8c2f9ff0f3d7981604312e4608999881f95877f0..e5feb4c56348fd14e80a802374858c5eb9dcaacc 100644 (file)
@@ -81,7 +81,9 @@ for printing
 .RI [ u ] intmax_t
 values.
 .SH STANDARDS
-C99 and later; POSIX.1-2001 and later.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH NOTES
 The following header also provides these types:
 .IR <inttypes.h> .
index 9b614fac6bbbec3242a3fc578544ade19ef96164..9481baf91644c4f5ff0faa30694d3b06464ead2d 100644 (file)
@@ -96,7 +96,9 @@ for scanning
 .I uintptr_t
 values.
 .SH STANDARDS
-C99 and later; POSIX.1-2001 and later.
+C11, POSIX.1-2008.
+.SH HISTORY
+C99, POSIX.1-2001.
 .SH NOTES
 The following header also provides these types:
 .IR <inttypes.h> .
index 5f3a7e3ef94dae169f4451f1b664207a2f545299..559883183a4bd85ab17b5309e4194fa44bcb1e20 100644 (file)
@@ -38,7 +38,9 @@ is limited by
 or accessible via the call
 .IR sysconf(_SC_IOV_MAX) ).
 .SH STANDARDS
-POSIX.1-2001 and later.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The following header also provides this type:
 .IR <sys/socket.h> .
index 9ed7faafd882080c6033c5cad2c37f32f9bfb329..5d645e2f7fdb6a1c7c47a9162f7083badc91e16f 100644 (file)
@@ -23,7 +23,7 @@ Describes the initial expiration of a timer,
 and its interval,
 in seconds and nanoseconds.
 .SH STANDARDS
-Linux-specific.
+Linux.
 .SH NOTES
 The following header also provides this type:
 .IR <sys/timerfd.h> .
index 7f860b4aba146763c1d25dbdd783b079996d47fc..5c326d7c966311eb77b3504ece7d54be8f0a7485 100644 (file)
@@ -46,7 +46,9 @@ Contains members related to the formatting of numeric values.
 In the "C" locale, its members have the values
 shown in the comments above.
 .SH STANDARDS
-C11 and later; POSIX.1-2001 and later.
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH SEE ALSO
 .BR setlocale (3),
 .BR localeconv (3),
index 2ea1784cc0d5b1b3a0632751af8019251221bcd1..c90a35fb0cff1ef7e6346b3090d280155820c095 100644 (file)
@@ -20,7 +20,9 @@ Standard C library
 Used for some file attributes (e.g., file mode).
 It is an integer type.
 .SH STANDARDS
-POSIX.1-2001 and later.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The following headers also provide this type:
 .IR <fcntl.h> ,
index 1e8734fa6f21254e2b37638fcfadcfa895b645a5..4d4bae143071e6ed8fa97194a8c3cb5737580471 100644 (file)
@@ -38,24 +38,27 @@ used in glibc.
 .I loff_t
 is a 64-bit version of the type,
 introduced by the Linux kernel.
+.SH STANDARDS
+.TP
+.I off_t
+POSIX.1-2008.
+.TP
+.I off64_t
+GNU and some BSDs.
+.TP
+.I loff_t
+Linux.
 .SH VERSIONS
+.TP
+.I off_t
+POSIX.1-2001.
+.PP
 .I <aio.h>
 and
 .I <stdio.h>
 define
 .I off_t
 since POSIX.1-2008.
-.SH STANDARDS
-.PD 0
-.IR off_t :
-POSIX.1-2001 and later.
-.PP
-.IR off64_t :
-Present in glibc and some BSDs.
-.PP
-.IR loff_t :
-Linux-specific.
-.PD
 .SH NOTES
 On some architectures,
 the width of
index a4d41e5e77eda6f61289ed16d5e86d869d1171f6..093e630bf711646287455d5f481f2b1a0b7ad448 100644 (file)
@@ -40,7 +40,8 @@ for printing
 .I ptrdiff_t
 values.
 .SH STANDARDS
-C99 and later;
-POSIX.1-2001 and later.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
 .SH SEE ALSO
 .BR size_t (3type)
index a87c1994a5d601b5a69ab4b669275c951d5d381c..176d2c7a62a88fdab2f4603c6122dceb43162f3b 100644 (file)
@@ -47,7 +47,11 @@ capable of storing the largest value that can be stored in either an
 type or a
 .I ssize_t
 type.
-.SH VERSIONS
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.PP
 Prior to POSIX.1-2008,
 the type was
 capable of storing the largest value that can be stored in either an
@@ -55,7 +59,5 @@ capable of storing the largest value that can be stored in either an
 type or a
 .I ssize_t
 type.
-.SH STANDARDS
-POSIX.1-2001 and later.
 .SH SEE ALSO
 .BR regex (3)
index 6a71be7a8d0c3edae2f562f34f2f798dbb2689ae..97633a9767b4a2db0393c385eeeed6c9dec109d0 100644 (file)
@@ -84,9 +84,22 @@ by converting the value to
 .I intmax_t
 and using its length modifier
 .RB ( j ).
-.SH VERSIONS
+.SH STANDARDS
 .TP
 .I size_t
+C11, POSIX.1-2008.
+.TP
+.I ssize_t
+POSIX.1-2008.
+.PD
+.SH HISTORY
+.TP
+.I size_t
+C89, POSIX.1-2001.
+.TP
+.I ssize_t
+POSIX.1-2001.
+.PP
 .IR <aio.h> ,
 .IR <glob.h> ,
 .IR <grp.h> ,
@@ -99,8 +112,7 @@ and
 define
 .I size_t
 since POSIX.1-2008.
-.TP
-.I ssize_t
+.PP
 .IR <aio.h> ,
 .IR <mqueue.h> ,
 and
@@ -108,15 +120,6 @@ and
 define
 .I ssize_t
 since POSIX.1-2008.
-.SH STANDARDS
-.PD 0
-.IR size_t :
-C99 and later;
-POSIX.1-2001 and later.
-.PP
-.IR ssize_t :
-POSIX.1-2001 and later.
-.PD
 .SH NOTES
 .TP
 .I size_t
index 319a5e55296c3649bb5f5511aca84a2b470b641b..32c3c5bd0788c6bb24965bc11d7a8c81b89589f9 100644 (file)
@@ -109,7 +109,9 @@ stored in network byte order.
 .I sockaddr_un
 Describes a UNIX domain socket address.
 .SH STANDARDS
-POSIX.1-2001 and later.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 .I socklen_t
 is also defined in
index 5f6e07886d4b27bf0a08445b0923eb41350ab8eb..c511b43376c747f2f3e8e14a7963817587d9692f 100644 (file)
@@ -116,7 +116,11 @@ This is the file's last status change timestamp
 .PP
 For further information on the above fields, see
 .BR inode (7).
-.SH VERSIONS
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.PP
 Old kernels and old standards did not support nanosecond timestamp fields.
 Instead, there were three timestamp
 .RI fields\[em] st_atime ,
@@ -150,8 +154,6 @@ is defined.
 If none of the aforementioned macros are defined,
 then the nanosecond values are exposed with names of the form
 .IR st_atimensec .
-.SH STANDARDS
-POSIX.1-2001 and later.
 .SH NOTES
 The following header also provides this type:
 .IR <ftw.h> .
index 0808236c9e5a194784b28f9b3e2616cd23b8138d..1b9607358f5a919eebe6967da968c18ab3a6a972 100644 (file)
@@ -45,38 +45,43 @@ It is an unsigned integer type
 capable of storing values al least in the range
 .RB [ 0 ,
 .BR 1000000 ].
-.SH VERSIONS
+.SH STANDARDS
+.TP
+.I time_t
+C11, POSIX.1-2008.
+.TP
+.I suseconds_t
+.TQ
+.I useconds_t
+POSIX.1-2008.
+.PD
+.SH HISTORY
 .TP
 .I time_t
+C89, POSIX.1-2001.
+.TP
+.I suseconds_t
+.TQ
+.I useconds_t
+POSIX.1-2001.
+.PP
 .I <sched.h>
 defines
 .I time_t
 since POSIX.1-2008.
-.TP
-.I suseconds_t
+.PP
 POSIX.1-2001 defined
 .I useconds_t
 in
 .I <unistd.h>
 too.
-.SH STANDARDS
-.PD 0
-.IR time_t :
-C99 and later;
-POSIX.1-2001 and later.
-.PP
-.IR suseconds_t ,
-.IR useconds_t :
-POSIX.1-2001 and later.
-.PD
 .SH NOTES
 On some architectures,
 the width of
 .I time_t
 can be controlled with the feature test macro
 .BR _TIME_BITS .
-.TP
-.I time_t
+.PP
 The following headers also provide
 .IR time_t :
 .IR <sched.h> ,
@@ -89,8 +94,7 @@ The following headers also provide
 .IR <sys/types.h> ,
 and
 .IR <utime.h> .
-.TP
-.I suseconds_t
+.PP
 The following headers also provide
 .IR suseconds_t :
 .I <sys/select.h>
index 1f5e8bcae4cc2ac04b112317f2d4ca36ab285517..6470855f75c3b7b3677d92f5579a3796c458f11f 100644 (file)
@@ -20,7 +20,9 @@ Standard C library
 Used for timer ID returned by
 .BR timer_create (2).
 .SH STANDARDS
-POSIX.1-2001 and later.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The following header also provides
 .IR timer_t :
index 53a99de7260270b9eeda1cb69518fa291127b597..b5028a1055f935169d3fefcd77a9f716c5897c73 100644 (file)
@@ -32,14 +32,15 @@ and
 .I long long
 on X32.
 It can be safely down-cast to any concrete 32-bit integer type for processing.
-.SH STANDARDS
-C11 and later;
-POSIX.1-2001 and later.
 .SH VERSIONS
 Prior to C23,
 .I tv_nsec
 was
 .IR long .
+.SH STANDARDS
+C11, POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The following headers also provide this type:
 .IR <aio.h> ,
index 36a7a4820f56397efa7298b4ac89a43b9b11eb84..c8963ef4a2dea63c78be3247d0e44691c2ae73a0 100644 (file)
@@ -22,7 +22,9 @@ Standard C library
 .SH DESCRIPTION
 Describes times in seconds and microseconds.
 .SH STANDARDS
-POSIX.1-2001 and later.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
 .SH NOTES
 The following headers also provide this type:
 .IR <sys/resource.h> ,
index 79e0cfc25d248edcacbc792df152bf679973f3ad..e203b15e74b1e9518edb2e62fb746950ab79a56c 100644 (file)
@@ -75,21 +75,6 @@ UTC doesn't permit double leap seconds,
 so it was limited to
 .B 60
 in C99.
-.SH STANDARDS
-C90 and later;
-POSIX.1-2001 and later.
-.PP
-.I tm_gmtoff
-and
-.I tm_zone
-originate from 4.3BSD-Tahoe (where
-.I tm_zone
-is a
-.IR "char *" ).
-.SH NOTES
-.I tm_sec
-can represent a leap second with the value
-.BR 60 .
 .PP
 .BR timezone (3),
 as a variable, is an XSI extension: some systems provide the V7-compatible
@@ -104,6 +89,22 @@ field provides an alternative (with the opposite sign) for those systems.
 points to static storage and may be overridden on subsequent calls to
 .BR localtime (3)
 and similar functions (however, this never happens under glibc).
+.SH STANDARDS
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
+.PP
+.I tm_gmtoff
+and
+.I tm_zone
+originate from 4.3BSD-Tahoe (where
+.I tm_zone
+is a
+.IR "char *" ).
+.SH NOTES
+.I tm_sec
+can represent a leap second with the value
+.BR 60 .
 .SH SEE ALSO
 .BR ctime (3),
 .BR strftime (3),
index 004860d5c512e9fffb5b414335c5550dae4456f5..08b1abfdd8817d6e4edb2f13eada6d26b8662896 100644 (file)
@@ -28,8 +28,9 @@ and
 .BR va_end (3)
 to traverse the list of arguments.
 .SH STANDARDS
-C99 and later;
-POSIX.1-2001 and later.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
 .SH NOTES
 The following headers also provide
 .IR va_list :
index ddcbf482f1dc3aea9033d50b98d75fad85936268..c8a638a783bb80ad305b8633b37b01c0bc3ccc2d 100644 (file)
@@ -65,8 +65,9 @@ The POSIX requirement about compatibility between
 and function pointers was added in
 POSIX.1-2008 Technical Corrigendum 1 (2013).
 .SH STANDARDS
-C99 and later;
-POSIX.1-2001 and later.
+C11, POSIX.1-2008.
+.SH HISTORY
+C89, POSIX.1-2001.
 .SH SEE ALSO
 .BR malloc (3),
 .BR memcmp (3),
index 0d9ed06ac43001b772f3b665998da58a7068941b..64d798bffcba28e4f04b437165f920af49ccd50e 100644 (file)
@@ -491,7 +491,7 @@ Returned from operations on a
 .I /dev/fuse
 file descriptor that has not been mounted.
 .SH STANDARDS
-The FUSE filesystem is Linux-specific.
+Linux.
 .SH NOTES
 The following messages are not yet documented in this manual page:
 .PP
index 0665dd3617494a26930f017cf223fc1ff3401bff..d879dfde0acfe74150baa087fb39d65551263cf2 100644 (file)
@@ -129,13 +129,14 @@ struct acct_v3 {
 .EE
 .in
 .SH VERSIONS
-The
-.I acct_v3
-structure is defined since glibc 2.6.
-.SH STANDARDS
-Process accounting originated on BSD.
 Although it is present on most systems, it is not standardized,
 and the details vary somewhat between systems.
+.SH STANDARDS
+None.
+.SH HISTORY
+glibc 2.6.
+.PP
+Process accounting originated on BSD.
 .SH NOTES
 Records in the accounting file are ordered by termination time of
 the process.
index 930c9714b29fc68e46dd6e41ffdc21fc32bfc6d1..26effac12983d0d26debc453bdd5e374e8fdb1ad 100644 (file)
@@ -251,14 +251,10 @@ This information is mainly used for debugging.
 .TP
 .I /sys/power
 [To be documented]
-.SH VERSIONS
-The
-.B sysfs
-filesystem first appeared in Linux 2.6.0.
 .SH STANDARDS
-The
-.B sysfs
-filesystem is Linux-specific.
+Linux.
+.SH HISTORY
+Linux 2.6.0.
 .SH NOTES
 This manual page is incomplete, possibly inaccurate, and is the kind
 of thing that needs to be updated very often.
index d1017f818527116118e65c8b210e2c60f0f1c6b2..eefb8241c3f38e0ca9759d4e49e6f2537183b749 100644 (file)
@@ -217,7 +217,7 @@ removed, record-keeping is turned off.
 .I /var/run/utmp
 .br
 .I /var/log/wtmp
-.SH STANDARDS
+.SH VERSIONS
 POSIX.1 does not specify a
 .I utmp
 structure, but rather one named
@@ -242,7 +242,9 @@ Linux defines the
 structure to be the same as the
 .I utmp
 structure.
-.SS Comparison with historical systems
+.SH STANDARDS
+Linux.
+.SH HISTORY
 Linux utmp entries conform neither to v7/BSD nor to System V; they are a
 mix of the two.
 .PP
index 5a9dc4ff192359adf093a349fafb2a47bcfaac1b..84613b622aaf127f5e12fb6a38d47d7afdaff416 100644 (file)
@@ -139,10 +139,11 @@ field of the
 structure was less than 0,
 or was greater than the limit returned by the call
 .IR sysconf(_SC_AIO_PRIO_DELTA_MAX) .
-.SH VERSIONS
-The POSIX AIO interfaces are provided by glibc since glibc 2.1.
 .SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+glibc 2.1.
 .SH NOTES
 It is a good idea to zero out the control block buffer before use (see
 .BR memset (3)).
index b1b0c41294893389448eac44a58031155404c9d0..cb7778695e6a512c23c01c526794003358827b93 100644 (file)
@@ -161,7 +161,7 @@ sh2# \fBcat /proc/self/mountinfo | grep freezer\fP
 .in
 .\"
 .SH STANDARDS
-Namespaces are a Linux-specific feature.
+Linux.
 .SH NOTES
 Use of cgroup namespaces requires a kernel that is configured with the
 .B CONFIG_CGROUPS
index 02f8f8aa31ebb0780d2068c407e51280530c7293..77cb5e0ef250e80cbcbdfcd0f5af5485124b8bb9 100644 (file)
@@ -302,6 +302,7 @@ Process IDs, parent process IDs, process group IDs, and session IDs
 are specified in POSIX.1.
 The real, effective, and saved set user and groups IDs,
 and the supplementary group IDs, are specified in POSIX.1.
+.PP
 The filesystem user and group IDs are a Linux extension.
 .SH NOTES
 Various fields in the
index ffb409a51e85854bd56ccb0c49873a84e3e736ed..1e86799461214a6ee0fc215594144789ab6e63da 100644 (file)
@@ -574,20 +574,18 @@ event for file descriptor 13 in your batch processing,
 you will discover the file descriptor had been
 previously removed and there will be no confusion.
 .SH VERSIONS
-The
-.B epoll
-API was introduced in Linux kernel 2.5.44.
-.\" Its interface should be finalized in Linux kernel 2.5.66.
-Support was added in glibc 2.3.2.
-.SH STANDARDS
-The
-.B epoll
-API is Linux-specific.
-Some other systems provide similar
-mechanisms, for example, FreeBSD has
+Some other systems provide similar mechanisms;
+for example,
+FreeBSD has
 .IR kqueue ,
 and Solaris has
 .IR /dev/poll .
+.SH STANDARDS
+Linux.
+.SH HISTORY
+Linux 2.5.44.
+.\" Its interface should be finalized in Linux 2.5.66.
+glibc 2.3.2.
 .SH NOTES
 The set of file descriptors that is being monitored via
 an epoll file descriptor can be viewed via the entry for
index 6ebb98adac28516164f3739670ba8fc6b7389e64..3963e7420339010ebc113f7bb1fe955402b19875 100644 (file)
@@ -906,12 +906,12 @@ The file descriptor
 in the response structure is not valid.
 This may occur when a response for the permission event has already been
 written.
-.SH VERSIONS
+.SH STANDARDS
+Linux.
+.SH HISTORY
 The fanotify API was introduced in Linux 2.6.36 and
 enabled in Linux 2.6.37.
-Fdinfo support was added in Linux 3.8.
-.SH STANDARDS
-The fanotify API is Linux-specific.
+fdinfo support was added in Linux 3.8.
 .SH NOTES
 The fanotify API is available only if the kernel was built with the
 .B CONFIG_FANOTIFY
index 4dc9b9594cb1b22d73ec5a32f9c7ab09bba8c8c1..344c7e47a5801b16931626695ab9eba7073db892 100644 (file)
@@ -765,8 +765,6 @@ POSIX.1 specifies
 and
 .BR _XOPEN_SOURCE .
 .PP
-.B _XOPEN_SOURCE_EXTENDED
-was specified by XPG4v2 (aka SUSv1), but is not present in SUSv2 and later.
 .B _FILE_OFFSET_BITS
 is not specified by any standard,
 but is employed on some other implementations.
@@ -781,6 +779,10 @@ but is employed on some other implementations.
 and
 .B _THREAD_SAFE
 are specific to glibc.
+.SH HISTORY
+.PP
+.B _XOPEN_SOURCE_EXTENDED
+was specified by XPG4v2 (aka SUSv1), but is not present in SUSv2 and later.
 .SH NOTES
 .I <features.h>
 is a Linux/glibc-specific header file.
index c97fb6ab308d5ae00a7b2c514ced7ab029b56da5..dc2c38d1df0457d48181b8873a377d6907746a1f 100644 (file)
@@ -426,6 +426,10 @@ in that directory can be renamed or deleted only by the owner
 of the file, by the owner of the directory, and by a privileged
 process.
 .SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.PP
 POSIX.1-1990 did not describe the
 .BR S_IFMT ,
 .BR S_IFSOCK ,
@@ -441,16 +445,13 @@ constants, but instead specified the use of
 the macros
 .BR S_ISDIR ()
 and so on.
-The
-.B S_IF*
-constants are present in POSIX.1-2001 and later.
 .PP
 The
 .BR S_ISLNK ()
 and
 .BR S_ISSOCK ()
 macros were not in
-POSIX.1-1996, but both are present in POSIX.1-2001;
+POSIX.1-1996;
 the former is from SVID 4, the latter from SUSv2.
 .PP
 UNIX\ V7 (and later systems) had
index 4b9fa0200cfb0c7f400662dca95db4a973d1317b..78ec0317f9503aa0eb85e74c5f2bfa996af460e1 100644 (file)
@@ -575,7 +575,9 @@ that can be created per real user ID.
 .I /proc/sys/fs/inotify/max_user_watches
 This specifies an upper limit on the number of watches
 that can be created per real user ID.
-.SH VERSIONS
+.SH STANDARDS
+Linux.
+.SH HISTORY
 Inotify was merged into Linux 2.6.13.
 The required library interfaces were added in glibc 2.4.
 .RB ( IN_DONT_FOLLOW ,
@@ -583,8 +585,6 @@ The required library interfaces were added in glibc 2.4.
 and
 .B IN_ONLYDIR
 were added in glibc 2.5.)
-.SH STANDARDS
-The inotify API is Linux-specific.
 .SH NOTES
 Inotify file descriptors can be monitored using
 .BR select (2),
index 610171e4b81a5e141cc1a1e094bf659075bdffa8..d63f2d8f2b806649a860acc6757acb342cf7f502 100644 (file)
@@ -151,6 +151,7 @@ FILES
 ATTRIBUTES     [Normally only in Sections 2, 3]
 VERSIONS       [Normally only in Sections 2, 3]
 STANDARDS
+HISTORY
 NOTES
 CAVEATS
 BUGS
@@ -341,12 +342,35 @@ See
 for further details.
 .TP
 .B VERSIONS
+A summary of systems where the API performs differently,
+or where there's a similar API.
+.TP
+.B STANDARDS
+A description of any standards or conventions that relate to the function
+or command described by the manual page.
+.IP
+The preferred terms to use for the various standards are listed as
+headings in
+.BR standards (7).
+.IP
+This section should note the current standards to which the API conforms to.
+.IP
+If the API is not governed by any standards but commonly
+exists on other systems, note them.
+If the call is Linux-specific or GNU-specific, note this.
+If it's available in the BSDs, note that.
+.IP
+If this section consists of just a list of standards
+(which it commonly does),
+terminate the list with a period (\[aq].\[aq]).
+.TP
+.B HISTORY
 A brief summary of the Linux kernel or glibc versions where a
 system call or library function appeared,
 or changed significantly in its operation.
 .IP
 As a general rule, every new interface should
-include a VERSIONS section in its manual page.
+include a HISTORY section in its manual page.
 Unfortunately,
 many existing manual pages don't include this information
 (since there was no policy to do so when they were written).
@@ -362,31 +386,11 @@ The
 .BR syscalls (2)
 manual page also provides information about kernel versions
 in which various system calls first appeared.
-.TP
-.B STANDARDS
-A description of any standards or conventions that relate to the function
-or command described by the manual page.
-.IP
-The preferred terms to use for the various standards are listed as
-headings in
-.BR standards (7).
-.IP
-For a page in Section 2 or 3,
-this section should note the POSIX.1
-version(s) that the call conforms to,
-and also whether the call is specified in C99.
-(Don't worry too much about other standards like SUS, SUSv2, and XPG,
-or the SVr4 and 4.xBSD implementation standards,
-unless the call was specified in those standards,
-but isn't in the current version of POSIX.1.)
-.IP
-If the call is not governed by any standards but commonly
-exists on other systems, note them.
-If the call is Linux-specific, note this.
-.IP
-If this section consists of just a list of standards
-(which it commonly does),
-terminate the list with a period (\[aq].\[aq]).
+.PP
+Old versions of standards should be mentioned here,
+rather than in STANDARDS,
+for example,
+SUS, SUSv2, and XPG, or the SVr4 and 4.xBSD implementation standards.
 .TP
 .B NOTES
 Miscellaneous notes.
index c40aae96b19590b248ffabfa485c3ade32e8a529..b17f86a4cacd9e2adf8e5ef0d1739715ce444bca 100644 (file)
@@ -977,10 +977,10 @@ mount point before the
 .BR chroot (1)
 was performed).
 .\"
-.SH VERSIONS
-Mount namespaces first appeared in Linux 2.4.19.
 .SH STANDARDS
-Namespaces are a Linux-specific feature.
+Linux.
+.SH HISTORY
+Linux 2.4.19.
 .\"
 .SH NOTES
 The propagation type assigned to a new mount depends
index f5a314b565ecea06f22db3d91f31c5d0f781eb1c..c6ea675142f3c47430729c0d4926dbffa4e5bb9a 100644 (file)
@@ -126,7 +126,7 @@ removed from memory by the swapper soon.
 .I writeback=<pages>
 Number of pages that are currently being written out to disk.
 .SH STANDARDS
-No standards govern NUMA interfaces.
+None.
 .SH NOTES
 The Linux NUMA system calls and
 .I /proc
index d329854854add9986e04057dc0c15c0be292fc98..78d0e0986af611c3fd93b2e8f12585f530be06b2 100644 (file)
@@ -370,7 +370,7 @@ in
 it is translated into the corresponding PID value in
 the receiving process's PID namespace.
 .SH STANDARDS
-Namespaces are a Linux-specific feature.
+Linux.
 .SH EXAMPLES
 See
 .BR user_namespaces (7).
index 83851c7a143b7982236a8f1eda939fd930100fbb..128fa8a5af93a581179e9c87da3a2490cf1696e2 100644 (file)
@@ -115,8 +115,8 @@ However:
 .IP \[bu] 3
 The termination condition for traversal is more complex.
 .SH STANDARDS
-Not in POSIX.1, POSIX.1-2001, or POSIX.1-2008.
-Present on the BSDs.
+BSD.
+.SH HISTORY
 .I <sys/queue.h>
 macros first appeared in 4.4BSD.
 .SH NOTES
index ca47427c3d5bae2e919c6f1db673a64e50d6eb66..c5d4fdddcb33057c7df45c2738ea375e6fe9ba6f 100644 (file)
@@ -455,12 +455,14 @@ is ignored.
 .\" symbol binding should return the value of the 'retval' argument
 .\" (not provided by GNU, but equivalent to returning outregs->lrv_eax
 .\" on (say) x86-32).
-.SH STANDARDS
-This API is nonstandard, but very similar to the Solaris API,
+.SH VERSIONS
+This API is very similar to the Solaris API
 described in the Solaris
 .IR "Linker and Libraries Guide" ,
 in the chapter
 .IR "Runtime Linker Auditing Interface" .
+.SH STANDARDS
+None.
 .SH NOTES
 Note the following differences from the Solaris dynamic linker
 auditing API:
index e75dc4d1a01b4220748fd0d110cf38081dd6d8d1..6dfed2c352553379978b71cd39aab7f64f3af67c 100644 (file)
@@ -617,7 +617,7 @@ and
 .B INET_DIAG_SKMEMINFO
 were introduced in Linux 3.6.
 .SH STANDARDS
-The NETLINK_SOCK_DIAG API is Linux-specific.
+Linux.
 .SH EXAMPLES
 The following example program prints inode number, peer's inode number,
 and name of all UNIX domain sockets in the current namespace.
index 737dd54ad90631b7986a492504631a935ee72d8b..3c376a9f01fae63e10273eca38dda24adbfcb318 100644 (file)
@@ -1013,7 +1013,7 @@ they are translated into the corresponding values as per the
 receiving process's user and group ID mappings.
 .\"
 .SH STANDARDS
-Namespaces are a Linux-specific feature.
+Linux.
 .\"
 .SH NOTES
 Over the years, there have been a lot of features that have been added