xref: /titanic_50/usr/src/lib/libast/common/features/errno (revision 2df1fe9ca32bb227b9158c67f5c00b54c20b10fd)
1tst	dat_sys_nerr note{ sys_nerr in default libs }end compile{
2	extern int sys_nerr;
3	int f()
4	{
5		return sys_nerr > 0;
6	}
7}end
8
9tst	def_errno_sys_nerr note{ sys_nerr declared in errno.h }end compile{
10	#include <errno.h>
11	int f()
12	{
13		return sys_nerr > 0;
14	}
15}end
16
17tst	dat_sys_errlist note{ sys_errlist in default libs }end compile{
18	extern char* sys_errlist[];
19	int f()
20	{
21		return *sys_errlist[1] != 0;
22	}
23}end
24
25tst	def_errno_sys_errlist note{ sys_errlist declared in errno.h }end compile{
26	#include <errno.h>
27	int f()
28	{
29		return *sys_errlist[1] != 0;
30	}
31}end
32