diff options
Diffstat (limited to 'newlib/libc/sys/linux/getwd.c')
-rw-r--r-- | newlib/libc/sys/linux/getwd.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/newlib/libc/sys/linux/getwd.c b/newlib/libc/sys/linux/getwd.c deleted file mode 100644 index 72db33830..000000000 --- a/newlib/libc/sys/linux/getwd.c +++ /dev/null @@ -1,20 +0,0 @@ -#include <string.h> -#include <unistd.h> -#include <errno.h> - -char * -getwd (char *buf) -{ - char tmp[MAXPATHLEN]; - - if (buf == NULL) - { - errno = EINVAL; - return NULL; - } - - if (getcwd (tmp, MAXPATHLEN) == NULL) - return NULL; - - return strncpy (buf, tmp, MAXPATHLEN); -} |