History log of /openbsd-src/bin/csh/func.c (Results 1 – 25 of 42)
Revision Date Author Comments
# e6c7c102 23-Apr-2024 jsg <jsg@openbsd.org>

correct indentation; no functional change
ok tb@


# 5b133f3f 08-Mar-2023 guenther <guenther@openbsd.org>

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@


# 2775762a 02-Jul-2021 deraadt <deraadt@openbsd.org>

Before calling setrlimit(), pull cur up to max.
ok millert


# 3aaa63eb 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

show more ...


# bcb7da30 08-Sep-2018 miko <miko@openbsd.org>

blkfree() takes no action for NULL pointer so callers can avoid checking.

ok jca@


# 49fb0940 18-Dec-2017 anton <anton@openbsd.org>

No need to declare variable name as static in dounsetenv(). Also, drop a
redundant call to free() since name is always freed upon return.

From Michael W. Bombardieri, with some tweaks by myself.


# d99a0661 16-Dec-2017 anton <anton@openbsd.org>

Passing NULL to free() is fine; from Michael W. Bombardieri.


# 4a8db713 30-Aug-2017 anton <anton@openbsd.org>

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 bu

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).

show more ...


# fc253c1d 26-Jul-2017 anton <anton@openbsd.org>

Postpone printing of prompt if filec is enabled in csh. Any I/O should be
performed first when canonical mode has been disabled on the tty just like ksh
does. Discovered by the regress tests.

Joint

Postpone printing of prompt if filec is enabled in csh. Any I/O should be
performed first when canonical mode has been disabled on the tty just like ksh
does. Discovered by the regress tests.

Joint work with bluhm@, ok deraadt@

show more ...


# e4630363 14-Aug-2016 guenther <guenther@openbsd.org>

Don't reinvent rlim_t; when printing it use %llu and cast to
unsigned long long

ok natano@ tedu@


# acdb3202 26-Dec-2015 mestre <mestre@openbsd.org>

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

OK mmcc@


# 9abb453f 26-Oct-2015 naddy <naddy@openbsd.org>

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 suppo

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@

show more ...


# c38c44c7 26-Oct-2015 naddy <naddy@openbsd.org>

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


# 7637b2e3 27-Sep-2015 guenther <guenther@openbsd.org>

lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */
(others require more care)


# d29fd0a0 08-Feb-2015 tedu <tedu@openbsd.org>

delete tons more casts


# f4d574c6 08-Feb-2015 tedu <tedu@openbsd.org>

delete lots of unnecessary ptr_t casts, and drop a little NULL in as well


# a8627d2c 16-Oct-2014 deraadt <deraadt@openbsd.org>

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


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

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
(th

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

show more ...


# d4885811 08-Aug-2004 millert <millert@openbsd.org>

print vmemoryuse immediately after vmemoryuse in limit output


# d2fff839 07-Aug-2004 millert <millert@openbsd.org>

vmemsize -> vmemoryuse for consistency with tcsh and document. mickey@ OK


# 74aa90ca 06-Aug-2004 mickey <mickey@openbsd.org>

conditional use of RLIMIT_VMEM (like ksh)


# 102c311d 15-May-2004 tedu <tedu@openbsd.org>

print the whole hint for bad limit modifiers. ok otto pedro


# 74637cb2 25-Jun-2003 deraadt <deraadt@openbsd.org>

protos


# 0e7daa68 23-Jun-2003 deraadt <deraadt@openbsd.org>

kill printf builtin. no reason to be a builtin, but furthermore, the
handling of format strings is quite non-compliant.


# e757c91e 11-Jun-2003 deraadt <deraadt@openbsd.org>

de-register and ansify functions


12