2 * Copyright (C) 2006-2008 Andre Noll <maan@systemlinux.org>
4 * Licensed under the GPL v2. For licencing details see COPYING.
6 int dss_chdir(const char *path);
7 int for_each_subdir(int (*func)(const char *, void *), void *private_data);
8 __must_check int mark_fd_nonblocking(int fd);
10 * A wrapper for rename(2).
12 * \param old_path The source path.
13 * \param new_path The destination path.
19 _static_inline_ int dss_rename(const char *old_path, const char *new_path)
21 if (rename(old_path, new_path) >= 0)
23 return -ERRNO_TO_DSS_ERROR(errno);
26 int dss_select(int n, fd_set *readfds, fd_set *writefds,
27 struct timeval *timeout_tv);