X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=file.h;h=d8f1092ee18d78544aedbfdf3a75732161e50532;hp=c462b1084cdd77cbb7f14c47b3066559d2a52019;hb=45ae697d187c12a7ed40ae71b6a8adeda4b32b6c;hpb=15eb99dcf9a30f8c8d488d5bc3c92130cf828d60 diff --git a/file.h b/file.h index c462b10..d8f1092 100644 --- a/file.h +++ b/file.h @@ -1,22 +1,7 @@ -/* - * Copyright (C) 2006-2010 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ -int dss_chdir(const char *path); +/* SPDX-License-Identifier: GPL-2.0 */ int for_each_subdir(int (*func)(const char *, void *), void *private_data); __must_check int mark_fd_nonblocking(int fd); -/** - * A wrapper for rename(2). - * - * \param old_path The source path. - * \param new_path The destination path. - * - * \return Standard. - * - * \sa rename(2). - */ -_static_inline_ int dss_rename(const char *old_path, const char *new_path) +static inline int dss_rename(const char *old_path, const char *new_path) { if (rename(old_path, new_path) >= 0) return 1;