History log of /netbsd-src/bin/csh/func.c (Results 1 – 25 of 45)
Revision Date Author Comments
# 509d26c5 24-Apr-2024 nia <nia@NetBSD.org>

csh: replace malloc(x * y) and realloc(x * y) with reallocarray


# 85bd10cb 09-Aug-2020 dholland <dholland@NetBSD.org>

Don't cast the value returned from *malloc. No change to compiler output.


# ab87f51e 06-Jan-2019 christos <christos@NetBSD.org>

PR/53837: Michael Scholz: src/bin/csh/func.c from current has a superfluous
fprintf


# 1767ce60 05-Jan-2019 christos <christos@NetBSD.org>

Welcome to the 21th century csh: retire "ptr_t" now that we have "void *"


# bd073e63 05-Jan-2019 maya <maya@NetBSD.org>

Remove Free, s/xfree/free/.

Standard C says that free should be a no-op for a NULL pointer, so
we don't need an extra function to do this.

While here, add an XXX about a wrong sounding comment


# 37e39248 16-Jul-2013 christos <christos@NetBSD.org>

WARNS=6 [-Wconversion]


# 8af1ed16 09-Jun-2012 christos <christos@NetBSD.org>

support RLIMIT_NTHR


# 9f61b804 31-Aug-2011 plunky <plunky@NetBSD.org>

NULL does not need a cast


# fcc02354 29-Mar-2009 mrg <mrg@NetBSD.org>

- add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes. this limit exists in most other
modern unix variants, and like most of them, our defaults a

- add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes. this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.

- adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.

- add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)

- patch sh, and csh to notice RLIMIT_AS. (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)

- patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.

- update irix, svr4, svr4_32, linux and osf1 emulations to support
this information. (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)


this addresses PR 7897. it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.

tested on i386 and sparc64, build tested on several other platforms.

thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)

show more ...


# 8b19d01f 15-Sep-2007 ragge <ragge@NetBSD.org>

Needs errno.h if !gcc.


# b79c2ef2 16-Jul-2007 christos <christos@NetBSD.org>

no need to have cshbool; just make them int


# ec01a4a4 16-Jul-2007 christos <christos@NetBSD.org>

PR/36650: Michael van Elst: Get rid of bool, because csh uses bool as a small
int.


# 593a9183 16-Jul-2007 dogcow <dogcow@NetBSD.org>

Rename bool -> cshbool; despite the name, bool actually holds values other
than 0 or 1. Fixes PR/36650.


# 8ce1f4ff 29-Apr-2007 msaitoh <msaitoh@NetBSD.org>

fix typos


# 4d7c6251 18-Mar-2006 christos <christos@NetBSD.org>

Coverity CID 1228: protect against calling close with negative value.


# 6310b596 26-Jun-2005 christos <christos@NetBSD.org>

sprinkle a little const, and now everything compiles with WARNS=3


# 626d1a41 13-May-2004 christos <christos@NetBSD.org>

Keep track of the while level, when popping loops because of a breaksw.
This is nasty...


# 6acf809e 17-Apr-2004 christos <christos@NetBSD.org>

understand rlimit sbsize


# 9a77f167 17-Dec-2003 christos <christos@NetBSD.org>

Handle breaksw inside while loop (from tcsh)
Really: test commits on new cvs binary.


# b5b29542 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.


# b3df6303 16-Jan-2003 kleink <kleink@NetBSD.org>

Rename `sigset' locals to avoid symbol shadowing warning.


# 1da7ff99 28-May-2002 wiz <wiz@NetBSD.org>

Since we have rlim_t, use it.
Approved by kleink.


# 18158540 25-May-2002 wiz <wiz@NetBSD.org>

__STDC__ is always defined on NetBSD.


# 8c43d5ed 17-Dec-2001 christos <christos@NetBSD.org>

make sure that rlim_cur >= rlim_max in all the setrlimit(2) cases.


# b771e65b 14-Sep-2001 wiz <wiz@NetBSD.org>

ANSIfication and KNF improvements by Petri Koistinen in bin/13689,
with some fixes by me.


12