mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-25 20:10:29 +00:00
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.
This commit is contained in:
parent
b99512ac58
commit
ff77f2a6af
226 changed files with 708 additions and 2657 deletions
|
@ -127,7 +127,6 @@ scall sys_unlink 0x00a00a00a200a057 0x0b5 globl hidden
|
|||
scall sys_fchmod 0x07c07c07c207c05b 0x034 globl hidden
|
||||
scall sys_fchown 0x07b07b07b207b05d 0x037 globl hidden # @asyncsignalsafe
|
||||
scall sys_umask 0x03c03c03c203c05f 0x0a6 globl hidden
|
||||
scall sys_gettimeofday 0x1a20430742074060 0x0a9 globl hidden # xnu esi/edx=0
|
||||
scall sys_getrlimit 0x0c20c20c220c2061 0x0a3 globl hidden
|
||||
scall __sys_getrusage 0x1bd0130752075062 0x0a5 globl hidden
|
||||
scall sys_sysinfo 0xfffffffffffff063 0x0b3 globl hidden
|
||||
|
@ -251,7 +250,6 @@ scall sys_ktimer_getoverrun 0xffffff0effffffff 0xfff globl # no wrapper
|
|||
scall sys_ktimer_gettime 0xffffff0eefffffff 0xfff globl # no wrapper
|
||||
scall sys_ktimer_settime 0xffffff0edfffffff 0xfff globl # no wrapper
|
||||
scall sys_clock_settime 0x1ac0580e9ffff0e3 0x070 globl hidden # no wrapper
|
||||
scall sys_clock_gettime 0x1ab0570e8ffff0e4 0x071 globl hidden # Linux 2.6+ (c. 2003); XNU uses magic address
|
||||
scall sys_clock_getres 0x1ad0590eaffff0e5 0x072 globl hidden
|
||||
scall sys_mbind 0xfffffffffffff0ed 0x0eb globl # no wrapper; numa numa yeah
|
||||
scall set_mempolicy 0xfffffffffffff0ee 0x0ed globl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue