1 #ifndef _IPXE_POSIX_IO_H 2 #define _IPXE_POSIX_IO_H 15 #define POSIX_FD_MIN ( 1 ) 18 #define POSIX_FD_MAX ( 31 ) 23 extern int open (
const char *uri_string );
27 extern int close (
int fd );
70 return ( *
set & ( 1 << fd ) );
int open(const char *uri_string)
Open file.
ssize_t read(int fd, void *buf, size_t len)
Read data from file.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static __attribute__((always_inline)) void FD_ZERO(fd_set *set)
Zero a file descriptor set.
uint32_t fd_set
File descriptor set as used for select()
int select(fd_set *readfds, int wait)
Check file descriptors for readiness.
ssize_t fsize(int fd)
Determine file size.
int close(int fd)
Close file.