History log of /openbsd-src/bin/csh/misc.c (Results 1 – 25 of 25)
Revision Date Author Comments
# d95322bb 24-Oct-2018 martijn <martijn@openbsd.org>

Fix some minor issues found by coverity.

OK millert@ and miko@


# 44cfad27 18-Sep-2018 millert <millert@openbsd.org>

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


# 5f867525 18-Sep-2018 deraadt <deraadt@openbsd.org>

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


# ab0a5ca8 17-Sep-2018 martijn <martijn@openbsd.org>

Replace any() with strchr(3).

OK millert@ and miko@


# 63a151f2 15-Sep-2018 miko <miko@openbsd.org>

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

ok millert@ martijn@


# 0b2eaac3 20-Jun-2017 anton <anton@openbsd.org>

Don't try to close every single file descriptor up to _SC_OPEN_MAX in csh.
Instead, close the fds that reside in between the gaps of used fds and once the
largest used fd is reached call closefrom().

Don't try to close every single file descriptor up to _SC_OPEN_MAX in csh.
Instead, close the fds that reside in between the gaps of used fds and once the
largest used fd is reached call closefrom().

ok deraadt@

show more ...


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

Don't call sysconf() in a loop conditional when the loop won't affect it

ok natano@ tedu@


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

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

OK mmcc@


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

miscellaneous cruft:
* remove lint
* unifdef S_IFLNK, S_ISFIFO, S_ISLNK, S_ISSOCK, O_APPEND
* remove 0, NOTUSED, notdef -- untouched since original import
* remove IIASA


# 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@


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

delete tons more casts


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

delete many more ptr_t casts


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

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


# f4faee91 04-Dec-2012 deraadt <deraadt@openbsd.org>

remove some unnecessary sys/param.h inclusions


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


# 5c48a120 11-Dec-2005 deraadt <deraadt@openbsd.org>

unused code and variables


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

de-register and ansify functions


# 29295d1c 02-Jun-2003 millert <millert@openbsd.org>

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


# e7beb4a7 19-Feb-2002 millert <millert@openbsd.org>

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


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

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 don

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.

show more ...


# b0c62ffa 25-Jul-1997 mickey <mickey@openbsd.org>

#if __STDC__ --> #ifdef __STDC__


# 6b38f156 02-Nov-1996 millert <millert@openbsd.org>

Update from NetBSD (christos)
Quote all imported environment variables.


# db3ca83c 29-Jun-1996 deraadt <deraadt@openbsd.org>

s/NOFILE/sysconf(_SC_OPEN_MAX)/


# 09e94acb 23-Jun-1996 deraadt <deraadt@openbsd.org>

update rcsid


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree