cosmopolitan/test/libc/calls
Justine Tunney 5144c22189 Add test for ioctl(SIOCGIFCONF) and polyfill on BSDs
- Use nullness checks when calling weakly linked functions.

- Avoid typedef for reasons described in Linux Kernel style guide.

- Avoid enum in in Windows headers. Earlier in Cosmo's history all one
  hundred files in libc/nt/enum/ used to be enums and it resulted in
  gigabytes of DWARF data almost as large as everything else in the
  codebase combined.

- Bitfields aren't our friends. They have frequent ABI breakages,
  inconsistent arithmetic across compilers, and different endianness
  between cpus. Compiler authors also haven't invested much roi into
  making bit fields go fast so they produce poor assembly.

- Use memccpy() instead of strncpy() or snprintf() for length-bounded
  copying of C strings. strncpy() is a misunderstood function and
  snprintf() is awesome but memccpy() deserves more love.
2021-06-25 18:44:04 -07:00
..
access_test.c Change license 2020-12-27 17:18:44 -08:00
commandv_test.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
fcntl_test.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fork_test.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ftruncate_test.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
getcwd_test.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
getenv_test.c Apply some touchups 2021-02-07 07:02:46 -08:00
ioctl_siocgifconf_test.c Add test for ioctl(SIOCGIFCONF) and polyfill on BSDs 2021-06-25 18:44:04 -07:00
lseek_test.c Eliminate some flakes 2021-02-03 06:25:27 -08:00
mkdir_test.c Eliminate some flakes 2021-02-03 06:25:27 -08:00
mkntcmdline_test.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
mkntenvblock_test.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
mkntpath_test.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
mprotect_test.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
sigaction_test.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
signal_test.c Change license 2020-12-27 17:18:44 -08:00
stat_test.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
test.mk Add test for ioctl(SIOCGIFCONF) and polyfill on BSDs 2021-06-25 18:44:04 -07:00
vfork_test.c Delete LIBC_CALLS_HEFTY 2021-02-02 22:17:53 -08:00
writev_test.c Make redbean StoreAsset() work better 2021-05-14 05:44:37 -07:00