xref: /illumos-gate/usr/src/contrib/ast/src/lib/libast/features/syscall (revision b30d193948be5a7794d7ae3ba0ed9c2f72c88e0f)
1lib	sysgetcwd note{ syscall(SYS_getcwd,buf,len) implemented }end link{
2	#include <sys/syscall.h>
3	int main()
4	{
5		char	buf[256];
6		return syscall(SYS_getcwd, buf, sizeof(buf)) < 0;
7	}
8}end
9
10if	( _lib_sysgetcwd ) {
11	#include <sys/syscall.h>
12}
13endif
14
15if	( _lib_sysgetcwd ) {
16	#define SYSGETCWD(a,b)		syscall(SYS_getcwd,a,b)
17}
18endif
19