17#define __FILENO_MAX 1024
19#define __IS_FD_VALID(FD) \
20 ( (FD >= 0) && (FD < __FILENO_MAX) && (__descriptormap[FD] != NULL) )
22#define __IS_FD_OF_TYPE(FD, TYPE) \
23 ( (__IS_FD_VALID(FD)) && (__descriptormap[FD]->type == TYPE) )
void __fdman_release_descriptor(int fd)
int __fdman_get_dup_descriptor(int fd)
#define __FILENO_MAX
Definition fdman.h:17
int __fdman_get_new_descriptor()
__descriptormap_type * __descriptormap[__FILENO_MAX]
__fdman_fd_types
Definition fdman.h:25
@ __DESCRIPTOR_TYPE_TTY
Definition fdman.h:30
@ __DESCRIPTOR_TYPE_PIPE
Definition fdman.h:28
@ __DESCRIPTOR_TYPE_FILE
Definition fdman.h:26
@ __DESCRIPTOR_TYPE_SOCKET
Definition fdman.h:29
@ __DESCRIPTOR_TYPE_FOLDER
Definition fdman.h:27
float x
Definition psptypes.h:0
char * filename
Definition fdman.h:37
uint32_t ref_count
Definition fdman.h:36
uint32_t descriptor
Definition fdman.h:34
uint32_t flags
Definition fdman.h:35
uint8_t type
Definition fdman.h:38