mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Make small fixes
This commit is contained in:
parent
80308079ec
commit
ab38f0823d
5 changed files with 7 additions and 6 deletions
|
@ -32,10 +32,7 @@ __msabi extern typeof(CloseHandle) *const __imp_CloseHandle;
|
|||
textwindows bool32 CloseHandle(int64_t hObject) {
|
||||
bool32 ok;
|
||||
ok = __imp_CloseHandle(hObject);
|
||||
if (!ok) {
|
||||
__winerr();
|
||||
if (weaken(__die)) weaken(__die)();
|
||||
}
|
||||
if (!ok) __winerr();
|
||||
NTTRACE("CloseHandle(%ld) → %hhhd% m", hObject, ok);
|
||||
return ok;
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
* both the newly created socket and the server one
|
||||
* @return client fd which needs close(), or -1 w/ errno
|
||||
* @asyncsignalsafe
|
||||
* @restartable (unless SO_RCVTIMEO)
|
||||
*/
|
||||
int accept4(int fd, void *out_addr, uint32_t *inout_addrsize, int flags) {
|
||||
int rc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue