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.
 
 
 
 
 
 
Sergey Kolosov 6687a6e3f9 libsupport: Add xgetpeername 2 years ago
..
Depend elf: Testing infrastructure for ld.so DSO sorting (BZ #17645) 5 years ago
Makefile libsupport: Add xgetpeername 2 years ago
README Fix all the remaining misspellings -- BZ 25337 3 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 2 years ago
blob_repeat.h Update copyright dates with scripts/update-copyrights 2 years ago
capture_subprocess.h Update copyright dates with scripts/update-copyrights 2 years ago
check.c Update copyright dates with scripts/update-copyrights 2 years ago
check.h Update copyright dates with scripts/update-copyrights 2 years ago
check_addrinfo.c Update copyright dates with scripts/update-copyrights 2 years ago
check_dns_packet.c Update copyright dates with scripts/update-copyrights 2 years ago
check_hostent.c Update copyright dates with scripts/update-copyrights 2 years ago
check_netent.c Update copyright dates with scripts/update-copyrights 2 years ago
check_nss.h Update copyright dates with scripts/update-copyrights 2 years ago
delayed_exit.c Update copyright dates with scripts/update-copyrights 2 years ago
descriptors.h Update copyright dates with scripts/update-copyrights 2 years ago
dtotimespec-time64.c Update copyright dates with scripts/update-copyrights 2 years ago
dtotimespec.c Update copyright dates with scripts/update-copyrights 2 years ago
echo-container.c Update copyright dates with scripts/update-copyrights 2 years ago
format_nss.h Update copyright dates with scripts/update-copyrights 2 years ago
ignore_stderr.c Update copyright dates with scripts/update-copyrights 2 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 2 years ago
next_to_fault.c Update copyright dates with scripts/update-copyrights 2 years ago
next_to_fault.h Update copyright dates with scripts/update-copyrights 2 years ago
oom_error.c Update copyright dates with scripts/update-copyrights 2 years ago
process_state.h Update copyright dates with scripts/update-copyrights 2 years ago
resolv_response_context_duplicate.c Update copyright dates with scripts/update-copyrights 2 years ago
resolv_response_context_free.c Update copyright dates with scripts/update-copyrights 2 years ago
resolv_test.c Update copyright dates with scripts/update-copyrights 2 years ago
resolv_test.h Update copyright dates with scripts/update-copyrights 2 years ago
run_diff.h Update copyright dates with scripts/update-copyrights 2 years ago
set_fortify_handler.c Update copyright dates with scripts/update-copyrights 2 years ago
shell-container.c Update copyright dates with scripts/update-copyrights 2 years ago
subprocess.h Update copyright dates with scripts/update-copyrights 2 years ago
support-open-dev-null-range.c Update copyright dates with scripts/update-copyrights 2 years ago
support-xfstat-time64.c Update copyright dates with scripts/update-copyrights 2 years ago
support-xfstat.c Update copyright dates with scripts/update-copyrights 2 years ago
support-xstat-time64.c Update copyright dates with scripts/update-copyrights 2 years ago
support-xstat.c Update copyright dates with scripts/update-copyrights 2 years ago
support.h Update copyright dates with scripts/update-copyrights 2 years ago
support_become_root.c Update copyright dates with scripts/update-copyrights 2 years ago
support_can_chroot.c Update copyright dates with scripts/update-copyrights 2 years ago
support_capture_subprocess.c Update copyright dates with scripts/update-copyrights 2 years ago
support_capture_subprocess_check.c Update copyright dates with scripts/update-copyrights 2 years ago
support_chroot.c Update copyright dates with scripts/update-copyrights 2 years ago
support_copy_file.c Update copyright dates with scripts/update-copyrights 2 years ago
support_copy_file_range.c Update copyright dates with scripts/update-copyrights 2 years ago
support_create_timer.c Update copyright dates with scripts/update-copyrights 2 years ago
support_descriptor_supports_holes.c Update copyright dates with scripts/update-copyrights 2 years ago
support_descriptors.c Update copyright dates with scripts/update-copyrights 2 years ago
support_enter_mount_namespace.c Update copyright dates with scripts/update-copyrights 2 years ago
support_enter_network_namespace.c Update copyright dates with scripts/update-copyrights 2 years ago
support_format_address_family.c Update copyright dates with scripts/update-copyrights 2 years ago
support_format_addrinfo.c Update copyright dates with scripts/update-copyrights 2 years ago
support_format_dns_packet.c Update copyright dates with scripts/update-copyrights 2 years ago
support_format_herrno.c Update copyright dates with scripts/update-copyrights 2 years ago
support_format_hostent.c Update copyright dates with scripts/update-copyrights 2 years ago
support_format_netent.c Update copyright dates with scripts/update-copyrights 2 years ago
support_isolate_in_subprocess.c Update copyright dates with scripts/update-copyrights 2 years ago
support_mutex_pi_monotonic.c Update copyright dates with scripts/update-copyrights 2 years ago
support_need_proc.c Update copyright dates with scripts/update-copyrights 2 years ago
support_openpty.c Update copyright dates with scripts/update-copyrights 2 years ago
support_path_support_time64.c Update copyright dates with scripts/update-copyrights 2 years ago
support_paths.c Update copyright dates with scripts/update-copyrights 2 years ago
support_process_state.c Update copyright dates with scripts/update-copyrights 2 years ago
support_ptrace.c Update copyright dates with scripts/update-copyrights 2 years ago
support_quote_blob.c Update copyright dates with scripts/update-copyrights 2 years ago
support_quote_blob_main.c Update copyright dates with scripts/update-copyrights 2 years ago
support_quote_blob_wide.c Update copyright dates with scripts/update-copyrights 2 years ago
support_quote_string.c Update copyright dates with scripts/update-copyrights 2 years ago
support_record_failure.c Update copyright dates with scripts/update-copyrights 2 years ago
support_run_diff.c Update copyright dates with scripts/update-copyrights 2 years ago
support_select_modifies_timeout.c Update copyright dates with scripts/update-copyrights 2 years ago
support_select_normalizes_timeout.c Update copyright dates with scripts/update-copyrights 2 years ago
support_set_small_thread_stack_size.c Update copyright dates with scripts/update-copyrights 2 years ago
support_set_vma_name_supported.c Update copyright dates with scripts/update-copyrights 2 years ago
support_shared_allocate.c Update copyright dates with scripts/update-copyrights 2 years ago
support_small_stack_thread_attribute.c Update copyright dates with scripts/update-copyrights 2 years ago
support_socket_so_timestamp_time64.c Update copyright dates with scripts/update-copyrights 2 years ago
support_stack_alloc.c Update copyright dates with scripts/update-copyrights 2 years ago
support_stat_nanoseconds.c Update copyright dates with scripts/update-copyrights 2 years ago
support_subprocess.c Update copyright dates with scripts/update-copyrights 2 years ago
support_test_compare_blob.c Update copyright dates with scripts/update-copyrights 2 years ago
support_test_compare_failure.c Update copyright dates with scripts/update-copyrights 2 years ago
support_test_compare_string.c Update copyright dates with scripts/update-copyrights 2 years ago
support_test_compare_string_main.c Update copyright dates with scripts/update-copyrights 2 years ago
support_test_compare_string_wide.c Update copyright dates with scripts/update-copyrights 2 years ago
support_test_main.c Update copyright dates with scripts/update-copyrights 2 years ago
support_test_verify_impl.c Update copyright dates with scripts/update-copyrights 2 years ago
support_wait_for_thread_exit.c Update copyright dates with scripts/update-copyrights 2 years ago
support_write_file_string.c Update copyright dates with scripts/update-copyrights 2 years ago
temp_file-internal.h Update copyright dates with scripts/update-copyrights 2 years ago
temp_file.c Update copyright dates with scripts/update-copyrights 2 years ago
temp_file.h Update copyright dates with scripts/update-copyrights 2 years ago
test-container.c tests: gracefully handle AppArmor userns containment 2 years ago
test-driver.c Update copyright dates with scripts/update-copyrights 2 years ago
test-driver.h Update copyright dates with scripts/update-copyrights 2 years ago
test-run-command.c Update copyright dates with scripts/update-copyrights 2 years ago
timespec-add-time64.c Update copyright dates with scripts/update-copyrights 2 years ago
timespec-add.c Update copyright dates with scripts/update-copyrights 2 years ago
timespec-sub-time64.c Update copyright dates with scripts/update-copyrights 2 years ago
timespec-sub.c Update copyright dates with scripts/update-copyrights 2 years ago
timespec-time64.c Update copyright dates with scripts/update-copyrights 2 years ago
timespec.c Update copyright dates with scripts/update-copyrights 2 years ago
timespec.h Always define __USE_TIME_BITS64 when 64 bit time_t is used 2 years ago
true-container.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-glibcpp.py Update copyright dates with scripts/update-copyrights 2 years ago
tst-support-namespace.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-support-open-dev-null-range.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-support-process_state.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-support_blob_repeat.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-support_capture_subprocess.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-support_descriptors.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-support_format_dns_packet.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-support_quote_blob.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-support_quote_blob_wide.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-support_quote_string.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-support_record_failure-2.sh Update copyright dates with scripts/update-copyrights 2 years ago
tst-support_record_failure.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-test_compare.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-test_compare_blob.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-test_compare_string.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-test_compare_string_wide.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-timespec.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-xreadlink.c Update copyright dates with scripts/update-copyrights 2 years ago
tst-xsigstack.c Update copyright dates with scripts/update-copyrights 2 years ago
tty.h Update copyright dates with scripts/update-copyrights 2 years ago
write_message.c Update copyright dates with scripts/update-copyrights 2 years ago
xaccept.c Update copyright dates with scripts/update-copyrights 2 years ago
xaccept4.c Update copyright dates with scripts/update-copyrights 2 years ago
xasprintf.c Update copyright dates with scripts/update-copyrights 2 years ago
xbind.c Update copyright dates with scripts/update-copyrights 2 years ago
xcalloc.c Update copyright dates with scripts/update-copyrights 2 years ago
xchdir.c Update copyright dates with scripts/update-copyrights 2 years ago
xchmod.c Update copyright dates with scripts/update-copyrights 2 years ago
xchroot.c Update copyright dates with scripts/update-copyrights 2 years ago
xclock_gettime.c Update copyright dates with scripts/update-copyrights 2 years ago
xclock_gettime_time64.c Update copyright dates with scripts/update-copyrights 2 years ago
xclock_settime.c Update copyright dates with scripts/update-copyrights 2 years ago
xclock_settime_time64.c Update copyright dates with scripts/update-copyrights 2 years ago
xclone.c Remove ia64-linux-gnu 2 years ago
xclose.c Update copyright dates with scripts/update-copyrights 2 years ago
xconnect.c Update copyright dates with scripts/update-copyrights 2 years ago
xcopy_file_range.c Update copyright dates with scripts/update-copyrights 2 years ago
xdlfcn.c Update copyright dates with scripts/update-copyrights 2 years ago
xdlfcn.h Update copyright dates with scripts/update-copyrights 2 years ago
xdlmopen.c Update copyright dates with scripts/update-copyrights 2 years ago
xdup2.c Update copyright dates with scripts/update-copyrights 2 years ago
xfchmod.c Update copyright dates with scripts/update-copyrights 2 years ago
xfclose.c Update copyright dates with scripts/update-copyrights 2 years ago
xfgets.c Update copyright dates with scripts/update-copyrights 2 years ago
xfopen.c Update copyright dates with scripts/update-copyrights 2 years ago
xfork.c Update copyright dates with scripts/update-copyrights 2 years ago
xfread.c Update copyright dates with scripts/update-copyrights 2 years ago
xfreopen.c Update copyright dates with scripts/update-copyrights 2 years ago
xftruncate.c Update copyright dates with scripts/update-copyrights 2 years ago
xgetline.c Update copyright dates with scripts/update-copyrights 2 years ago
xgetpeername.c libsupport: Add xgetpeername 2 years ago
xgetsockname.c Update copyright dates with scripts/update-copyrights 2 years ago
xlisten.c Update copyright dates with scripts/update-copyrights 2 years ago
xlseek.c Update copyright dates with scripts/update-copyrights 2 years ago
xlstat-time64.c Update copyright dates with scripts/update-copyrights 2 years ago
xlstat.c Update copyright dates with scripts/update-copyrights 2 years ago
xmalloc.c Update copyright dates with scripts/update-copyrights 2 years ago
xmemstream.c Update copyright dates with scripts/update-copyrights 2 years ago
xmemstream.h Update copyright dates with scripts/update-copyrights 2 years ago
xmkdir.c Update copyright dates with scripts/update-copyrights 2 years ago
xmkdirp.c Update copyright dates with scripts/update-copyrights 2 years ago
xmkfifo.c Update copyright dates with scripts/update-copyrights 2 years ago
xmmap.c Update copyright dates with scripts/update-copyrights 2 years ago
xmprotect.c Update copyright dates with scripts/update-copyrights 2 years ago
xmunmap.c Update copyright dates with scripts/update-copyrights 2 years ago
xnewlocale.c Update copyright dates with scripts/update-copyrights 2 years ago
xopen.c Update copyright dates with scripts/update-copyrights 2 years ago
xpipe.c Update copyright dates with scripts/update-copyrights 2 years ago
xpoll.c Update copyright dates with scripts/update-copyrights 2 years ago
xposix_memalign.c Update copyright dates with scripts/update-copyrights 2 years ago
xposix_spawn.c Update copyright dates with scripts/update-copyrights 2 years ago
xposix_spawn_file_actions_addclose.c Update copyright dates with scripts/update-copyrights 2 years ago
xposix_spawn_file_actions_adddup2.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_attr_destroy.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_attr_init.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_attr_setaffinity_np.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_attr_setdetachstate.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_attr_setguardsize.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_attr_setstack.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_attr_setstacksize.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_barrier_destroy.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_barrier_init.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_barrier_wait.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_barrierattr_destroy.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_barrierattr_init.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_barrierattr_setpshared.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_cancel.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_check_return.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_cond_signal.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_cond_wait.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_create.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_detach.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_join.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_key_create.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_key_delete.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_kill.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_mutex_consistent.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_mutex_destroy.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_mutex_init.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_mutex_lock.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_mutex_unlock.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_mutexattr_destroy.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_mutexattr_init.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_mutexattr_setprotocol.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_mutexattr_setpshared.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_mutexattr_setrobust.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_mutexattr_settype.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_once.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_rwlock_destroy.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_rwlock_init.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_rwlock_rdlock.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_rwlock_unlock.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_rwlock_wrlock.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_rwlockattr_init.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_rwlockattr_setkind_np.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_sigmask.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_spin_lock.c Update copyright dates with scripts/update-copyrights 2 years ago
xpthread_spin_unlock.c Update copyright dates with scripts/update-copyrights 2 years ago
xptrace.h Update copyright dates with scripts/update-copyrights 2 years ago
xraise.c Update copyright dates with scripts/update-copyrights 2 years ago
xread.c Update copyright dates with scripts/update-copyrights 2 years ago
xreadlink.c Update copyright dates with scripts/update-copyrights 2 years ago
xrealloc.c Update copyright dates with scripts/update-copyrights 2 years ago
xrecvfrom.c Update copyright dates with scripts/update-copyrights 2 years ago
xsched.h Update copyright dates with scripts/update-copyrights 2 years ago
xsendto.c Update copyright dates with scripts/update-copyrights 2 years ago
xsetlocale.c Update copyright dates with scripts/update-copyrights 2 years ago
xsetsockopt.c Update copyright dates with scripts/update-copyrights 2 years ago
xsigaction.c Update copyright dates with scripts/update-copyrights 2 years ago
xsignal.c Update copyright dates with scripts/update-copyrights 2 years ago
xsignal.h Update copyright dates with scripts/update-copyrights 2 years ago
xsigstack.c Update copyright dates with scripts/update-copyrights 2 years ago
xsocket.c Update copyright dates with scripts/update-copyrights 2 years ago
xsocket.h libsupport: Add xgetpeername 2 years ago
xspawn.h Update copyright dates with scripts/update-copyrights 2 years ago
xstdio.h Update copyright dates with scripts/update-copyrights 2 years ago
xstdlib.h Update copyright dates with scripts/update-copyrights 2 years ago
xstrdup.c Update copyright dates with scripts/update-copyrights 2 years ago
xstrndup.c Update copyright dates with scripts/update-copyrights 2 years ago
xsymlink.c Update copyright dates with scripts/update-copyrights 2 years ago
xsysconf.c Update copyright dates with scripts/update-copyrights 2 years ago
xsystem.c Update copyright dates with scripts/update-copyrights 2 years ago
xthread.h Update copyright dates with scripts/update-copyrights 2 years ago
xtime.h Always define __USE_TIME_BITS64 when 64 bit time_t is used 2 years ago
xunistd.h Always define __USE_TIME_BITS64 when 64 bit time_t is used 2 years ago
xunlink.c Update copyright dates with scripts/update-copyrights 2 years ago
xuselocale.c Update copyright dates with scripts/update-copyrights 2 years ago
xwaitpid.c Update copyright dates with scripts/update-copyrights 2 years ago
xwrite.c Update copyright dates with scripts/update-copyrights 2 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 identifiers 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