History log of /openbsd-current/bin/csh/str.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.22 18-Sep-2018 millert

Restore the xmalloc(), xcalloc(), xreallocarray() and xstrdup() changes.
OK deraadt@


# 1.21 18-Sep-2018 deraadt

backout last week of csh diffs. They are disasterously broken, on i386
it becomes entirely unusable.


# 1.20 15-Sep-2018 miko

strsave() is hard-fail strdup() so simplify and rename to xstrdup().
with help from martijn@.

ok millert@ martijn@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.19 26-Oct-2015 naddy

Remove the #define Strfoo() s_strfoo() redirection and move everything
directly to Strfoo(). Purely mechanical. ok deraadt@


# 1.18 26-Oct-2015 naddy

Clean up cruft made visible by the NLS unifdefing:
* remove setlocale() calls
* remove write-only variable AsciiOnly
* remove now unused string constants STRLANG, STRLC_CTYPE
* remove hardcoded support for ISO8859-1

ok millert@


# 1.17 26-Oct-2015 naddy

unifdef BUILTIN (unused), NLS (always set), SHORT_STRINGS (always set)
and remove a few unused defines; no binary changes; ok tedu@ zhuk@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 16-Oct-2014 deraadt

Use reallocarray() and remove a few archaic memory allocation practices.
ok deraadt


Revision tags: 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 OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.15 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.14 03-Oct-2008 deraadt

NUL not NULL


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE 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
# 1.13 11-Jun-2003 deraadt

de-register and ansify functions


# 1.12 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 1.11 12-May-2003 jsyn

s_strn{cpy,cat} are no longer used; remove them. also, kill NOTUSED.
ok tedu@


# 1.10 30-Apr-2003 vincent

strvis -> strnvis

ok millert@


# 1.9 15-Apr-2003 deraadt

remove final call to Strcpy/s_strcpy; some help from tedu


# 1.8 08-Apr-2003 deraadt

Strcat/s_strcat is unused


Revision tags: OPENBSD_3_3_BASE
# 1.7 08-Jan-2003 deraadt

bring in strlcpy and strlcat-like things for dealing with Char types,
this fixes at least 15 buffer overflows; some help from dhartmei.
Anyone want to go do the same in ksh, and help with some of the while
(*s++ = *p++) loops in here?


Revision tags: OPENBSD_3_2_BASE
# 1.6 09-Jun-2002 todd

knf


Revision tags: OPENBSD_3_1_BASE
# 1.5 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.4 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


# 1.3 23-Jul-1997 kstailey

tabify


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.19 26-Oct-2015 naddy

Remove the #define Strfoo() s_strfoo() redirection and move everything
directly to Strfoo(). Purely mechanical. ok deraadt@


# 1.18 26-Oct-2015 naddy

Clean up cruft made visible by the NLS unifdefing:
* remove setlocale() calls
* remove write-only variable AsciiOnly
* remove now unused string constants STRLANG, STRLC_CTYPE
* remove hardcoded support for ISO8859-1

ok millert@


# 1.17 26-Oct-2015 naddy

unifdef BUILTIN (unused), NLS (always set), SHORT_STRINGS (always set)
and remove a few unused defines; no binary changes; ok tedu@ zhuk@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.16 16-Oct-2014 deraadt

Use reallocarray() and remove a few archaic memory allocation practices.
ok deraadt


Revision tags: 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 OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.15 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.14 03-Oct-2008 deraadt

NUL not NULL


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE 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
# 1.13 11-Jun-2003 deraadt

de-register and ansify functions


# 1.12 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 1.11 12-May-2003 jsyn

s_strn{cpy,cat} are no longer used; remove them. also, kill NOTUSED.
ok tedu@


# 1.10 30-Apr-2003 vincent

strvis -> strnvis

ok millert@


# 1.9 15-Apr-2003 deraadt

remove final call to Strcpy/s_strcpy; some help from tedu


# 1.8 08-Apr-2003 deraadt

Strcat/s_strcat is unused


Revision tags: OPENBSD_3_3_BASE
# 1.7 08-Jan-2003 deraadt

bring in strlcpy and strlcat-like things for dealing with Char types,
this fixes at least 15 buffer overflows; some help from dhartmei.
Anyone want to go do the same in ksh, and help with some of the while
(*s++ = *p++) loops in here?


Revision tags: OPENBSD_3_2_BASE
# 1.6 09-Jun-2002 todd

knf


Revision tags: OPENBSD_3_1_BASE
# 1.5 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.4 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


# 1.3 23-Jul-1997 kstailey

tabify


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE
# 1.2 23-Jun-1996 deraadt

update rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision