5ae3331f91145ae0ce30b36e476f49d6f4b3abc7
[paraslash.git] / fd.h
1 /*
2 * Copyright (C) 2006 Andre Noll <maan@systemlinux.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
17 */
18
19 /** \file fd.h exported symbols from fd.c */
20
21 int file_exists(const char *);
22 int para_select(int n, fd_set *readfds, fd_set *writefds,
23 struct timeval *timeout_tv);
24 int mark_fd_nonblock(int fd);
25 void para_fd_set(int fd, fd_set *fds, int *max_fileno);
26 __must_check int para_fread(void *dest, size_t nbytes, size_t nmemb,
27 FILE *stream);
28 __must_check int para_fgets(char *line, int size, FILE *f);
29 int para_fseek(FILE *stream, long offset, int whence);