summaryrefslogtreecommitdiff
path: root/etc/scripts/bootstrap-busybox/include
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-10-20 16:07:58 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-10-20 16:07:58 +0200
commit060a0cf338d6024eee37cc344c224fe3bcb78e81 (patch)
tree3fea7c654b69ecf3490fe9c6cbc542aba0d5bd8f /etc/scripts/bootstrap-busybox/include
downloadbootstrappable-toolchain-060a0cf338d6024eee37cc344c224fe3bcb78e81.tar.gz
Initial commit
Diffstat (limited to 'etc/scripts/bootstrap-busybox/include')
-rw-r--r--etc/scripts/bootstrap-busybox/include/common_bufsiz.h3
-rw-r--r--etc/scripts/bootstrap-busybox/include/libbb.h162
2 files changed, 165 insertions, 0 deletions
diff --git a/etc/scripts/bootstrap-busybox/include/common_bufsiz.h b/etc/scripts/bootstrap-busybox/include/common_bufsiz.h
new file mode 100644
index 0000000..91e452a
--- /dev/null
+++ b/etc/scripts/bootstrap-busybox/include/common_bufsiz.h
@@ -0,0 +1,3 @@
+enum { COMMON_BUFSIZE = 1024 };
+extern char bb_common_bufsiz1[];
+#define setup_common_bufsiz() ((void)0)
diff --git a/etc/scripts/bootstrap-busybox/include/libbb.h b/etc/scripts/bootstrap-busybox/include/libbb.h
new file mode 100644
index 0000000..33405c1
--- /dev/null
+++ b/etc/scripts/bootstrap-busybox/include/libbb.h
@@ -0,0 +1,162 @@
+/* configuration */
+#define BB_VER "1.36.1"
+#define BB_EXTRA_VERSION ""
+#define BB_GLOBAL_CONST
+
+#define CONFIG_BUSYBOX_EXEC_PATH "/proc/self/exe"
+#define CONFIG_FEATURE_COPYBUF_KB 4
+#define CONFIG_SHA3_SMALL 0
+#define CONFIG_PASSWORD_MINLEN 6
+#define CONFIG_PID_FILE_PATH ""
+
+#define ENABLE_DESKTOP 0
+#define ENABLE_TAR 1
+#define ENABLE_ZCAT 0
+#define ENABLE_SELINUX 0
+#define ENABLE_KILLALL 0
+#define ENABLE_PGREP 0
+#define ENABLE_FGREP 0
+#define ENABLE_EGREP 0
+#define ENABLE_PKILL 0
+#define ENABLE_PIDOF 0
+#define ENABLE_SESTATUS 0
+#define ENABLE_SHA512SUM 0
+#define ENABLE_LOCALE_SUPPORT 0
+#define ENABLE_LONG_OPTS 0
+#define ENABLE_USE_BB_CRYPT_SHA 0
+#define ENABLE_FEATURE_VERBOSE 0
+#define ENABLE_FEATURE_SYSLOG 0
+#define ENABLE_FEATURE_CROND_D 0
+#define ENABLE_FEATURE_TOPMEM 0
+#define ENABLE_FEATURE_TOP_SMP_PROCESS 0
+#define ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS 0
+#define ENABLE_FEATURE_SHOW_THREADS 0
+#define ENABLE_FEATURE_CLEAN_UP 0
+#define ENABLE_FEATURE_PRESERVE_HARDLINKS 0
+#define ENABLE_FEATURE_NON_POSIX_CP 0
+#define ENABLE_FEATURE_USE_SENDFILE 0
+#define ENABLE_FEATURE_SKIP_ROOTFS 0
+#define ENABLE_FEATURE_MOUNT_LOOP_CREATE 0
+#define ENABLE_FEATURE_AWK_LIBM 0
+#define ENABLE_FEATURE_ALLOW_EXEC 0
+#define ENABLE_FEATURE_SEAMLESS_XZ 0
+#define ENABLE_FEATURE_SEAMLESS_LZMA 0
+#define ENABLE_FEATURE_SEAMLESS_BZ2 0
+#define ENABLE_FEATURE_SEAMLESS_GZ 0
+#define ENABLE_FEATURE_SEAMLESS_Z 0
+#define ENABLE_FEATURE_TAR_CREATE 1
+#define ENABLE_FEATURE_TAR_FROM 0
+#define ENABLE_FEATURE_TAR_NOPRESERVE_TIME 0
+#define ENABLE_FEATURE_TAR_LONG_OPTIONS 0
+#define ENABLE_FEATURE_TAR_TO_COMMAND 0
+#define ENABLE_FEATURE_TAR_GNU_EXTENSIONS 0
+#define ENABLE_FEATURE_TAR_AUTODETECT 0
+#define ENABLE_FEATURE_TAR_OLDGNU_COMPATIBILITY 0
+#define ENABLE_FEATURE_TAR_OLDSUN_COMPATIBILITY 0
+#define ENABLE_FEATURE_FIND_PATH 0
+#define ENABLE_FEATURE_FIND_REGEX 0
+#define ENABLE_FEATURE_FIND_PRINT0 0
+#define ENABLE_FEATURE_FIND_TYPE 1
+#define ENABLE_FEATURE_FIND_EXECUTABLE 0
+#define ENABLE_FEATURE_FIND_PERM 0
+#define ENABLE_FEATURE_FIND_MTIME 0
+#define ENABLE_FEATURE_FIND_CTIME 0
+#define ENABLE_FEATURE_FIND_ATIME 0
+#define ENABLE_FEATURE_FIND_MMIN 0
+#define ENABLE_FEATURE_FIND_CMIN 0
+#define ENABLE_FEATURE_FIND_AMIN 0
+#define ENABLE_FEATURE_FIND_NEWER 0
+#define ENABLE_FEATURE_FIND_INUM 0
+#define ENABLE_FEATURE_FIND_SAMEFILE 0
+#define ENABLE_FEATURE_FIND_USER 0
+#define ENABLE_FEATURE_FIND_SIZE 0
+#define ENABLE_FEATURE_FIND_CONTEXT 0
+#define ENABLE_FEATURE_FIND_PAREN 1
+#define ENABLE_FEATURE_FIND_PRUNE 1
+#define ENABLE_FEATURE_FIND_QUIT 0
+#define ENABLE_FEATURE_FIND_DELETE 0
+#define ENABLE_FEATURE_FIND_EMPTY 0
+#define ENABLE_FEATURE_FIND_EXEC 0
+#define ENABLE_FEATURE_FIND_EXEC_PLUS 0
+#define ENABLE_FEATURE_FIND_GROUP 0
+#define ENABLE_FEATURE_FIND_LINKS 0
+#define ENABLE_FEATURE_FIND_NOT 1
+#define ENABLE_FEATURE_FIND_DEPTH 0
+#define ENABLE_FEATURE_FIND_MAXDEPTH 0
+#define ENABLE_FEATURE_FIND_XDEV 0
+#define ENABLE_FEATURE_BZIP2_DECOMPRESS 0
+
+#define IF_DESKTOP(...)
+#define IF_NOT_DESKTOP(...) __VA_ARGS__
+#define IF_SHELL_ASH(...)
+#define IF_SHELL_HUSH(...)
+#define IF_ECHO(...)
+#define IF_SLEEP(...)
+#define IF_PRINTF(...)
+#define IF_CHOWN(...)
+#define IF_LS(...)
+#define IF_SELINUX(...)
+#define IF_EXTRA_COMPAT(...)
+#define IF_FEATURE_SHOW_THREADS(...)
+#define IF_FEATURE_CP_REFLINK(...)
+#define IF_FEATURE_SHADOWPASSWDS(...)
+#define IF_FEATURE_MTAB_SUPPORT(...)
+#define IF_FEATURE_SKIP_ROOTFS(...)
+#define IF_FEATURE_MOUNT_LOOP_CREATE(...)
+#define IF_FEATURE_TIMEZONE(...)
+#define IF_FEATURE_AWK_GNU_EXTENSIONS(...)
+#define IF_FEATURE_GREP_CONTEXT(...)
+#define IF_FEATURE_SEAMLESS_XZ(...)
+#define IF_FEATURE_SEAMLESS_LZMA(...)
+#define IF_FEATURE_SEAMLESS_BZ2(...)
+#define IF_FEATURE_SEAMLESS_GZ(...)
+#define IF_FEATURE_SEAMLESS_Z(...)
+#define IF_FEATURE_TAR_CREATE(...) __VA_ARGS__
+#define IF_FEATURE_TAR_FROM(...)
+#define IF_FEATURE_TAR_NOPRESERVE_TIME(...)
+#define IF_FEATURE_TAR_LONG_OPTIONS(...)
+#define IF_FEATURE_TAR_TO_COMMAND(...)
+#define IF_NOT_FEATURE_TAR_CREATE(...)
+#define IF_FEATURE_TAR_OLDGNU_COMPATIBILITY(...)
+#define IF_FEATURE_TAR_OLDSUN_COMPATIBILITY(...)
+#define IF_FEATURE_FIND_PATH(...)
+#define IF_FEATURE_FIND_REGEX(...)
+#define IF_FEATURE_FIND_PRINT0(...)
+#define IF_FEATURE_FIND_TYPE(...) __VA_ARGS__
+#define IF_FEATURE_FIND_EXECUTABLE(...)
+#define IF_FEATURE_FIND_PERM(...)
+#define IF_FEATURE_FIND_MTIME(...)
+#define IF_FEATURE_FIND_CTIME(...)
+#define IF_FEATURE_FIND_ATIME(...)
+#define IF_FEATURE_FIND_MMIN(...)
+#define IF_FEATURE_FIND_CMIN(...)
+#define IF_FEATURE_FIND_AMIN(...)
+#define IF_FEATURE_FIND_NEWER(...)
+#define IF_FEATURE_FIND_INUM(...)
+#define IF_FEATURE_FIND_SAMEFILE(...)
+#define IF_FEATURE_FIND_USER(...)
+#define IF_FEATURE_FIND_SIZE(...)
+#define IF_FEATURE_FIND_CONTEXT(...)
+#define IF_FEATURE_FIND_PAREN(...) __VA_ARGS__
+#define IF_FEATURE_FIND_PRUNE(...) __VA_ARGS__
+#define IF_FEATURE_FIND_QUIT(...)
+#define IF_FEATURE_FIND_DELETE(...)
+#define IF_FEATURE_FIND_EMPTY(...)
+#define IF_FEATURE_FIND_EXEC(...)
+#define IF_FEATURE_FIND_EXEC_PLUS(...)
+#define IF_FEATURE_FIND_GROUP(...)
+#define IF_FEATURE_FIND_LINKS(...)
+#define IF_FEATURE_FIND_NOT(...) __VA_ARGS__
+#define IF_FEATURE_FIND_DEPTH(...)
+#define IF_FEATURE_FIND_MAXDEPTH(...)
+#define IF_NOT_FEATURE_FIND_MAXDEPTH(...) __VA_ARGS__
+#define IF_FEATURE_FIND_XDEV(...)
+#define IF_FEATURE_BZIP2_DECOMPRESS(...)
+
+
+/* missing declarations */
+char *strchrnul(const char *s, int c);
+
+
+/* include real libbb.h */
+#include "include/libbb.h"