add and consolidate nasty stdio_ext junk
[oweals/musl.git] / src / unistd / getcwd.c
index 4910f42c2a5c3e0eae3ff6b0685ecb14e72d7e24..b64b560feeb5bf71d24f2354721a7b39d1f85004 100644 (file)
@@ -4,5 +4,5 @@
 
 char *getcwd(char *buf, size_t size)
 {
-       return syscall2(__NR_getcwd, (long)buf, size) < 0 ? NULL : buf;
+       return syscall(SYS_getcwd, buf, size) < 0 ? NULL : buf;
 }