• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) International Business Machines  Corp., 2007
4  * Copyright (c) 2014 Fujitsu Ltd.
5  */
6 
7 #ifndef LAPI_RENAMEAT_H__
8 #define LAPI_RENAMEAT_H__
9 
10 #include <sys/types.h>
11 #include "config.h"
12 #include "lapi/syscalls.h"
13 
14 #if !defined(HAVE_RENAMEAT)
renameat(int olddirfd,const char * oldpath,int newdirfd,const char * newpath)15 static inline int renameat(int olddirfd, const char *oldpath, int newdirfd,
16                            const char *newpath)
17 {
18 	return ltp_syscall(__NR_renameat, olddirfd, oldpath, newdirfd,
19 					newpath);
20 }
21 #endif
22 
23 #endif /* LAPI_RENAMEAT_H__ */
24