aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-declextract/testdata/types.c.txt
blob: d9c0a843aaa8175fb88a00b008023d186b683ba3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Code generated by syz-declextract. DO NOT EDIT.

meta automatic

type auto_todo int8

type auto_aligner[N] {
	void	void
} [align[N]]

bitfield_enum$auto = a, b, c
enum_bar$auto = enum_bar_a, enum_bar_b
enum_foo$auto = enum_foo_a, enum_foo_b

align_syscall$auto(a1 ptr[inout, align1$auto], a2 ptr[inout, align2$auto], a3 ptr[inout, align3$auto], a4 ptr[inout, align4$auto])
types_syscall$auto(p ptr[inout, anon_struct$auto], y ptr[inout, auto_aligner[1]], b ptr[inout, bitfields$auto], pid pid, f int32, v ptr[inout, various$auto], pi ptr[inout, int32], pu ptr[inout, int32])
types_syscall2$auto(foo flags[enum_foo$auto], bar flags[enum_bar$auto])

align1$auto {
	f1	int8
	aligner	auto_aligner[8]
	f2	int8
}

align2$auto {
	f1	int8
	aligner	auto_aligner[1]
	f2	int8
}

align3$auto {
	f1	int8
	aligner	auto_aligner[8]
	f2	int8
}

align4$auto {
	f1	int8
	aligner	auto_aligner[8]
	f2	int8
}

anon_struct$auto {
	a		anon_struct_a$auto
	b		auto_aligner[1]
	anon_struct_2	anon_struct_2$auto
	anon_struct_3	anon_struct_3$auto
	foo		anon_t$auto
	forward		ptr[inout, auto_todo]
	array		array[anon_struct_array$auto, 4]
	ptr		ptr[inout, anon_struct_ptr$auto]
	ptr_array	array[ptr[inout, anon_struct_ptr_array$auto], 4]
}

anon_struct_2$auto {
	y	int32
}

anon_struct_3$auto [
	q	int32
	w	intptr
]

anon_struct_a$auto {
	x	int32
}

anon_struct_array$auto {
	a	int32
	b	int32
}

anon_struct_ptr$auto {
	a	int32
	b	int32
}

anon_struct_ptr_array$auto {
	a	int32
	b	int32
}

anon_t$auto {
	f	int32
}

bitfields$auto {
	a		int32:1
	bitfields_1	const[0, int32:2]
	b		int32:3
	d		intptr:2
	pad		const[0, intptr:3]
	e		flags[bitfield_enum$auto, int32:10]
	l		len[p, int32:10]
	p		ptr[inout, int32]
} [align[32]]

packed_t$auto {
	x	int8
	y	int32
} [packed, align[32]]

recursive$auto {
	various	various$auto
}

various$auto {
	recursive	ptr[inout, various$auto, opt]
	next		ptr[inout, recursive$auto, opt]
	packed		packed_t$auto
}

define a	0
define b	1
define c	2
define enum_bar_a	0
define enum_bar_b	1
define enum_foo_a	0
define enum_foo_b	1