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