Searched refs:fname (Results 1 - 19 of 19) sorted by relevance

/system/core/fastboot/
H A Dfastboot.c490 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 Dusb_linux.c72 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 Dredir.c178 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 Dnodes.h106 union node *fname; member in struct:nfile
H A Dinput.c433 setinputfile(const char *fname, int push) argument
439 if ((fd = open(fname, O_RDONLY)) < 0)
440 error("Can't open %s", fname);
H A Dnodes.c175 calcsize(n->nfile.fname);
273 new->nfile.fname = copynode(n->nfile.fname);
H A Dshow.c157 sharg(np->nfile.fname, fp);
H A Deval.c465 expandarg(redir->nfile.fname, &fn, EXP_TILDE | EXP_REDIR);
H A Djobs.c1366 cmdtxt(n->nfile.fname);
H A Dparser.c670 n->nfile.fname = makename();
/system/netd/
H A DSoftapController.h34 int setCommand(char *iface, const char *fname, unsigned buflen=0);
H A DBandwidthController.cpp675 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 Dcryptfs.c152 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 Dnewfs_msdos.c268 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 Ddu.c233 prstat(const char *fname, int64_t blocks) argument
237 fname);
/system/core/adb/
H A Dusb_linux.c55 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 Dfile_sync_service.c85 char *fname; local
90 fname = tmp + len + 1;
104 strcpy(fname, de->d_name);
/system/core/toolbox/grep/
H A Dgrep.h144 bool file_matching(const char *fname);
H A Dutil.c64 file_matching(const char *fname) argument
71 fname_copy = grep_strdup(fname);
75 if (fnmatch(fpattern[i].pat, fname, 0) == 0 ||

Completed in 80 milliseconds