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
);
5 * A wrapper for rename(2).
7 * \param old_path The source path.
8 * \param new_path The destination path.
14 _static_inline_
int dss_rename(const char *old_path
, const char *new_path
)
18 if (rename(old_path
, new_path
) >= 0)
20 ret
= -ERRNO_TO_DSS_ERROR(errno
);
21 make_err_msg("rename %s -> %s failed", old_path
, new_path
);
25 int dss_select(int n
, fd_set
*readfds
, fd_set
*writefds
,
26 struct timeval
*timeout_tv
);