summary refs log tree commit diff
path: root/src/machdep.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2018-05-19 02:39:48 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2018-05-28 17:12:23 +0800
commit4f7527f8e49276894751a9b100e68bc46568bb85 (patch)
tree8a6ece3bcd6d66225c94f1df33b7fd08163aba42 /src/machdep.h
parentmemalloc: Add growstackto helper (diff)
downloaddash-4f7527f8e49276894751a9b100e68bc46568bb85.tar.gz
dash-4f7527f8e49276894751a9b100e68bc46568bb85.zip
exec: Do not allocate stack string in padvance
Many callers of padvance immediately free the allocated string
so this patch moves the stalloc call to the caller.  Instead of
returning the allocated string, padvance now returns the length
to allocate (this may be longer than the actual string length,
even including the NUL).  For the case where we would previously
return NULL, we now return -1.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/machdep.h')
0 files changed, 0 insertions, 0 deletions
lock.c?id=2a463ab5790a303c28c3cd71a98dc1ef403a333d&follow=1'>Add fbclockJune McEnroe 2018-01-29Remove color from MakefileJune McEnroe 2018-01-29Set t_Co = 8June McEnroe Weirdly with t_Co = 16 yellow and bright white weren't showing up on TERM=linux. 2018-01-29Add :Q command aliasJune McEnroe It seemes I can't take my finger off the shift key fast enough. 2018-01-29Add setuid target for briJune McEnroe 2018-01-28Add init function to fb interfaceJune McEnroe 2018-01-28Add color.cJune McEnroe