/system/core/toolbox/ |
H A D | newfs_msdos.c | 260 const char *fname, *dtype, *bname; local 360 fname = *argv++; 361 if (!opt_create && !strchr(fname, '/')) { 362 snprintf(buf, sizeof(buf), "%s%s", _PATH_DEV, fname); 363 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); 751 check_mounted(const char *fname, mode_t mode) argument 797 getdiskinfo(int fd, const char *fname, const char *dtype, __unused int oflag,struct bpb *bpb) argument 839 getdiskinfo(int fd, const char *fname, const char *dtype, __unused int oflag, struct bpb *bpb) argument 947 ckgeom(const char *fname, u_int val, const char *msg) argument [all...] |
/system/extras/verity/ |
H A D | Utils.java | 204 static X509Certificate loadPEMCertificate(String fname) throws Exception { argument 205 try (FileInputStream fis = new FileInputStream(fname)) { 251 static byte[] read(String fname) throws Exception { argument 253 File f = new File(fname); 264 static void write(byte[] data, String fname) throws Exception{ argument 265 FileOutputStream out = new FileOutputStream(fname);
|
H A D | VerityVerifier.java | 63 * @param fname Path to a sparse image file 65 public static RandomAccessFile openImage(String fname) throws Exception { argument 69 Process p = Runtime.getRuntime().exec("simg2img " + 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 | O_CLOEXEC); 603 usb->desc = unix_open(usb->fname, O_RDONL [all...] |
H A D | file_sync_service.c | 112 char *fname; local 117 fname = tmp + len + 1; 131 strcpy(fname, de->d_name);
|
/system/core/fastboot/ |
H A D | fastboot.c | 670 static int load_buf(usb_handle *usb, const char *fname, argument 675 fd = open(fname, O_RDONLY | O_BINARY); 703 void do_flash(usb_handle *usb, const char *pname, const char *fname) argument 707 if (load_buf(usb, fname, &buf)) { 708 die("cannot load '%s'", fname); 803 char *fname; local 813 fname = find_item("info", product); 814 if (fname == 0) die("cannot find android-info.txt"); 815 data = load_file(fname, &sz); 820 fname 1177 char *fname = 0; local [all...] |
H A D | usb_linux.c | 79 char fname[64]; member in struct:usb_handle 337 strcpy(usb->fname, devname); 415 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); 417 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, h->fname, retry); 478 if (access(usb->fname, F_OK))
|
/system/core/toolbox/upstream-netbsd/usr.bin/du/ |
H A D | du.c | 261 prstat(const char *fname, int64_t blocks) argument 264 (void)printf("%" PRId64 "\t%s\n", blocks, fname); 275 (void)printf("%s\t%s\n", buf, fname); 279 fname);
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
H A D | grep.h | 140 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/vold/ |
H A D | cryptfs.c | 488 char *fname = NULL; local 491 if (get_crypt_ftr_info(&fname, &starting_off)) { 495 if (fname[0] != '/') { 499 if ( (fd = open(fname, O_RDWR | O_CREAT, 0600)) < 0) { 500 SLOGE("Cannot open footer file %s for put\n", fname); 624 char *fname = NULL; local 627 if (get_crypt_ftr_info(&fname, &starting_off)) { 631 if (fname[0] != '/') { 635 if ( (fd = open(fname, O_RDWR)) < 0) { 636 SLOGE("Cannot open footer file %s for get\n", fname); 717 char *fname; local 811 char *fname; local [all...] |
/system/netd/server/ |
H A D | BandwidthController.cpp | 782 char *fname; local 788 asprintf(&fname, "/proc/net/xt_quota/%s", costName); 789 fp = fopen(fname, "r"); 790 free(fname); 838 char *fname; local 845 asprintf(&fname, "/proc/net/xt_quota/%s", quotaName); 846 fp = fopen(fname, "w"); 847 free(fname);
|