Searched defs:fname (Results 1 - 9 of 9) sorted by relevance

/system/core/adb/
H A Dfile_sync_service.c85 char *fname; local
90 fname = tmp + len + 1;
104 strcpy(fname, de->d_name);
H A Dusb_linux.c55 char fname[64]; member in struct:usb_handle
91 if(!strcmp(usb->fname, dev_name)) {
458 D("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname);
460 D("[ usb read %d ] = %d, fname=%s\n", xfer, n, h->fname);
553 if(!strcmp(usb->fname, dev_name)) {
563 strcpy(usb->fname, dev_name);
575 usb->desc = unix_open(usb->fname, O_RDWR);
578 usb->desc = unix_open(usb->fname, O_RDONL
[all...]
/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 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.h106 union node *fname; member in struct:nfile
/system/netd/
H A DSoftapController.cpp52 int SoftapController::getPrivFuncNum(char *iface, const char *fname) { argument
67 if (strcmp(priv_ptr[i].name, fname) == 0)
/system/core/fastboot/
H A Dusb_linux.c66 char fname[64]; member in struct:usb_handle
241 strcpy(usb->fname, devname);
335 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname);
337 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, h->fname, retry);
H A Dfastboot.c494 char *fname; local
500 fname = find_item("info", product);
501 if (fname == 0) die("cannot find android-info.txt");
502 data = load_file(fname, &sz);
506 fname = find_item("boot", product);
507 data = load_file(fname, &sz);
509 do_send_signature(fname);
512 fname = find_item("recovery", product);
513 data = load_file(fname, &sz);
515 do_send_signature(fname);
647 char *fname = 0; 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);
735 check_mounted(const char *fname, mode_t mode) argument
784 getdiskinfo(int fd, const char *fname, const char *dtype, __unused int oflag, struct bpb *bpb) argument
827 getdiskinfo(int fd, const char *fname, const char *dtype, __unused int oflag, struct bpb *bpb) argument
937 ckgeom(const char *fname, u_int val, const char *msg) argument
[all...]

Completed in 196 milliseconds