platform_bionic/tests/headers/posix
Elliott Hughes 647472db9b <termios.h>: add two new POSIX functions.
musl already added tcgetwinsize() and tcsetwinsize(), but I didn't
notice.

Trivial single-line inlines added to a header that's already written
that way.

Test: treehugger
Change-Id: Iac95ea6a89f3872025c512f7e61987b81d0aafa7
2023-08-29 09:33:04 -07:00
..
Android.bp Re-enable the POSIX header tests for musl. 2023-01-19 21:39:37 +00:00
arpa_inet_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
assert_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
complex_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
cpio_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
ctype_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
dirent_h.c Mention the POSIX header tests in docs/status.md. 2017-12-13 15:25:55 -08:00
dlfcn_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
errno_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
fcntl_h.c Add #ifdefs to make POSIX header tests pass for musl 2023-01-19 11:28:28 -08:00
fenv_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
float_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
fnmatch_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
ftw_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
glob_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
grp_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
header_checks.h Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
iconv_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
inttypes_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
iso646_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
langinfo_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
libgen_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
limits_h.c Add #ifdefs to make POSIX header tests pass for musl 2023-01-19 11:28:28 -08:00
locale_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
math_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
net_if_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
netdb_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
netinet_in_h.c Mention the POSIX header tests in docs/status.md. 2017-12-13 15:25:55 -08:00
netinet_tcp_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
nl_types_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
poll_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
pthread_h.c Update our status in light of recent additions. 2018-01-25 22:50:09 -08:00
pwd_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
README.md Explain the header tests better. 2023-05-08 19:14:28 +00:00
regex_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sched_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
search_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
semaphore_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
setjmp_h.c setjmp is a macro. 2018-07-17 13:55:36 -07:00
signal_h.c bionic: update for glibc 2.17 2019-01-15 19:00:11 -08:00
spawn_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
stdarg_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
stdbool_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
stddef_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
stdint_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
stdio_h.c C11 removed gets(). 2022-03-30 17:25:10 -07:00
stdlib_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
string_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
strings_h.c Add ffsl(3), ffsll(3). 2020-03-26 11:43:05 -07:00
sys_ipc_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_mman_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_msg_h.c Update to v4.19 kernel headers. 2018-10-30 09:21:16 -07:00
sys_resource_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_select_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_sem_h.c Update to v4.19 kernel headers. 2018-10-30 09:21:16 -07:00
sys_shm_h.c Update to v4.19 kernel headers. 2018-10-30 09:21:16 -07:00
sys_socket_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_stat_h.c riscv64's struct stat is the same as arm64's. 2022-10-06 00:26:18 +00:00
sys_stat_h_file_type_test_macros.h Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_stat_h_mode_constants.h Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_statvfs_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_time_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_times_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_types_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_uio_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_un_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_utsname_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
sys_wait_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
syslog_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
tar_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
termios_h.c <termios.h>: add two new POSIX functions. 2023-08-29 09:33:04 -07:00
tgmath_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
threads_h.c threads.h: Add C11 thread support. 2019-04-24 09:12:29 -07:00
time_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
unistd_h.c Add #ifdefs to make POSIX header tests pass for musl 2023-01-19 11:28:28 -08:00
utime_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
utmpx_h.c Add POSIX <utmpx.h>. 2023-04-03 17:20:58 -07:00
wchar_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00
wctype_h.c Test POSIX 1003.1 2016 chapter 13 "Headers". 2017-12-13 09:01:35 -08:00

POSIX header tests

These compile-time tests check that each POSIX header contains at least what POSIX says. Every POSIX header file gets a corresponding .c file in this directory. Every constant, macro, type, struct field, and function in the header gets a corresponding assertion in the file.

See header_checks.h for the implementation of the assertions.