summaryrefslogtreecommitdiffstats
path: root/kernel/tests/include/lapi/renameat.h
blob: 66d3e214014df7eca4895eb47c5fdc7ec6df1c88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 */