projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
implement hcreate_r, hdestroy_r and hsearch_r
[oweals/musl.git]
/
src
/
unistd
/
close.c
1
#include <unistd.h>
2
#include <errno.h>
3
#include "syscall.h"
4
#include "libc.h"
5
6
int close(int fd)
7
{
8
int r = __syscall_cp(SYS_close, fd);
9
if (r == -EINTR) r = -EINPROGRESS;
10
return __syscall_ret(r);
11
}