Makefile: The linker does not need CPPFLAGS.
[dss.git] / fd.h
1 int dss_chdir(const char *path);
2 int for_each_subdir(int (*func)(const char *, void *), void *private_data);
3 __must_check int mark_fd_nonblocking(int fd);
4 /**
5 * A wrapper for rename(2).
6 *
7 * \param old_path The source path.
8 * \param new_path The destination path.
9 *
10 * \return Standard.
11 *
12 * \sa rename(2).
13 */
14 _static_inline_ int dss_rename(const char *old_path, const char *new_path)
15 {
16 if (rename(old_path, new_path) >= 0)
17 return 1;
18 return -ERRNO_TO_DSS_ERROR(errno);
19 }
20
21 int dss_select(int n, fd_set *readfds, fd_set *writefds,
22 struct timeval *timeout_tv);