Initial git import.
[osl.git] / fd.h
1 /*
2 * Copyright (C) 2006-2008 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 write_all(int fd, const char *buf, size_t *len);
10 int para_open(const char *path, int flags, mode_t mode);
11 int para_opendir(const char *dirname, DIR **dir, int *cwd);
12 int para_mkdir(const char *path, mode_t mode);
13 int para_fchdir(int fd);
14 int mmap_full_file(const char *filename, int open_mode, void **map,
15 size_t *size, int *fd_ptr);
16 int para_munmap(void *start, size_t length);