]> granicus.if.org Git - strace/blob - largefile_wrappers.h
rtnl_link: use internal rtnl_link_stats* and ifla_port_vsi definitions
[strace] / largefile_wrappers.h
1 /*
2  * Wrappers for handling discrepancies in LF64-themed syscalls availability and
3  * necessity between verious architectures and kernel veriosns.
4  *
5  * Copyright (c) 2012-2019 The strace developers.
6  * All rights reserved.
7  *
8  * SPDX-License-Identifier: LGPL-2.1-or-later
9  */
10
11 #ifndef STRACE_LARGEFILE_WRAPPERS_H
12 # define STRACE_LARGEFILE_WRAPPERS_H
13
14 # include "defs.h"
15
16 # ifdef _LARGEFILE64_SOURCE
17 #  ifdef HAVE_OPEN64
18 #   define open_file open64
19 #  else
20 #   define open_file open
21 #  endif
22 #  ifdef HAVE_FOPEN64
23 #   define fopen_stream fopen64
24 #  else
25 #   define fopen_stream fopen
26 #  endif
27 #  define strace_stat_t struct stat64
28 #  define stat_file stat64
29 #  define struct_dirent struct dirent64
30 #  define read_dir readdir64
31 #  define struct_rlimit struct rlimit64
32 #  define set_rlimit setrlimit64
33 # else
34 #  define open_file open
35 #  define fopen_stream fopen
36 #  define strace_stat_t struct stat
37 #  define stat_file stat
38 #  define struct_dirent struct dirent
39 #  define read_dir readdir
40 #  define struct_rlimit struct rlimit
41 #  define set_rlimit setrlimit
42 # endif
43
44 #endif /* STRACE_LARGEFILE_WRAPPERS_H */