2 * Copyright (C) 2006-2010 Andre Noll <maan@tuebingen.mpg.de>
4 * Licensed under the GPL v2. For licencing details see COPYING.
6 int for_each_subdir(int (*func)(const char *, void *), void *private_data);
7 __must_check int mark_fd_nonblocking(int fd);
9 * A wrapper for rename(2).
11 * \param old_path The source path.
12 * \param new_path The destination path.
18 _static_inline_ int dss_rename(const char *old_path, const char *new_path)
20 if (rename(old_path, new_path) >= 0)
22 return -ERRNO_TO_DSS_ERROR(errno);
25 int dss_select(int n, fd_set *readfds, fd_set *writefds,
26 struct timeval *timeout_tv);