[libc++][Android] Allow testing libc++ with clang-r536225 (#116149)
[llvm-project.git] / libc / newhdrgen / yaml / pthread.yaml
blobb9068c3f1765757dbf240baa7516e70351b07c42
1 header: pthread.h
2 macros: []
3 types:
4   - type_name: pthread_t
5   - type_name: pthread_once_t
6   - type_name: pthread_mutex_t
7   - type_name: pthread_mutexattr_t
8   - type_name: pthread_key_t
9   - type_name: pthread_condattr_t
10   - type_name: __pthread_tss_dtor_t
11   - type_name: pthread_rwlock_t
12   - type_name: pthread_rwlockattr_t
13   - type_name: pthread_attr_t
14   - type_name: __pthread_start_t
15   - type_name: __pthread_once_func_t
16   - type_name: __atfork_callback_t
17   - type_name: pthread_spinlock_t
18 enums: []
19 functions:
20   - name: pthread_atfork
21     standards:
22       - POSIX
23     return_type: int
24     arguments:
25       - type: __atfork_callback_t
26       - type: __atfork_callback_t
27       - type: __atfork_callback_t
28   - name: pthread_attr_destroy
29     standards:
30       - POSIX
31     return_type: int
32     arguments:
33       - type: pthread_attr_t *
34   - name: pthread_attr_getdetachstate
35     standards:
36       - POSIX
37     return_type: int
38     arguments:
39       - type: const pthread_attr_t *
40       - type: int *
41   - name: pthread_attr_getguardsize
42     standards:
43       - POSIX
44     return_type: int
45     arguments:
46       - type: const pthread_attr_t *__restrict
47       - type: size_t *__restrict
48   - name: pthread_attr_getstack
49     standards:
50       - POSIX
51     return_type: int
52     arguments:
53       - type: const pthread_attr_t *__restrict
54       - type: void **__restrict
55       - type: size_t *__restrict
56   - name: pthread_attr_getstacksize
57     standards:
58       - POSIX
59     return_type: int
60     arguments:
61       - type: const pthread_attr_t *__restrict
62       - type: size_t *__restrict
63   - name: pthread_attr_init
64     standards:
65       - POSIX
66     return_type: int
67     arguments:
68       - type: pthread_attr_t *
69   - name: pthread_attr_setdetachstate
70     standards:
71       - POSIX
72     return_type: int
73     arguments:
74       - type: pthread_attr_t *
75       - type: int
76   - name: pthread_attr_setguardsize
77     standards:
78       - POSIX
79     return_type: int
80     arguments:
81       - type: pthread_attr_t *
82       - type: size_t
83   - name: pthread_attr_setstack
84     standards:
85       - POSIX
86     return_type: int
87     arguments:
88       - type: pthread_attr_t *
89       - type: void *
90       - type: size_t
91   - name: pthread_attr_setstacksize
92     standards:
93       - POSIX
94     return_type: int
95     arguments:
96       - type: pthread_attr_t *
97       - type: size_t
98   - name: pthread_condattr_destroy
99     standards:
100       - POSIX
101     return_type: int
102     arguments:
103       - type: pthread_condattr_t *
104   - name: pthread_condattr_getclock
105     standards:
106       - POSIX
107     return_type: int
108     arguments:
109       - type: const pthread_condattr_t *__restrict
110       - type: clockid_t *__restrict
111   - name: pthread_condattr_getpshared
112     standards:
113       - POSIX
114     return_type: int
115     arguments:
116       - type: const pthread_condattr_t *__restrict
117       - type: int *__restrict
118   - name: pthread_condattr_init
119     standards:
120       - POSIX
121     return_type: int
122     arguments:
123       - type: pthread_condattr_t *
124   - name: pthread_condattr_setclock
125     standards:
126       - POSIX
127     return_type: int
128     arguments:
129       - type: pthread_condattr_t *
130       - type: clockid_t
131   - name: pthread_condattr_setpshared
132     standards:
133       - POSIX
134     return_type: int
135     arguments:
136       - type: pthread_condattr_t *
137       - type: int
138   - name: pthread_create
139     standards:
140       - POSIX
141     return_type: int
142     arguments:
143       - type: pthread_t *__restrict
144       - type: const pthread_attr_t *__restrict
145       - type: __pthread_start_t
146       - type: void *
147   - name: pthread_detach
148     standards:
149       - POSIX
150     return_type: int
151     arguments:
152       - type: pthread_t
153   - name: pthread_equal
154     standards:
155       - POSIX
156     return_type: int
157     arguments:
158       - type: pthread_t
159       - type: pthread_t
160   - name: pthread_exit
161     standards:
162       - POSIX
163     return_type: _Noreturn void
164     arguments:
165       - type: void *
166   - name: pthread_getname_np
167     standards:
168       - GNUExtensions
169     return_type: int
170     arguments:
171       - type: pthread_t
172       - type: char *
173       - type: size_t
174   - name: pthread_getspecific
175     standards:
176       - POSIX
177     return_type: void *
178     arguments:
179       - type: pthread_key_t
180   - name: pthread_join
181     standards:
182       - POSIX
183     return_type: int
184     arguments:
185       - type: pthread_t
186       - type: void **
187   - name: pthread_key_create
188     standards:
189       - POSIX
190     return_type: int
191     arguments:
192       - type: pthread_key_t *
193       - type: __pthread_tss_dtor_t
194   - name: pthread_key_delete
195     standards:
196       - POSIX
197     return_type: int
198     arguments:
199       - type: pthread_key_t
200   - name: pthread_mutex_destroy
201     standards:
202       - POSIX
203     return_type: int
204     arguments:
205       - type: pthread_mutex_t *
206   - name: pthread_mutex_init
207     standards:
208       - POSIX
209     return_type: int
210     arguments:
211       - type: pthread_mutex_t *__restrict
212       - type: const pthread_mutexattr_t *__restrict
213   - name: pthread_mutex_lock
214     standards:
215       - POSIX
216     return_type: int
217     arguments:
218       - type: pthread_mutex_t *
219   - name: pthread_mutex_unlock
220     standards:
221       - POSIX
222     return_type: int
223     arguments:
224       - type: pthread_mutex_t *
225   - name: pthread_mutexattr_destroy
226     standards:
227       - POSIX
228     return_type: int
229     arguments:
230       - type: pthread_mutexattr_t *
231   - name: pthread_mutexattr_getpshared
232     standards:
233       - POSIX
234     return_type: int
235     arguments:
236       - type: const pthread_mutexattr_t *__restrict
237       - type: int *__restrict
238   - name: pthread_mutexattr_getrobust
239     standards:
240       - POSIX
241     return_type: int
242     arguments:
243       - type: const pthread_mutexattr_t *__restrict
244       - type: int *__restrict
245   - name: pthread_mutexattr_gettype
246     standards:
247       - POSIX
248     return_type: int
249     arguments:
250       - type: const pthread_mutexattr_t *__restrict
251       - type: int *__restrict
252   - name: pthread_mutexattr_init
253     standards:
254       - POSIX
255     return_type: int
256     arguments:
257       - type: pthread_mutexattr_t *
258   - name: pthread_mutexattr_setpshared
259     standards:
260       - POSIX
261     return_type: int
262     arguments:
263       - type: pthread_mutexattr_t *__restrict
264       - type: int
265   - name: pthread_mutexattr_setrobust
266     standards:
267       - POSIX
268     return_type: int
269     arguments:
270       - type: pthread_mutexattr_t *__restrict
271       - type: int
272   - name: pthread_mutexattr_settype
273     standards:
274       - POSIX
275     return_type: int
276     arguments:
277       - type: pthread_mutexattr_t *__restrict
278       - type: int
279   - name: pthread_once
280     standards:
281       - POSIX
282     return_type: int
283     arguments:
284       - type: pthread_once_t *
285       - type: __pthread_once_func_t
286   - name: pthread_rwlock_clockrdlock
287     standards: POSIX
288     return_type: int
289     arguments:
290       - type: pthread_rwlock_t *__restrict
291       - type: clockid_t
292       - type: const struct timespec *__restrict
293   - name: pthread_rwlock_clockwrlock
294     standards: POSIX
295     return_type: int
296     arguments:
297       - type: pthread_rwlock_t *__restrict
298       - type: clockid_t
299       - type: const struct timespec *__restrict
300   - name: pthread_rwlock_destroy
301     standards: POSIX
302     return_type: int
303     arguments:
304       - type: pthread_rwlock_t *
305   - name: pthread_rwlock_init
306     standards: POSIX
307     return_type: int
308     arguments:
309       - type: pthread_rwlock_t *
310       - type: const pthread_rwlockattr_t *__restrict
311   - name: pthread_rwlock_rdlock
312     standards: POSIX
313     return_type: int
314     arguments:
315       - type: pthread_rwlock_t *
316   - name: pthread_rwlock_timedrdlock
317     standards: POSIX
318     return_type: int
319     arguments:
320       - type: pthread_rwlock_t *__restrict
321       - type: const struct timespec *__restrict
322   - name: pthread_rwlock_timedwrlock
323     standards: POSIX
324     return_type: int
325     arguments:
326       - type: pthread_rwlock_t *__restrict
327       - type: const struct timespec *__restrict
328   - name: pthread_rwlock_tryrdlock
329     standards: POSIX
330     return_type: int
331     arguments:
332       - type: pthread_rwlock_t *
333   - name: pthread_rwlock_trywrlock
334     standards: POSIX
335     return_type: int
336     arguments:
337       - type: pthread_rwlock_t *
338   - name: pthread_rwlock_unlock
339     standards: POSIX
340     return_type: int
341     arguments:
342       - type: pthread_rwlock_t *
343   - name: pthread_rwlock_wrlock
344     standards: POSIX
345     return_type: int
346     arguments:
347       - type: pthread_rwlock_t *
348   - name: pthread_rwlockattr_destroy
349     standards:
350       - POSIX
351     return_type: int
352     arguments:
353       - type: pthread_rwlockattr_t *
354   - name: pthread_rwlockattr_getkind_np
355     standards:
356       - POSIX
357     return_type: int
358     arguments:
359       - type: pthread_rwlockattr_t *
360       - type: int *
361   - name: pthread_rwlockattr_getpshared
362     standards:
363       - POSIX
364     return_type: int
365     arguments:
366       - type: const pthread_rwlockattr_t *
367       - type: int *
368   - name: pthread_rwlockattr_init
369     standards:
370       - POSIX
371     return_type: int
372     arguments:
373       - type: pthread_rwlockattr_t *
374   - name: pthread_rwlockattr_setkind_np
375     standards:
376       - POSIX
377     return_type: int
378     arguments:
379       - type: pthread_rwlockattr_t *
380       - type: int
381   - name: pthread_rwlockattr_setpshared
382     standards:
383       - POSIX
384     return_type: int
385     arguments:
386       - type: pthread_rwlockattr_t *
387       - type: int
388   - name: pthread_self
389     standards:
390       - POSIX
391     return_type: pthread_t
392     arguments:
393       - type: void
394   - name: pthread_setname_np
395     standards:
396       - GNUExtensions
397     return_type: int
398     arguments:
399       - type: pthread_t
400       - type: const char *
401   - name: pthread_setspecific
402     standards:
403       - POSIX
404     return_type: void *
405     arguments:
406       - type: pthread_key_t
407       - type: const void *
408   - name: pthread_spin_destroy
409     standards: POSIX
410     return_type: int
411     arguments:
412       - type: pthread_spinlock_t *
413   - name: pthread_spin_init
414     standards: POSIX
415     return_type: int
416     arguments:
417       - type: pthread_spinlock_t *
418       - type: int
419   - name: pthread_spin_lock
420     standards: POSIX
421     return_type: int
422     arguments:
423       - type: pthread_spinlock_t *
424   - name: pthread_spin_trylock
425     standards: POSIX
426     return_type: int
427     arguments:
428       - type: pthread_spinlock_t *
429   - name: pthread_spin_unlock
430     standards: POSIX
431     return_type: int
432     arguments:
433       - type: pthread_spinlock_t *