fd_util: added API documentation
This commit is contained in:
parent
cac63bfd21
commit
5479ed7cfb
@ -32,21 +32,45 @@
|
|||||||
|
|
||||||
struct sockaddr;
|
struct sockaddr;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Wrapper for open(), which sets to CLOEXEC flag (atomically if
|
||||||
|
* supported by the OS).
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
open_cloexec(const char *path_fs, int flags);
|
open_cloexec(const char *path_fs, int flags);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Wrapper for creat(), which sets to CLOEXEC flag (atomically if
|
||||||
|
* supported by the OS).
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
creat_cloexec(const char *path_fs, int mode);
|
creat_cloexec(const char *path_fs, int mode);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Wrapper for pipe(), which sets to CLOEXEC flag (atomically if
|
||||||
|
* supported by the OS).
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
pipe_cloexec(int fd[2]);
|
pipe_cloexec(int fd[2]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Wrapper for socket(), which sets to CLOEXEC flag (atomically if
|
||||||
|
* supported by the OS).
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
socket_cloexec(int domain, int type, int protocol);
|
socket_cloexec(int domain, int type, int protocol);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Wrapper for accept(), which sets to CLOEXEC flag (atomically if
|
||||||
|
* supported by the OS).
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
accept_cloexec(int fd, struct sockaddr *address, size_t *address_length_r);
|
accept_cloexec(int fd, struct sockaddr *address, size_t *address_length_r);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Wrapper for inotify_init(), which sets to CLOEXEC flag (atomically
|
||||||
|
* if supported by the OS).
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
inotify_init_cloexec(void);
|
inotify_init_cloexec(void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user