X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Flibbb.h;h=e9a828c52729f89f33f30a7174e01bbcc26c4f1a;hb=2677cf1b0ac9c31e5bbe7f22cf639dacead7808c;hp=e3087db1800d5e74804a3b23ca59f738b316b5cb;hpb=86a1073e0bfa608defbfaa43d94a537c5e700efe;p=oweals%2Fbusybox.git diff --git a/include/libbb.h b/include/libbb.h index e3087db18..e9a828c52 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -232,6 +232,7 @@ extern char *bb_askpass(int timeout, const char * prompt); extern int device_open(const char *device, int mode); +extern char *query_loop(const char *device); extern int del_loop(const char *device); extern int set_loop(char **device, const char *file, int offset); @@ -333,6 +334,12 @@ extern const char * const bb_path_group_file; extern const char * const bb_path_securetty_file; extern const char * const bb_path_motd_file; extern const char * const bb_dev_null; + +#ifndef BUFSIZ +#define BUFSIZ 4096 +#endif +extern char bb_common_bufsiz1[BUFSIZ+1]; + /* * You can change LIBBB_DEFAULT_LOGIN_SHELL, but don`t use, * use bb_default_login_shell and next defines, @@ -412,6 +419,7 @@ extern size_t bb_strlen(const char *string); char *bb_xasprintf(const char *format, ...) __attribute__ ((format (printf, 1, 2))); #define FAIL_DELAY 3 +extern void bb_do_delay(int seconds); extern void change_identity ( const struct passwd *pw ); extern const char *change_identity_e2str ( const struct passwd *pw ); extern void run_shell ( const char *shell, int loginshell, const char *command, const char **additional_args); @@ -460,7 +468,7 @@ typedef struct { } procps_status_t; extern procps_status_t * procps_scan(int save_user_arg0); -extern unsigned short compare_string_array(const char *string_array[], const char *key); +extern int compare_string_array(const char * const string_array[], const char *key); extern int my_query_module(const char *name, int which, void **buf, size_t *bufsize, size_t *ret);