Searched refs:die (Results 1 – 10 of 10) sorted by relevance
/system/core/toolbox/ |
D | ifconfig.c | 16 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() 134 die("expecting a value for parameter \"mtu\""); in ifconfig_main() 143 die("expecting an IP address for parameter \"pointtopoint\""); in ifconfig_main() [all …]
|
D | top.c | 79 #define die(...) { fprintf(stderr, __VA_ARGS__); exit(EXIT_FAILURE); } macro 205 if (!proc) die("Could not allocate struct process_info.\n"); in alloc_proc() 235 if (!proc_dir) die("Could not open /proc.\n"); in read_procs() 241 if (!file) die("Could not open /proc/stat.\n"); in read_procs() 357 if (!new_procs) die("Could not expand procs array.\n"); in add_proc()
|
/system/core/fastboot/ |
D | fastboot.c | 64 void die(const char *fmt, ...) in die() function 109 die("neither -p product specified nor ANDROID_PRODUCT_OUT set"); in find_item() 414 die("out of memory"); in setup_requirements() 455 if (zdata == 0) die("failed to load '%s'", fn); in do_update() 458 if(zip == 0) die("failed to access zipdata in '%s'"); in do_update() 466 die("update package has no android-info.txt or android-product.txt"); in do_update() 469 if (tmp == 0) die("out of memory"); in do_update() 478 if (data == 0) die("update package missing boot.img"); in do_update() 489 if (data == 0) die("update package missing system.img"); in do_update() 523 if (fname == 0) die("cannot find android-info.txt"); in do_flashall() [all …]
|
D | fastboot.h | 58 void die(const char *fmt, ...);
|
D | engine.c | 71 if (s == 0) die("out of memory"); in mkmsg() 152 if (a == 0) die("out of memory"); in queue_action() 160 die("Command length (%d) exceeds maximum size (%d)", cmdsize, sizeof(a->cmd)); in queue_action() 464 if (a->data == 0) die("out of memory"); in fb_queue_require() 482 if (a->data == 0) die("out of memory"); in fb_queue_display() 574 die("bogus action"); in fb_execute_queue()
|
/system/core/cpio/ |
D | mkbootfs.c | 26 void die(const char *why, ...) in die() function 122 if(strlen(out) != (unsigned int)olen) die("ACK!"); in _eject() 165 if(d == 0) die("cannot open directory '%s'", in); in _archive_dir() 233 if(lstat(in, &s)) die("could not stat '%s'\n", in); in _archive() 240 if(fd < 0) die("cannot open '%s' for read", in); in _archive() 243 if(tmp == 0) die("cannot allocate %d bytes", s.st_size); in _archive() 246 die("cannot read %d bytes", s.st_size); in _archive() 260 if(size < 0) die("cannot read symlink '%s'", in); in _archive() 263 die("Unknown '%s' (mode %d)?\n", in, s.st_mode); in _archive() 288 if (f == NULL) die("failed to open canned file"); in read_canned_config() [all …]
|
/system/extras/cpustats/ |
D | cpustats.c | 49 #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/extras/fatblock/ |
D | utils.c | 38 void die(char *msg) in die() function
|
D | utils.h | 32 void die(char *msg);
|
/system/core/netcfg/ |
D | netcfg.c | 31 void die(const char *reason) in die() function 142 die("Cannot perform requested operation"); in main()
|