mirror of
https://github.com/sheumann/hush.git
synced 2024-06-06 17:29:42 +00:00
7b37cf666b
None of the changes here should be consequential for GNO hush.
43 lines
988 B
C
43 lines
988 B
C
/* vi: set sw=4 ts=4: */
|
|
/*
|
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
|
*/
|
|
#ifndef BUSYBOX_H
|
|
#define BUSYBOX_H 1
|
|
|
|
#define BB_VER "1.25.0 (GNO hush 1.2-dev)"
|
|
|
|
#include "libbb.h"
|
|
/* BB_DIR_foo and BB_SUID_bar constants: */
|
|
#include "appltmetadata.h"
|
|
|
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
|
|
|
#if ENABLE_FEATURE_PREFER_APPLETS
|
|
# define APPLET_IS_NOFORK(i) (applet_flags[(i)/4] & (1 << (2 * ((i)%4))))
|
|
# define APPLET_IS_NOEXEC(i) (applet_flags[(i)/4] & (1 << ((2 * ((i)%4))+1)))
|
|
#else
|
|
# define APPLET_IS_NOFORK(i) 0
|
|
# define APPLET_IS_NOEXEC(i) 0
|
|
#endif
|
|
|
|
#if ENABLE_FEATURE_SUID
|
|
# define APPLET_SUID(i) ((applet_suid[(i)/4] >> (2 * ((i)%4)) & 3))
|
|
#endif
|
|
|
|
|
|
/* Length of these names has effect on size of libbusybox
|
|
* and "individual" binaries. Keep them short.
|
|
*/
|
|
#if ENABLE_BUILD_LIBBUSYBOX
|
|
#if ENABLE_FEATURE_SHARED_BUSYBOX
|
|
int lbb_main(char **argv) EXTERNALLY_VISIBLE;
|
|
#else
|
|
int lbb_main(char **argv);
|
|
#endif
|
|
#endif
|
|
|
|
POP_SAVED_FUNCTION_VISIBILITY
|
|
|
|
#endif
|