cosmopolitan/libc/nt
Justine Tunney ff77f2a6af
Make improvements
- This change fixes a bug that allowed unbuffered printf() output (to
  streams like stderr) to be truncated. This regression was introduced
  some time between now and the last release.

- POSIX specifies all functions as thread safe by default. This change
  works towards cleaning up our use of the @threadsafe / @threadunsafe
  documentation annotations to reflect that. The goal is (1) to use
  @threadunsafe to document functions which POSIX say needn't be thread
  safe, and (2) use @threadsafe to document functions that we chose to
  implement as thread safe even though POSIX didn't mandate it.

- Tidy up the clock_gettime() implementation. We're now trying out a
  cleaner approach to system call support that aims to maintain the
  Linux errno convention as long as possible. This also fixes bugs that
  existed previously, where the vDSO errno wasn't being translated
  properly. The gettimeofday() system call is now a wrapper for
  clock_gettime(), which reduces bloat in apps that use both.

- The recently-introduced improvements to the execute bit on Windows has
  had bugs fixed. access(X_OK) on a directory on Windows now succeeds.
  fstat() will now perform the MZ/#! ReadFile() operation correctly.

- Windows.h is no longer included in libc/isystem/, because it confused
  PCRE's build system into thinking Cosmopolitan is a WIN32 platform.
  Cosmo's Windows.h polyfill was never even really that good, since it
  only defines a subset of the subset of WIN32 APIs that Cosmo defines.

- The setlongerjmp() / longerjmp() APIs are removed. While they're nice
  APIs that are superior to the standardized setjmp / longjmp functions,
  they weren't superior enough to not be dead code in the monorepo. If
  you use these APIs, please file an issue and they'll be restored.

- The .com appending magic has now been removed from APE Loader.
2023-10-03 06:17:16 -07:00
..
advapi32 Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
API-MS-Win-Core-Synch-l1-2-0 Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
comdlg32 Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
enum Make improvements 2023-09-21 07:30:39 -07:00
gdi32 Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
iphlpapi Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
kernel32 Make improvements 2023-10-03 06:17:16 -07:00
MsWSock Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
nt Fix warnings 2023-09-01 20:50:18 -07:00
ntdll Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
pdh Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
PowrProf Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
psapi Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
struct Rewrite Windows console input handling 2023-09-19 11:53:27 -07:00
thunk Make improvements 2023-09-18 21:04:47 -07:00
typedef Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
user32 Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
ws2_32 Clean up more WIN32 APIs 2023-08-01 14:17:03 -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 Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
comdlg.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
comms.h Make fixes and improvements 2022-10-19 07:19:19 -07:00
console.h Rewrite Windows console input handling 2023-09-19 11:53:27 -07:00
createfile.h Fix warnings 2023-09-01 20:50:18 -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 progress towards aarch64 build 2023-05-10 04:20:46 -07:00
errors.h Run clang-format on most sources 2023-04-27 05:44:32 -07:00
events.h Make improvements 2023-09-06 12:34:59 -07:00
files.h Make improvements 2023-09-18 21:04:47 -07:00
iocp.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
ipc.h Make improvements for Actually Portable Emacs 2023-08-19 06:44:58 -07:00
iphlpapi.h Add test for ioctl(SIOCGIFCONF) and polyfill on BSDs 2021-06-25 18:44:04 -07:00
master.sh Make improvements 2023-10-03 06:17:16 -07:00
memory.h Make improvements 2023-09-06 12:34:59 -07:00
messagebox.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
nt.mk Remove 5000 WIN32 APIs 2023-07-28 14:32:34 -07:00
ntdll.h Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
ntdllimport.h Get LIBC_RUNTIME and LIBC_CALLS building on aarch64 2023-05-10 04:20:47 -07:00
ntdllimport.S Introduce new linker for fat ape binaries 2023-08-11 04:39:19 -07: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 Introduce new linker for fat ape binaries 2023-08-11 04:39:19 -07:00
privilege.h Fix some win32 definitions 2022-03-22 19:54:36 -07:00
process.h Rewrite Windows console input handling 2023-09-19 11:53:27 -07:00
registry.h Make improvements 2023-09-06 12:34:59 -07:00
runtime.h Make improvements 2023-09-18 21:04:47 -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 improvements 2023-09-06 12:34:59 -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 Make progress towards aarch64 build 2023-05-10 04:20:46 -07:00
thread.h Make improvements 2023-09-18 21:04:47 -07:00
version.h Fix POLLIN|POLLOUT when together on Windows 2023-08-08 10:33:52 -07:00
windows.h Run clang-format on most sources 2023-04-27 05:44:32 -07:00
winsock.h Make improvements 2023-09-06 12:34:59 -07:00