summaryrefslogtreecommitdiff
path: root/src/lib/libast/features/syscall
blob: 9788b9b5be5f675997d01b28de393379a28c9252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
lib	sysgetcwd note{ syscall(SYS_getcwd,buf,len) implemented }end link{
	#include <sys/syscall.h>
	int main()
	{
		char	buf[256];
		return syscall(SYS_getcwd, buf, sizeof(buf)) < 0;
	}
}end

if	( _lib_sysgetcwd ) {
	#include <sys/syscall.h>
}
endif

if	( _lib_sysgetcwd ) {
	#define SYSGETCWD(a,b)		syscall(SYS_getcwd,a,b)
}
endif