X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=fd.h;h=806f8942aaf7e68bad271f521e7f5cc9720292f7;hp=fa14ad2bdf1221872a5417b7ee0e90e5effac1b7;hb=1e77c93a4da4dae8b75fcd305552e56ccae89b90;hpb=c418d2188c9c2c542270023d6fc3bc6cf34f8d29 diff --git a/fd.h b/fd.h index fa14ad2..806f894 100644 --- a/fd.h +++ b/fd.h @@ -1,3 +1,8 @@ +/* + * Copyright (C) 2006-2009 Andre Noll + * + * Licensed under the GPL v2. For licencing details see COPYING. + */ int dss_chdir(const char *path); int for_each_subdir(int (*func)(const char *, void *), void *private_data); __must_check int mark_fd_nonblocking(int fd); @@ -13,11 +18,10 @@ __must_check int mark_fd_nonblocking(int fd); */ _static_inline_ int dss_rename(const char *old_path, const char *new_path) { - int ret; - if (rename(old_path, new_path) >= 0) return 1; - ret = -ERRNO_TO_DSS_ERROR(errno); - make_err_msg("rename %s -> %s failed", old_path, new_path); - return ret; + return -ERRNO_TO_DSS_ERROR(errno); } + +int dss_select(int n, fd_set *readfds, fd_set *writefds, + struct timeval *timeout_tv);