cosmopolitan/test/libc/thread
Justine Tunney 49b0eaa69f
Improve threading and i/o routines
- On Windows connect() can now be interrupted by a signal; connect() w/
  O_NONBLOCK will now raise EINPROGRESS; and connect() with SO_SNDTIMEO
  will raise ETIMEDOUT after the interval has elapsed.

- We now get the AcceptEx(), ConnectEx(), and TransmitFile() functions
  from the WIN32 API the officially blessed way, using WSAIoctl().

- Do nothing on Windows when fsync() is called on a directory handle.
  This was raising EACCES earlier becaues GENERIC_WRITE is required on
  the handle. It's possible to FlushFileBuffers() a directory handle if
  it's opened with write access but MSDN doesn't document what it does.
  If you have any idea, please let us know!

- Prefer manual reset event objects for read() and write() on Windows.

- Do some code cleanup on our dlmalloc customizations.

- Fix errno type error in Windows blocking routines.

- Make the futex polyfill simpler and faster.
2023-10-12 23:13:04 -07:00
..
async_test.c Make improvements 2023-10-08 08:59:53 -07:00
makecontext_test.c Fix MODE=tiny build 2023-10-10 00:58:47 -07:00
mu_semaphore_sem_test.c Make improvements 2023-09-18 21:04:47 -07:00
nsync_test.c Use *NSYNC for POSIX threads locking APIs 2022-09-11 11:04:50 -07:00
pthread_atfork_test.c Make improvements 2023-09-18 21:04:47 -07:00
pthread_attr_setsigmask_np_test.c Fix some more issues with aarch64 and llama.cpp 2023-05-10 07:34:26 -07:00
pthread_barrier_wait_test.c Make improvements 2023-09-18 21:04:47 -07:00
pthread_cancel_test.c Fix some issues 2023-10-09 20:19:09 -07:00
pthread_cond_signal_test.c Make improvements 2023-09-18 21:04:47 -07:00
pthread_create_test.c Improve stack overflow recovery 2023-10-04 07:35:17 -07:00
pthread_detach_test.c Make improvements 2023-09-18 21:04:47 -07:00
pthread_exit_test.c Make improvements 2022-11-10 21:52:47 -08:00
pthread_key_create_test.c Remove old stack code and improve dirstream 2023-08-16 07:54:40 -07:00
pthread_kill_test.c Improve threading and i/o routines 2023-10-12 23:13:04 -07:00
pthread_rwlock_rdlock_test.c Make improvements 2023-09-18 21:04:47 -07:00
pthread_setname_np_test.c Remove old stack code and improve dirstream 2023-08-16 07:54:40 -07:00
sem_open_test.c Overhaul process spawning 2023-09-10 08:17:44 -07:00
sem_timedwait_test.c Improve posix_spawn() some more 2023-09-12 08:58:57 -07:00
setitimer_test.c Make improvements 2023-09-18 21:04:47 -07:00
test.mk Make improvements 2023-09-18 21:04:47 -07:00