History log of /openbsd-current/lib/libc/gen/basename.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.17 20-Oct-2020 naddy

Align the basename(3) and dirname(3) prototypes with the POSIX spec:
Both functions take a non-const parameter. Implementations may modify
the passed string, even though ours do not.

ok stsp@ deraadt@ millert@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.16 25-Jan-2019 millert

I am retiring my old email address; replace it with my OpenBSD one.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.15 30-Sep-2013 millert

Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,
MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.14 08-Aug-2005 espie

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


Revision tags: OPENBSD_3_7_BASE
# 1.13 02-Mar-2005 millert

Consistent #if protection of rcs ids; Francois Perrad


# 1.12 25-Nov-2004 millert

Don't use strlcpy() to copy just part of a string, it make the code too
confusing. While in here make the code more readable. Ok pat@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.11 17-Jun-2003 millert

Sync with share/misc/license.template and add missing DARPA credit
where applicable.


# 1.10 11-Jun-2003 deraadt

ansification; checked by pval


# 1.9 03-Jun-2003 millert

Use an ISC-tyle license for all my code; it is simpler and more permissive.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 09-Jun-2002 deraadt

spelling; moritz@jodeit.org


# 1.7 24-May-2002 deraadt

try to use strlcpy and snprintf more; ok various


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.6 28-Jun-2001 pjanzen

fix one-byte overflows


# 1.5 27-Jun-2001 lebel

use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.4 30-May-1999 espie

Careless: I forgot to propagate obvious consts.


# 1.3 28-May-1999 espie

proper const semantics for dirname & basename.

(this follows FreeBSD and Linux. Single Unix 2 is still illogical)


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.2 21-Jun-1998 millert

Remove the advertising clause in my old license, it impedes free use
of the code as a large number of similar clauses makes it impossible
to write an ad for a product using the code...


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.1 17-Aug-1997 millert

basename(3) and dirname(3) as specified by XPG4 and XPG4.2


# 1.16 25-Jan-2019 millert

I am retiring my old email address; replace it with my OpenBSD one.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.15 30-Sep-2013 millert

Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,
MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.14 08-Aug-2005 espie

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


Revision tags: OPENBSD_3_7_BASE
# 1.13 02-Mar-2005 millert

Consistent #if protection of rcs ids; Francois Perrad


# 1.12 25-Nov-2004 millert

Don't use strlcpy() to copy just part of a string, it make the code too
confusing. While in here make the code more readable. Ok pat@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.11 17-Jun-2003 millert

Sync with share/misc/license.template and add missing DARPA credit
where applicable.


# 1.10 11-Jun-2003 deraadt

ansification; checked by pval


# 1.9 03-Jun-2003 millert

Use an ISC-tyle license for all my code; it is simpler and more permissive.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 09-Jun-2002 deraadt

spelling; moritz@jodeit.org


# 1.7 24-May-2002 deraadt

try to use strlcpy and snprintf more; ok various


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.6 28-Jun-2001 pjanzen

fix one-byte overflows


# 1.5 27-Jun-2001 lebel

use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.4 30-May-1999 espie

Careless: I forgot to propagate obvious consts.


# 1.3 28-May-1999 espie

proper const semantics for dirname & basename.

(this follows FreeBSD and Linux. Single Unix 2 is still illogical)


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.2 21-Jun-1998 millert

Remove the advertising clause in my old license, it impedes free use
of the code as a large number of similar clauses makes it impossible
to write an ad for a product using the code...


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.1 17-Aug-1997 millert

basename(3) and dirname(3) as specified by XPG4 and XPG4.2


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.15 30-Sep-2013 millert

Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,
MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.14 08-Aug-2005 espie

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


Revision tags: OPENBSD_3_7_BASE
# 1.13 02-Mar-2005 millert

Consistent #if protection of rcs ids; Francois Perrad


# 1.12 25-Nov-2004 millert

Don't use strlcpy() to copy just part of a string, it make the code too
confusing. While in here make the code more readable. Ok pat@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.11 17-Jun-2003 millert

Sync with share/misc/license.template and add missing DARPA credit
where applicable.


# 1.10 11-Jun-2003 deraadt

ansification; checked by pval


# 1.9 03-Jun-2003 millert

Use an ISC-tyle license for all my code; it is simpler and more permissive.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 09-Jun-2002 deraadt

spelling; moritz@jodeit.org


# 1.7 24-May-2002 deraadt

try to use strlcpy and snprintf more; ok various


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.6 28-Jun-2001 pjanzen

fix one-byte overflows


# 1.5 27-Jun-2001 lebel

use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.4 30-May-1999 espie

Careless: I forgot to propagate obvious consts.


# 1.3 28-May-1999 espie

proper const semantics for dirname & basename.

(this follows FreeBSD and Linux. Single Unix 2 is still illogical)


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.2 21-Jun-1998 millert

Remove the advertising clause in my old license, it impedes free use
of the code as a large number of similar clauses makes it impossible
to write an ad for a product using the code...


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.1 17-Aug-1997 millert

basename(3) and dirname(3) as specified by XPG4 and XPG4.2