Merge branch 'refs/heads/t/ls-incomplete-duration'
[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 static inline int dss_rename(const char *old_path, const char *new_path)
9 {
10         if (rename(old_path, new_path) >= 0)
11                 return 1;
12         return -ERRNO_TO_DSS_ERROR(errno);
13 }
14
15 int dss_select(int n, fd_set *readfds, fd_set *writefds,
16                 struct timeval *timeout_tv);