mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
fd: change allocation to add a lowest fd option
This commit is contained in:
@@ -46,11 +46,10 @@ typedef struct {
|
||||
typedef struct {
|
||||
int lock;
|
||||
size_t fdcount;
|
||||
uintmax_t firstfreefd;
|
||||
fd_t** fd;
|
||||
} fdtable_t;
|
||||
|
||||
int fd_alloc(fdtable_t* fdtable, fd_t** fd, int* ifd);
|
||||
int fd_alloc(fdtable_t* fdtable, fd_t** fd, int* ifd, int lowest);
|
||||
int fd_free(fdtable_t* fdtable, int ifd);
|
||||
int fd_access(fdtable_t* fdtable, fd_t** fd, int ifd);
|
||||
int fd_release(fd_t* fd);
|
||||
|
||||
Reference in New Issue
Block a user