diff options
author | Manuel Bentele | 2020-09-11 11:48:48 +0200 |
---|---|---|
committer | Manuel Bentele | 2020-09-16 07:37:56 +0200 |
commit | a4215c3632c13218bb389d1f066549ab783028e3 (patch) | |
tree | 0468836ef5303f6eb94b876189ccaa60a7a2b453 /kernel/tests/include/lapi/mkdirat.h | |
parent | Updated README with documentation of general information and build options (diff) | |
download | xloop-a4215c3632c13218bb389d1f066549ab783028e3.tar.gz xloop-a4215c3632c13218bb389d1f066549ab783028e3.tar.xz xloop-a4215c3632c13218bb389d1f066549ab783028e3.zip |
Added testcases from the Linux testing project (LTP)
Diffstat (limited to 'kernel/tests/include/lapi/mkdirat.h')
-rw-r--r-- | kernel/tests/include/lapi/mkdirat.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/kernel/tests/include/lapi/mkdirat.h b/kernel/tests/include/lapi/mkdirat.h new file mode 100644 index 0000000..bb8c6d8 --- /dev/null +++ b/kernel/tests/include/lapi/mkdirat.h @@ -0,0 +1,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__ */ |