~vcs-imports/busybox/trunk

« back to all changes in this revision

Viewing changes to include/libbb.h

  • Committer: Denys Vlasenko
  • Date: 2023-07-17 15:29:36 UTC
  • Revision ID: git-v1:c484846c4459affa769b84cbd0b586f2bbaec828
introduce and use exitcode_t

function                                             old     new   delta
strings_main                                         422     420      -2
setfattr_main                                        175     173      -2
brctl_main                                          1548    1546      -2
makedevs_main                                        979     975      -4
rev_main                                             337     332      -5
getfattr_main                                        307     302      -5
cut_main                                            1201    1196      -5
cksum_main                                           398     393      -5
umount_main                                          573     565      -8
ln_main                                              516     508      -8
expand_main                                          660     652      -8
df_main                                             1068    1060      -8
renice_main                                          346     332     -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/13 up/down: 0/-76)            Total: -76 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1444
1444
void bb_die_memory_exhausted(void) NORETURN FAST_FUNC;
1445
1445
void bb_logenv_override(void) FAST_FUNC;
1446
1446
 
 
1447
/* x86 benefits from narrow exit code variables
 
1448
 * (because it has no widening MOV imm8,word32 insn, has to use MOV imm32,w
 
1449
 * for "exitcode = EXIT_FAILURE" and similar. The downside is that sometimes
 
1450
*  gcc widens the variable to int in various ugly suboptimal ways).
 
1451
 */
 
1452
typedef smalluint exitcode_t;
 
1453
 
1447
1454
#if ENABLE_FEATURE_SYSLOG_INFO
1448
1455
void bb_info_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC;
1449
1456
void bb_simple_info_msg(const char *s) FAST_FUNC;