ubuntu-buildroot/output/build/glibc-2.36-81-g4f4d7a13edfd.../support
chenyf 8b0660016e 1 2024-04-01 23:19:46 +08:00
..
Depend 1 2024-04-01 23:19:46 +08:00
Makefile 1 2024-04-01 23:19:46 +08:00
README 1 2024-04-01 23:19:46 +08:00
README-testing.c 1 2024-04-01 23:19:46 +08:00
blob_repeat.c 1 2024-04-01 23:19:46 +08:00
blob_repeat.h 1 2024-04-01 23:19:46 +08:00
capture_subprocess.h 1 2024-04-01 23:19:46 +08:00
check.c 1 2024-04-01 23:19:46 +08:00
check.h 1 2024-04-01 23:19:46 +08:00
check_addrinfo.c 1 2024-04-01 23:19:46 +08:00
check_dns_packet.c 1 2024-04-01 23:19:46 +08:00
check_hostent.c 1 2024-04-01 23:19:46 +08:00
check_netent.c 1 2024-04-01 23:19:46 +08:00
check_nss.h 1 2024-04-01 23:19:46 +08:00
delayed_exit.c 1 2024-04-01 23:19:46 +08:00
descriptors.h 1 2024-04-01 23:19:46 +08:00
echo-container.c 1 2024-04-01 23:19:46 +08:00
format_nss.h 1 2024-04-01 23:19:46 +08:00
ignore_stderr.c 1 2024-04-01 23:19:46 +08:00
links-dso-program-c.c 1 2024-04-01 23:19:46 +08:00
links-dso-program.cc 1 2024-04-01 23:19:46 +08:00
namespace.h 1 2024-04-01 23:19:46 +08:00
next_to_fault.c 1 2024-04-01 23:19:46 +08:00
next_to_fault.h 1 2024-04-01 23:19:46 +08:00
oom_error.c 1 2024-04-01 23:19:46 +08:00
process_state.h 1 2024-04-01 23:19:46 +08:00
resolv_response_context_duplicate.c 1 2024-04-01 23:19:46 +08:00
resolv_response_context_free.c 1 2024-04-01 23:19:46 +08:00
resolv_test.c 1 2024-04-01 23:19:46 +08:00
resolv_test.h 1 2024-04-01 23:19:46 +08:00
run_diff.h 1 2024-04-01 23:19:46 +08:00
set_fortify_handler.c 1 2024-04-01 23:19:46 +08:00
shell-container.c 1 2024-04-01 23:19:46 +08:00
subprocess.h 1 2024-04-01 23:19:46 +08:00
support-open-dev-null-range.c 1 2024-04-01 23:19:46 +08:00
support-xfstat-time64.c 1 2024-04-01 23:19:46 +08:00
support-xfstat.c 1 2024-04-01 23:19:46 +08:00
support-xstat-time64.c 1 2024-04-01 23:19:46 +08:00
support-xstat.c 1 2024-04-01 23:19:46 +08:00
support.h 1 2024-04-01 23:19:46 +08:00
support_become_root.c 1 2024-04-01 23:19:46 +08:00
support_can_chroot.c 1 2024-04-01 23:19:46 +08:00
support_capture_subprocess.c 1 2024-04-01 23:19:46 +08:00
support_capture_subprocess_check.c 1 2024-04-01 23:19:46 +08:00
support_chroot.c 1 2024-04-01 23:19:46 +08:00
support_copy_file.c 1 2024-04-01 23:19:46 +08:00
support_copy_file_range.c 1 2024-04-01 23:19:46 +08:00
support_create_timer.c 1 2024-04-01 23:19:46 +08:00
support_descriptor_supports_holes.c 1 2024-04-01 23:19:46 +08:00
support_descriptors.c 1 2024-04-01 23:19:46 +08:00
support_enter_mount_namespace.c 1 2024-04-01 23:19:46 +08:00
support_enter_network_namespace.c 1 2024-04-01 23:19:46 +08:00
support_format_address_family.c 1 2024-04-01 23:19:46 +08:00
support_format_addrinfo.c 1 2024-04-01 23:19:46 +08:00
support_format_dns_packet.c 1 2024-04-01 23:19:46 +08:00
support_format_herrno.c 1 2024-04-01 23:19:46 +08:00
support_format_hostent.c 1 2024-04-01 23:19:46 +08:00
support_format_netent.c 1 2024-04-01 23:19:46 +08:00
support_isolate_in_subprocess.c 1 2024-04-01 23:19:46 +08:00
support_mutex_pi_monotonic.c 1 2024-04-01 23:19:46 +08:00
support_need_proc.c 1 2024-04-01 23:19:46 +08:00
support_openpty.c 1 2024-04-01 23:19:46 +08:00
support_path_support_time64.c 1 2024-04-01 23:19:46 +08:00
support_paths.c 1 2024-04-01 23:19:46 +08:00
support_process_state.c 1 2024-04-01 23:19:46 +08:00
support_ptrace.c 1 2024-04-01 23:19:46 +08:00
support_quote_blob.c 1 2024-04-01 23:19:46 +08:00
support_quote_blob_main.c 1 2024-04-01 23:19:46 +08:00
support_quote_blob_wide.c 1 2024-04-01 23:19:46 +08:00
support_quote_string.c 1 2024-04-01 23:19:46 +08:00
support_record_failure.c 1 2024-04-01 23:19:46 +08:00
support_run_diff.c 1 2024-04-01 23:19:46 +08:00
support_select_modifies_timeout.c 1 2024-04-01 23:19:46 +08:00
support_select_normalizes_timeout.c 1 2024-04-01 23:19:46 +08:00
support_set_small_thread_stack_size.c 1 2024-04-01 23:19:46 +08:00
support_shared_allocate.c 1 2024-04-01 23:19:46 +08:00
support_small_stack_thread_attribute.c 1 2024-04-01 23:19:46 +08:00
support_socket_so_timestamp_time64.c 1 2024-04-01 23:19:46 +08:00
support_stack_alloc.c 1 2024-04-01 23:19:46 +08:00
support_stat_nanoseconds.c 1 2024-04-01 23:19:46 +08:00
support_subprocess.c 1 2024-04-01 23:19:46 +08:00
support_test_compare_blob.c 1 2024-04-01 23:19:46 +08:00
support_test_compare_failure.c 1 2024-04-01 23:19:46 +08:00
support_test_compare_string.c 1 2024-04-01 23:19:46 +08:00
support_test_compare_string_main.c 1 2024-04-01 23:19:46 +08:00
support_test_compare_string_wide.c 1 2024-04-01 23:19:46 +08:00
support_test_main.c 1 2024-04-01 23:19:46 +08:00
support_test_verify_impl.c 1 2024-04-01 23:19:46 +08:00
support_wait_for_thread_exit.c 1 2024-04-01 23:19:46 +08:00
support_write_file_string.c 1 2024-04-01 23:19:46 +08:00
temp_file-internal.h 1 2024-04-01 23:19:46 +08:00
temp_file.c 1 2024-04-01 23:19:46 +08:00
temp_file.h 1 2024-04-01 23:19:46 +08:00
test-container.c 1 2024-04-01 23:19:46 +08:00
test-driver.c 1 2024-04-01 23:19:46 +08:00
test-driver.h 1 2024-04-01 23:19:46 +08:00
test-run-command.c 1 2024-04-01 23:19:46 +08:00
timespec-add-time64.c 1 2024-04-01 23:19:46 +08:00
timespec-add.c 1 2024-04-01 23:19:46 +08:00
timespec-sub-time64.c 1 2024-04-01 23:19:46 +08:00
timespec-sub.c 1 2024-04-01 23:19:46 +08:00
timespec-time64.c 1 2024-04-01 23:19:46 +08:00
timespec.c 1 2024-04-01 23:19:46 +08:00
timespec.h 1 2024-04-01 23:19:46 +08:00
true-container.c 1 2024-04-01 23:19:46 +08:00
tst-support-namespace.c 1 2024-04-01 23:19:46 +08:00
tst-support-open-dev-null-range.c 1 2024-04-01 23:19:46 +08:00
tst-support-process_state.c 1 2024-04-01 23:19:46 +08:00
tst-support_blob_repeat.c 1 2024-04-01 23:19:46 +08:00
tst-support_capture_subprocess.c 1 2024-04-01 23:19:46 +08:00
tst-support_descriptors.c 1 2024-04-01 23:19:46 +08:00
tst-support_format_dns_packet.c 1 2024-04-01 23:19:46 +08:00
tst-support_quote_blob.c 1 2024-04-01 23:19:46 +08:00
tst-support_quote_blob_wide.c 1 2024-04-01 23:19:46 +08:00
tst-support_quote_string.c 1 2024-04-01 23:19:46 +08:00
tst-support_record_failure-2.sh 1 2024-04-01 23:19:46 +08:00
tst-support_record_failure.c 1 2024-04-01 23:19:46 +08:00
tst-test_compare.c 1 2024-04-01 23:19:46 +08:00
tst-test_compare_blob.c 1 2024-04-01 23:19:46 +08:00
tst-test_compare_string.c 1 2024-04-01 23:19:46 +08:00
tst-test_compare_string_wide.c 1 2024-04-01 23:19:46 +08:00
tst-timespec.c 1 2024-04-01 23:19:46 +08:00
tst-xreadlink.c 1 2024-04-01 23:19:46 +08:00
tst-xsigstack.c 1 2024-04-01 23:19:46 +08:00
tty.h 1 2024-04-01 23:19:46 +08:00
write_message.c 1 2024-04-01 23:19:46 +08:00
xaccept.c 1 2024-04-01 23:19:46 +08:00
xaccept4.c 1 2024-04-01 23:19:46 +08:00
xasprintf.c 1 2024-04-01 23:19:46 +08:00
xbind.c 1 2024-04-01 23:19:46 +08:00
xcalloc.c 1 2024-04-01 23:19:46 +08:00
xchdir.c 1 2024-04-01 23:19:46 +08:00
xchmod.c 1 2024-04-01 23:19:46 +08:00
xchroot.c 1 2024-04-01 23:19:46 +08:00
xclock_gettime.c 1 2024-04-01 23:19:46 +08:00
xclock_gettime_time64.c 1 2024-04-01 23:19:46 +08:00
xclock_settime.c 1 2024-04-01 23:19:46 +08:00
xclock_settime_time64.c 1 2024-04-01 23:19:46 +08:00
xclone.c 1 2024-04-01 23:19:46 +08:00
xclose.c 1 2024-04-01 23:19:46 +08:00
xconnect.c 1 2024-04-01 23:19:46 +08:00
xcopy_file_range.c 1 2024-04-01 23:19:46 +08:00
xdlfcn.c 1 2024-04-01 23:19:46 +08:00
xdlfcn.h 1 2024-04-01 23:19:46 +08:00
xdlmopen.c 1 2024-04-01 23:19:46 +08:00
xdup2.c 1 2024-04-01 23:19:46 +08:00
xfchmod.c 1 2024-04-01 23:19:46 +08:00
xfclose.c 1 2024-04-01 23:19:46 +08:00
xfopen.c 1 2024-04-01 23:19:46 +08:00
xfork.c 1 2024-04-01 23:19:46 +08:00
xftruncate.c 1 2024-04-01 23:19:46 +08:00
xgetline.c 1 2024-04-01 23:19:46 +08:00
xgetsockname.c 1 2024-04-01 23:19:46 +08:00
xlisten.c 1 2024-04-01 23:19:46 +08:00
xlseek.c 1 2024-04-01 23:19:46 +08:00
xlstat-time64.c 1 2024-04-01 23:19:46 +08:00
xlstat.c 1 2024-04-01 23:19:46 +08:00
xmalloc.c 1 2024-04-01 23:19:46 +08:00
xmemstream.c 1 2024-04-01 23:19:46 +08:00
xmemstream.h 1 2024-04-01 23:19:46 +08:00
xmkdir.c 1 2024-04-01 23:19:46 +08:00
xmkdirp.c 1 2024-04-01 23:19:46 +08:00
xmkfifo.c 1 2024-04-01 23:19:46 +08:00
xmmap.c 1 2024-04-01 23:19:46 +08:00
xmprotect.c 1 2024-04-01 23:19:46 +08:00
xmunmap.c 1 2024-04-01 23:19:46 +08:00
xnewlocale.c 1 2024-04-01 23:19:46 +08:00
xopen.c 1 2024-04-01 23:19:46 +08:00
xpipe.c 1 2024-04-01 23:19:46 +08:00
xpoll.c 1 2024-04-01 23:19:46 +08:00
xposix_memalign.c 1 2024-04-01 23:19:46 +08:00
xposix_spawn.c 1 2024-04-01 23:19:46 +08:00
xposix_spawn_file_actions_addclose.c 1 2024-04-01 23:19:46 +08:00
xposix_spawn_file_actions_adddup2.c 1 2024-04-01 23:19:46 +08:00
xpthread_attr_destroy.c 1 2024-04-01 23:19:46 +08:00
xpthread_attr_init.c 1 2024-04-01 23:19:46 +08:00
xpthread_attr_setaffinity_np.c 1 2024-04-01 23:19:46 +08:00
xpthread_attr_setdetachstate.c 1 2024-04-01 23:19:46 +08:00
xpthread_attr_setguardsize.c 1 2024-04-01 23:19:46 +08:00
xpthread_attr_setstack.c 1 2024-04-01 23:19:46 +08:00
xpthread_attr_setstacksize.c 1 2024-04-01 23:19:46 +08:00
xpthread_barrier_destroy.c 1 2024-04-01 23:19:46 +08:00
xpthread_barrier_init.c 1 2024-04-01 23:19:46 +08:00
xpthread_barrier_wait.c 1 2024-04-01 23:19:46 +08:00
xpthread_barrierattr_destroy.c 1 2024-04-01 23:19:46 +08:00
xpthread_barrierattr_init.c 1 2024-04-01 23:19:46 +08:00
xpthread_barrierattr_setpshared.c 1 2024-04-01 23:19:46 +08:00
xpthread_cancel.c 1 2024-04-01 23:19:46 +08:00
xpthread_check_return.c 1 2024-04-01 23:19:46 +08:00
xpthread_cond_wait.c 1 2024-04-01 23:19:46 +08:00
xpthread_create.c 1 2024-04-01 23:19:46 +08:00
xpthread_detach.c 1 2024-04-01 23:19:46 +08:00
xpthread_join.c 1 2024-04-01 23:19:46 +08:00
xpthread_key_create.c 1 2024-04-01 23:19:46 +08:00
xpthread_key_delete.c 1 2024-04-01 23:19:46 +08:00
xpthread_kill.c 1 2024-04-01 23:19:46 +08:00
xpthread_mutex_consistent.c 1 2024-04-01 23:19:46 +08:00
xpthread_mutex_destroy.c 1 2024-04-01 23:19:46 +08:00
xpthread_mutex_init.c 1 2024-04-01 23:19:46 +08:00
xpthread_mutex_lock.c 1 2024-04-01 23:19:46 +08:00
xpthread_mutex_unlock.c 1 2024-04-01 23:19:46 +08:00
xpthread_mutexattr_destroy.c 1 2024-04-01 23:19:46 +08:00
xpthread_mutexattr_init.c 1 2024-04-01 23:19:46 +08:00
xpthread_mutexattr_setprotocol.c 1 2024-04-01 23:19:46 +08:00
xpthread_mutexattr_setpshared.c 1 2024-04-01 23:19:46 +08:00
xpthread_mutexattr_setrobust.c 1 2024-04-01 23:19:46 +08:00
xpthread_mutexattr_settype.c 1 2024-04-01 23:19:46 +08:00
xpthread_once.c 1 2024-04-01 23:19:46 +08:00
xpthread_rwlock_destroy.c 1 2024-04-01 23:19:46 +08:00
xpthread_rwlock_init.c 1 2024-04-01 23:19:46 +08:00
xpthread_rwlock_rdlock.c 1 2024-04-01 23:19:46 +08:00
xpthread_rwlock_unlock.c 1 2024-04-01 23:19:46 +08:00
xpthread_rwlock_wrlock.c 1 2024-04-01 23:19:46 +08:00
xpthread_rwlockattr_init.c 1 2024-04-01 23:19:46 +08:00
xpthread_rwlockattr_setkind_np.c 1 2024-04-01 23:19:46 +08:00
xpthread_sigmask.c 1 2024-04-01 23:19:46 +08:00
xpthread_spin_lock.c 1 2024-04-01 23:19:46 +08:00
xpthread_spin_unlock.c 1 2024-04-01 23:19:46 +08:00
xptrace.h 1 2024-04-01 23:19:46 +08:00
xraise.c 1 2024-04-01 23:19:46 +08:00
xreadlink.c 1 2024-04-01 23:19:46 +08:00
xrealloc.c 1 2024-04-01 23:19:46 +08:00
xrecvfrom.c 1 2024-04-01 23:19:46 +08:00
xsched.h 1 2024-04-01 23:19:46 +08:00
xsendto.c 1 2024-04-01 23:19:46 +08:00
xsetlocale.c 1 2024-04-01 23:19:46 +08:00
xsetsockopt.c 1 2024-04-01 23:19:46 +08:00
xsigaction.c 1 2024-04-01 23:19:46 +08:00
xsignal.c 1 2024-04-01 23:19:46 +08:00
xsignal.h 1 2024-04-01 23:19:46 +08:00
xsigstack.c 1 2024-04-01 23:19:46 +08:00
xsocket.c 1 2024-04-01 23:19:46 +08:00
xsocket.h 1 2024-04-01 23:19:46 +08:00
xspawn.h 1 2024-04-01 23:19:46 +08:00
xstdio.h 1 2024-04-01 23:19:46 +08:00
xstrdup.c 1 2024-04-01 23:19:46 +08:00
xstrndup.c 1 2024-04-01 23:19:46 +08:00
xsymlink.c 1 2024-04-01 23:19:46 +08:00
xsysconf.c 1 2024-04-01 23:19:46 +08:00
xthread.h 1 2024-04-01 23:19:46 +08:00
xtime.h 1 2024-04-01 23:19:46 +08:00
xunistd.h 1 2024-04-01 23:19:46 +08:00
xunlink.c 1 2024-04-01 23:19:46 +08:00
xuselocale.c 1 2024-04-01 23:19:46 +08:00
xwaitpid.c 1 2024-04-01 23:19:46 +08:00
xwrite.c 1 2024-04-01 23:19:46 +08:00

README

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
* xtime.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

For tests that make use of struct timespec, the following header files
contain additional macros and helper functions:

* timespec.h