glibc/support
Stefan Liebler 2f9046fb05 Add UNSUPPORTED check in elf/tst-pldd.
The testcase forks a child process and runs pldd with PID of
this child.  On systems where /proc/sys/kernel/yama/ptrace_scope
differs from zero, pldd will fail with
/usr/bin/pldd: cannot attach to process 3: Operation not permitted

This patch checks if ptrace_scope exists, is zero "classic ptrace permissions"
or one "restricted ptrace".  If ptrace_scope exists and has a higher
restriction, then the test is marked as UNSUPPORTED.

The case "restricted ptrace" is handled by rearranging the processes involved
during the test.  Now we have the following process tree:
-parent: do_test (performs output checks)
--subprocess 1: pldd_process (becomes pldd via execve)
---subprocess 2: target_process (ptraced via pldd)

ChangeLog:

	* elf/tst-pldd.c (do_test): Add UNSUPPORTED check.
	Rearrange subprocesses.
	(pldd_process): New function.
	* support/Makefile (libsupport-routines): Add support_ptrace.
	* support/xptrace.h: New file.
	* support/support_ptrace.c: Likewise.
2019-09-18 12:42:39 +02:00
..
blob_repeat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
blob_repeat.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
capture_subprocess.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
check_addrinfo.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
check_dns_packet.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
check_hostent.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
check_netent.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
check_nss.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
check.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
check.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
delayed_exit.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
descriptors.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
echo-container.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
format_nss.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
ignore_stderr.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
links-dso-program-c.c nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 2019-07-10 14:51:18 -04:00
links-dso-program.cc nss_db: fix endent wrt NULL mappings [BZ #24695] [BZ #24696] 2019-07-10 14:51:18 -04:00
Makefile Add UNSUPPORTED check in elf/tst-pldd. 2019-09-18 12:42:39 +02:00
namespace.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
next_to_fault.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
next_to_fault.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
oom_error.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
README support: Add timespec.h 2019-05-09 14:33:53 -03:00
README-testing.c support: Introduce new subdirectory for test infrastructure 2016-12-09 08:18:27 +01:00
resolv_test.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
resolv_test.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
run_diff.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
set_fortify_handler.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
shell-container.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
subprocess.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_become_root.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_can_chroot.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_capture_subprocess_check.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_capture_subprocess.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_chroot.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_copy_file_range.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_descriptor_supports_holes.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_descriptors.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_enter_mount_namespace.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_enter_network_namespace.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_format_address_family.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_format_addrinfo.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_format_dns_packet.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_format_herrno.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_format_hostent.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_format_netent.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_isolate_in_subprocess.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_openpty.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_paths.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_ptrace.c Add UNSUPPORTED check in elf/tst-pldd. 2019-09-18 12:42:39 +02:00
support_quote_blob.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_quote_string.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_record_failure.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_run_diff.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_shared_allocate.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_subprocess.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_test_compare_blob.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_test_compare_failure.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_test_compare_string.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_test_main.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_test_verify_impl.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support_write_file_string.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support-xfstat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support-xstat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
support.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
temp_file-internal.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
temp_file.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
temp_file.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-container.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-driver.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
test-driver.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
timespec-add.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
timespec-sub.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
timespec.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
timespec.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
true-container.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-support_blob_repeat.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-support_capture_subprocess.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-support_descriptors.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-support_format_dns_packet.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-support_quote_blob.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-support_quote_string.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-support_record_failure-2.sh Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-support_record_failure.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-support-namespace.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-test_compare_blob.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-test_compare_string.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-test_compare.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-xreadlink.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tst-xsigstack.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
tty.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
write_message.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xaccept4.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xaccept.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xasprintf.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xbind.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xcalloc.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xchroot.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xclock_gettime.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xclose.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xconnect.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xcopy_file_range.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xdlfcn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xdlfcn.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xdlmopen.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xdup2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xfclose.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xfopen.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xfork.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xftruncate.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xgetsockname.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xlisten.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xlseek.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xmalloc.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xmemstream.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xmemstream.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xmkdir.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xmkdirp.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xmmap.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xmprotect.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xmunmap.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xopen.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpipe.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpoll.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xposix_memalign.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xposix_spawn_file_actions_addclose.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xposix_spawn_file_actions_adddup2.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xposix_spawn.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_attr_destroy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_attr_init.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_attr_setdetachstate.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_attr_setguardsize.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_attr_setstack.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_attr_setstacksize.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_barrier_destroy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_barrier_init.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_barrier_wait.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_barrierattr_destroy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_barrierattr_init.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_barrierattr_setpshared.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_cancel.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_check_return.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_cond_wait.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_create.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_detach.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_join.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_mutex_consistent.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_mutex_destroy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_mutex_init.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_mutex_lock.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_mutex_unlock.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_mutexattr_destroy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_mutexattr_init.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_mutexattr_setprotocol.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_mutexattr_setpshared.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_mutexattr_setrobust.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_mutexattr_settype.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_once.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_rwlock_destroy.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_rwlock_init.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_rwlock_rdlock.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_rwlock_unlock.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_rwlock_wrlock.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_rwlockattr_init.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_rwlockattr_setkind_np.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_sigmask.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_spin_lock.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xpthread_spin_unlock.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xptrace.h Add UNSUPPORTED check in elf/tst-pldd. 2019-09-18 12:42:39 +02:00
xraise.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xreadlink.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xrealloc.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xrecvfrom.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xsendto.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xsetsockopt.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xsigaction.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xsignal.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xsignal.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xsigstack.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xsocket.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xsocket.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xspawn.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xstdio.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xstrdup.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xstrndup.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xsymlink.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xsysconf.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xthread.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xtime.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xunistd.h Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xunlink.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xwaitpid.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
xwrite.c Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07: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
* 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