diff options
Diffstat (limited to 'kernel/tests/include/lapi/renameat.h')
-rw-r--r-- | kernel/tests/include/lapi/renameat.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/kernel/tests/include/lapi/renameat.h b/kernel/tests/include/lapi/renameat.h new file mode 100644 index 0000000..66d3e21 --- /dev/null +++ b/kernel/tests/include/lapi/renameat.h @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (c) International Business Machines Corp., 2007 + * Copyright (c) 2014 Fujitsu Ltd. + */ + +#ifndef RENAMEAT_H +#define RENAMEAT_H + +#include <sys/types.h> +#include "config.h" +#include "lapi/syscalls.h" + +#if !defined(HAVE_RENAMEAT) +int renameat(int olddirfd, const char *oldpath, int newdirfd, + const char *newpath) +{ + return ltp_syscall(__NR_renameat, olddirfd, oldpath, newdirfd, + newpath); +} +#endif + +#endif /* RENAMEAT_H */ |