glibc/support
Florian Weimer c247c53665 Synchronize support/ infrastructure with master
This commit updates the support/ subdirectory to
commit 1a51e46e4a
on the master branch.
2018-01-15 15:23:35 +01:00
..
capture_subprocess.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
check_addrinfo.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
check_dns_packet.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
check_hostent.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
check_netent.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
check_nss.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
check.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
check.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
delayed_exit.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
format_nss.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
ignore_stderr.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
Makefile Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
namespace.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
next_to_fault.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
next_to_fault.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
oom_error.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
README
README-testing.c
resolv_test.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
resolv_test.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
run_diff.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
set_fortify_handler.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_become_root.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_can_chroot.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_capture_subprocess_check.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_capture_subprocess.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_chroot.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_enter_mount_namespace.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_enter_network_namespace.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_format_address_family.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_format_addrinfo.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_format_dns_packet.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_format_herrno.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_format_hostent.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_format_netent.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_isolate_in_subprocess.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_record_failure.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_run_diff.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_shared_allocate.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_test_compare_failure.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_test_main.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_test_verify_impl.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support_write_file_string.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support-xfstat.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support-xstat.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
support.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
temp_file-internal.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
temp_file.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
temp_file.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
test-driver.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
test-driver.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
tst-support_capture_subprocess.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
tst-support_format_dns_packet.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
tst-support_record_failure-2.sh Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
tst-support_record_failure.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
tst-support-namespace.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
tst-test_compare.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
tst-xreadlink.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
write_message.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xaccept4.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xaccept.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xasprintf.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xbind.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xcalloc.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xchroot.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xclose.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xconnect.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xdlfcn.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xdlfcn.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xdup2.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xfclose.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xfopen.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xfork.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xftruncate.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xgetsockname.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xlisten.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xlseek.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xmalloc.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xmemstream.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xmemstream.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xmkdir.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xmmap.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xmprotect.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xmunmap.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xopen.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpipe.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpoll.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_attr_destroy.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_attr_init.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_attr_setdetachstate.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_attr_setguardsize.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_attr_setstacksize.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_barrier_destroy.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_barrier_init.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_barrier_wait.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_cancel.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_check_return.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_cond_wait.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_create.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_detach.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_join.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_mutex_consistent.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_mutex_destroy.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_mutex_init.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_mutex_lock.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_mutex_unlock.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_mutexattr_destroy.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_mutexattr_init.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_mutexattr_setprotocol.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_mutexattr_setpshared.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_mutexattr_setrobust.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_mutexattr_settype.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_once.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_rwlock_init.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_rwlock_rdlock.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_rwlock_unlock.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_rwlock_wrlock.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_rwlockattr_init.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_rwlockattr_setkind_np.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_sigmask.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_spin_lock.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xpthread_spin_unlock.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xraise.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xreadlink.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xrealloc.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xrecvfrom.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xsendto.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xsetsockopt.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xsigaction.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xsignal.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xsignal.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xsocket.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xsocket.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xstdio.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xstrdup.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xstrndup.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xsysconf.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xthread.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xunistd.h Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xunlink.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xwaitpid.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00
xwrite.c Synchronize support/ infrastructure with master 2018-01-15 15:23:35 +01:00

This subdirectory contains infrastructure which is not put into
installed libraries, but may be linked into programs (installed or
not) and tests.

# Error-checking wrappers

These wrappers test for error return codes an terminate the process on
error.  They are declared in these header files:

* support.h
* xsignal.h
* xthread.h

In general, new wrappers should be added to support.h if possible.
However, support.h must remain fully compatible with C90 and therefore
cannot include headers which use identifers not reserved in C90.  If
the wrappers need additional types, additional headers such as
signal.h need to be introduced.

# Test framework

The test framework provides a main program for tests, including a
timeout for hanging tests.  See README-testing.c for a minimal
example, and test-driver.c for details how to use it.  The following
header files provide related declarations:

* check.h
* temp_file.h
* test-driver.h