mirror of
https://github.com/sheumann/hush.git
synced 2024-10-31 19:04:47 +00:00
550bf5b4a4
function old new delta xfunc_has_died - 21 +21 sleep_much - 12 +12 sleep10 - 9 +9 die_func - 4 +4 fflush_stdout_and_exit 35 36 +1 builtin_type 121 119 -2 die_sleep 4 - -4 xfunc_die 60 24 -36 hush_main 1128 1011 -117 die_jmp 156 - -156 ------------------------------------------------------------------------------ (add/remove: 4/2 grow/shrink: 1/3 up/down: 47/-315) Total: -268 bytes text data bss dec hex filename 939992 992 17652 958636 ea0ac busybox_old 939880 992 17496 958368 e9fa0 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
23 lines
457 B
C
23 lines
457 B
C
/* vi: set sw=4 ts=4: */
|
|
/*
|
|
* Utility routines.
|
|
*
|
|
* Copyright (C) 2008 by Denys Vlasenko <vda.linux@googlemail.com>
|
|
*
|
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
|
*/
|
|
|
|
/* Keeping it separate allows to NOT pull in stdio for VERY small applets.
|
|
* Try building busybox with only "true" enabled... */
|
|
|
|
#include "libbb.h"
|
|
|
|
void (*die_func)(void);
|
|
|
|
void FAST_FUNC xfunc_die(void)
|
|
{
|
|
if (die_func)
|
|
die_func();
|
|
exit(xfunc_error_retval);
|
|
}
|