aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 6948695e9..5d7248104 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -39,25 +39,29 @@
39#include <unistd.h> 39#include <unistd.h>
40#include <utime.h> 40#include <utime.h>
41 41
42#ifdef CONFIG_SELINUX 42#if ENABLE_SELINUX
43#include <selinux/selinux.h> 43#include <selinux/selinux.h>
44#endif 44#endif
45 45
46#ifdef CONFIG_LOCALE_SUPPORT 46#if ENABLE_LOCALE_SUPPORT
47#include <locale.h> 47#include <locale.h>
48#else 48#else
49#define setlocale(x,y) 49#define setlocale(x,y) ((void)0)
50#endif 50#endif
51 51
52#include "pwd_.h" 52#include "pwd_.h"
53#include "grp_.h" 53#include "grp_.h"
54/* ifdef it out, because it may include <shadow.h> */
55/* and we may not even _have_ <shadow.h>! */
56#if ENABLE_FEATURE_SHADOWPASSWDS
54#include "shadow_.h" 57#include "shadow_.h"
58#endif
55 59
56/* Try to pull in PATH_MAX */ 60/* Try to pull in PATH_MAX */
57#include <limits.h> 61#include <limits.h>
58#include <sys/param.h> 62#include <sys/param.h>
59#ifndef PATH_MAX 63#ifndef PATH_MAX
60#define PATH_MAX 256 64#define PATH_MAX 256
61#endif 65#endif
62 66
63/* Tested to work correctly (IIRC :]) */ 67/* Tested to work correctly (IIRC :]) */
@@ -142,12 +146,12 @@
142#endif 146#endif
143 147
144/* buffer allocation schemes */ 148/* buffer allocation schemes */
145#ifdef CONFIG_FEATURE_BUFFERS_GO_ON_STACK 149#if ENABLE_FEATURE_BUFFERS_GO_ON_STACK
146#define RESERVE_CONFIG_BUFFER(buffer,len) char buffer[len] 150#define RESERVE_CONFIG_BUFFER(buffer,len) char buffer[len]
147#define RESERVE_CONFIG_UBUFFER(buffer,len) unsigned char buffer[len] 151#define RESERVE_CONFIG_UBUFFER(buffer,len) unsigned char buffer[len]
148#define RELEASE_CONFIG_BUFFER(buffer) ((void)0) 152#define RELEASE_CONFIG_BUFFER(buffer) ((void)0)
149#else 153#else
150#ifdef CONFIG_FEATURE_BUFFERS_GO_IN_BSS 154#if ENABLE_FEATURE_BUFFERS_GO_IN_BSS
151#define RESERVE_CONFIG_BUFFER(buffer,len) static char buffer[len] 155#define RESERVE_CONFIG_BUFFER(buffer,len) static char buffer[len]
152#define RESERVE_CONFIG_UBUFFER(buffer,len) static unsigned char buffer[len] 156#define RESERVE_CONFIG_UBUFFER(buffer,len) static unsigned char buffer[len]
153#define RELEASE_CONFIG_BUFFER(buffer) ((void)0) 157#define RELEASE_CONFIG_BUFFER(buffer) ((void)0)
@@ -466,7 +470,7 @@ extern void bb_do_delay(int seconds);
466extern void change_identity(const struct passwd *pw); 470extern void change_identity(const struct passwd *pw);
467extern const char *change_identity_e2str(const struct passwd *pw); 471extern const char *change_identity_e2str(const struct passwd *pw);
468extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args); 472extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args);
469#ifdef CONFIG_SELINUX 473#if ENABLE_SELINUX
470extern void renew_current_security_context(void); 474extern void renew_current_security_context(void);
471extern void set_current_security_context(security_context_t sid); 475extern void set_current_security_context(security_context_t sid);
472#endif 476#endif
@@ -636,7 +640,7 @@ extern const char bb_default_login_shell[];
636#define DEFAULT_SHELL_SHORT_NAME (bb_default_login_shell+6) 640#define DEFAULT_SHELL_SHORT_NAME (bb_default_login_shell+6)
637 641
638 642
639#ifdef CONFIG_FEATURE_DEVFS 643#if ENABLE_FEATURE_DEVFS
640# define CURRENT_VC "/dev/vc/0" 644# define CURRENT_VC "/dev/vc/0"
641# define VC_1 "/dev/vc/1" 645# define VC_1 "/dev/vc/1"
642# define VC_2 "/dev/vc/2" 646# define VC_2 "/dev/vc/2"