aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/unix/dirname.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-11-18 21:47:44 +0000
committerJeff Johnston <jjohnstn@redhat.com>2008-11-18 21:47:44 +0000
commitfd450adfe7378555bc79b356caa28fe7e1875d35 (patch)
tree9192d8c7ca53fa990c5cdad610c4884c79e62748 /newlib/libc/unix/dirname.c
parent57f69f200e473bbb545ebfbe3dc2bb82c7a7a128 (diff)
downloadnewlib-fd450adfe7378555bc79b356caa28fe7e1875d35.zip
newlib-fd450adfe7378555bc79b356caa28fe7e1875d35.tar.gz
newlib-fd450adfe7378555bc79b356caa28fe7e1875d35.tar.bz2
2008-11-18 Jeff Johnston <jjohnstn@redhat.com>
* libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be ignored if desired by a platform. * libc/unix/dirname.c: Ditto except replace BASENAME with file name. * libc/unix/getcwd.c: Ditto. * libc/unix/getlogin.c: Ditto. * libc/unix/getpass.c: Ditto. * libc/unix/getpwent.c: Ditto. * libc/unix/getut.c: Ditto. * libc/unix/pread.c: Ditto. * libc/unix/pwrite.c: Ditto. * libc/unix/sigset.c: Ditto.
Diffstat (limited to 'newlib/libc/unix/dirname.c')
-rw-r--r--newlib/libc/unix/dirname.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/unix/dirname.c b/newlib/libc/unix/dirname.c
index f026e30..164da7f 100644
--- a/newlib/libc/unix/dirname.c
+++ b/newlib/libc/unix/dirname.c
@@ -1,3 +1,5 @@
+#ifndef _NO_DIRNAME
+
/* Copyright 2005 Shaun Jackman
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
@@ -26,3 +28,5 @@ _DEFUN (dirname, (path),
p == path ? "/" :
(*p = '\0', path);
}
+
+#endif /* !_NO_DIRNAME */