cosmopolitan/libc/nt
Joshua Wierenga 4381b3d925
Get cosmopolitation working on Vista again (#635)
* Fixes virtual memory support for Windows Vista/7/8

Fixes file desciptor and zipos virtual memory sizes given that old versions of windows limit their user virtual memory space to 8tb.
Includes some changes from b69f3d2488 and 6f7d0cb1c3 in preparation for potentially using them on old windows and because it avoids duplicating addresses everywhere.

* Optimise windows version checking

Added GetNtMinorVersion() and IsAtleastWindows8p1() macros which get nt version info from the peb.

* Planned nsync memory region for old windows

Added nsync regon start and size macros that can switch to smaller values on old windows, just like previous fds and zipos change.
2022-10-04 01:20:39 -07:00
..
advapi32 Remove ANSI WIN32 functions and undocumented ADVAPI32 2022-08-15 09:01:40 -07:00
comdlg32 Delete most undocumented New Technology APIs 2022-04-11 23:41:12 -07:00
enum Polyfill statfs() and fstatfs() on Windows 2022-08-17 19:01:51 -07:00
gdi32 Unbloat the build 2022-08-11 00:15:29 -07:00
iphlpapi Add ioctl(SIOCGIFxxx) support (#197) 2021-06-24 10:53:27 -07:00
kernel32 Fix POSIX advisory locks on Windows 2022-09-15 12:44:00 -07:00
MsWSock Delete most undocumented New Technology APIs 2022-04-11 23:41:12 -07:00
nt Correct more typos (#500) 2022-07-21 20:53:30 -07:00
ntdll Unbloat the build 2022-08-11 00:15:29 -07:00
pdh Fix some win32 definitions 2022-03-22 19:54:36 -07:00
PowrProf Make more fixes and improvements 2022-04-21 13:44:59 -07:00
psapi Fix some win32 definitions 2022-03-22 19:54:36 -07:00
struct Polyfill statfs() and fstatfs() on Windows 2022-08-17 19:01:51 -07:00
thunk Make improvements 2022-04-24 10:06:05 -07:00
typedef Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
url Delete most undocumented New Technology APIs 2022-04-11 23:41:12 -07:00
user32 Unbloat the build 2022-08-11 00:15:29 -07:00
ws2_32 Make fixes and improvements 2022-06-25 21:09:09 -07:00
accounting.h Make improvements 2022-05-28 00:28:09 -07: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 Rewrite recursive mutex code 2022-09-10 09:18:52 -07: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 Improve synchronization 2022-04-15 15:31:55 -07:00
debug.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
dll.h Make numerous improvements 2021-09-28 01:52:34 -07:00
efi.h Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
errors.h Make improvements 2022-04-24 10:06:05 -07:00
events.h Delete most undocumented New Technology APIs 2022-04-11 23:41:12 -07:00
files.h Polyfill statfs() and fstatfs() on Windows 2022-08-17 19:01:51 -07:00
iocp.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
ipc.h Improve synchronization 2022-04-15 15:31:55 -07:00
iphlpapi.h Add test for ioctl(SIOCGIFCONF) and polyfill on BSDs 2021-06-25 18:44:04 -07:00
master.sh Fix POSIX advisory locks on Windows 2022-09-15 12:44:00 -07:00
memory.h Get life.com in MODE=tiny back down to 12kb 2022-03-23 08:09:01 -07:00
messagebox.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
nt.mk Reduce build graph by another 14 percent 2022-08-17 20:01:21 -07:00
ntdll.h Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
ntdllimport.h Reduce build graph by another 14 percent 2022-08-17 20:01:21 -07: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
pdh.h Fix some win32 definitions 2022-03-22 19:54:36 -07:00
pedef.internal.h Add UEFI support 2021-02-21 21:33:04 -08:00
privilege.h Fix some win32 definitions 2022-03-22 19:54:36 -07:00
process.h Make more compatibility improvements 2022-09-06 07:04:13 -07:00
registry.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
runtime.h Import C++ Standard Template Library 2022-03-22 06:41:54 -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 Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
system.h Improve isystem includes and magic numbers 2021-08-14 23:36:36 -07: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 Improve threading support further 2022-05-17 04:14:28 -07:00
version.h Get cosmopolitation working on Vista again (#635) 2022-10-04 01:20:39 -07:00
windows.h Add ioctl(SIOCGIFxxx) support (#197) 2021-06-24 10:53:27 -07:00
winsock.h Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00