Update .gitignore.
[dss.git] / file.h
1 /*
2 * Copyright (C) 2006-2010 Andre Noll <maan@tuebingen.mpg.de>
3 *
4 * Licensed under the GPL v2. For licencing details see COPYING.
5 */
6 int for_each_subdir(int (*func)(const char *, void *), void *private_data);
7 __must_check int mark_fd_nonblocking(int fd);
8 /**
9 * A wrapper for rename(2).
10 *
11 * \param old_path The source path.
12 * \param new_path The destination path.
13 *
14 * \return Standard.
15 *
16 * \sa rename(2).
17 */
18 _static_inline_ int dss_rename(const char *old_path, const char *new_path)
19 {
20 if (rename(old_path, new_path) >= 0)
21 return 1;
22 return -ERRNO_TO_DSS_ERROR(errno);
23 }
24
25 int dss_select(int n, fd_set *readfds, fd_set *writefds,
26 struct timeval *timeout_tv);