From fd450adfe7378555bc79b356caa28fe7e1875d35 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 18 Nov 2008 21:47:44 +0000 Subject: 2008-11-18 Jeff Johnston * 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. --- newlib/libc/unix/getcwd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'newlib/libc/unix/getcwd.c') 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 */ -- cgit v1.2.3