summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/basename.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Align the basename(3) and dirname(3) prototypes with the POSIX spec:naddy2020-10-201-2/+2
| | | | | | | Both functions take a non-const parameter. Implementations may modify the passed string, even though ours do not. ok stsp@ deraadt@ millert@
* I am retiring my old email address; replace it with my OpenBSD one.millert2019-01-251-2/+2
|
* Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,millert2013-09-301-3/+3
| | | | MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@
* zap remaining rcsid.espie2005-08-081-5/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* Consistent #if protection of rcs ids; Francois Perradmillert2005-03-021-4/+4
|
* Don't use strlcpy() to copy just part of a string, it make the code toomillert2004-11-251-14/+19
| | | | confusing. While in here make the code more readable. Ok pat@
* Sync with share/misc/license.template and add missing DARPA creditmillert2003-06-171-9/+9
| | | | where applicable.
* ansification; checked by pvalderaadt2003-06-111-4/+3
|
* Use an ISC-tyle license for all my code; it is simpler and more permissive.millert2003-06-031-23/+12
|
* spelling; moritz@jodeit.orgderaadt2002-06-091-3/+3
|
* try to use strlcpy and snprintf more; ok variousderaadt2002-05-241-4/+4
|
* fix one-byte overflowspjanzen2001-06-281-3/+3
|
* use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel2001-06-271-4/+3
|
* Careless: I forgot to propagate obvious consts.espie1999-05-301-3/+3
|
* proper const semantics for dirname & basename.espie1999-05-281-3/+3
| | | | (this follows FreeBSD and Linux. Single Unix 2 is still illogical)
* Remove the advertising clause in my old license, it impedes free usemillert1998-06-211-6/+3
| | | | | of the code as a large number of similar clauses makes it impossible to write an ad for a product using the code...
* basename(3) and dirname(3) as specified by XPG4 and XPG4.2millert1997-08-171-0/+78