Protect malloc, realloc and free calls with INT{ON,OFF} directly in chkalloc,
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 14 Jan 2007 03:59:57 +0000 (03:59 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 14 Jan 2007 03:59:57 +0000 (03:59 +0000)
commit0c6fe0fc88a075bb1c0b8d6dceac7f2c659c8a99
treee17bc0e1ecbd73bf6e4a4b0aeece13b8bb47c4c4
parenta3c35df6c05ff80145b1e520463b3b5973d0b81e
Protect malloc, realloc and free calls with INT{ON,OFF} directly in chkalloc,
ckrealloc and ckfree (added), respectively.  sh jumps out of the signal handler
using longjmp which is obviously a bad idea during malloc calls.

Use the ALIGN macro from <sys/param.h> instead of defining our own
version in machdep.h. Delete machdep.h.

Obtained-from:  FreeBSD
bin/sh/machdep.h [deleted file]
bin/sh/memalloc.c
bin/sh/memalloc.h
bin/sh/nodes.c.pat