Lines Matching refs:FAST_FUNC

397 uint64_t bb_bswap_64(uint64_t x) FAST_FUNC;
400 unsigned long FAST_FUNC isqrt(unsigned long long N);
402 unsigned long long monotonic_ns(void) FAST_FUNC;
403 unsigned long long monotonic_us(void) FAST_FUNC;
404 unsigned long long monotonic_ms(void) FAST_FUNC;
405 unsigned monotonic_sec(void) FAST_FUNC;
407 extern void chomp(char *s) FAST_FUNC;
408 extern char *trim(char *s) FAST_FUNC;
409 extern char *skip_whitespace(const char *) FAST_FUNC;
410 extern char *skip_non_whitespace(const char *) FAST_FUNC;
411 extern char *skip_dev_pfx(const char *tty_name) FAST_FUNC;
413 extern char *strrstr(const char *haystack, const char *needle) FAST_FUNC;
417 void *malloc_or_warn(size_t size) FAST_FUNC RETURNS_MALLOC;
418 void *xmalloc(size_t size) FAST_FUNC RETURNS_MALLOC;
419 void *xzalloc(size_t size) FAST_FUNC RETURNS_MALLOC;
420 void *xrealloc(void *old, size_t size) FAST_FUNC;
430 void* xrealloc_vector_helper(void *vector, unsigned sizeof_and_shift, int idx) FAST_FUNC;
431 char *xstrdup(const char *s) FAST_FUNC RETURNS_MALLOC;
432 char *xstrndup(const char *s, int n) FAST_FUNC RETURNS_MALLOC;
433 void *xmemdup(const void *s, int n) FAST_FUNC RETURNS_MALLOC;
434 void *mmap_read(int fd, size_t size) FAST_FUNC;
435 void *mmap_anon(size_t size) FAST_FUNC;
436 void *xmmap_anon(size_t size) FAST_FUNC;
462 extern char *bb_mode_string(char buf[11], mode_t mode) FAST_FUNC;
463 extern int is_directory(const char *name, int followLinks) FAST_FUNC;
503 extern int remove_file(const char *path, int flags) FAST_FUNC;
508 extern int copy_file(const char *source, const char *dest, int flags) FAST_FUNC;
523 …int FAST_FUNC (*fileAction)(struct recursive_state *state, const char *fileName, struct stat* stat…
524 …int FAST_FUNC (*dirAction)(struct recursive_state *state, const char *fileName, struct stat* stat…
527 …int FAST_FUNC (*fileAction)(struct recursive_state *state, const char *fileName, struct stat* stat…
528 …int FAST_FUNC (*dirAction)(struct recursive_state *state, const char *fileName, struct stat* stat…
530 ) FAST_FUNC;
534 int FAST_FUNC (*func)(const char *, struct dirent *, void *),
535 void *private) FAST_FUNC;
537 extern int device_open(const char *device, int mode) FAST_FUNC;
539 extern int xgetpty(char *line) FAST_FUNC;
540 extern int get_console_fd_or_die(void) FAST_FUNC;
541 extern void console_make_active(int fd, const int vt_num) FAST_FUNC;
542 extern char *find_block_device(const char *path) FAST_FUNC;
544 extern off_t bb_copyfd_eof(int fd1, int fd2) FAST_FUNC;
545 extern off_t bb_copyfd_size(int fd1, int fd2, off_t size) FAST_FUNC;
546 extern void bb_copyfd_exact_size(int fd1, int fd2, off_t size) FAST_FUNC;
549 extern void complain_copyfd_and_die(off_t sz) NORETURN FAST_FUNC;
551 extern char bb_process_escape_sequence(const char **ptr) FAST_FUNC;
552 char* strcpy_and_process_escape_sequences(char *dst, const char *src) FAST_FUNC;
559 char *bb_get_last_path_component_strip(char *path) FAST_FUNC;
561 char *bb_get_last_path_component_nostrip(const char *path) FAST_FUNC;
563 const char *bb_basename(const char *name) FAST_FUNC;
565 char *last_char_is(const char *s, int c) FAST_FUNC;
566 const char* endofname(const char *name) FAST_FUNC;
567 char *is_prefixed_with(const char *string, const char *key) FAST_FUNC;
568 char *is_suffixed_with(const char *string, const char *key) FAST_FUNC;
570 int ndelay_on(int fd) FAST_FUNC;
571 int ndelay_off(int fd) FAST_FUNC;
572 void close_on_exec_on(int fd) FAST_FUNC;
573 void xdup2(int, int) FAST_FUNC;
574 void xmove_fd(int, int) FAST_FUNC;
577 DIR *xopendir(const char *path) FAST_FUNC;
578 DIR *warn_opendir(const char *path) FAST_FUNC;
580 char *xmalloc_realpath(const char *path) FAST_FUNC RETURNS_MALLOC;
581 char *xmalloc_realpath_coreutils(char *path) FAST_FUNC RETURNS_MALLOC;
582 char *xmalloc_readlink(const char *path) FAST_FUNC RETURNS_MALLOC;
583 char *xmalloc_readlink_or_warn(const char *path) FAST_FUNC RETURNS_MALLOC;
585 char *xrealloc_getcwd_or_warn(char *cwd) FAST_FUNC;
587 char *xmalloc_follow_symlinks(const char *path) FAST_FUNC RETURNS_MALLOC;
620 void bb_signals(int sigs, void (*f)(int)) FAST_FUNC;
624 void bb_signals_norestart(int sigs, void (*f)(int)) FAST_FUNC;
626 void signal_no_SA_RESTART_empty_mask(int sig, void (*handler)(int)) FAST_FUNC;
628 void signal_SA_RESTART_empty_mask(int sig, void (*handler)(int)) FAST_FUNC;
629 void wait_for_any_sig(void) FAST_FUNC;
630 void kill_myself_with_sig(int sig) NORETURN FAST_FUNC;
631 void sig_block(int sig) FAST_FUNC;
632 void sig_unblock(int sig) FAST_FUNC;
634 int sigaction_set(int sig, const struct sigaction *act) FAST_FUNC;
636 int sigprocmask_allsigs(int how) FAST_FUNC;
638 int sigprocmask2(int how, sigset_t *set) FAST_FUNC;
644 void xsetgid(gid_t gid) FAST_FUNC;
645 void xsetuid(uid_t uid) FAST_FUNC;
646 void xsetegid(gid_t egid) FAST_FUNC;
647 void xseteuid(uid_t euid) FAST_FUNC;
648 void xchdir(const char *path) FAST_FUNC;
649 void xfchdir(int fd) FAST_FUNC;
650 void xchroot(const char *path) FAST_FUNC;
651 void xsetenv(const char *key, const char *value) FAST_FUNC;
652 void bb_unsetenv(const char *key) FAST_FUNC;
653 void bb_unsetenv_and_free(char *key) FAST_FUNC;
654 void xunlink(const char *pathname) FAST_FUNC;
655 void xstat(const char *pathname, struct stat *buf) FAST_FUNC;
656 void xfstat(int fd, struct stat *buf, const char *errmsg) FAST_FUNC;
657 int open3_or_warn(const char *pathname, int flags, int mode) FAST_FUNC;
658 int open_or_warn(const char *pathname, int flags) FAST_FUNC;
659 int xopen3(const char *pathname, int flags, int mode) FAST_FUNC;
660 int xopen(const char *pathname, int flags) FAST_FUNC;
661 int xopen_nonblocking(const char *pathname) FAST_FUNC;
662 int xopen_as_uid_gid(const char *pathname, int flags, uid_t u, gid_t g) FAST_FUNC;
663 int open_or_warn_stdin(const char *pathname) FAST_FUNC;
664 int xopen_stdin(const char *pathname) FAST_FUNC;
665 void xrename(const char *oldpath, const char *newpath) FAST_FUNC;
666 int rename_or_warn(const char *oldpath, const char *newpath) FAST_FUNC;
667 off_t xlseek(int fd, off_t offset, int whence) FAST_FUNC;
668 int xmkstemp(char *template) FAST_FUNC;
669 off_t fdlength(int fd) FAST_FUNC;
671 uoff_t FAST_FUNC get_volume_size_in_bytes(int fd,
676 void xpipe(int *filedes) FAST_FUNC;
710 int parse_datestr(const char *date_str, struct tm *ptm) FAST_FUNC;
711 time_t validate_tm_time(const char *date_str, struct tm *ptm) FAST_FUNC;
712 char *strftime_HHMMSS(char *buf, unsigned len, time_t *tp) FAST_FUNC;
713 char *strftime_YYYYMMDDHHMMSS(char *buf, unsigned len, time_t *tp) FAST_FUNC;
714 void xgettimeofday(struct timeval *tv) FAST_FUNC;
715 void xsettimeofday(const struct timeval *tv) FAST_FUNC;
718 int xsocket(int domain, int type, int protocol) FAST_FUNC;
719 void xbind(int sockfd, struct sockaddr *my_addr, socklen_t addrlen) FAST_FUNC;
720 void xlisten(int s, int backlog) FAST_FUNC;
721 void xconnect(int s, const struct sockaddr *s_addr, socklen_t addrlen) FAST_FUNC;
723 socklen_t tolen) FAST_FUNC;
725 int setsockopt_int(int fd, int level, int optname, int optval) FAST_FUNC;
726 int setsockopt_1(int fd, int level, int optname) FAST_FUNC;
727 int setsockopt_SOL_SOCKET_int(int fd, int optname, int optval) FAST_FUNC;
728 int setsockopt_SOL_SOCKET_1(int fd, int optname) FAST_FUNC;
735 void setsockopt_reuseaddr(int fd) FAST_FUNC; /* On Linux this never fails. */
736 int setsockopt_keepalive(int fd) FAST_FUNC;
737 int setsockopt_broadcast(int fd) FAST_FUNC;
738 int setsockopt_bindtodevice(int fd, const char *iface) FAST_FUNC;
739 int bb_getsockname(int sockfd, void *addr, socklen_t addrlen) FAST_FUNC;
741 unsigned bb_lookup_port(const char *port, const char *protocol, unsigned default_port) FAST_FUNC;
775 int xsocket_type(len_and_sockaddr **lsap, int af, int sock_type) FAST_FUNC;
776 int xsocket_stream(len_and_sockaddr **lsap) FAST_FUNC;
782 int create_and_bind_stream_or_die(const char *bindaddr, int port) FAST_FUNC;
783 int create_and_bind_dgram_or_die(const char *bindaddr, int port) FAST_FUNC;
784 int create_and_bind_to_netlink(int proto, int grp, unsigned rcvbuf) FAST_FUNC;
789 int create_and_connect_stream_or_die(const char *peer, int port) FAST_FUNC;
791 int xconnect_stream(const len_and_sockaddr *lsa) FAST_FUNC;
793 len_and_sockaddr *get_sock_lsa(int fd) FAST_FUNC RETURNS_MALLOC;
795 len_and_sockaddr *get_peer_lsa(int fd) FAST_FUNC RETURNS_MALLOC;
801 len_and_sockaddr* host2sockaddr(const char *host, int port) FAST_FUNC RETURNS_MALLOC;
803 len_and_sockaddr* xhost2sockaddr(const char *host, int port) FAST_FUNC RETURNS_MALLOC;
804 len_and_sockaddr* xdotted2sockaddr(const char *host, int port) FAST_FUNC RETURNS_MALLOC;
810 len_and_sockaddr* host_and_af2sockaddr(const char *host, int port, sa_family_t af) FAST_FUNC RETURN…
811 len_and_sockaddr* xhost_and_af2sockaddr(const char *host, int port, sa_family_t af) FAST_FUNC RETUR…
816 void set_nport(struct sockaddr *sa, unsigned port) FAST_FUNC;
818 int get_nport(const struct sockaddr *sa) FAST_FUNC;
820 char* xmalloc_sockaddr2host(const struct sockaddr *sa) FAST_FUNC RETURNS_MALLOC;
822 char* xmalloc_sockaddr2host_noport(const struct sockaddr *sa) FAST_FUNC RETURNS_MALLOC;
824 char* xmalloc_sockaddr2hostonly_noport(const struct sockaddr *sa) FAST_FUNC RETURNS_MALLOC;
826 char* xmalloc_sockaddr2dotted(const struct sockaddr *sa) FAST_FUNC RETURNS_MALLOC;
827 char* xmalloc_sockaddr2dotted_noport(const struct sockaddr *sa) FAST_FUNC RETURNS_MALLOC;
830 struct hostent *xgethostbyname(const char *name) FAST_FUNC;
897 void tls_handshake(tls_state_t *tls, const char *sni) FAST_FUNC;
899 void tls_run_copy_loop(tls_state_t *tls, unsigned flags) FAST_FUNC;
902 void socket_want_pktinfo(int fd) FAST_FUNC;
906 socklen_t tolen) FAST_FUNC;
910 socklen_t sa_size) FAST_FUNC;
912 uint16_t inet_cksum(const void *addr, int len) FAST_FUNC;
913 int parse_pasv_epsv(char *buf) FAST_FUNC;
916 unsigned string_array_len(char **argv) FAST_FUNC;
917 void overlapping_strcpy(char *dst, const char *src) FAST_FUNC;
918 char *safe_strncpy(char *dst, const char *src, size_t size) FAST_FUNC;
919 char *strncpy_IFNAMSIZ(char *dst, const char *src) FAST_FUNC;
920 unsigned count_strstr(const char *str, const char *sub) FAST_FUNC;
921 …xmalloc_substitute_string(const char *src, int count, const char *sub, const char *repl) FAST_FUNC;
924 int bb_putchar(int ch) FAST_FUNC;
926 int bb_putchar_stderr(char ch) FAST_FUNC;
927 int fputs_stdout(const char *s) FAST_FUNC;
928 char *xasprintf(const char *format, ...) __attribute__ ((format(printf, 1, 2))) FAST_FUNC RETURNS_M…
929 char *auto_string(char *str) FAST_FUNC;
949 const char* FAST_FUNC printable_string(const char *str);
950 const char* FAST_FUNC printable_string2(uni_stat_t *stats, const char *str);
955 void fputc_printable(int ch, FILE *file) FAST_FUNC;
962 void visible(unsigned ch, char *buf, int flags) FAST_FUNC;
964 extern ssize_t safe_read(int fd, void *buf, size_t count) FAST_FUNC;
965 extern ssize_t nonblock_immune_read(int fd, void *buf, size_t count) FAST_FUNC;
968 extern ssize_t full_read(int fd, void *buf, size_t count) FAST_FUNC;
969 extern void xread(int fd, void *buf, size_t count) FAST_FUNC;
970 extern unsigned char xread_char(int fd) FAST_FUNC;
971 extern ssize_t read_close(int fd, void *buf, size_t maxsz) FAST_FUNC;
972 extern ssize_t open_read_close(const char *filename, void *buf, size_t maxsz) FAST_FUNC;
976 extern char *xmalloc_reads(int fd, size_t *maxsz_p) FAST_FUNC;
978 extern void *xmalloc_read(int fd, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC;
979 …rn void *xmalloc_read_with_initial_buf(int fd, size_t *maxsz_p, char *buf, size_t total) FAST_FUNC;
981 extern void *xmalloc_open_read_close(const char *filename, size_t *maxsz_p) FAST_FUNC RETURNS_MALLO…
983 extern void *xmalloc_xopen_read_close(const char *filename, size_t *maxsz_p) FAST_FUNC RETURNS_MALL…
990 unsigned bb_arg_max(void) FAST_FUNC;
995 unsigned bb_clk_tck(void) FAST_FUNC;
1006 int setup_unzip_on_fd(int fd, int fail_if_not_compressed) FAST_FUNC;
1008 extern int open_zipped(const char *fname, int fail_if_not_compressed) FAST_FUNC;
1009 extern void *xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) FAST_FUNC RETURNS_M…
1016 void setup_lzma_on_fd(int fd) FAST_FUNC;
1018 extern ssize_t safe_write(int fd, const void *buf, size_t count) FAST_FUNC;
1021 extern ssize_t full_write(int fd, const void *buf, size_t count) FAST_FUNC;
1022 extern void xwrite(int fd, const void *buf, size_t count) FAST_FUNC;
1023 extern void xwrite_str(int fd, const char *str) FAST_FUNC;
1024 extern ssize_t full_write1_str(const char *str) FAST_FUNC;
1025 extern ssize_t full_write2_str(const char *str) FAST_FUNC;
1026 extern void xopen_xwrite_close(const char* file, const char *str) FAST_FUNC;
1029 extern void xclose(int fd) FAST_FUNC;
1032 extern void xprint_and_close_file(FILE *file) FAST_FUNC;
1039 extern char *bb_get_chunk_from_file(FILE *file, size_t *end) FAST_FUNC;
1041 extern char *xmalloc_fgets_str(FILE *file, const char *terminating_string) FAST_FUNC RETURNS_MALLOC;
1043 …gets_str_len(FILE *file, const char *terminating_string, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC;
1045 extern char *xmalloc_fgetline_str(FILE *file, const char *terminating_string) FAST_FUNC RETURNS_MAL…
1047 extern char *xmalloc_fgets(FILE *file) FAST_FUNC RETURNS_MALLOC;
1049 extern char *xmalloc_fgetline(FILE *file) FAST_FUNC RETURNS_MALLOC;
1053 void die_if_ferror(FILE *file, const char *msg) FAST_FUNC;
1054 void die_if_ferror_stdout(void) FAST_FUNC;
1055 int fflush_all(void) FAST_FUNC;
1056 void fflush_stdout_and_exit(int retval) NORETURN FAST_FUNC;
1057 int fclose_if_not_stdin(FILE *file) FAST_FUNC;
1058 FILE* xfopen(const char *filename, const char *mode) FAST_FUNC;
1060 FILE* fopen_or_warn(const char *filename, const char *mode) FAST_FUNC;
1062 FILE* xfopen_stdin(const char *filename) FAST_FUNC;
1063 FILE* fopen_or_warn_stdin(const char *filename) FAST_FUNC;
1064 FILE* fopen_for_read(const char *path) FAST_FUNC;
1065 FILE* xfopen_for_read(const char *path) FAST_FUNC;
1066 FILE* fopen_for_write(const char *path) FAST_FUNC;
1067 FILE* xfopen_for_write(const char *path) FAST_FUNC;
1068 FILE* xfdopen_for_read(int fd) FAST_FUNC;
1069 FILE* xfdopen_for_write(int fd) FAST_FUNC;
1072 void qsort_string_vector(char **sv, unsigned count) FAST_FUNC;
1078 int safe_poll(struct pollfd *ufds, nfds_t nfds, int timeout_ms) FAST_FUNC;
1080 char *safe_gethostname(void) FAST_FUNC;
1083 char* str_tolower(char *str) FAST_FUNC;
1085 char *utoa(unsigned n) FAST_FUNC;
1086 char *itoa(int n) FAST_FUNC;
1088 char *utoa_to_buf(unsigned n, char *buf, unsigned buflen) FAST_FUNC;
1089 char *itoa_to_buf(int n, char *buf, unsigned buflen) FAST_FUNC;
1091 char *smart_ulltoa4(unsigned long long ul, char buf[4], const char *scale) FAST_FUNC;
1092 char *smart_ulltoa5(unsigned long long ul, char buf[5], const char *scale) FAST_FUNC;
1101 unsigned long block_size, unsigned long display_unit) FAST_FUNC;
1103 char *bin2hex(char *dst, const char *src, int count) FAST_FUNC;
1105 char* hex2bin(char *dst, const char *src, int count) FAST_FUNC;
1108 void generate_uuid(uint8_t *buf) FAST_FUNC;
1132 int xatoi_positive(const char *numstr) FAST_FUNC;
1135 uint16_t xatou16(const char *numstr) FAST_FUNC;
1139 void sleep_for_duration(duration_t duration) FAST_FUNC;
1146 duration_t parse_duration_str(char *str) FAST_FUNC;
1151 long xuname2uid(const char *name) FAST_FUNC;
1152 long xgroup2gid(const char *name) FAST_FUNC;
1154 unsigned long get_ug_id(const char *s, long FAST_FUNC (*xname2id)(const char *)) FAST_FUNC;
1160 int get_uidgid(struct bb_uidgid_t*, const char*) FAST_FUNC;
1162 void xget_uidgid(struct bb_uidgid_t*, const char*) FAST_FUNC;
1164 void parse_chown_usergroup_or_die(struct bb_uidgid_t *u, char *user_group) FAST_FUNC;
1165 struct passwd* xgetpwnam(const char *name) FAST_FUNC;
1166 struct group* xgetgrnam(const char *name) FAST_FUNC;
1167 struct passwd* xgetpwuid(uid_t uid) FAST_FUNC;
1168 struct group* xgetgrgid(gid_t gid) FAST_FUNC;
1169 char* xuid2uname(uid_t uid) FAST_FUNC;
1170 char* xgid2group(gid_t gid) FAST_FUNC;
1171 char* uid2uname(uid_t uid) FAST_FUNC;
1172 char* gid2group(gid_t gid) FAST_FUNC;
1173 char* uid2uname_utoa(uid_t uid) FAST_FUNC;
1174 char* gid2group_utoa(gid_t gid) FAST_FUNC;
1176 const char* get_cached_username(uid_t uid) FAST_FUNC;
1177 const char* get_cached_groupname(gid_t gid) FAST_FUNC;
1178 void clear_username_cache(void) FAST_FUNC;
1182 void die_if_bad_username(const char* name) FAST_FUNC;
1194 gid_t *bb_getgroups(int *ngroups, gid_t *group_array) FAST_FUNC;
1197 void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, …
1198 void FAST_FUNC update_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, con…
1199 void FAST_FUNC update_utmp_DEAD_PROCESS(pid_t pid);
1207 int file_is_executable(const char *name) FAST_FUNC;
1208 char *find_executable(const char *filename, char **PATHp) FAST_FUNC;
1209 int executable_exists(const char *filename) FAST_FUNC;
1215 int BB_EXECVP(const char *file, char *const argv[]) FAST_FUNC;
1226 void BB_EXECVP_or_die(char **argv) NORETURN FAST_FUNC;
1238 pid_t xfork(void) FAST_FUNC;
1240 void xvfork_parent_waits_and_exits(void) FAST_FUNC;
1243 pid_t spawn(char **argv) FAST_FUNC;
1244 pid_t xspawn(char **argv) FAST_FUNC;
1246 pid_t safe_waitpid(pid_t pid, int *wstat, int options) FAST_FUNC;
1247 pid_t wait_any_nohang(int *wstat) FAST_FUNC;
1256 int wait4pid(pid_t pid) FAST_FUNC;
1257 int wait_for_exitstatus(pid_t pid) FAST_FUNC;
1264 int spawn_and_wait(char **argv) FAST_FUNC;
1266 int run_nofork_applet(int applet_no, char **argv) FAST_FUNC;
1267 void run_noexec_applet_and_exit(int a, const char *name, char **argv) NORETURN FAST_FUNC;
1269 int find_applet_by_name(const char *name) FAST_FUNC;
1270 void run_applet_no_and_exit(int a, const char *name, char **argv) NORETURN FAST_FUNC;
1272 void show_usage_if_dash_dash_help(int applet_no, char **argv) FAST_FUNC;
1274 int re_execed_comm(void) FAST_FUNC;
1275 void set_task_comm(const char *comm) FAST_FUNC;
1321 void re_exec(char **argv) NORETURN FAST_FUNC;
1322 pid_t fork_or_rexec(char **argv) FAST_FUNC;
1323 int BUG_fork_is_unavailable_on_nommu(void) FAST_FUNC;
1324 int BUG_daemon_is_unavailable_on_nommu(void) FAST_FUNC;
1325 void BUG_bb_daemonize_is_unavailable_on_nommu(void) FAST_FUNC;
1331 void bb_daemonize_or_rexec(int flags, char **argv) FAST_FUNC;
1332 void bb_sanitize_stdio(void) FAST_FUNC;
1335 int sanitize_env_if_suid(void) FAST_FUNC;
1339 void make_all_argv_opts(char **argv) FAST_FUNC;
1340 char* single_argv(char **argv) FAST_FUNC;
1343 uint32_t getopt32(char **argv, const char *applet_opts, ...) FAST_FUNC;
1348 uint32_t getopt32long(char **argv, const char *optstring, const char *longopts, ...) FAST_FUNC;
1383 void llist_add_to(llist_t **old_head, void *data) FAST_FUNC;
1384 void llist_add_to_end(llist_t **list_head, void *data) FAST_FUNC;
1385 void *llist_pop(llist_t **elm) FAST_FUNC;
1386 void llist_unlink(llist_t **head, llist_t *elm) FAST_FUNC;
1387 void llist_free(llist_t *elm, void (*freeit)(void *data)) FAST_FUNC;
1388 llist_t *llist_rev(llist_t *list) FAST_FUNC;
1389 llist_t *llist_find_str(llist_t *first, const char *str) FAST_FUNC;
1399 void write_pidfile(const char *path) FAST_FUNC;
1400 void write_pidfile_std_path_and_ext(const char *path) FAST_FUNC;
1401 void remove_pidfile_std_path_and_ext(const char *path) FAST_FUNC;
1421 void xfunc_die(void) NORETURN FAST_FUNC;
1422 void bb_show_usage(void) NORETURN FAST_FUNC;
1423 void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC;
1424 void bb_simple_error_msg(const char *s) FAST_FUNC;
1425 …_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC;
1426 void bb_simple_error_msg_and_die(const char *s) NORETURN FAST_FUNC;
1427 void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC;
1428 void bb_simple_perror_msg(const char *s) FAST_FUNC;
1429 …perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC;
1430 void bb_simple_perror_msg_and_die(const char *s) NORETURN FAST_FUNC;
1431 void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC;
1432 void bb_simple_herror_msg(const char *s) FAST_FUNC;
1433 …herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC;
1434 void bb_simple_herror_msg_and_die(const char *s) NORETURN FAST_FUNC;
1435 void bb_perror_nomsg_and_die(void) NORETURN FAST_FUNC;
1436 void bb_perror_nomsg(void) FAST_FUNC;
1437 void bb_verror_msg(const char *s, va_list p, const char *strerr) FAST_FUNC;
1438 void bb_die_memory_exhausted(void) NORETURN FAST_FUNC;
1439 void bb_logenv_override(void) FAST_FUNC;
1442 void bb_info_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC;
1443 void bb_simple_info_msg(const char *s) FAST_FUNC;
1444 void bb_vinfo_msg(const char *s, va_list p) FAST_FUNC;
1500 char *get_script_content(unsigned n) FAST_FUNC;
1504 int bb_cat(char** argv) FAST_FUNC;
1529 void bb_displayroutes(int noresolve, int netstatfmt) FAST_FUNC;
1540 int print_numbered_lines(struct number_state *ns, const char *filename) FAST_FUNC;
1550 char* FAST_FUNC (*print)(unsigned char *);
1551 const char* FAST_FUNC (*sprint)(struct sockaddr *, int numeric);
1552 int FAST_FUNC (*input)(/*int type,*/ const char *bufp, struct sockaddr *);
1553 void FAST_FUNC (*herror)(char *text);
1554 int FAST_FUNC (*rprint)(int options);
1555 int FAST_FUNC (*rinput)(int typ, int ext, char **argv);
1557 int FAST_FUNC (*getmask)(char *src, struct sockaddr *mask, char *name);
1565 char* FAST_FUNC (*print)(unsigned char *);
1566 int FAST_FUNC (*input)(const char *, struct sockaddr *);
1567 int FAST_FUNC (*activate)(int fd);
1571 int display_interfaces(char *ifname) FAST_FUNC;
1572 int in_ether(const char *bufp, struct sockaddr *sap) FAST_FUNC;
1574 int in_ib(const char *bufp, struct sockaddr *sap) FAST_FUNC;
1578 const struct aftype *get_aftype(const char *name) FAST_FUNC;
1579 const struct hwtype *get_hwtype(const char *name) FAST_FUNC;
1580 const struct hwtype *get_hwntype(int type) FAST_FUNC;
1583 extern int fstype_matches(const char *fstype, const char *comma_list) FAST_FUNC;
1585 extern struct mntent *find_mount_point(const char *name, int subdir_too) FAST_FUNC;
1587 extern void erase_mtab(const char * name) FAST_FUNC;
1588 extern unsigned int tty_baud_to_value(speed_t speed) FAST_FUNC;
1589 extern speed_t tty_value_to_baud(unsigned int value) FAST_FUNC;
1591 extern void bb_warn_ignoring_args(char *arg) FAST_FUNC;
1596 extern int get_linux_version_code(void) FAST_FUNC;
1598 char *query_loop(const char *device) FAST_FUNC;
1599 int get_free_loop(void) FAST_FUNC;
1600 int del_loop(const char *device) FAST_FUNC;
1607 unsigned long long sizelimit, unsigned flags) FAST_FUNC;
1614 char *bb_ask_noecho(int fd, int timeout, const char *prompt) FAST_FUNC;
1616 char *bb_ask_noecho_stdin(const char *prompt) FAST_FUNC;
1618 int bb_ask_y_confirmation_FILE(FILE *fp) FAST_FUNC;
1619 int bb_ask_y_confirmation(void) FAST_FUNC;
1622 int bb_parse_mode(const char* s, unsigned cur_mode) FAST_FUNC;
1656 parser_t* config_open(const char *filename) FAST_FUNC;
1657 …arser_t* config_open2(const char *filename, FILE* FAST_FUNC (*fopen_func)(const char *path)) FAST_…
1659 int config_read(parser_t *parser, char **tokens, unsigned flags, const char *delims) FAST_FUNC;
1662 void config_close(parser_t *parser) FAST_FUNC;
1668 char *concat_path_file(const char *path, const char *filename) FAST_FUNC;
1670 char *concat_subpath_file(const char *path, const char *filename) FAST_FUNC;
1673 int bb_make_directory(char *path, long mode, int flags) FAST_FUNC;
1675 int get_signum(const char *name) FAST_FUNC;
1676 const char *get_signame(int number) FAST_FUNC;
1677 void print_signames(void) FAST_FUNC;
1679 char *bb_simplify_path(const char *path) FAST_FUNC;
1681 char *bb_simplify_abs_path_inplace(char *path) FAST_FUNC;
1683 void pause_after_failed_login(void) FAST_FUNC;
1684 void bb_do_delay(unsigned seconds) FAST_FUNC;
1685 void msleep(unsigned ms) FAST_FUNC;
1686 void sleep1(void) FAST_FUNC;
1687 void change_identity(const struct passwd *pw) FAST_FUNC;
1688 void exec_shell(const char *shell, int loginshell, const char **args) NORETURN FAST_FUNC;
1689 void exec_login_shell(const char *shell) NORETURN FAST_FUNC;
1690 void exec_prog_or_SHELL(char **argv) NORETURN FAST_FUNC;
1696 const char *get_shell_name(void) FAST_FUNC;
1699 unsigned cap_name_to_number(const char *cap) FAST_FUNC;
1700 void printf_cap(const char *pfx, unsigned cap_no) FAST_FUNC;
1701 void drop_capability(int cap_ordinal) FAST_FUNC;
1709 void getcaps(void *caps) FAST_FUNC;
1713 extern void renew_current_security_context(void) FAST_FUNC;
1714 extern void set_current_security_context(security_context_t sid) FAST_FUNC;
1716 char *user, char *role, char *type, char *range) FAST_FUNC;
1717 extern void setfscreatecon_or_die(security_context_t scontext) FAST_FUNC;
1718 extern void selinux_preserve_fcontext(int fdesc) FAST_FUNC;
1722 extern void selinux_or_die(void) FAST_FUNC;
1747 void setup_environment(const char *shell, int flags, const struct passwd *pw) FAST_FUNC;
1748 void nuke_str(char *str) FAST_FUNC;
1750 int is_tty_secure(const char *short_tty) FAST_FUNC;
1755 int check_password(const struct passwd *pw, const char *plaintext) FAST_FUNC;
1756 …sk_and_check_password_extended(const struct passwd *pw, int timeout, const char *prompt) FAST_FUNC;
1757 int ask_and_check_password(const struct passwd *pw) FAST_FUNC;
1762 extern char *pw_encrypt(const char *clear, const char *salt, int cleanup) FAST_FUNC;
1763 extern int obscure(const char *old, const char *newval, const struct passwd *pwdp) FAST_FUNC;
1772 extern int crypt_make_salt(char *p, int cnt /*, int rnd*/) FAST_FUNC;
1775 extern char* crypt_make_pw_salt(char p[MAX_PW_SALT_LEN], const char *algo) FAST_FUNC;
1786 const char *member) FAST_FUNC;
1788 int index_in_str_array(const char *const string_array[], const char *key) FAST_FUNC;
1789 int index_in_strings(const char *strings, const char *key) FAST_FUNC;
1790 int index_in_substr_array(const char *const string_array[], const char *key) FAST_FUNC;
1791 int index_in_substrings(const char *strings, const char *key) FAST_FUNC;
1792 const char *nth_string(const char *strings, int n) FAST_FUNC;
1794 extern void print_login_issue(const char *issue_file, const char *tty) FAST_FUNC;
1795 extern void print_login_prompt(void) FAST_FUNC;
1797 char *xmalloc_ttyname(int fd) FAST_FUNC RETURNS_MALLOC;
1798 int is_TERM_dumb(void) FAST_FUNC;
1800 int get_terminal_width_height(int fd, unsigned *width, unsigned *height) FAST_FUNC;
1801 int get_terminal_width(int fd) FAST_FUNC;
1803 int tcsetattr_stdin_TCSANOW(const struct termios *tp) FAST_FUNC;
1809 …ermios_and_make_raw(int fd, struct termios *newterm, struct termios *oldterm, int flags) FAST_FUNC;
1810 int set_termios_to_raw(int fd, struct termios *oldterm, int flags) FAST_FUNC;
1813 …signed request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))) FAST_FUNC;
1814 …signed request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))) FAST_FUNC;
1816 int bb_ioctl_or_warn(int fd, unsigned request, void *argp, const char *ioctl_name) FAST_FUNC;
1817 int bb_xioctl(int fd, unsigned request, void *argp, const char *ioctl_name) FAST_FUNC;
1821 int bb_ioctl_or_warn(int fd, unsigned request, void *argp) FAST_FUNC;
1822 int bb_xioctl(int fd, unsigned request, void *argp) FAST_FUNC;
1827 char *is_in_ino_dev_hashtable(const struct stat *statbuf) FAST_FUNC;
1828 void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) FAST_FUNC;
1829 void reset_ino_dev_hashtable(void) FAST_FUNC;
1832 unsigned long long bb_makedev(unsigned major, unsigned minor) FAST_FUNC;
1904 int64_t read_key(int fd, char *buffer, int timeout) FAST_FUNC;
1905 void read_key_ungets(char *buffer, const char *str, unsigned len) FAST_FUNC;
1912 unsigned size_from_HISTFILESIZE(const char *hp) FAST_FUNC;
1916 typedef const char *get_exe_name_t(int i) FAST_FUNC; typedef
1960 line_input_t *new_line_input_t(int flags) FAST_FUNC;
1962 void free_line_input_t(line_input_t *n) FAST_FUNC;
1973 int read_line_input(line_input_t *st, const char *prompt, char *command, int maxsize) FAST_FUNC;
1974 void show_history(const line_input_t *st) FAST_FUNC;
1980 int read_line_input(const char* prompt, char* command, int maxsize) FAST_FUNC;
2023 int FAST_FUNC procps_read_smaps(pid_t pid, struct smaprec *total,
2100 void free_procps_scan(procps_status_t* sp) FAST_FUNC;
2101 procps_status_t* procps_scan(procps_status_t* sp, int flags) FAST_FUNC;
2104 void read_cmdline(char *buf, int size, unsigned pid, const char *comm) FAST_FUNC;
2105 pid_t *find_pid_by_name(const char* procName) FAST_FUNC;
2106 pid_t *pidlist_reverse(pid_t *pidList) FAST_FUNC;
2107 int starts_with_cpu(const char *str) FAST_FUNC;
2108 unsigned get_cpu_count(void) FAST_FUNC;
2117 char *percent_decode_in_place(char *str, int strict) FAST_FUNC;
2123 void bb_uuencode(char *store, const void *s, int length, const char *tbl) FAST_FUNC;
2130 char *decode_base64(char *dst, const char **pp_src) FAST_FUNC;
2131 char *decode_base32(char *dst, const char **pp_src) FAST_FUNC;
2132 void read_base64(FILE *src_stream, FILE *dst_stream, int flags) FAST_FUNC;
2136 void (*process_block)(struct md5_ctx_t*) FAST_FUNC;
2152 void md5_begin(md5_ctx_t *ctx) FAST_FUNC;
2153 void md5_hash(md5_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC;
2154 unsigned md5_end(md5_ctx_t *ctx, void *resbuf) FAST_FUNC;
2155 void sha1_begin(sha1_ctx_t *ctx) FAST_FUNC;
2157 unsigned sha1_end(sha1_ctx_t *ctx, void *resbuf) FAST_FUNC;
2158 void sha256_begin(sha256_ctx_t *ctx) FAST_FUNC;
2161 void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC;
2162 void sha512_hash(sha512_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC;
2163 unsigned sha512_end(sha512_ctx_t *ctx, void *resbuf) FAST_FUNC;
2164 void sha3_begin(sha3_ctx_t *ctx) FAST_FUNC;
2165 void sha3_hash(sha3_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC;
2166 unsigned sha3_end(sha3_ctx_t *ctx, void *resbuf) FAST_FUNC;
2180 uint32_t *crc32_filltable(uint32_t *tbl256, int endian) FAST_FUNC;
2181 uint32_t *crc32_new_table_le(void) FAST_FUNC;
2182 uint32_t *global_crc32_new_table_le(void) FAST_FUNC;
2183 …_t crc32_block_endian1(uint32_t val, const void *buf, unsigned len, uint32_t *crc_table) FAST_FUNC;
2184 …_t crc32_block_endian0(uint32_t val, const void *buf, unsigned len, uint32_t *crc_table) FAST_FUNC;
2191 int flags, const char *separator) FAST_FUNC;
2192 int print_flags(const masks_labels_t *ml, int flags) FAST_FUNC;
2208 void bb_progress_init(bb_progress_t *p, const char *curfile) FAST_FUNC;
2212 uoff_t totalsize) FAST_FUNC;
2214 unsigned ubi_devnum_from_devname(const char *str) FAST_FUNC;
2215 int ubi_get_volid_by_name(unsigned ubi_devnum, const char *vol_name) FAST_FUNC;
2309 void XZALLOC_CONST_PTR(const void *pptr, size_t size) FAST_FUNC;