syscall revision 1
1N/Alib sysgetcwd note{ syscall(SYS_getcwd,buf,len) implemented }end link{
1N/A #include <sys/syscall.h>
1N/A int main()
1N/A {
1N/A char buf[256];
1N/A return syscall(SYS_getcwd, buf, sizeof(buf)) < 0;
1N/A }
1N/A}end
1N/A
1N/Aif ( _lib_sysgetcwd ) {
1N/A #include <sys/syscall.h>
1N/A}
1N/Aendif
1N/A
1N/Aif ( _lib_sysgetcwd ) {
1N/A #define SYSGETCWD(a,b) syscall(SYS_getcwd,a,b)
1N/A}
1N/Aendif