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