/external/toybox/lib/ |
D | args.c | 137 error_exit("Unknown option %s", gof->arg); in gotflag() 164 error_exit("No '%c' with '%c'", opt->c, bad->c); in gotflag() 188 if (opt->c != -1) error_exit("%s-%c", s, opt->c); in gotflag() 191 error_exit("%s--%.*s", s, lo->len, lo->str); in gotflag() 205 if (l < opt->val[0].l) error_exit("-%c < %ld", opt->c, opt->val[0].l); in gotflag() 206 if (l > opt->val[1].l) error_exit("-%c > %ld", opt->c, opt->val[1].l); in gotflag() 214 error_exit("-%c < %lf", opt->c, (double)opt->val[0].f); in gotflag() 216 error_exit("-%c > %lf", opt->c, (double)opt->val[1].f); in gotflag() 275 if (CFG_TOYBOX_DEBUG && !*end) error_exit("(longopt) didn't end"); in parse_optflaglist() 295 error_exit("multiple types %c:%c%c", new->c, new->type, *options); in parse_optflaglist() [all …]
|
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() 43 if (!ret) error_exit("xmalloc"); in xmalloc() 61 if (!ptr) error_exit("xrealloc"); in xrealloc() 71 if (!ret) error_exit("xstrndup"); in xstrndup() 456 if (chdir(path)) error_exit("chdir '%s'", path); in xchdir() 461 if (chroot(path)) error_exit("chroot '%s'", path); in xchroot() 468 if (!pwd) error_exit("bad uid %ld", (long)uid); in xgetpwuid() 606 if (i == 3) error_exit("xpidfile %s", name); in xpidfile() 639 if (i == -1) error_exit("Unknown suffix '%c'", *arg); in xparsetime() [all …]
|
/external/toybox/toys/pending/ |
D | useradd.c | 51 error_exit("options with USER GROUP"); 58 error_exit("bad username"); 60 if (getpwnam(s)) error_exit("'%s' in use", s); 85 if (TT.uid > INT_MAX) error_exit("bad uid"); 86 if (getpwuid(TT.uid)) error_exit("uid '%ld' in use", TT.uid); 100 if (getgrnam(pwd.pw_name)) error_exit("group '%s' in use", pwd.pw_name); 124 if (update_password("/etc/passwd", pwd.pw_name, entry)) error_exit("updating passwd file failed"); 153 if (xrun((char *[]){"passwd", pwd.pw_name, 0})) error_exit("passwd"); 158 error_exit("groupadd");
|
D | expr.c | 107 if (lhs->s || rhs->s) error_exit("non-integer argument"); in mod() 108 if (is_zero(rhs)) error_exit("division by zero"); in mod() 114 if (lhs->s || rhs->s) error_exit("non-integer argument"); in divi() 115 if (is_zero(rhs)) error_exit("division by zero"); in divi() 121 if (lhs->s || rhs->s) error_exit("non-integer argument"); in mul() 127 if (lhs->s || rhs->s) error_exit("non-integer argument"); in sub() 133 if (lhs->s || rhs->s) error_exit("non-integer argument"); in add() 239 if (!match(tok, ")")) error_exit("syntax error"); // missing closing paren in parse_op() 253 if (rhs.s && !*rhs.s) error_exit("syntax error"); // premature end of expression in parse_op() 270 if (!tok.s || *tok.s) error_exit("syntax error"); 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); 67 error_exit("options, user and group can't be together"); in groupadd_main() 74 error_exit("group '%s' does not exist", toys.optargs[1]); in groupadd_main() 98 if (getgrnam(s)) error_exit("'%s' in use", s); in groupadd_main() 100 error_exit("bad name"); in groupadd_main()
|
D | ip.c | 143 error_exit(NULL); in iphelp() 278 error_exit("wrong database"); in getlist() 347 if (family == AF_PACKET) error_exit("'%s' may be inet prefix", name); in get_prefix() 419 if (get_prefix(addr, &af, name, family)) error_exit("Invalid prefix"); in parse_prefix() 423 error_exit("Invalid prefix"); in parse_prefix() 481 if (!arg) error_exit("bad hw-addr '%s'", ""); in fill_hwaddr() 485 error_exit("bad hw-addr '%s'", arg); in fill_hwaddr() 530 if (!*argv) error_exit("Invalid vlan id."); in vlan_parse_opt() 579 error_exit("Not enough information: \"dev\" argument is required.\n"); in linkupdate() 581 error_exit("Not enough information: \"type\" argument is required.\n"); in linkupdate() [all …]
|
D | arp.c | 103 error_exit("bad hw addr '%s'", hw); in get_hw_add() 144 if (!*++argv) error_exit("NULL netmask"); in check_flags() 151 if (!*++argv) error_exit("NULL dev"); in check_flags() 153 } else if (j > 4) error_exit("invalid arg"); in check_flags() 162 if (!toys.optargs[1]) error_exit("bad syntax"); in set_entry() 171 error_exit("protocol type mismatch"); in set_entry() 228 error_exit((type != -1)?"only inet supported by kernel":"unknown family"); in arp_main() 234 error_exit((type != -1)?"h/w type not supported":"unknown h/w type"); in arp_main() 239 if (!toys.optargs[0]) error_exit("host name req"); in arp_main() 281 if (!hwtype[i].name) error_exit("unknown h/w type"); in arp_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() 325 error_exit("check args"); in brctl_main() 335 error_exit("invalid option '%s'", *toys.optargs); in brctl_main()
|
D | test.c | 49 if (!strcmp("]", toys.optargs[--toys.optc])) error_exit("Missing ']'"); in test_main() 58 if (id == -1 || toys.optargs[0][2]) error_exit(err_fmt, toys.optargs[0]); in test_main() 101 else error_exit(err_fmt, toys.optargs[1]); in test_main() 109 else error_exit(err_fmt, toys.optargs[1]); in test_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 | crontab.c | 217 error_exit("No crontab for '%s'", name); in do_list() 226 error_exit("No crontab for '%s'", name); in do_remove() 258 error_exit("errors in crontab file '%s', can't install.", fname); in do_replace() 343 if (getuid()) error_exit("must be privileged to use -u"); in crontab_main() 351 error_exit("file name must be specified for replace"); in crontab_main() 361 error_exit("no arguments permitted after this option"); in crontab_main()
|
D | host.c | 113 if (type < 0) error_exit("Invalid query type: %s", TT.type_str); in host_main() 117 if (qlen < 0) error_exit("Invalid query parameters: %s", name); in host_main() 123 error_exit("Error looking up server name: %s", gai_strerror(ret)); in host_main() 134 if (alen < 12) error_exit("Host not found."); in host_main() 144 if (rcode) error_exit("Host not found."); in host_main()
|
D | pgrep.c | 91 error_exit("Unknown signal '%s'", arg); in pgrep_main() 96 error_exit("missing argument"); in pgrep_main() 100 error_exit("max argument > 1"); in pgrep_main() 106 error_exit("%s", errbuf); in pgrep_main()
|
D | dd.c | 111 if (*ch == '-') error_exit("invalid number '%s'",arg); in strsuftoll() 119 error_exit("invalid number '%s'",arg); in strsuftoll() 298 if (!(arg = strchr(*toys.optargs, '='))) error_exit("unknown arg %s", *toys.optargs); in dd_main() 302 error_exit(""); in dd_main() 306 comp))) error_exit("unknown arg %s", key.name); in dd_main() 341 error_exit("unknown conversion %s", key.name); in dd_main()
|
/external/toybox/toys/android/ |
D | setprop.c | 35 error_exit("name '%s' too long; try '%.*s'", in setprop_main() 38 error_exit("value '%s' too long; try '%.*s'", in setprop_main() 42 error_exit("property names must not start or end with '.'"); in setprop_main() 44 error_exit("'..' is not allowed in a property name"); in setprop_main() 47 error_exit("invalid character '%c' in name '%s'", *p, name); in setprop_main()
|
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/toybox/toys/lsb/ |
D | passwd.c | 108 error_exit("Not root"); in passwd_main() 118 error_exit("You need to be root to change '%s' password\n", name); in passwd_main() 132 error_exit("Error: Unkown encryption algorithm\n"); in passwd_main() 136 error_exit("Can't change, password is locked for %s",name); in passwd_main() 145 if (verify_passwd(pass)) error_exit("Authentication failed\n"); in passwd_main() 162 if (pass[0] == '!') error_exit("password is already locked for %s",name); in passwd_main() 166 if (pass[0] != '!') error_exit("password is already unlocked for %s",name); in passwd_main()
|
/external/toybox/toys/other/ |
D | login.c | 124 error_exit("Failed to spawn shell"); in spawn_shell() 152 if (f_flag && toys.optc != 1) error_exit("-f requires username"); in login_main() 154 if (geteuid()) error_exit("not root"); in login_main() 156 if (!isatty(0) || !isatty(1) || !isatty(2)) error_exit("no tty"); in login_main() 201 error_exit("Maximum number of tries exceeded (3)\n"); in login_main()
|
D | mkpasswd.c | 39 if (TT.salt) error_exit("duplicate salt"); 43 if (-1 == (i = get_salt(salt, TT.method))) error_exit("bad -m"); 49 if (*s) error_exit("salt not in [./A-Za-z0-9]");
|
D | netcat.c | 56 if (TT.wait) error_exit("Timeout"); 73 if (!hostbyname) error_exit("no host '%s'", name); in lookup_name() 98 if (toys.exithelp) error_exit("Argument count wrong"); in netcat_main() 135 if (listen(sockfd, 5)) error_exit("listen"); in netcat_main()
|
D | taskset.c | 71 if (digit > 15) error_exit("bad mask '%s'", *toys.optargs); in do_taskset() 91 if (toys.optc < 2) error_exit("Needs 2 args"); in taskset_main() 98 if (*c) error_exit("Not int %s", toys.optargs[1]); in taskset_main()
|
/external/pdfium/core/src/fxcodec/libjpeg/ |
D | fpdfapi_jerror.c | 62 error_exit (j_common_ptr cinfo) in error_exit() function 221 err->error_exit = error_exit; in jpeg_std_error()
|
D | jerror.h | 207 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 211 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 216 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 222 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 229 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 233 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
|
/external/jpeg/ |
D | jerror.c | 70 error_exit (j_common_ptr cinfo) in error_exit() function 233 err->error_exit = error_exit; in jpeg_std_error()
|
D | jerror.h | 207 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 211 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 216 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 222 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 229 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo))) 233 (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)))
|