Skip to content

Commit 4a9dabe

Browse files
[libc] add prctl func spec (#97971)
1 parent 3ed76b4 commit 4a9dabe

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

libc/spec/linux.td

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,19 @@ def Linux : StandardSpec<"Linux"> {
112112
[], // Macros
113113
[], // Types
114114
[], // Enumerations
115-
[] // Functions
115+
[
116+
FunctionSpec<
117+
"prctl",
118+
RetValSpec<IntType>,
119+
[
120+
ArgSpec<IntType>,
121+
ArgSpec<UnsignedLongType>,
122+
ArgSpec<UnsignedLongType>,
123+
ArgSpec<UnsignedLongType>,
124+
ArgSpec<UnsignedLongType>,
125+
]
126+
>,
127+
] // Functions
116128
>;
117129

118130
HeaderSpec SysRandom = HeaderSpec<

0 commit comments

Comments
 (0)