xref: /illumos-gate/usr/src/test/libc-tests/cfg/symbols/pthread_h.cfg (revision 67a4bb8f9ad4c49e9aa9e21e2114a7c093c3a73a)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2015 Garrett D'Amore <garrett@damore.org>
14#
15
16#
17# Definitions found in pthread.h
18#
19# Note that this header is not defined prior to the POSIX 1995 & SUSv2
20# specifications.  Therefore, applications which #include it in earlier
21# environments may reasonably obtain their contents, although such use
22# would not be conformant to those specifications.
23#
24# As a result, we only test the newer specifications.
25#
26
27#
28# Types.
29#
30type |	pthread_t *	| pthread.h | POSIX-1995+ SUSv2+
31
32#
33# Values.
34#
35value |	PTHREAD_SCOPE_PROCESS	| int	| pthread.h | POSIX-1995+ SUSv2+
36value |	PTHREAD_SCOPE_SYSTEM	| int	| pthread.h | POSIX-1995+ SUSv2+
37
38#
39# Functions
40#
41func |	pthread_create							|\
42	int								|\
43	pthread_t *; const pthread_attr_t *; void *(*)(void *); void *	|\
44	pthread.h							|\
45	POSIX-1995+ SUSv2+
46
47func |	pthread_self							|\
48	pthread_t							|\
49	void								|\
50	pthread.h							|\
51	POSIX-1995+ SUSv2+
52
53func |	pthread_attr_getscope						|\
54	int								|\
55	const pthread_attr_t *; int *					|\
56	pthread.h							|\
57	POSIX-1995+ SUSv2+
58
59func |	pthread_attr_setscope						|\
60	int								|\
61	pthread_attr_t *; int						|\
62	pthread.h							|\
63	POSIX-1995+ SUSv2+
64