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.
This commit is contained in:
Jeff Johnston
2008-11-18 21:47:44 +00:00
parent 57f69f200e
commit fd450adfe7
11 changed files with 43 additions and 10 deletions

View File

@ -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 */