summaryrefslogtreecommitdiffstats
path: root/src/kernel/tests/include/lapi/mkdirat.h
blob: bb8c6d8695c00abf660693deb2a52a2af114c7de (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 __MKDIRAT_H__
#define __MKDIRAT_H__

#include "config.h"
#include "lapi/syscalls.h"
#include "lapi/fcntl.h"

#ifndef HAVE_MKDIRAT
int mkdirat(int dirfd, const char *dirname, int mode)
{
	return ltp_syscall(__NR_mkdirat, dirfd, dirname, mode);
}
#endif

#endif /* __MKDIRAT_H__ */