cosmopolitan/test/posix
Justine Tunney 87a6669900
Make more Windows socket fixes and improvements
This change makes send() / sendto() always block on Windows. It's needed
because poll(POLLOUT) doesn't guarantee a socket is immediately writable
on Windows, and it caused rsync to fail because it made that assumption.
The only exception is when a SO_SNDTIMEO is specified which will EAGAIN.

Tests are added confirming MSG_WAITALL and MSG_NOSIGNAL work as expected
on all our supported OSes. Most of the platform-specific MSG_FOO magnums
have been deleted, with the exception of MSG_FASTOPEN. Your --strace log
will now show MSG_FOO flags as symbols rather than numbers.

I've also removed cv_wait_example_test because it's 0.3% flaky with Qemu
under system load since it depends on a process being readily scheduled.
2024-09-18 20:29:42 -07:00
..
accept4_nonblock_test.c Rewrite Windows accept() 2024-09-12 04:23:38 -07:00
accept_inherit_nonblock_test.c Rewrite Windows accept() 2024-09-12 04:23:38 -07:00
accept_poll_test.c Rewrite Windows accept() 2024-09-12 04:23:38 -07:00
atoi_test.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
BUILD.mk Rewrite Windows accept() 2024-09-12 04:23:38 -07:00
connect_nonblock_test.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
exit_async_signal_safety_test.c Demonstrate signal safety of recursive mutexes 2024-07-04 02:47:52 -07:00
file_offset_exec_prog.c Share file offset across execve() on Windows 2024-08-03 17:48:00 -07:00
file_offset_exec_test.c Share file offset across execve() on Windows 2024-08-03 17:48:00 -07:00
file_offset_fork_test.c Share file offset across execve() on Windows 2024-08-03 17:48:00 -07:00
fread3gb_test.c Add some noexcept annotations 2024-06-01 03:19:53 -07:00
iconv_utf8_utf16_test.c Update Musl Libc code 2024-07-30 22:51:29 -07:00
iconv_utf8_utf32_test.c Update Musl Libc code 2024-07-30 22:51:29 -07:00
listen_timeout_test.c Rewrite Windows connect() 2024-09-12 23:07:52 -07:00
lowest_fd_test.c Fix file descriptor assignment issues on Windows 2024-09-15 22:16:38 -07:00
mask_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
msg_nosignal_test.c Make more Windows socket fixes and improvements 2024-09-18 20:29:42 -07:00
msg_waitall_test.c Make more Windows socket fixes and improvements 2024-09-18 20:29:42 -07:00
mutex_async_signal_safety_test.c Make recursive mutexes faster 2024-09-10 00:08:59 -07:00
nonblock_pipe2_test.c Rewrite Windows accept() 2024-09-12 04:23:38 -07:00
nonblock_pipe_test.c Rewrite Windows accept() 2024-09-12 04:23:38 -07:00
pthread_process_shared_test.c Add unit test for process shared conditions 2024-07-22 18:48:54 -07:00
reentrant_signal_test.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
sa_resethand2_test.c Fix --ftrace on Windows 2024-01-01 00:00:42 -08:00
sa_resethand_test.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
sigchld_test.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
signal_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
signal_torture_read_test.c Make read() and write() signal handling atomic 2024-09-15 01:18:27 -07:00
socket_fionread_test.c Fix ioctl() and FIONREAD for sockets on Windows 2024-09-13 01:47:33 -07:00
socket_timeout_signal_test.c Reveal another Qemu bug 2024-09-17 01:31:55 -07:00
strtol_test.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
unnamed_semaphore_test.c Speed up unnamed POSIX semaphores 2024-09-13 06:25:27 -07:00
writev_test.c Slightly optimize iovec on Windows 2024-09-16 21:36:22 -07:00