fd: duplicate and max_fd

This commit is contained in:
Matheus
2022-09-23 00:25:31 -03:00
parent 4f470fd023
commit 8f2089f912
2 changed files with 90 additions and 1 deletions
+3
View File
@@ -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