mirror of
https://github.com/fluencelabs/musl
synced 2025-06-21 10:41:53 +00:00
add posix_close, accepted for inclusion in the next issue of POSIX
this is purely a wrapper for close since Linux does not support EINTR semantics for the close syscall.
This commit is contained in:
@ -35,6 +35,7 @@ extern "C" {
|
||||
int pipe(int [2]);
|
||||
int pipe2(int [2], int);
|
||||
int close(int);
|
||||
int posix_close(int, int);
|
||||
int dup(int);
|
||||
int dup2(int, int);
|
||||
int dup3(int, int, int);
|
||||
@ -200,6 +201,8 @@ int eaccess(const char *, int);
|
||||
#define off64_t off_t
|
||||
#endif
|
||||
|
||||
#define POSIX_CLOSE_RESTART 0
|
||||
|
||||
#define _XOPEN_VERSION 700
|
||||
#define _XOPEN_UNIX 1
|
||||
#define _XOPEN_ENH_I18N 1
|
||||
|
Reference in New Issue
Block a user