mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-05 04:02:28 +00:00
Rewrite Windows connect()
Our old code wasn't working with projects like Qt that call connect() in O_NONBLOCK mode multiple times. This change overhauls connect() to use a simpler WSAConnect() API and follows the same pattern as cosmo accept(). This change also reduces the binary footprint of read(), which no longer needs to depend on our enormous clock_gettime() function.
This commit is contained in:
parent
5469202ea8
commit
e142124730
25 changed files with 556 additions and 277 deletions
|
@ -25,6 +25,7 @@ int sys_sem_timedwait(int64_t, const struct timespec *);
|
|||
int sys_utimensat(int, const char *, const struct timespec[2], int);
|
||||
int sys_utimensat_nt(int, const char *, const struct timespec[2], int);
|
||||
int sys_utimensat_old(int, const char *, const struct timespec[2], int);
|
||||
struct timespec sys_clock_gettime_monotonic_nt(void);
|
||||
|
||||
const char *_DescribeTimespec(char[45], int, const struct timespec *);
|
||||
#define DescribeTimespec(rc, ts) _DescribeTimespec(alloca(45), rc, ts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue