cosmopolitan/libc/nt
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
..
advapi32 Add SSL to redbean 2021-06-24 13:20:50 -07:00
comdlg32 Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
enum Add SSL to redbean 2021-06-24 13:20:50 -07:00
gdi32 Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
iphlpapi Add ioctl(SIOCGIFxxx) support (#197) 2021-06-24 10:53:27 -07:00
kernel32 Add SSL to redbean 2021-06-24 13:20:50 -07:00
KernelBase Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
MsWSock Initial import 2020-06-15 07:18:57 -07:00
netapi32 Initial import 2020-06-15 07:18:57 -07:00
nt Improve documentation 2020-12-27 07:02:35 -08:00
ntdll Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
shell32 Initial import 2020-06-15 07:18:57 -07:00
struct Add test for ioctl(SIOCGIFCONF) and polyfill on BSDs 2021-06-25 18:44:04 -07:00
thunk Auto-generate some documentation 2020-12-26 02:09:07 -08:00
typedef Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
url Initial import 2020-06-15 07:18:57 -07:00
user32 Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
ws2_32 Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
accounting.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
automation.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
codegen.h Make improvements 2020-12-01 03:43:40 -08:00
codegen.sh Change license 2020-12-27 17:18:44 -08:00
comdlg.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
console.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
createfile.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
debug.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
dll.h Fix fork() on Windows after chdir() 2021-01-29 23:19:29 -08:00
efi.h Support malloc() on bare metal 2021-02-24 00:53:24 -08:00
errors.h Add SSL to redbean 2021-06-24 13:20:50 -07:00
events.h Implement syslog (#136) 2021-04-01 19:32:39 -07:00
files.h Support dirfd relative iops on Windows 2021-01-30 01:49:43 -08:00
iocp.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
ipc.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
iphlpapi.h Add test for ioctl(SIOCGIFCONF) and polyfill on BSDs 2021-06-25 18:44:04 -07:00
master.sh Add SSL to redbean 2021-06-24 13:20:50 -07:00
memory.h Add SSL to redbean 2021-06-24 13:20:50 -07:00
messagebox.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
nt.mk Add SSL to redbean 2021-06-24 13:20:50 -07:00
ntdll.h Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
ntdllimport.h Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ntdllimport.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
paint.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
pedef.internal.h Add UEFI support 2021-02-21 21:33:04 -08:00
privilege.h Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
process.h Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
registry.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
runtime.h Add SSL to redbean 2021-06-24 13:20:50 -07:00
signals.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
startupinfo.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
synchronization.h Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
systeminfo.h Fix cosmopolitan.h for C++ 2021-02-01 04:04:44 -08:00
sysv2nt.s Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
thread.h Add chibicc 2020-12-06 16:20:21 -08:00
windows.h Add ioctl(SIOCGIFxxx) support (#197) 2021-06-24 10:53:27 -07:00
winsock.h Add ioctl(SIOCGIFxxx) support (#197) 2021-06-24 10:53:27 -07:00