From 3950ffe2a485479f6561c27364d3d7df5a21d124 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 24 Jun 2012 22:28:35 +0000 Subject: Imported Upstream version 93u+ --- src/lib/libast/features/syscall | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/lib/libast/features/syscall (limited to 'src/lib/libast/features/syscall') diff --git a/src/lib/libast/features/syscall b/src/lib/libast/features/syscall new file mode 100644 index 0000000..9788b9b --- /dev/null +++ b/src/lib/libast/features/syscall @@ -0,0 +1,18 @@ +lib sysgetcwd note{ syscall(SYS_getcwd,buf,len) implemented }end link{ + #include + int main() + { + char buf[256]; + return syscall(SYS_getcwd, buf, sizeof(buf)) < 0; + } +}end + +if ( _lib_sysgetcwd ) { + #include +} +endif + +if ( _lib_sysgetcwd ) { + #define SYSGETCWD(a,b) syscall(SYS_getcwd,a,b) +} +endif -- cgit v1.2.3