summaryrefslogtreecommitdiffstats
path: root/newlib/libc/unix/getcwd.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/getcwd.c
parent57f69f200e473bbb545ebfbe3dc2bb82c7a7a128 (diff)
downloadcygnal-fd450adfe7378555bc79b356caa28fe7e1875d35.tar.gz
cygnal-fd450adfe7378555bc79b356caa28fe7e1875d35.tar.bz2
cygnal-fd450adfe7378555bc79b356caa28fe7e1875d35.zip
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/getcwd.c')
-rw-r--r--newlib/libc/unix/getcwd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/newlib/libc/unix/getcwd.c b/newlib/libc/unix/getcwd.c
index f57e14742..b49a4b6e0 100644
--- a/newlib/libc/unix/getcwd.c
+++ b/newlib/libc/unix/getcwd.c
@@ -1,3 +1,4 @@
+#ifndef _NO_GETCWD
/*
* Copyright (c) 1989, 1991 The Regents of the University of California.
* All rights reserved.
@@ -10,10 +11,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -263,3 +260,4 @@ err:
}
#endif /* _REENT_ONLY */
+#endif /* !_NO_GETCWD */