elf: Ignore LD_LIBRARY_PATH and debug env var for setuid for static
[glibc.git] / sysdeps / aarch64 / tst-audit26mod.h
blobfdc77d1463d6f86a3be6439996dbd048ac2eaf3f
1 /* Check LD_AUDIT for aarch64 specific ABI.
2 Copyright (C) 2022-2023 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
19 #ifndef _TST_AUDIT27MOD_H
20 #define _TST_AUDIT27MOD_H 1
22 #include <array_length.h>
24 struct large_struct
26 char a[16];
27 short b[8];
28 long int c[4];
31 static inline struct large_struct
32 set_large_struct (char a, short b, long int c)
34 struct large_struct r;
35 for (int i = 0; i < array_length (r.a); i++)
36 r.a[i] = a;
37 for (int i = 0; i < array_length (r.b); i++)
38 r.b[i] = b;
39 for (int i = 0; i < array_length (r.c); i++)
40 r.c[i] = c;
41 return r;
44 #define ARG1 0x12
45 #define ARG2 0x1234
46 #define ARG3 0x12345678
48 struct large_struct tst_audit26_func (char a, short b, long int c);
50 #endif