History log of /openbsd-current/bin/csh/csh.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.34 30-Aug-2020 mortimer

Fix multiple variable definitions to avoid errors with -fno-common.

ok millert@


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.33 18-Sep-2018 millert

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


# 1.32 18-Sep-2018 deraadt

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


# 1.31 18-Sep-2018 miko

remove macros for xmalloc(), xcalloc() & xreallocarray() and just name the
functions that.

ok millert@ martijn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.30 30-Aug-2017 anton

Fix pasting of long (>BUFSIZ) lines in csh with filec enabled. NUL-terminating
the input buffer instructs csh that the buffer contains a complete command. This
is wrong and should only happen when buffer is not full, otherwise more data has
to be read in order form a complete command.

While here, do not print the prompt again when the input exceeds the input
buffer and while inserting a line continuation (backslash).


# 1.29 22-Jul-2017 anton

Use monotonic clock for the time command in csh and ksh.

From Scott Cheloha
ok tb@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.28 26-Dec-2015 mestre

Replace handrolled xfree() function by directly using free(3)

OK mmcc@


# 1.27 28-Oct-2015 naddy

unifdef _PATH_*


# 1.26 26-Oct-2015 naddy

remove the profiling and debugging ifdefs; ok zhuk@


# 1.25 26-Oct-2015 naddy

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


# 1.24 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.23 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_8_BASE
# 1.22 17-Jun-2015 deraadt

remove -DFILEC; code does not compile for the -UFILEC case, and anyways,
who wants csh without FILEC??
from Peter Brottveit Bock, but redone using unifdef


Revision tags: OPENBSD_5_7_BASE
# 1.21 08-Feb-2015 tedu

remove ptr_t typedef. void * is good enough for csh.


# 1.20 19-Jan-2015 deraadt

remove #ifndef #define blocks trying to handle lack of BUFSIZ
ok millert


# 1.19 17-Oct-2014 deraadt

no need for realloc() front ends anymore


# 1.18 16-Oct-2014 deraadt

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


Revision tags: 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 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 OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.17 13-Mar-2005 cloder

Use pid_t where appropriate. From Bruno Rohee (thanks).


# 1.16 25-Feb-2005 deraadt

no more Strncpy or Strncat, ever


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.15 25-Jun-2003 deraadt

protos


# 1.14 11-Jun-2003 deraadt

de-register and ansify functions


# 1.13 02-Jun-2003 millert

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


# 1.12 12-May-2003 jsyn

fix overflow in implicit constant conversion; ok millert@


# 1.11 15-Apr-2003 deraadt

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


# 1.10 08-Apr-2003 deraadt

Strcat/s_strcat is unused


Revision tags: OPENBSD_3_3_BASE
# 1.9 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_1_BASE OPENBSD_3_2_BASE
# 1.8 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.7 30-Oct-2000 millert

Use mkstemp(3) for here document (<<) temporary files instead of $$
Problem noted by proton@ENERGYMECH.NET


# 1.6 30-Aug-2000 mickey

prevent core dumps when stderror() is called before reslab is initialized


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.5 06-Aug-1999 deraadt

uid_t and gid_t, and use %u


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.4 15-Nov-1997 todd

spelling


Revision tags: OPENBSD_2_2_BASE
# 1.3 22-Sep-1997 millert

err.[ch] -> error.[ch] and fix err/warn usage.


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


# 1.33 18-Sep-2018 millert

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


# 1.32 18-Sep-2018 deraadt

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


# 1.31 18-Sep-2018 miko

remove macros for xmalloc(), xcalloc() & xreallocarray() and just name the
functions that.

ok millert@ martijn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.30 30-Aug-2017 anton

Fix pasting of long (>BUFSIZ) lines in csh with filec enabled. NUL-terminating
the input buffer instructs csh that the buffer contains a complete command. This
is wrong and should only happen when buffer is not full, otherwise more data has
to be read in order form a complete command.

While here, do not print the prompt again when the input exceeds the input
buffer and while inserting a line continuation (backslash).


# 1.29 22-Jul-2017 anton

Use monotonic clock for the time command in csh and ksh.

From Scott Cheloha
ok tb@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.28 26-Dec-2015 mestre

Replace handrolled xfree() function by directly using free(3)

OK mmcc@


# 1.27 28-Oct-2015 naddy

unifdef _PATH_*


# 1.26 26-Oct-2015 naddy

remove the profiling and debugging ifdefs; ok zhuk@


# 1.25 26-Oct-2015 naddy

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


# 1.24 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.23 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_8_BASE
# 1.22 17-Jun-2015 deraadt

remove -DFILEC; code does not compile for the -UFILEC case, and anyways,
who wants csh without FILEC??
from Peter Brottveit Bock, but redone using unifdef


Revision tags: OPENBSD_5_7_BASE
# 1.21 08-Feb-2015 tedu

remove ptr_t typedef. void * is good enough for csh.


# 1.20 19-Jan-2015 deraadt

remove #ifndef #define blocks trying to handle lack of BUFSIZ
ok millert


# 1.19 17-Oct-2014 deraadt

no need for realloc() front ends anymore


# 1.18 16-Oct-2014 deraadt

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


Revision tags: 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 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 OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.17 13-Mar-2005 cloder

Use pid_t where appropriate. From Bruno Rohee (thanks).


# 1.16 25-Feb-2005 deraadt

no more Strncpy or Strncat, ever


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.15 25-Jun-2003 deraadt

protos


# 1.14 11-Jun-2003 deraadt

de-register and ansify functions


# 1.13 02-Jun-2003 millert

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


# 1.12 12-May-2003 jsyn

fix overflow in implicit constant conversion; ok millert@


# 1.11 15-Apr-2003 deraadt

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


# 1.10 08-Apr-2003 deraadt

Strcat/s_strcat is unused


Revision tags: OPENBSD_3_3_BASE
# 1.9 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_1_BASE OPENBSD_3_2_BASE
# 1.8 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.7 30-Oct-2000 millert

Use mkstemp(3) for here document (<<) temporary files instead of $$
Problem noted by proton@ENERGYMECH.NET


# 1.6 30-Aug-2000 mickey

prevent core dumps when stderror() is called before reslab is initialized


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.5 06-Aug-1999 deraadt

uid_t and gid_t, and use %u


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.4 15-Nov-1997 todd

spelling


Revision tags: OPENBSD_2_2_BASE
# 1.3 22-Sep-1997 millert

err.[ch] -> error.[ch] and fix err/warn usage.


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_6_2_BASE
# 1.30 30-Aug-2017 anton

Fix pasting of long (>BUFSIZ) lines in csh with filec enabled. NUL-terminating
the input buffer instructs csh that the buffer contains a complete command. This
is wrong and should only happen when buffer is not full, otherwise more data has
to be read in order form a complete command.

While here, do not print the prompt again when the input exceeds the input
buffer and while inserting a line continuation (backslash).


# 1.29 22-Jul-2017 anton

Use monotonic clock for the time command in csh and ksh.

From Scott Cheloha
ok tb@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.28 26-Dec-2015 mestre

Replace handrolled xfree() function by directly using free(3)

OK mmcc@


# 1.27 28-Oct-2015 naddy

unifdef _PATH_*


# 1.26 26-Oct-2015 naddy

remove the profiling and debugging ifdefs; ok zhuk@


# 1.25 26-Oct-2015 naddy

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


# 1.24 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.23 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_8_BASE
# 1.22 17-Jun-2015 deraadt

remove -DFILEC; code does not compile for the -UFILEC case, and anyways,
who wants csh without FILEC??
from Peter Brottveit Bock, but redone using unifdef


Revision tags: OPENBSD_5_7_BASE
# 1.21 08-Feb-2015 tedu

remove ptr_t typedef. void * is good enough for csh.


# 1.20 19-Jan-2015 deraadt

remove #ifndef #define blocks trying to handle lack of BUFSIZ
ok millert


# 1.19 17-Oct-2014 deraadt

no need for realloc() front ends anymore


# 1.18 16-Oct-2014 deraadt

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


Revision tags: 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 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 OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.17 13-Mar-2005 cloder

Use pid_t where appropriate. From Bruno Rohee (thanks).


# 1.16 25-Feb-2005 deraadt

no more Strncpy or Strncat, ever


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.15 25-Jun-2003 deraadt

protos


# 1.14 11-Jun-2003 deraadt

de-register and ansify functions


# 1.13 02-Jun-2003 millert

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


# 1.12 12-May-2003 jsyn

fix overflow in implicit constant conversion; ok millert@


# 1.11 15-Apr-2003 deraadt

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


# 1.10 08-Apr-2003 deraadt

Strcat/s_strcat is unused


Revision tags: OPENBSD_3_3_BASE
# 1.9 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_1_BASE OPENBSD_3_2_BASE
# 1.8 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.7 30-Oct-2000 millert

Use mkstemp(3) for here document (<<) temporary files instead of $$
Problem noted by proton@ENERGYMECH.NET


# 1.6 30-Aug-2000 mickey

prevent core dumps when stderror() is called before reslab is initialized


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.5 06-Aug-1999 deraadt

uid_t and gid_t, and use %u


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.4 15-Nov-1997 todd

spelling


Revision tags: OPENBSD_2_2_BASE
# 1.3 22-Sep-1997 millert

err.[ch] -> error.[ch] and fix err/warn usage.


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