You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Stafford Horne 2efca218b5 xsysconf: Only fail on error results and errno set 5 years ago
..
Makefile support: Add support_wait_for_thread_exit 5 years ago
README support: Add timespec.h 7 years ago
README-testing.c support: Introduce new subdirectory for test infrastructure 9 years ago
blob_repeat.c Update copyright dates with scripts/update-copyrights 5 years ago
blob_repeat.h Update copyright dates with scripts/update-copyrights 5 years ago
capture_subprocess.h support: Add capability to fork an sgid child 5 years ago
check.c Update copyright dates with scripts/update-copyrights 5 years ago
check.h Update copyright dates with scripts/update-copyrights 5 years ago
check_addrinfo.c Update copyright dates with scripts/update-copyrights 5 years ago
check_dns_packet.c Update copyright dates with scripts/update-copyrights 5 years ago
check_hostent.c Update copyright dates with scripts/update-copyrights 5 years ago
check_netent.c Update copyright dates with scripts/update-copyrights 5 years ago
check_nss.h Update copyright dates with scripts/update-copyrights 5 years ago
delayed_exit.c Update copyright dates with scripts/update-copyrights 5 years ago
descriptors.h Update copyright dates with scripts/update-copyrights 5 years ago
echo-container.c Update copyright dates with scripts/update-copyrights 5 years ago
format_nss.h Update copyright dates with scripts/update-copyrights 5 years ago
ignore_stderr.c Update copyright dates with scripts/update-copyrights 5 years ago
links-dso-program-c.c nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 7 years ago
links-dso-program.cc nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 7 years ago
namespace.h Update copyright dates with scripts/update-copyrights 5 years ago
next_to_fault.c Update copyright dates with scripts/update-copyrights 5 years ago
next_to_fault.h Update copyright dates with scripts/update-copyrights 5 years ago
oom_error.c Update copyright dates with scripts/update-copyrights 5 years ago
process_state.h Update copyright dates with scripts/update-copyrights 5 years ago
resolv_response_context_duplicate.c Update copyright dates with scripts/update-copyrights 5 years ago
resolv_response_context_free.c Update copyright dates with scripts/update-copyrights 5 years ago
resolv_test.c Update copyright dates with scripts/update-copyrights 5 years ago
resolv_test.h Update copyright dates with scripts/update-copyrights 5 years ago
run_diff.h Update copyright dates with scripts/update-copyrights 5 years ago
set_fortify_handler.c Update copyright dates with scripts/update-copyrights 5 years ago
shell-container.c support: Close fds in copy_func 5 years ago
subprocess.h support: Add capability to fork an sgid child 5 years ago
support-open-dev-null-range.c support: Add support_open_dev_null_range 5 years ago
support-xfstat-time64.c libsupport: Add 64-bit time_t support for stat functions 5 years ago
support-xfstat.c Update copyright dates with scripts/update-copyrights 5 years ago
support-xstat-time64.c libsupport: Add 64-bit time_t support for stat functions 5 years ago
support-xstat.c Update copyright dates with scripts/update-copyrights 5 years ago
support.h time: Fix compile error in itimer test affecting hurd 5 years ago
support_become_root.c Update copyright dates with scripts/update-copyrights 5 years ago
support_can_chroot.c Update copyright dates with scripts/update-copyrights 5 years ago
support_capture_subprocess.c copy_and_spawn_sgid: Avoid double calls to close() 5 years ago
support_capture_subprocess_check.c Update copyright dates with scripts/update-copyrights 5 years ago
support_chroot.c Update copyright dates with scripts/update-copyrights 5 years ago
support_copy_file.c Update copyright dates with scripts/update-copyrights 5 years ago
support_copy_file_range.c Update copyright dates with scripts/update-copyrights 5 years ago
support_create_timer.c support: Add support_create_timer 5 years ago
support_descriptor_supports_holes.c Update copyright dates with scripts/update-copyrights 5 years ago
support_descriptors.c Update copyright dates with scripts/update-copyrights 5 years ago
support_enter_mount_namespace.c Update copyright dates with scripts/update-copyrights 5 years ago
support_enter_network_namespace.c Update copyright dates with scripts/update-copyrights 5 years ago
support_format_address_family.c Update copyright dates with scripts/update-copyrights 5 years ago
support_format_addrinfo.c Update copyright dates with scripts/update-copyrights 5 years ago
support_format_dns_packet.c Update copyright dates with scripts/update-copyrights 5 years ago
support_format_herrno.c Update copyright dates with scripts/update-copyrights 5 years ago
support_format_hostent.c Update copyright dates with scripts/update-copyrights 5 years ago
support_format_netent.c Update copyright dates with scripts/update-copyrights 5 years ago
support_isolate_in_subprocess.c Update copyright dates with scripts/update-copyrights 5 years ago
support_openpty.c Update copyright dates with scripts/update-copyrights 5 years ago
support_path_support_time64.c Define PTHREAD_STACK_MIN to sysconf(_SC_THREAD_STACK_MIN) 5 years ago
support_paths.c Update copyright dates with scripts/update-copyrights 5 years ago
support_process_state.c Update copyright dates with scripts/update-copyrights 5 years ago
support_ptrace.c Update copyright dates with scripts/update-copyrights 5 years ago
support_quote_blob.c Update copyright dates with scripts/update-copyrights 5 years ago
support_quote_string.c Update copyright dates with scripts/update-copyrights 5 years ago
support_record_failure.c Update copyright dates with scripts/update-copyrights 5 years ago
support_run_diff.c Update copyright dates with scripts/update-copyrights 5 years ago
support_select_modifies_timeout.c libsupport: Add support_select_modifies_timeout 5 years ago
support_select_normalizes_timeout.c libsupport: Add support_select_normalizes_timeout 5 years ago
support_set_small_thread_stack_size.c support: Add support_small_thread_stack_size 5 years ago
support_shared_allocate.c Update copyright dates with scripts/update-copyrights 5 years ago
support_small_stack_thread_attribute.c Update copyright dates with scripts/update-copyrights 5 years ago
support_stack_alloc.c support: Replace _SC_MINSIGSTKSZ with _SC_SIGSTKSZ 5 years ago
support_stat_nanoseconds.c support: Fix hurd build after bfddda2570331d 5 years ago
support_subprocess.c support: Add capability to fork an sgid child 5 years ago
support_test_compare_blob.c Update copyright dates with scripts/update-copyrights 5 years ago
support_test_compare_failure.c Update copyright dates with scripts/update-copyrights 5 years ago
support_test_compare_string.c Update copyright dates with scripts/update-copyrights 5 years ago
support_test_main.c support: Free gdb_script_name 5 years ago
support_test_verify_impl.c Update copyright dates with scripts/update-copyrights 5 years ago
support_wait_for_thread_exit.c support: Add support_wait_for_thread_exit 5 years ago
support_write_file_string.c Update copyright dates with scripts/update-copyrights 5 years ago
temp_file-internal.h Update copyright dates with scripts/update-copyrights 5 years ago
temp_file.c Update copyright dates with scripts/update-copyrights 5 years ago
temp_file.h Update copyright dates with scripts/update-copyrights 5 years ago
test-container.c test-container: Always copy test-specific support files [BZ #27537] 5 years ago
test-driver.c Update copyright dates with scripts/update-copyrights 5 years ago
test-driver.h Update copyright dates with scripts/update-copyrights 5 years ago
timespec-add-time64.c libsupport: Add 64-bit time_t support for time functions 5 years ago
timespec-add.c libsupport: Add 64-bit time_t support for time functions 5 years ago
timespec-sub-time64.c libsupport: Add 64-bit time_t support for time functions 5 years ago
timespec-sub.c libsupport: Add 64-bit time_t support for time functions 5 years ago
timespec-time64.c libsupport: Add 64-bit time_t support for time functions 5 years ago
timespec.c libsupport: Add 64-bit time_t support for time functions 5 years ago
timespec.h libsupport: Add 64-bit time_t support for time functions 5 years ago
true-container.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-support-namespace.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-support-open-dev-null-range.c support: Add support_open_dev_null_range 5 years ago
tst-support-process_state.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-support_blob_repeat.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-support_capture_subprocess.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-support_descriptors.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-support_format_dns_packet.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-support_quote_blob.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-support_quote_string.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-support_record_failure-2.sh Update copyright dates with scripts/update-copyrights 5 years ago
tst-support_record_failure.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-test_compare.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-test_compare_blob.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-test_compare_string.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-timespec.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-xreadlink.c Update copyright dates with scripts/update-copyrights 5 years ago
tst-xsigstack.c Update copyright dates with scripts/update-copyrights 5 years ago
tty.h Update copyright dates with scripts/update-copyrights 5 years ago
write_message.c Update copyright dates with scripts/update-copyrights 5 years ago
xaccept.c Update copyright dates with scripts/update-copyrights 5 years ago
xaccept4.c Update copyright dates with scripts/update-copyrights 5 years ago
xasprintf.c Update copyright dates with scripts/update-copyrights 5 years ago
xbind.c Update copyright dates with scripts/update-copyrights 5 years ago
xcalloc.c Update copyright dates with scripts/update-copyrights 5 years ago
xchdir.c Add xchdir to libsupport. 5 years ago
xchmod.c support: Add xchmod wrapper 5 years ago
xchroot.c Update copyright dates with scripts/update-copyrights 5 years ago
xclock_gettime.c Update copyright dates with scripts/update-copyrights 5 years ago
xclock_gettime_time64.c libsupport: Add 64-bit time_t support for time functions 5 years ago
xclock_settime.c support: Provide xclock_settime test helper function 5 years ago
xclock_settime_time64.c libsupport: Add 64-bit time_t support for time functions 5 years ago
xclone.c support: Fix xclone build failures on ia64 and hppa 5 years ago
xclose.c Update copyright dates with scripts/update-copyrights 5 years ago
xconnect.c Update copyright dates with scripts/update-copyrights 5 years ago
xcopy_file_range.c Update copyright dates with scripts/update-copyrights 5 years ago
xdlfcn.c Update copyright dates with scripts/update-copyrights 5 years ago
xdlfcn.h Update copyright dates with scripts/update-copyrights 5 years ago
xdlmopen.c Update copyright dates with scripts/update-copyrights 5 years ago
xdup2.c Update copyright dates with scripts/update-copyrights 5 years ago
xfchmod.c Add xfchmod to libsupport 5 years ago
xfclose.c Update copyright dates with scripts/update-copyrights 5 years ago
xfopen.c Update copyright dates with scripts/update-copyrights 5 years ago
xfork.c Update copyright dates with scripts/update-copyrights 5 years ago
xftruncate.c Update copyright dates with scripts/update-copyrights 5 years ago
xgetline.c Update copyright dates with scripts/update-copyrights 5 years ago
xgetsockname.c Update copyright dates with scripts/update-copyrights 5 years ago
xlisten.c Update copyright dates with scripts/update-copyrights 5 years ago
xlseek.c Update copyright dates with scripts/update-copyrights 5 years ago
xlstat-time64.c libsupport: Add 64-bit time_t support for stat functions 5 years ago
xlstat.c Update copyright dates with scripts/update-copyrights 5 years ago
xmalloc.c Update copyright dates with scripts/update-copyrights 5 years ago
xmemstream.c Update copyright dates with scripts/update-copyrights 5 years ago
xmemstream.h Update copyright dates with scripts/update-copyrights 5 years ago
xmkdir.c Update copyright dates with scripts/update-copyrights 5 years ago
xmkdirp.c Update copyright dates with scripts/update-copyrights 5 years ago
xmmap.c Update copyright dates with scripts/update-copyrights 5 years ago
xmprotect.c Update copyright dates with scripts/update-copyrights 5 years ago
xmunmap.c Update copyright dates with scripts/update-copyrights 5 years ago
xnewlocale.c Update copyright dates with scripts/update-copyrights 5 years ago
xopen.c Update copyright dates with scripts/update-copyrights 5 years ago
xpipe.c Update copyright dates with scripts/update-copyrights 5 years ago
xpoll.c Update copyright dates with scripts/update-copyrights 5 years ago
xposix_memalign.c Update copyright dates with scripts/update-copyrights 5 years ago
xposix_spawn.c Update copyright dates with scripts/update-copyrights 5 years ago
xposix_spawn_file_actions_addclose.c Update copyright dates with scripts/update-copyrights 5 years ago
xposix_spawn_file_actions_adddup2.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_attr_destroy.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_attr_init.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_attr_setaffinity_np.c support: Do not build xpthread_attr_setaffinity_np for hurd 5 years ago
xpthread_attr_setdetachstate.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_attr_setguardsize.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_attr_setstack.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_attr_setstacksize.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_barrier_destroy.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_barrier_init.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_barrier_wait.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_barrierattr_destroy.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_barrierattr_init.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_barrierattr_setpshared.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_cancel.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_check_return.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_cond_wait.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_create.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_detach.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_join.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_key_create.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_key_delete.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_kill.c support: Add xpthread_kill 5 years ago
xpthread_mutex_consistent.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_mutex_destroy.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_mutex_init.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_mutex_lock.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_mutex_unlock.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_mutexattr_destroy.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_mutexattr_init.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_mutexattr_setprotocol.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_mutexattr_setpshared.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_mutexattr_setrobust.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_mutexattr_settype.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_once.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_rwlock_destroy.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_rwlock_init.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_rwlock_rdlock.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_rwlock_unlock.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_rwlock_wrlock.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_rwlockattr_init.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_rwlockattr_setkind_np.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_sigmask.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_spin_lock.c Update copyright dates with scripts/update-copyrights 5 years ago
xpthread_spin_unlock.c Update copyright dates with scripts/update-copyrights 5 years ago
xptrace.h Update copyright dates with scripts/update-copyrights 5 years ago
xraise.c Update copyright dates with scripts/update-copyrights 5 years ago
xreadlink.c Update copyright dates with scripts/update-copyrights 5 years ago
xrealloc.c Update copyright dates with scripts/update-copyrights 5 years ago
xrecvfrom.c Update copyright dates with scripts/update-copyrights 5 years ago
xsched.h support: Add xclone 5 years ago
xsendto.c Update copyright dates with scripts/update-copyrights 5 years ago
xsetlocale.c Update copyright dates with scripts/update-copyrights 5 years ago
xsetsockopt.c Update copyright dates with scripts/update-copyrights 5 years ago
xsigaction.c Update copyright dates with scripts/update-copyrights 5 years ago
xsignal.c Update copyright dates with scripts/update-copyrights 5 years ago
xsignal.h Update copyright dates with scripts/update-copyrights 5 years ago
xsigstack.c support: Add support_stack_alloc 5 years ago
xsocket.c Update copyright dates with scripts/update-copyrights 5 years ago
xsocket.h Update copyright dates with scripts/update-copyrights 5 years ago
xspawn.h Update copyright dates with scripts/update-copyrights 5 years ago
xstdio.h Update copyright dates with scripts/update-copyrights 5 years ago
xstrdup.c Update copyright dates with scripts/update-copyrights 5 years ago
xstrndup.c Update copyright dates with scripts/update-copyrights 5 years ago
xsymlink.c Update copyright dates with scripts/update-copyrights 5 years ago
xsysconf.c xsysconf: Only fail on error results and errno set 5 years ago
xthread.h support: Do not build xpthread_attr_setaffinity_np for hurd 5 years ago
xtime.h libsupport: Add 64-bit time_t support for time functions 5 years ago
xunistd.h libsupport: Add 64-bit time_t support for stat functions 5 years ago
xunlink.c Update copyright dates with scripts/update-copyrights 5 years ago
xuselocale.c Update copyright dates with scripts/update-copyrights 5 years ago
xwaitpid.c Update copyright dates with scripts/update-copyrights 5 years ago
xwrite.c Update copyright dates with scripts/update-copyrights 5 years ago

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