Blame manual/macros.texi

Packit 6c4009
@c Define common macros used to keep phrasing consistent in the manual.
Packit 6c4009
Packit 6c4009
@ifclear MACROS
Packit 6c4009
@set MACROS
Packit 6c4009
Packit 6c4009
@c Names used to refer to the library, as noun phrases at the start or
Packit 6c4009
@c not at the start of a sentence.
Packit 6c4009
@macro Theglibc
Packit 6c4009
The GNU C Library
Packit 6c4009
@end macro
Packit 6c4009
@macro theglibc
Packit 6c4009
the GNU C Library
Packit 6c4009
@end macro
Packit 6c4009
Packit 6c4009
@c Name used to refer to the library as an adjective.
Packit 6c4009
@macro glibcadj
Packit 6c4009
GNU C Library
Packit 6c4009
@end macro
Packit 6c4009
Packit 6c4009
@c Description applying to all GNU systems; that is, used in
Packit 6c4009
@c describing a property of a system such that no system without that
Packit 6c4009
@c property would be considered a variant of the GNU system.
Packit 6c4009
@macro gnusystems
Packit 6c4009
GNU systems
Packit 6c4009
@end macro
Packit 6c4009
Packit 6c4009
@c Systems that are not GNU systems.
Packit 6c4009
@macro nongnusystems
Packit 6c4009
non-GNU systems
Packit 6c4009
@end macro
Packit 6c4009
Packit 6c4009
@c Description applying to GNU/Linux and GNU/Hurd systems, but not
Packit 6c4009
@c necessarily to other variants of the GNU system.
Packit 6c4009
@macro gnulinuxhurdsystems
Packit 6c4009
GNU/Linux and GNU/Hurd systems
Packit 6c4009
@end macro
Packit 6c4009
Packit 6c4009
@c Description applying to GNU/Hurd systems; that is, systems using the
Packit 6c4009
@c GNU Hurd with the GNU C Library.
Packit 6c4009
@macro gnuhurdsystems
Packit 6c4009
GNU/Hurd systems
Packit 6c4009
@end macro
Packit 6c4009
Packit 6c4009
@c Description applying to GNU/Linux systems; that is, systems using
Packit 6c4009
@c the Linux kernel with the GNU C Library.
Packit 6c4009
@macro gnulinuxsystems
Packit 6c4009
GNU/Linux systems
Packit 6c4009
@end macro
Packit 6c4009
Packit 6c4009
@c Document the safety functions as preliminary.  It does NOT expand its
Packit 6c4009
@c comments.
Packit 6c4009
@macro prelim {comments}
Packit 6c4009
Preliminary:
Packit 6c4009
Packit 6c4009
@end macro
Packit 6c4009
@c Document a function as thread safe.
Packit 6c4009
@macro mtsafe {comments}
Packit 6c4009
| MT-Safe \comments\
Packit 6c4009
Packit 6c4009
@end macro
Packit 6c4009
@c Document a function as thread unsafe.
Packit 6c4009
@macro mtunsafe {comments}
Packit 6c4009
| MT-Unsafe \comments\
Packit 6c4009
Packit 6c4009
@end macro
Packit 6c4009
@c Document a function as safe for use in asynchronous signal handlers.
Packit 6c4009
@macro assafe {comments}
Packit 6c4009
| AS-Safe \comments\
Packit 6c4009
Packit 6c4009
@end macro
Packit 6c4009
@c Document a function as unsafe for use in asynchronous signal
Packit 6c4009
@c handlers.  This distinguishes unmarked functions, for which this
Packit 6c4009
@c property has not been assessed, from those that have been analyzed.
Packit 6c4009
@macro asunsafe {comments}
Packit 6c4009
| AS-Unsafe \comments\
Packit 6c4009
Packit 6c4009
@end macro
Packit 6c4009
@c Document a function as safe for use when asynchronous cancellation is
Packit 6c4009
@c enabled.
Packit 6c4009
@macro acsafe {comments}
Packit 6c4009
| AC-Safe \comments\
Packit 6c4009
Packit 6c4009
@end macro
Packit 6c4009
@c Document a function as unsafe for use when asynchronous cancellation
Packit 6c4009
@c is enabled.  This distinguishes unmarked functions, for which this
Packit 6c4009
@c property has not been assessed, from those that have been analyzed.
Packit 6c4009
@macro acunsafe {comments}
Packit 6c4009
| AC-Unsafe \comments\
Packit 6c4009
Packit 6c4009
@end macro
Packit 6c4009
@c Format safety properties without referencing the section of the
Packit 6c4009
@c definitions.  To be used in the definitions of the properties
Packit 6c4009
@c themselves.
Packit 6c4009
@macro sampsafety {notes}
Packit 6c4009
@noindent
Packit 6c4009
\notes\|
Packit 6c4009
Packit 6c4009
Packit 6c4009
@end macro
Packit 6c4009
@c Format the safety properties of a function.
Packit 6c4009
@macro safety {notes}
Packit 6c4009
\notes\| @xref{POSIX Safety Concepts}.
Packit 6c4009
Packit 6c4009
Packit 6c4009
@end macro
Packit 6c4009
@c Function is MT- and AS-Unsafe due to an internal race.
Packit 6c4009
@macro mtasurace {comments}
Packit 6c4009
race\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AS-Unsafe due to an internal race.
Packit 6c4009
@macro asurace {comments}
Packit 6c4009
race\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is MT-Safe, but with potential race on user-supplied object
Packit 6c4009
@c of opaque type.
Packit 6c4009
@macro mtsrace {comments}
Packit 6c4009
race\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is MT- and AS-Unsafe for modifying an object that is decreed
Packit 6c4009
@c MT-constant due to MT-Unsafe accesses elsewhere.
Packit 6c4009
@macro mtasuconst {comments}
Packit 6c4009
const\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function accesses the assumed-constant locale object.
Packit 6c4009
@macro mtslocale {comments}
Packit 6c4009
locale\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function accesses the assumed-constant environment.
Packit 6c4009
@macro mtsenv {comments}
Packit 6c4009
env\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function accesses the assumed-constant hostid.
Packit 6c4009
@macro mtshostid {comments}
Packit 6c4009
hostid\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function accesses the assumed-constant _sigintr variable.
Packit 6c4009
@macro mtssigintr {comments}
Packit 6c4009
sigintr\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function performs MT-Unsafe initialization at the first call.
Packit 6c4009
@macro mtuinit {comments}
Packit 6c4009
init\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function performs libc_once AS-Unsafe initialization.
Packit 6c4009
@macro asuinit {comments}
Packit 6c4009
init\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function performs libc_once AC-Unsafe initialization.
Packit 6c4009
@macro acuinit {comments}
Packit 6c4009
init\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AS-Unsafe because it takes a non-recursive mutex that may
Packit 6c4009
@c already be held by the function interrupted by the signal.
Packit 6c4009
@macro asulock {comments}
Packit 6c4009
lock\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AC-Unsafe because it may fail to release a mutex.
Packit 6c4009
@macro aculock {comments}
Packit 6c4009
lock\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AS-Unsafe because some data structure may be inconsistent
Packit 6c4009
@c due to an ongoing updated interrupted by a signal.
Packit 6c4009
@macro asucorrupt {comments}
Packit 6c4009
corrupt\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AC-Unsafe because some data structure may be left
Packit 6c4009
@c inconsistent when cancelled.
Packit 6c4009
@macro acucorrupt {comments}
Packit 6c4009
corrupt\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AS- and AC-Unsafe because of malloc/free.
Packit 6c4009
@macro ascuheap {comments}
Packit 6c4009
heap\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AS-Unsafe because of malloc/free.
Packit 6c4009
@macro asuheap {comments}
Packit 6c4009
heap\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AS- and AC-Unsafe because of dlopen/dlclose.
Packit 6c4009
@macro ascudlopen {comments}
Packit 6c4009
dlopen\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AS- and AC-Unsafe because of unknown plugins.
Packit 6c4009
@macro ascuplugin {comments}
Packit 6c4009
plugin\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AS- and AC-Unsafe because of i18n.
Packit 6c4009
@macro ascuintl {comments}
Packit 6c4009
i18n\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AS--Unsafe because of i18n.
Packit 6c4009
@macro asuintl {comments}
Packit 6c4009
i18n\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function may leak file descriptors if async-cancelled.
Packit 6c4009
@macro acsfd {comments}
Packit 6c4009
fd\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function may leak memory if async-cancelled.
Packit 6c4009
@macro acsmem {comments}
Packit 6c4009
mem\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is unsafe due to temporary overriding a signal handler.
Packit 6c4009
@macro mtascusig {comments}
Packit 6c4009
sig\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is MT- and AS-Unsafe due to temporarily changing attributes
Packit 6c4009
@c of the controlling terminal.
Packit 6c4009
@macro mtasuterm {comments}
Packit 6c4009
term\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AC-Unsafe for failing to restore attributes of the
Packit 6c4009
@c controlling terminal.
Packit 6c4009
@macro acuterm {comments}
Packit 6c4009
term\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function sets timers atomically.
Packit 6c4009
@macro mtstimer {comments}
Packit 6c4009
timer\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function sets and restores timers.
Packit 6c4009
@macro mtascutimer {comments}
Packit 6c4009
timer\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function temporarily changes the current working directory.
Packit 6c4009
@macro mtasscwd {comments}
Packit 6c4009
cwd\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function may fail to restore to the original current working
Packit 6c4009
@c directory after temporarily changing it.
Packit 6c4009
@macro acscwd {comments}
Packit 6c4009
cwd\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is MT-Safe while POSIX says it needn't be MT-Safe.
Packit 6c4009
@macro mtsposix {comments}
Packit 6c4009
!posix\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is MT-Unsafe while POSIX says it should be MT-Safe.
Packit 6c4009
@macro mtuposix {comments}
Packit 6c4009
!posix\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AS-Safe while POSIX says it needn't be AS-Safe.
Packit 6c4009
@macro assposix {comments}
Packit 6c4009
!posix\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AS-Unsafe while POSIX says it should be AS-Safe.
Packit 6c4009
@macro asuposix {comments}
Packit 6c4009
!posix\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AC-Safe while POSIX says it needn't be AC-Safe.
Packit 6c4009
@macro acsposix {comments}
Packit 6c4009
!posix\comments\
Packit 6c4009
@end macro
Packit 6c4009
@c Function is AC-Unsafe while POSIX says it should be AC-Safe.
Packit 6c4009
@macro acuposix {comments}
Packit 6c4009
!posix\comments\
Packit 6c4009
@end macro
Packit 6c4009
Packit 6c4009
@iftex
Packit 6c4009
@macro twoexp{exp}
Packit 6c4009
@math{2^{{\exp\}}}
Packit 6c4009
@end macro
Packit 6c4009
@end iftex
Packit 6c4009
@ifnottex
Packit 6c4009
@macro twoexp{exp}
Packit 6c4009
2^\exp\
Packit 6c4009
@end macro
Packit 6c4009
@end ifnottex
Packit 6c4009
Packit 6c4009
@c Used by errlist.awk and errnos.awk to generate other files.
Packit 6c4009
@c Note that error values have ABI implications for the Hurd.
Packit 6c4009
@macro errno {err, val, str}
Packit 6c4009
@cindex \str\
Packit 6c4009
``\str\.''
Packit 6c4009
@end macro
Packit 6c4009
Packit 6c4009
@c Dummy placeholder while converting annotations.
Packit 6c4009
@c For details on expected use, see `summary.pl --help'.
Packit 6c4009
@macro standards {standard, header}
Packit 6c4009
@end macro
Packit 6c4009
@c To be used for @*x lists of elements.
Packit 6c4009
@macro standardsx {element, standard, header}
Packit 6c4009
@end macro
Packit 6c4009
Packit 6c4009
@end ifclear