/external/toybox/toys/pending/ |
D | wget.c | 33 if(i >= 1024) error_exit("too long hostname in URL"); 46 else error_exit("wrong decimal port number"); in get_port() 49 else error_exit("too long port number"); in get_port() 57 error_exit("hostname too long, %d bytes\n", len); in strip_v6_brackets() 74 else if (strncmp(url, "http://", i)) error_exit("only FTP/HTTP support"); in get_info() 107 else error_exit("too long path in URL"); in get_info() 108 } else error_exit("wrong URL"); in get_info() 125 error_exit("getaddrinfo: %s", gai_strerror(errno)); in conn_svr() 140 if(!rp) error_exit("can't connect"); in conn_svr() 174 if (fopen(TT.filename, "r")) error_exit("'%s' already exists", TT.filename); in wget_main() [all …]
|
D | useradd.c | 55 error_exit("bad username"); 57 if (getpwnam(s)) error_exit("'%s' in use", s); 82 if (TT.uid > INT_MAX) error_exit("bad uid"); 83 if (getpwuid(TT.uid)) error_exit("uid '%ld' in use", TT.uid); 97 if (getgrnam(pwd.pw_name)) error_exit("group '%s' in use", pwd.pw_name); 122 if (update_password("/etc/passwd", pwd.pw_name, entry)) error_exit("updating passwd file failed"); 151 if (xrun((char *[]){"passwd", pwd.pw_name, 0})) error_exit("passwd"); 156 error_exit("groupadd");
|
D | ip.c | 293 error_exit("wrong database"); in getlist() 362 if (family == AF_PACKET) error_exit("'%s' may be inet prefix", name); in get_prefix() 434 if (get_prefix(addr, &af, name, family)) error_exit("Invalid prefix"); in parse_prefix() 438 error_exit("Invalid prefix"); in parse_prefix() 458 error_exit("RTA exceeds max length %d", maxlen); in add_varlen_rtattr_to_buffer() 525 if (!arg) error_exit("bad hw-addr '%s'", ""); in fill_hwaddr() 529 error_exit("bad hw-addr '%s'", arg); in fill_hwaddr() 574 if (!*argv) error_exit("Invalid vlan id."); in vlan_parse_opt() 623 error_exit("Not enough information: \"dev\" argument is required.\n"); in linkupdate() 625 error_exit("Not enough information: \"type\" argument is required.\n"); in linkupdate() [all …]
|
D | expr.c | 190 error_exit("non-integer argument"); in eval_op() 195 case DIVI: if (b == 0) error_exit("division by zero"); x = a / b; break; in eval_op() 196 case MOD: if (b == 0) error_exit("division by zero"); x = a % b; break; in eval_op() 215 if (!*TT.tok) error_exit("Unexpected end of input"); in eval_expr() 222 if (ret->s && !strcmp(ret->s, ")")) error_exit("empty ( )"); in eval_expr() 223 if (!*TT.tok) error_exit("Expected )"); in eval_expr() 224 if (strcmp(*TT.tok, ")")) error_exit("Expected ) but got %s", *TT.tok); in eval_expr() 253 if (*TT.tok) error_exit("Unexpected extra input '%s'\n", *TT.tok); in expr_main()
|
D | groupadd.c | 43 if (TT.gid > INT_MAX) error_exit("gid should be less than '%d' ", INT_MAX); 44 if (getgrgid(TT.gid)) error_exit("group '%ld' is in use", TT.gid); 72 error_exit("group '%s' does not exist", toys.optargs[1]); in groupadd_main() 96 if (getgrnam(s)) error_exit("'%s' in use", s); in groupadd_main() 98 error_exit("bad name"); in groupadd_main()
|
D | arp.c | 125 if (!*++argv) error_exit("NULL netmask"); in check_flags() 132 if (!*++argv) error_exit("NULL dev"); in check_flags() 134 } else if (j > 4) error_exit("invalid arg"); in check_flags() 143 if (!toys.optargs[1]) error_exit("bad syntax"); in set_entry() 159 error_exit("bad hw addr '%s'", req.arp_ha.sa_data); in set_entry() 166 error_exit("protocol type mismatch"); in set_entry() 223 error_exit((type != -1)?"only inet supported by kernel":"unknown family"); in arp_main() 229 error_exit((type != -1)?"h/w type not supported":"unknown h/w type"); in arp_main() 234 if (!toys.optargs[0]) error_exit("host name req"); in arp_main() 276 if (!hwtype[i].name) error_exit("unknown h/w type"); in arp_main()
|
D | sulogin.c | 74 error_exit("Failed to spawn shell"); in run_shell() 92 if (!isatty(0)) error_exit("%s: it is not a tty", toys.optargs[0]); in sulogin_main() 100 if (!(pwd = getpwuid(0))) error_exit("invalid user"); in sulogin_main()
|
D | brctl.c | 83 if (num < 0) error_exit("get bridges fail"); in br_show() 179 if (sscanf(time, "%lf", &secs) != 1) error_exit("time format not proper"); in strtotimeval() 238 if (sscanf(argv[1], "%i", &prio) != 1) error_exit("prio not proper"); in br_set_bridge_prio() 254 if (i >= ARRAY_LEN(ss)) error_exit("invalid stp state"); in br_set_stp() 264 if (!(index = if_nametoindex(port))) error_exit("invalid port"); in set_cost_prio() 271 if (i >= MAX_BRIDGES) error_exit("%s not in bridge", port); in set_cost_prio()
|
D | stty.c | 67 if (i == ARRAY_LEN(bauds)) error_exit("unknown speed: %d", baud); in speed() 205 if (!toys.optargs[*i]) error_exit("missing arg"); in get_arg() 220 if (flags[i].mask) error_exit("%s isn't a boolean", name); in set_flag() 238 error_exit("unknown option: %s", option); in set_option() 271 if (!arg) error_exit("missing arg"); in set_special_character() 276 else error_exit("invalid arg: %s", arg); in set_special_character() 325 error_exit("no settings with -a/-g"); in stty_main() 354 if (sscanf(arg, "%x%n", &value, &n) != 1) error_exit("bad -g string"); in stty_main() 412 error_exit("unable to perform all requested operations on %s", TT.F); in stty_main()
|
D | host.c | 116 if (type < 0) error_exit("Invalid query type: %s", TT.type_str); in host_main() 120 if (qlen < 0) error_exit("Invalid query parameters: %s", name); in host_main() 126 error_exit("Error looking up server name: %s", gai_strerror(ret)); in host_main() 136 if (alen < 12) error_exit("Host not found."); in host_main() 146 if (rcode) error_exit("Host not found."); in host_main()
|
/external/toybox/toys/lsb/ |
D | passwd.c | 68 if (!pw || (myuid && (myuid != pw->pw_uid))) error_exit("Not root"); in passwd_main() 76 if (*pass=='!') error_exit("already locked"); in passwd_main() 80 if (*pass!='!') error_exit("already unlocked"); in passwd_main() 87 if (get_salt(salt, TT.a ? TT.a : "des")<0) error_exit("bad -a '%s'", TT.a); in passwd_main() 91 if (*pass=='!') error_exit("'%s' locked", name); in passwd_main() 95 if (!pass || strcmp(pass, pw->pw_passwd)) error_exit("No"); in passwd_main() 102 if (strcmp(toybuf, toybuf+2048)) error_exit("Passwords do not match."); in passwd_main()
|
D | seq.c | 39 if (!s) error_exit("bad -f no %%f"); in insanitize() 41 error_exit("bad -f '%s'@%d", f, (int)(s-f+1)); in insanitize() 106 if (TT.buflen<0) error_exit("bad -s"); in seq_main()
|
/external/toybox/lib/ |
D | xwrap.c | 18 if (strlen(src)+1 > size) error_exit("'%s' > %ld bytes", src, (long)size); in xstrncpy() 27 error_exit("'%s%s' > %ld bytes", dest, src, (long)size); in xstrncat() 72 if (!ret) error_exit("xmalloc(%ld)", (long)size); in xmalloc() 90 if (!ptr) error_exit("xrealloc"); in xrealloc() 99 if (!ret) error_exit("xstrndup"); in xstrndup() 456 if(-1 == (fd = mkstemp(*tempname))) error_exit("no temp file"); in xtempfile() 684 if (chroot(path)) error_exit("chroot '%s'", path); in xchroot() 691 if (!pwd) error_exit("bad uid %ld", (long)uid); in xgetpwuid() 714 error_exit("bad user '%s'", name); in xgetuid() 728 error_exit("bad group '%s'", name); in xgetgid() [all …]
|
D | args.c | 280 if (CFG_TOYBOX_DEBUG && !*end) error_exit("(longopt) didn't end"); in parse_optflaglist() 300 error_exit("multiple types %c:%c%c", new->c, new->type, *options); in parse_optflaglist() 311 } else error_exit("<>= only after .#%%"); in parse_optflaglist() 347 if (CFG_TOYBOX_DEBUG && *options != '[') error_exit("trailing %s", options); in parse_optflaglist() 350 if (CFG_TOYBOX_DEBUG && idx == -1) error_exit("[ needs +-!"); in parse_optflaglist() 352 error_exit("empty []"); in parse_optflaglist() 359 if (CFG_TOYBOX_DEBUG && !*options) error_exit("[ without ]"); in parse_optflaglist() 368 error_exit("[] unknown target %c", *options); in parse_optflaglist()
|
/external/zlib/contrib/bench/ |
D | zlib_bench.cc | 35 void error_exit(const char* error, int code) { in error_exit() function 90 error_exit("bad wrapper type", int(type)); in zlib_stream_wrapper_type() 101 error_exit("bad wrapper type", int(type)); in zlib_wrapper_name() 116 error_exit("bad strategy", zlib_strategy); in zlib_level_strategy_name() 139 error_exit("deflateInit2 failed", result); in zlib_compress() 151 error_exit("compress failed", result); in zlib_compress() 168 error_exit("inflateInit2 failed", result); in zlib_uncompress() 185 error_exit(error.c_str(), result); in zlib_uncompress()
|
/external/toybox/toys/other/ |
D | mkpasswd.c | 39 if (TT.S) error_exit("duplicate salt"); in mkpasswd_main() 43 if (-1 == (i = get_salt(salt, TT.m))) error_exit("bad -m"); in mkpasswd_main() 49 if (*s) error_exit("salt not in [./A-Za-z0-9]"); in mkpasswd_main()
|
D | i2ctools.c | 84 if (!yesno(1)) error_exit("Exiting"); in confirm() 182 if (toys.optc) error_exit("-l doesn't take arguments"); in i2cdetect_main() 185 if (toys.optc != 1) error_exit("-F BUS"); in i2cdetect_main() 195 if (toys.optc != 1 && toys.optc != 3) error_exit("bad args"); in i2cdetect_main() 200 if (first > last) error_exit("first > last"); in i2cdetect_main() 297 if (toys.optc - 4 > I2C_SMBUS_BLOCK_MAX) error_exit("too much data"); in i2cset_main()
|
D | taskset.c | 82 if (digit > 15) error_exit("bad mask '%s'", *toys.optargs); in do_taskset() 102 if (toys.optc < 2) error_exit("Needs 2 args"); in taskset_main() 109 if (*c) error_exit("Not int %s", toys.optargs[1]); in taskset_main()
|
D | login.c | 46 if (tty == -1) error_exit("no tty"); in login_main() 84 } else if (TT.f) error_exit("bad -f '%s'", TT.f); in login_main() 106 if (!pwd) error_exit("max retries (3)"); in login_main()
|
D | lsattr.c | 351 if (TT.p < 0 || TT.p > UINT_MAX) error_exit("bad projid %lu", TT.p); in chattr_main() 352 if (TT.v < 0 || TT.v > UINT_MAX) error_exit("bad version %ld", TT.v); in chattr_main() 355 error_exit("no '=' with '-' or '+'"); in chattr_main() 356 if (TT.rm & TT.add) error_exit("set/unset same flag"); in chattr_main() 358 error_exit("need '-p', '-v', '=', '-', or '+'"); in chattr_main()
|
/external/toybox/toys/net/ |
D | netcat.c | 65 if (TT.w) error_exit("Timeout"); in timeout() 84 error_exit("socket path too long %s", name); in usock() 132 if (!FLAG(s)) error_exit("-s must be provided if using -U with -L/-l"); in netcat_main() 139 if (listen(sockfd, 5)) error_exit("listen"); in netcat_main()
|
D | ftpget.c | 64 if (total>=len) error_exit("overflow"); in xread2line() 119 if (toys.optc != 3) error_exit("-m FROM TO"); in ftpget_main() 158 else if (get) error_exit("no %s", remote); in ftpget_main() 194 if (lenl != lenr) error_exit("short %lld/%lld", lenl, lenr); in ftpget_main()
|
/external/toybox/toys/android/ |
D | setenforce.c | 25 if (!is_selinux_enabled()) error_exit("SELinux is disabled"); in setenforce_main() 28 else error_exit("Invalid state: %s", new); in setenforce_main()
|
/external/libjpeg-turbo/ |
D | jerror.h | 236 (*(cinfo)->err->error_exit) ((j_common_ptr)(cinfo))) 240 (*(cinfo)->err->error_exit) ((j_common_ptr)(cinfo))) 245 (*(cinfo)->err->error_exit) ((j_common_ptr)(cinfo))) 251 (*(cinfo)->err->error_exit) ((j_common_ptr)(cinfo))) 258 (*(cinfo)->err->error_exit) ((j_common_ptr)(cinfo))) 267 (*(cinfo)->err->error_exit) ((j_common_ptr)(cinfo))) 271 (*(cinfo)->err->error_exit) ((j_common_ptr)(cinfo)))
|
D | jerror.c | 69 error_exit(j_common_ptr cinfo) in error_exit() function 232 err->error_exit = error_exit; in jpeg_std_error()
|