cosmopolitan/libc/nt
Justine Tunney 417797d218 Support dirfd relative iops on Windows
We always favor calling functions like openat(), fstatat(), etc. because
Linux, XNU, FreeBSD, and OpenBSD all elected to support them, while some
systems like Android love them so much, that they stopped supporting the
old interfaces.

This change ensures that when dirfd is actually a dirfd and not AT_FDCWD
we'll do the right thing on Windows NT. We use an API that's been around
since Vista to accomplish that.

This change also adds exponential backoff to chdir() on Windows since it
seems almost as flaky on Windows 7 as the rmdir() function.
2021-01-30 01:49:43 -08:00
..
advapi32 Fix Windows 7 support (#19) 2020-12-28 13:52:02 -08:00
comdlg32 Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
enum Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
gdi32 Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
kernel32 Fix fork() on Windows after chdir() 2021-01-29 23:19:29 -08:00
KernelBase Fix Windows 7 support (#19) 2020-12-28 13:52:02 -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 Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
shell32 Initial import 2020-06-15 07:18:57 -07:00
struct Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08: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 Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
ws2_32 Add epoll and do more release readiness changes 2020-11-28 12:01:51 -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
errors.h Initial import 2020-06-15 07:18:57 -07:00
events.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08: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
master.sh Fix fork() on Windows after chdir() 2021-01-29 23:19:29 -08:00
memory.h Avoid mapping above 4gb on Windows 7 x64 (#19) 2021-01-16 19:18:37 -08:00
messagebox.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
nt.mk Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
ntdll.h Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
ntdllimport.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
ntdllimport.S Change license 2020-12-27 17:18:44 -08:00
paint.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
pedef.internal.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -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 chibicc 2020-12-06 16:20:21 -08: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 Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
systeminfo.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
sysv2nt.s Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
thread.h Add chibicc 2020-12-06 16:20:21 -08:00
windows.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
winsock.h Further refine documentation 2020-12-27 17:05:03 -08:00