diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-04-02 20:24:18 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-04-02 20:24:18 +0000 |
commit | cdb9cd95d819b7d394f63db8dd87804de5aa3e69 (patch) | |
tree | 21df5650189a18b6e92f11a618bac3deb1adf361 /include/lapi/fcntl.h | |
parent | 26a125c969109073ae74a948b3d8e4035cda4f7c (diff) | |
parent | 74f79dc224f4a1e79829ddfa11fa9439bf561423 (diff) | |
download | ltp-cdb9cd95d819b7d394f63db8dd87804de5aa3e69.tar.gz |
Merge changes from topic "ltp-20230929-android14-tests" into android14-tests-dev
* changes:
cgroup: Fix scanning V1 mount options
cgroup: Handle trailing new line in cgroup.controllers
compare_ltp_projects.py: Fix test sorting, adjust printing
madvise11: Allow test to skip if MADV_SOFT_OFFLINE is not supported
madvise11: Replace /etc/mtab with /proc/mounts
syscalls/process_madvise01: fix smaps scan and min_swap_avail
tst_clocks.c: Fix stack smashing on 32bit
tst_kvercmp: Handle larger kernel version numbers
getpgid01: On Android, pgid(1) is 0 instead of 1
pipe07: refactor exp_num_pipes
pipe07: close /proc/self/fd after counting fds
config.h: Compile with linux/ioprio.h to fix ioprio_set03
sched.h: Don't exclude clone_args_minimal when HAVE_STRUCT_CLONE_ARGS is set
ltp-version.h: Generate with genrule
mq_notify03: disable test because don't have mqueue
kvm: Disable kvm tests
make_parser.py: Handle as (gnu assembler) command in makefile
android_build_generator.py: Print more info when failing with compile target
LTP 20230929
Merge tag '20230929'
Diffstat (limited to 'include/lapi/fcntl.h')
-rw-r--r-- | include/lapi/fcntl.h | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/include/lapi/fcntl.h b/include/lapi/fcntl.h index f17220737..cb216e2dc 100644 --- a/include/lapi/fcntl.h +++ b/include/lapi/fcntl.h @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2014 Cyril Hrubis <chrubis@suse.cz> + * Copyright (c) Linux Test Project, 2014-2023 */ #ifndef LAPI_FCNTL_H__ @@ -10,9 +11,7 @@ #include <fcntl.h> #include <sys/socket.h> -#ifndef O_DIRECT -# define O_DIRECT 040000 -#endif +/* NOTE: #define _GNU_SOURCE if you need O_DIRECT in tests */ #ifndef O_CLOEXEC # define O_CLOEXEC 02000000 @@ -87,20 +86,40 @@ # define AT_FDCWD -100 #endif +#ifndef AT_SYMLINK_NOFOLLOW +# define AT_SYMLINK_NOFOLLOW 0x100 +#endif + +#ifndef AT_REMOVEDIR +# define AT_REMOVEDIR 0x200 +#endif + #ifndef AT_SYMLINK_FOLLOW -# define AT_SYMLINK_FOLLOW 0x400 +# define AT_SYMLINK_FOLLOW 0x400 #endif -#ifndef AT_SYMLINK_NOFOLLOW -# define AT_SYMLINK_NOFOLLOW 0x100 +#ifndef AT_NO_AUTOMOUNT +# define AT_NO_AUTOMOUNT 0x800 #endif #ifndef AT_EMPTY_PATH -# define AT_EMPTY_PATH 0x1000 +# define AT_EMPTY_PATH 0x1000 #endif -#ifndef AT_REMOVEDIR -# define AT_REMOVEDIR 0x200 +#ifndef AT_STATX_SYNC_AS_STAT +# define AT_STATX_SYNC_AS_STAT 0x0000 +#endif + +#ifndef AT_STATX_FORCE_SYNC +# define AT_STATX_FORCE_SYNC 0x2000 +#endif + +#ifndef AT_STATX_DONT_SYNC +# define AT_STATX_DONT_SYNC 0x4000 +#endif + +#ifndef AT_STATX_SYNC_TYPE +# define AT_STATX_SYNC_TYPE 0x6000 #endif #ifndef O_NOATIME |