xref: /illumos-gate/usr/src/test/libc-tests/cfg/symbols/dirent_h.cfg (revision b7daf79982d77b491ef9662483cd4549e0e5da9a)
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 dirent.h
18#
19# Note that this header is not defined prior to the POSIX & XPG3
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 |	DIR *		| dirent.h | XPG3+ POSIX+
31type |	struct dirent	| dirent.h | XPG3+ POSIX+
32
33#
34# Values.
35#
36
37#
38# Functions
39#
40
41func |	opendir								|\
42	DIR *								|\
43	const char *							|\
44	dirent.h | POSIX+ XPG3+
45
46func |	readdir								|\
47	struct dirent *							|\
48	DIR *								|\
49	dirent.h | POSIX+ XPG3+
50
51# We are not going to test the draft interface.
52func |	readdir_r							|\
53	int								|\
54	DIR *; struct dirent *; struct dirent **			|\
55	dirent.h | POSIX-1995+
56
57func |	rewinddir							|\
58	void								|\
59	DIR * | dirent.h | POSIX+ XPG3+
60
61func |	seekdir								|\
62	void								|\
63	DIR *; long							|\
64	dirent.h | -POSIX+ XPG3+
65
66func |	telldir								|\
67	long								|\
68	DIR *								|\
69	dirent.h | -POSIX+ XPG3+
70