1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright (c) 2014 Cyril Hrubis <chrubis@suse.cz>
4 */
5
6 #ifndef LAPI_READLINKAT_H__
7 #define LAPI_READLINKAT_H__
8
9 #include "config.h"
10 #include "lapi/syscalls.h"
11 #include "lapi/fcntl.h"
12
13 #ifndef HAVE_READLINKAT
readlinkat(int dirfd,const char * pathname,char * buf,size_t bufsiz)14 static inline int readlinkat(int dirfd, const char *pathname,
15 char *buf, size_t bufsiz)
16 {
17 return ltp_syscall(__NR_readlinkat, dirfd, pathname, buf, bufsiz);
18 }
19 #endif
20
21 #endif /* LAPI_READLINKAT_H__ */
22