cosmopolitan/libc/calls/struct
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
..
dirent.h Add SSL to redbean 2021-06-24 13:20:50 -07:00
flock.h Make redbean StoreAsset() work better 2021-05-14 05:44:37 -07:00
framebufferfixedscreeninfo.h Initial import 2020-06-15 07:18:57 -07:00
framebuffervirtualscreeninfo.h Initial import 2020-06-15 07:18:57 -07:00
iovec.h Initial import 2020-06-15 07:18:57 -07:00
itimerval.h Initial import 2020-06-15 07:18:57 -07:00
metastat.internal.h Add NetBSD support 2021-02-05 06:19:45 -08:00
metatermios.internal.h Apply some touchups 2021-02-07 07:02:46 -08:00
rlimit.h Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
rusage.h Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
sched_param.h Initial import 2020-06-15 07:18:57 -07:00
sigaction-freebsd.internal.h Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
sigaction-linux.internal.h Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
sigaction-netbsd.h Add NetBSD support 2021-02-05 06:19:45 -08:00
sigaction-openbsd.internal.h Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
sigaction-xnu.internal.h Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
sigaction.h Add chibicc 2020-12-06 16:20:21 -08:00
sigaltstack.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
siginfo.h Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
sigset.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
sigval.h Initial import 2020-06-15 07:18:57 -07:00
sockaddr6.h Add test for ioctl(SIOCGIFCONF) and polyfill on BSDs 2021-06-25 18:44:04 -07:00
stat.h Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
sysinfo.h Initial import 2020-06-15 07:18:57 -07:00
termios.h Initial import 2020-06-15 07:18:57 -07:00
timespec.h Initial import 2020-06-15 07:18:57 -07:00
timeval.h Initial import 2020-06-15 07:18:57 -07:00
tms.h Initial import 2020-06-15 07:18:57 -07:00
user_regs_struct.h Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
utsname.h Initial import 2020-06-15 07:18:57 -07:00
winsize.h Initial import 2020-06-15 07:18:57 -07:00