new option database-root
[adu.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 \brief Exported symbols from fd.c */
8
9 int adu_opendir(const char *dirname, DIR **dir, int *cwd);
10 int adu_fchdir(int fd);
11 int mmap_full_file(const char *filename, int open_mode, void **map,
12 size_t *size, int *fd_ptr);
13 int adu_munmap(void *start, size_t length);
14 int adu_write_file(const char *filename, const void *buf, size_t size);
15 int mkpath(const char *p, mode_t mode);