Searched refs:die (Results 1 - 10 of 10) sorted by relevance

/system/core/toolbox/
H A Difconfig.c16 static void die(const char *s) function
24 if(ioctl(s, SIOCGIFFLAGS, ifr) < 0) die("SIOCGIFFLAGS");
26 if(ioctl(s, SIOCSIFFLAGS, ifr) < 0) die("SIOCSIFFLAGS");
40 if(ioctl(s, SIOCSIFMTU, ifr) < 0) die("SIOCSIFMTU");
45 if(ioctl(s, SIOCSIFDSTADDR, ifr) < 0) die("SIOCSIFDSTADDR");
51 if(ioctl(s, SIOCSIFNETMASK, ifr) < 0) die("SIOCSIFNETMASK");
57 if(ioctl(s, SIOCSIFADDR, ifr) < 0) die("SIOCSIFADDR");
80 die("cannot open control socket\n");
134 die("expecting a value for parameter \"mtu\"");
143 die("expectin
[all...]
H A Dtop.c79 #define die(...) { fprintf(stderr, __VA_ARGS__); exit(EXIT_FAILURE); } macro
205 if (!proc) die("Could not allocate struct process_info.\n");
235 if (!proc_dir) die("Could not open /proc.\n");
241 if (!file) die("Could not open /proc/stat.\n");
357 if (!new_procs) die("Could not expand procs array.\n");
/system/extras/fatblock/
H A Dutils.c38 void die(char *msg) function
H A Dutils.h32 void die(char *msg);
/system/core/fastboot/
H A Dfastboot.c79 void die(const char *fmt, ...) function
124 die("neither -p product specified nor ANDROID_PRODUCT_OUT set");
471 die("out of memory");
499 die("cannot open '%s'\n", fname);
504 die("cannot sparse read file '%s'\n", fname);
509 die("Failed to resparse '%s'\n", fname);
514 die("Failed to allocate sparse file array\n");
519 die("Failed to resparse '%s'\n", fname);
591 die("cannot sparse load '%s'\n", fname);
600 if (data == 0) die("canno
[all...]
H A Dfastboot.h65 void die(const char *fmt, ...);
H A Dengine.c70 if (s == 0) die("out of memory");
199 if (a == 0) die("out of memory");
207 die("Command length (%d) exceeds maximum size (%d)", cmdsize, sizeof(a->cmd));
520 if (a->data == 0) die("out of memory");
538 if (a->data == 0) die("out of memory");
636 die("bogus action");
/system/core/cpio/
H A Dmkbootfs.c26 void die(const char *why, ...) function
122 if(strlen(out) != (unsigned int)olen) die("ACK!");
165 if(d == 0) die("cannot open directory '%s'", in);
233 if(lstat(in, &s)) die("could not stat '%s'\n", in);
240 if(fd < 0) die("cannot open '%s' for read", in);
243 if(tmp == 0) die("cannot allocate %d bytes", s.st_size);
246 die("cannot read %d bytes", s.st_size);
260 if(size < 0) die("cannot read symlink '%s'", in);
263 die("Unknown '%s' (mode %d)?\n", in, s.st_mode);
288 if (f == NULL) die("faile
[all...]
/system/extras/cpustats/
H A Dcpustats.c49 #define die(...) { fprintf(stderr, __VA_ARGS__); exit(EXIT_FAILURE); } macro
109 if (!old_cpus) die("Could not allocate struct cpu_info\n");
111 if (!new_cpus) die("Could not allocate struct cpu_info\n");
116 if (!new_cpus[i].freqs) die("Could not allocate struct freq_info\n");
118 if (!old_cpus[i].freqs) die("Could not allocate struct freq_info\n");
128 if (!new_total_cpu.freqs) die("Could not allocate struct freq_info\n");
130 if (!old_total_cpu.freqs) die("Could not allocate struct freq_info\n");
178 die("present cpus != online cpus\n");
192 if (!file) die("Could not open %s\n", filename);
193 if (!fgets(line, MAX_BUF_SIZE, file)) die("Coul
[all...]
/system/core/netcfg/
H A Dnetcfg.c31 void die(const char *reason) function
142 die("Cannot perform requested operation");

Completed in 70 milliseconds