cosmopolitan/libc/sock
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
..
struct Make improvements 2023-09-21 07:30:39 -07:00
accept-nt.c Fix warnings 2023-09-01 20:50:18 -07:00
accept.c Make more fixes and improvements 2023-07-29 18:44:15 -07:00
accept4-sysv.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
accept4.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
alg.h Perform build and magnum tuning 2021-08-10 10:26:13 -07:00
asanmsghdr.c Make considerably more progress on AARCH64 2023-05-12 22:42:57 -07:00
basesocket.c Improve synchronization 2022-04-15 15:31:55 -07:00
bind-nt.c Clean up more WIN32 APIs 2023-08-01 14:17:03 -07:00
bind-sysv.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
bind.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
closesocket-nt.c Fix flakes in runitd and popen_test 2023-07-30 04:26:34 -07:00
connect-nt.c Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00
connect-sysv.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
connect.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
dupsockfd.c Fix flakes in runitd and popen_test 2023-07-30 04:26:34 -07:00
epoll.c Fix some zipos directory related bugs 2023-09-19 02:30:42 -07:00
epoll.h Port a lot more code to AARCH64 2023-05-14 09:37:26 -07:00
fixupnewsockfd.c Support non-blocking i/o across platforms 2023-07-23 02:56:47 -07:00
gethostips.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
getsockname.c Clean up more WIN32 APIs 2023-08-01 14:17:03 -07:00
getsockopt-nt.c Fix flakes in runitd and popen_test 2023-07-30 04:26:34 -07:00
getsockopt.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
goodsocket.c Mint APE Loader v1.4 2023-07-25 05:48:08 -07:00
goodsocket.internal.h Refactor out some duplicated code 2021-08-14 06:17:56 -07:00
inet_addr.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
inet_aton.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
inet_ntoa.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
inet_ntop.c Fix warnings 2023-09-01 20:50:18 -07:00
inet_pton.c Fix warnings 2023-09-01 20:50:18 -07:00
internal.h Make improvements 2023-09-06 12:34:59 -07:00
iovec2nt.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ipclassify.internal.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
kntwsadata.c Make improvements 2023-09-18 21:04:47 -07:00
listen-nt.c Fix flakes in runitd and popen_test 2023-07-30 04:26:34 -07:00
listen.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
parseport.c Add protoent and netent (#209) 2021-07-10 12:36:35 -07:00
pselect.c Make improvements 2023-10-03 06:17:16 -07:00
recv-nt.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
recv.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
recvfrom-nt.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
recvfrom.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
recvmsg.c Make the Windows Console work better 2023-09-07 18:27:22 -07:00
select-nt.c Make improvements 2023-09-21 07:30:39 -07:00
select.c Make improvements 2023-10-03 06:17:16 -07:00
select.h Make improvements 2023-09-06 12:34:59 -07:00
select.internal.h Make improvements 2023-09-21 07:30:39 -07:00
send-nt.c Make forking off threads reliable on Windows 2023-07-30 09:32:41 -07:00
send.c Fix warnings 2023-09-01 20:50:18 -07:00
sendfile.c Make improvements 2023-09-21 07:30:39 -07:00
sendfile.internal.h Remove _Hide keyword 2023-07-24 08:34:58 -07:00
sendmsg.c Make improvements 2023-08-21 02:34:17 -07:00
sendto-nt.c Make forking off threads reliable on Windows 2023-07-30 09:32:41 -07:00
sendto.c Fix warnings 2023-09-01 20:50:18 -07:00
setsockopt-nt.c Fix warnings 2023-09-01 20:50:18 -07:00
setsockopt.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
shutdown-nt.c Fix flakes in runitd and popen_test 2023-07-30 04:26:34 -07:00
shutdown.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
sock.h Make improvements 2023-09-18 21:04:47 -07:00
sock.mk Clean up more code 2023-06-18 01:00:05 -07:00
sockaddr.c Fix some more socket bugs 2023-07-23 16:31:10 -07:00
sockaddr2bsd.c Fix some more socket bugs 2023-07-23 16:31:10 -07:00
sockaddr2linux.c Fix some more socket bugs 2023-07-23 16:31:10 -07:00
sockatmark.c Improve zip read-only filesystem 2023-08-16 17:52:12 -07:00
sockdebug.c Fix warnings 2023-09-01 20:50:18 -07:00
socket-nt.c Emulate ENOTDIR better 2023-08-16 20:11:23 -07:00
socket-sysv.c Fix socket() EPROTONOSUPPORT fallback on MacOS 2023-08-22 14:34:37 -07:00
socket.c Make more fixes and improvements 2023-07-29 18:44:15 -07:00
socketpair-nt.c Avoid leaking handles across processes 2023-09-12 01:07:51 -07:00
socketpair-sysv.c Perform fine-tuning of socketpair and pipe 2021-03-16 22:44:54 -07:00
socketpair.c Strengthen the pledge() polyfill 2022-06-27 13:02:17 -07:00
sys_sendfile_freebsd.S Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
sys_sendfile_xnu.S Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
syscall_fd.internal.h Make the Windows Console work better 2023-09-07 18:27:22 -07:00
syslog.c Fix warnings 2023-09-01 20:50:18 -07:00
syslog.h Add more missing libc functionality 2022-08-06 10:50:51 -07:00
winsockblock.c Make fixes and improvements 2022-06-25 21:09:09 -07:00
wsablock.c Make improvements 2023-09-21 07:30:39 -07:00
yoink.inc Mint APE Loader v1.5 2023-07-26 13:54:49 -07:00