Home
last modified time | relevance | path

Searched refs:die (Results 1 – 9 of 9) sorted by relevance

/system/core/toolbox/
Difconfig.c16 static void die(const char *s) in die() function
24 if(ioctl(s, SIOCGIFFLAGS, ifr) < 0) die("SIOCGIFFLAGS"); in setflags()
26 if(ioctl(s, SIOCSIFFLAGS, ifr) < 0) die("SIOCSIFFLAGS"); in setflags()
40 if(ioctl(s, SIOCSIFMTU, ifr) < 0) die("SIOCSIFMTU"); in setmtu()
45 if(ioctl(s, SIOCSIFDSTADDR, ifr) < 0) die("SIOCSIFDSTADDR"); in setdstaddr()
51 if(ioctl(s, SIOCSIFNETMASK, ifr) < 0) die("SIOCSIFNETMASK"); in setnetmask()
57 if(ioctl(s, SIOCSIFADDR, ifr) < 0) die("SIOCSIFADDR"); in setaddr()
80 die("cannot open control socket\n"); in ifconfig_main()
128 die("expecting a value for parameter \"mtu\""); in ifconfig_main()
137 die("expecting an IP address for parameter \"pointtopoint\""); in ifconfig_main()
[all …]
Dtop.c79 #define die(...) { fprintf(stderr, __VA_ARGS__); exit(EXIT_FAILURE); } macro
209 if (!proc) die("Could not allocate struct process_info.\n"); in alloc_proc()
239 if (!proc_dir) die("Could not open /proc.\n"); in read_procs()
245 if (!file) die("Could not open /proc/stat.\n"); in read_procs()
360 if (!new_procs) die("Could not expand procs array.\n"); in add_proc()
/system/extras/cpustats/
Dcpustats.c49 #define die(...) { fprintf(stderr, __VA_ARGS__); exit(EXIT_FAILURE); } macro
109 if (!old_cpus) die("Could not allocate struct cpu_info\n"); in main()
111 if (!new_cpus) die("Could not allocate struct cpu_info\n"); in main()
116 if (!new_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
118 if (!old_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
128 if (!new_total_cpu.freqs) die("Could not allocate struct freq_info\n"); in main()
130 if (!old_total_cpu.freqs) die("Could not allocate struct freq_info\n"); in main()
178 die("present cpus != online cpus\n"); in get_cpu_count()
192 if (!file) die("Could not open %s\n", filename); in get_cpu_count_from_file()
193 if (!fgets(line, MAX_BUF_SIZE, file)) die("Could not get %s contents\n", filename); in get_cpu_count_from_file()
[all …]
/system/core/cpio/
Dmkbootfs.c26 void die(const char *why, ...) in die() function
124 if(strlen(out) != (unsigned int)olen) die("ACK!"); in _eject()
167 if(d == 0) die("cannot open directory '%s'", in); in _archive_dir()
237 if(lstat(in, &s)) die("could not stat '%s'\n", in); in _archive()
244 if(fd < 0) die("cannot open '%s' for read", in); in _archive()
247 if(tmp == 0) die("cannot allocate %d bytes", s.st_size); in _archive()
250 die("cannot read %d bytes", s.st_size); in _archive()
264 if(size < 0) die("cannot read symlink '%s'", in); in _archive()
267 die("Unknown '%s' (mode %d)?\n", in, s.st_mode); in _archive()
292 if (f == NULL) die("failed to open canned file"); in read_canned_config()
[all …]
/system/core/fastboot/
Dfastboot.c145 die("neither -p product specified nor ANDROID_PRODUCT_OUT set"); in find_item()
534 die("out of memory"); in setup_requirements()
560 die("cannot sparse read file\n"); in load_sparse_files()
565 die("Failed to resparse\n"); in load_sparse_files()
570 die("Failed to allocate sparse file array\n"); in load_sparse_files()
575 die("Failed to resparse\n"); in load_sparse_files()
699 die("unknown buffer type: %d", buf->type); in flash_buf()
708 die("cannot load '%s'", fname); in do_flash()
740 if (zdata == 0) die("failed to load '%s': %s", fn, strerror(errno)); in do_update()
743 if(zip == 0) die("failed to access zipdata in '%s'"); in do_update()
[all …]
Dutil.c56 if (s == 0) die("out of memory"); in mkmsg()
60 void die(const char *fmt, ...) in die() function
Dengine.c143 if (a == 0) die("out of memory"); in queue_action()
151 die("Command length (%d) exceeds maximum size (%d)", cmdsize, sizeof(a->cmd)); in queue_action()
288 if (a->data == 0) die("out of memory"); in fb_queue_require()
306 if (a->data == 0) die("out of memory"); in fb_queue_display()
407 die("bogus action"); in fb_execute_queue()
Dfastboot.h68 void die(const char *fmt, ...);
/system/core/netcfg/
Dnetcfg.c26 void die(const char *reason) in die() function
136 die("Cannot perform requested operation"); in main()