/system/core/fastboot/ |
H A D | fastboot.c | 499 struct sparse_file **load_sparse_files(const char *fname, int max_size) argument 506 fd = open(fname, O_RDONLY | O_BINARY); 508 die("cannot open '%s'\n", fname); 513 die("cannot sparse read file '%s'\n", fname); 518 die("Failed to resparse '%s'\n", fname); 528 die("Failed to resparse '%s'\n", fname); 589 void do_flash(usb_handle *usb, const char *pname, const char *fname) argument 595 sz64 = file_size(fname); 598 struct sparse_file **s = load_sparse_files(fname, limit); 600 die("cannot sparse load '%s'\n", fname); 705 char *fname; local 975 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/vold/ |
H A D | cryptfs.c | 139 char *fname; local 146 fname = real_blk_name; 147 if ( (fd = open(fname, O_RDWR)) < 0) { 148 SLOGE("Cannot open real block device %s\n", fname); 153 SLOGE("Cannot get size of block device %s\n", fname); 168 fname = key_loc; 169 if ( (fd = open(fname, O_RDWR | O_CREAT, 0600)) < 0) { 170 SLOGE("Cannot open footer file %s\n", fname); 186 crypt_ftr->keysize*8, fname); 191 SLOGE("Cannot write key for real block device %s\n", fname); 239 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 ||
|
/system/netd/ |
H A D | BandwidthController.cpp | 676 char *fname; local 679 asprintf(&fname, "/proc/net/xt_quota/%s", costName); 680 fp = fopen(fname, "r"); 681 free(fname); 727 char *fname; local 729 asprintf(&fname, "/proc/net/xt_quota/%s", quotaName); 730 fp = fopen(fname, "w"); 731 free(fname);
|