diff options
Diffstat (limited to 'kernel/tests/include/lapi/readlinkat.h')
-rw-r--r-- | kernel/tests/include/lapi/readlinkat.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/kernel/tests/include/lapi/readlinkat.h b/kernel/tests/include/lapi/readlinkat.h new file mode 100644 index 0000000..5a3a7b2 --- /dev/null +++ b/kernel/tests/include/lapi/readlinkat.h @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (c) 2014 Cyril Hrubis <chrubis@suse.cz> + */ + +#ifndef __READLINKAT_H__ +#define __READLINKAT_H__ + +#include "config.h" +#include "lapi/syscalls.h" +#include "lapi/fcntl.h" + +#ifndef HAVE_READLINKAT +int readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsiz) +{ + return ltp_syscall(__NR_readlinkat, dirfd, pathname, buf, bufsiz); +} +#endif + +#endif /* __READLINKAT_H__ */ |