mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
file: fd_(set/get)flags()
This commit is contained in:
@@ -26,6 +26,8 @@ int fd_new(int flags, file_t **file, int *fd);
|
||||
int fd_close(int fd);
|
||||
int fd_dup(int oldfd, int newfd, bool exact, int flags, int *ret);
|
||||
int fd_clone(proc_t *proc);
|
||||
int fd_setflags(int fd, int flags);
|
||||
int fd_getflags(int fd, int *flags);
|
||||
|
||||
#define FILE_LOCK(x) MUTEX_ACQUIRE(&(x)->mutex, false)
|
||||
#define FILE_UNLOCK(x) MUTEX_RELEASE(&(x)->mutex)
|
||||
|
||||
Reference in New Issue
Block a user