summaryrefslogtreecommitdiff
path: root/lib/libc/gen/basename.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix LP64 architectures and especially ia64. Functions that returnMarcel Moolenaar2002-12-301-0/+1
| | | | | | | | | | | | a pointer and lack a prototype will have the return value (assumed to be an integer) zero-extended to a pointer. On ia64 this is unconditionally fatal as it zeroes-out the region bits, forming an invalid pointer. Fix the sigsegv by including <stdlib.h>. Pointy hat: bbraun Notes: svn path=/head/; revision=108419
* Reduce libc.so's memory footprint by lazily allocating memory used internallyRob Braun2002-12-211-2/+8
| | | | | | | | by basename() and dirname(). Reviewed by: eric Notes: svn path=/head/; revision=108152
* * Remove 'register'. (some functions had 7+ register functions...)David E. O'Brien2002-02-011-2/+1
| | | | | | | * Fix SCM ID's. Notes: svn path=/head/; revision=90041
* Fixed world breakage due to missing include of <sys/cdefs.h> in previousBruce Evans2002-01-311-2/+4
| | | | | | | | | | | | | | | commit. Fixed related style bugs: basename.c: misplaced '#if 0' dirname.c: misplaced '#if 0' getgrent.c: missing '#if 0', and tab lossage in vendor id (the previous commit fixed the complete corruption of the vendor id but lost a tab) getpwent.c: missing '#if 0' Notes: svn path=/head/; revision=90016
* Fix FreeBSD IDs.David E. O'Brien2002-01-301-3/+3
| | | | Notes: svn path=/head/; revision=89999
* Fix a one-byte overrun.Dima Dorfman2001-06-281-1/+1
| | | | | | | | | PR: 28472 Submitted by: David Xu <davidx@viasoft.com.cn> Obtained from: OpenBSD Notes: svn path=/head/; revision=78936
* Import XPG4-compliant basename(3) and dirname(3) from OpenBSD.Dag-Erling Smørgrav2000-08-311-0/+76
The man pages need some adjustments. PR: 12960, 12962 Submitted by: James Howard <howardjp@wam.umd.edu> Obtained from: OpenBSD Notes: svn path=/head/; revision=65294