mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-15 23:29:56 +00:00
Clean up some code
This commit is contained in:
parent
ec3275179f
commit
285c565051
33 changed files with 122 additions and 382 deletions
|
@ -32,6 +32,8 @@ textwindows int sys_close_nt(int fd, int fildes) {
|
|||
if (fd + 0u >= g_fds.n) return ebadf();
|
||||
struct Fd *f = g_fds.p + fd;
|
||||
switch (f->kind) {
|
||||
case kFdEmpty:
|
||||
return ebadf();
|
||||
case kFdFile:
|
||||
void sys_fcntl_nt_lock_cleanup(int);
|
||||
if (_weaken(sys_fcntl_nt_lock_cleanup)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue