/system/core/fastboot/ |
H A D | fastboot.c | 490 struct sparse_file **load_sparse_files(const char *fname, int max_size) argument 497 fd = open(fname, O_RDONLY | O_BINARY); 499 die("cannot open '%s'\n", fname); 504 die("cannot sparse read file '%s'\n", fname); 509 die("Failed to resparse '%s'\n", fname); 519 die("Failed to resparse '%s'\n", fname); 580 void do_flash(usb_handle *usb, const char *pname, const char *fname) argument 586 sz64 = file_size(fname); 589 struct sparse_file **s = load_sparse_files(fname, limit); 591 die("cannot sparse load '%s'\n", fname); 696 char *fname; local 953 char *fname = 0; local [all...] |
H A D | usb_linux.c | 72 char fname[64]; member in struct:usb_handle 288 strcpy(usb->fname, devname); 382 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); 384 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, h->fname, retry);
|
/system/core/sh/ |
H A D | redir.c | 178 char *fname; local 191 fname = redir->nfile.expfname; 196 if ((f = open(fname, O_RDONLY|eflags)) < 0) 202 fname = redir->nfile.expfname; 203 if ((f = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666)) < 0) 211 fname = redir->nfile.expfname; 212 if ((f = open(fname, oflags, 0666)) < 0) 216 fname = redir->nfile.expfname; 217 if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0) 245 error("cannot create %s: %s", fname, errms [all...] |
H A D | nodes.h | 106 union node *fname; member in struct:nfile
|
H A D | input.c | 433 setinputfile(const char *fname, int push) argument 439 if ((fd = open(fname, O_RDONLY)) < 0) 440 error("Can't open %s", fname);
|
H A D | nodes.c | 175 calcsize(n->nfile.fname); 273 new->nfile.fname = copynode(n->nfile.fname);
|
H A D | show.c | 157 sharg(np->nfile.fname, fp);
|
H A D | eval.c | 465 expandarg(redir->nfile.fname, &fn, EXP_TILDE | EXP_REDIR);
|
H A D | jobs.c | 1366 cmdtxt(n->nfile.fname);
|
H A D | parser.c | 670 n->nfile.fname = makename();
|
/system/netd/ |
H A D | SoftapController.h | 34 int setCommand(char *iface, const char *fname, unsigned buflen=0);
|
H A D | BandwidthController.cpp | 675 char *fname; local 678 asprintf(&fname, "/proc/net/xt_quota/%s", costName); 679 fp = fopen(fname, "r"); 680 free(fname); 726 char *fname; local 728 asprintf(&fname, "/proc/net/xt_quota/%s", quotaName); 729 fp = fopen(fname, "w"); 730 free(fname);
|
/system/vold/ |
H A D | cryptfs.c | 152 char *fname; local 159 fname = real_blk_name; 160 if ( (fd = open(fname, O_RDWR)) < 0) { 161 SLOGE("Cannot open real block device %s\n", fname); 166 SLOGE("Cannot get size of block device %s\n", fname); 181 fname = key_loc; 182 if ( (fd = open(fname, O_RDWR | O_CREAT, 0600)) < 0) { 183 SLOGE("Cannot open footer file %s\n", fname); 199 crypt_ftr->keysize*8, fname); 204 SLOGE("Cannot write key for real block device %s\n", fname); 252 char *fname; local [all...] |
/system/core/toolbox/ |
H A D | newfs_msdos.c | 268 const char *fname, *dtype, *bname; local 366 fname = *argv++; 367 if (!opt_create && !strchr(fname, '/')) { 368 snprintf(buf, sizeof(buf), "%s%s", _PATH_DEV, fname); 369 if (!(fname = strdup(buf))) 376 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0644); 378 errx(1, "failed to create %s", fname); 381 } else if ((fd = open(fname, opt_N ? O_RDONLY : O_RDWR)) == -1) 382 err(1, "%s", fname); 384 err(1, "%s", fname); 736 check_mounted(const char *fname, mode_t mode) argument 785 getdiskinfo(int fd, const char *fname, const char *dtype, __unused int oflag, struct bpb *bpb) argument 828 getdiskinfo(int fd, const char *fname, const char *dtype, __unused int oflag, struct bpb *bpb) argument 938 ckgeom(const char *fname, u_int val, const char *msg) argument [all...] |
H A D | du.c | 233 prstat(const char *fname, int64_t blocks) argument 237 fname);
|
/system/core/adb/ |
H A D | usb_linux.c | 55 char fname[64]; member in struct:usb_handle 91 if(!strcmp(usb->fname, dev_name)) { 483 D("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); 485 D("[ usb read %d ] = %d, fname=%s\n", xfer, n, h->fname); 578 if(!strcmp(usb->fname, dev_name)) { 588 strcpy(usb->fname, dev_name); 600 usb->desc = unix_open(usb->fname, O_RDWR); 603 usb->desc = unix_open(usb->fname, O_RDONL [all...] |
H A D | file_sync_service.c | 85 char *fname; local 90 fname = tmp + len + 1; 104 strcpy(fname, de->d_name);
|
/system/core/toolbox/grep/ |
H A D | grep.h | 144 bool file_matching(const char *fname);
|
H A D | util.c | 64 file_matching(const char *fname) argument 71 fname_copy = grep_strdup(fname); 75 if (fnmatch(fpattern[i].pat, fname, 0) == 0 ||
|