#include <sys/types.h>
#include <termios.h>
-
-
#ifdef CONFIG_SELINUX
#include <selinux/selinux.h>
#endif
# include "sha1.h"
#endif
+/* Try to pull in PATH_MAX */
+#include <limits.h>
+#include <sys/param.h>
+#ifndef PATH_MAX
+#define PATH_MAX 256
+#endif
+
+#ifdef DMALLOC
+#include <dmalloc.h>
+#endif
+
/* Some useful definitions */
#undef FALSE
#define FALSE ((int) 0)
extern unsigned char bb_xread_char(int fd);
#ifndef COMM_LEN
-/*#include <sched.h> *//* Task command name length */
#ifdef TASK_COMM_LEN
#define COMM_LEN TASK_COMM_LEN
#else
-#define COMM_LEN 16 /* synchronize with size of comm in struct task_struct
- in /usr/include/linux/sched.h */
+/* synchronize with sizeof(task_struct.comm) in /usr/include/linux/sched.h */
+#define COMM_LEN 16
#endif
#endif
typedef struct {
#define RB_POWER_OFF 0x4321fedc
#endif
-/* Try to pull in PATH_MAX */
-#include <limits.h>
-#include <sys/param.h>
-#ifndef PATH_MAX
-#define PATH_MAX 256
-#endif
-
-#ifdef DMALLOC
-#include <dmalloc.h>
-#endif
-
extern const char BB_BANNER[];
#endif /* __LIBBUSYBOX_H__ */
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
*/
+#include "busybox.h"
+
#include <sys/syslog.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <errno.h>
-#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <net/if.h>
#include <netinet/ether.h>
-#include "busybox.h"
/* Older versions of net/if.h do not appear to define IF_NAMESIZE. */
#ifndef IF_NAMESIZE