mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 05:38:21 +00:00
fd: duplicate and max_fd
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
#define O_RSYNC 04010000
|
||||
#define O_TMPFILE 020000000
|
||||
|
||||
#define MAX_FD 512
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
@@ -54,5 +56,6 @@ int fd_access(fdtable_t* fdtable, fd_t** fd, int ifd);
|
||||
int fd_release(fd_t* fd);
|
||||
int fd_tableinit(fdtable_t* fdtable);
|
||||
int fd_tableclone(fdtable_t* source, fdtable_t* dest);
|
||||
int fd_duplicate(fdtable_t* table, int src, int dest, int type, int* ret);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user