1/* Check LD_AUDIT for aarch64 specific ABI.
2 Copyright (C) 2022-2024 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
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.
9
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.
14
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/>. */
18
19#ifndef _TST_AUDIT27MOD_H
20#define _TST_AUDIT27MOD_H 1
21
22#include <array_length.h>
23
24struct large_struct
25{
26 char a[16];
27 short b[8];
28 long int c[4];
29};
30
31static inline struct large_struct
32set_large_struct (char a, short b, long int c)
33{
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;
42}
43
44#define ARG1 0x12
45#define ARG2 0x1234
46#define ARG3 0x12345678
47
48struct large_struct tst_audit26_func (char a, short b, long int c);
49
50#endif
51

source code of glibc/sysdeps/aarch64/tst-audit26mod.h