293 |
/* Set non-blocking mode on a file descriptor */ |
/* Set non-blocking mode on a file descriptor */ |
294 |
int m_fd_set_non_block(int fd); |
int m_fd_set_non_block(int fd); |
295 |
|
|
296 |
|
/* Map a memory zone from a file */ |
297 |
|
u_char *memzone_map_file(int fd,size_t len); |
298 |
|
|
299 |
|
/* Map a memory zone from a file, with copy-on-write (COW) */ |
300 |
|
u_char *memzone_map_cow_file(int fd,size_t len); |
301 |
|
|
302 |
|
/* Create a file to serve as a memory zone */ |
303 |
|
int memzone_create_file(char *filename,size_t len,u_char **ptr); |
304 |
|
|
305 |
|
/* Open a file to serve as a COW memory zone */ |
306 |
|
int memzone_open_cow_file(char *filename,size_t len,u_char **ptr); |
307 |
|
|
308 |
|
/* Open a file and map it in memory */ |
309 |
|
int memzone_open_file(char *filename,u_char **ptr,off_t *fsize); |
310 |
|
|
311 |
|
/* Compute NVRAM checksum */ |
312 |
|
m_uint16_t nvram_cksum(m_uint16_t *ptr,size_t count); |
313 |
|
|
314 |
#endif |
#endif |