06_Unix-Domain-Sockets.diff
[paraslash.git] / fd.h
1 /*
2  * Copyright (C) 2006-2007 Andre Noll <maan@systemlinux.org>
3  *
4  * Licensed under the GPL v2. For licencing details see COPYING.
5  */
6
7 /** \file fd.h exported symbols from fd.c */
8
9 int file_exists(const char *);
10 int para_select(int n, fd_set *readfds, fd_set *writefds,
11                 struct timeval *timeout_tv);
12 int mark_fd_nonblocking(int fd);
13 int mark_fd_blocking(int fd);
14 void para_fd_set(int fd, fd_set *fds, int *max_fileno);
15 __must_check int para_fgets(char *line, int size, FILE *f);
16 void *para_mmap(size_t length, int prot, int flags, int fd, off_t offset);
17 int para_open(const char *path, int flags, mode_t mode);
18 int para_opendir(const char *dirname, DIR **dir, int *cwd);
19 int para_mkdir(const char *path, mode_t mode);
20 int para_fchdir(int fd);
21 int para_chdir(const char *path);
22 int mmap_full_file(const char *filename, int open_mode, void **map,
23         size_t *size, int *fd_ptr);
24 int para_munmap(void *start, size_t length);
25 int write_ok(int fd);