]> git.ipfire.org Git - thirdparty/glibc.git/blame - support/README
Add xchdir to libsupport.
[thirdparty/glibc.git] / support / README
CommitLineData
c23de0aa
FW
1This subdirectory contains infrastructure which is not put into
2installed libraries, but may be linked into programs (installed or
3not) and tests.
4
5# Error-checking wrappers
6
7These wrappers test for error return codes an terminate the process on
8error. They are declared in these header files:
9
10* support.h
11* xsignal.h
12* xthread.h
33647a72 13* xtime.h
c23de0aa
FW
14
15In general, new wrappers should be added to support.h if possible.
16However, support.h must remain fully compatible with C90 and therefore
17cannot include headers which use identifers not reserved in C90. If
18the wrappers need additional types, additional headers such as
19signal.h need to be introduced.
20
21# Test framework
22
23The test framework provides a main program for tests, including a
24timeout for hanging tests. See README-testing.c for a minimal
25example, and test-driver.c for details how to use it. The following
26header files provide related declarations:
27
28* check.h
29* temp_file.h
30* test-driver.h
51983996
MC
31
32For tests that make use of struct timespec, the following header files
33contain additional macros and helper functions:
34
35* timespec.h