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

/system/bt/btif/co/
H A Dbta_gattc_co.c52 char fname[255] = {0}; local
53 getFilename(fname, bda);
56 sCacheFD = fopen(fname, to_save ? "w" : "r");
63 char fname[255] = {0}; local
64 getFilename(fname, bda);
65 unlink(fname);
/system/core/adb/
H A Dfile_sync_service.cpp109 char *fname; local
114 fname = tmp + len + 1;
128 strcpy(fname, de->d_name);
H A Dusb_linux.cpp53 char fname[64]; member in struct:usb_handle
89 if(!strcmp(usb->fname, dev_name)) {
493 D("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname);
495 D("[ usb read %d ] = %d, fname=%s\n", xfer, n, h->fname);
583 if (!strcmp(usb->fname, dev_name)) {
593 strcpy(usb->fname, dev_name);
606 usb->desc = unix_open(usb->fname, O_RDWR | O_CLOEXEC);
609 usb->desc = unix_open(usb->fname, O_RDONL
[all...]
/system/extras/verity/
H A DUtils.java213 static X509Certificate loadPEMCertificate(String fname) throws Exception { argument
214 try (FileInputStream fis = new FileInputStream(fname)) {
281 static byte[] read(String fname) throws Exception { argument
283 File f = new File(fname);
294 static void write(byte[] data, String fname) throws Exception{ argument
295 FileOutputStream out = new FileOutputStream(fname);
H A DVerityVerifier.java72 public VerityVerifier(String fname) throws Exception { argument
77 openImage(fname);
115 * @param fname Name of the mincrypt public key file
117 private static PublicKey getMincryptPublicKey(String fname) throws Exception { argument
118 try (RandomAccessFile key = new RandomAccessFile(fname, "r")) {
140 * @param fname Path to a sparse image file
142 private void openImage(String fname) throws Exception { argument
146 Process p = Runtime.getRuntime().exec("simg2img " + fname +
/system/core/toolbox/upstream-netbsd/usr.bin/du/
H A Ddu.c261 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 Dutil.c64 file_matching(const char *fname) argument
71 fname_copy = grep_strdup(fname);
75 if (fnmatch(fpattern[i].pat, fname, 0) == 0 ||
/system/core/fastboot/
H A Dusb_linux.c79 char fname[64]; member in struct:usb_handle
344 strcpy(usb->fname, devname);
422 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname);
424 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, h->fname, retry);
485 if (access(usb->fname, F_OK))
H A Dfastboot.cpp682 static int load_buf(usb_handle *usb, const char *fname, argument
687 fd = open(fname, O_RDONLY | O_BINARY);
715 void do_flash(usb_handle *usb, const char *pname, const char *fname) argument
719 if (load_buf(usb, fname, &buf)) {
720 die("cannot load '%s'", fname);
806 char* fname = find_item("info", product); local
807 if (fname == 0) die("cannot find android-info.txt");
810 void* data = load_file(fname, &sz);
816 fname = find_item(images[i].part_name, product);
818 if (load_buf(usb, fname,
1190 char *fname = 0; local
[all...]
/system/core/fs_mgr/
H A Dfs_mgr_verity.c425 static int check_verity_restart(const char *fname) argument
433 fd = TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_CLOEXEC));
437 ERROR("Failed to open %s (%s)\n", fname, strerror(errno));
443 ERROR("Failed to fstat %s (%s)\n", fname, strerror(errno));
454 ERROR("Failed to lseek %jd %s (%s)\n", (intmax_t)(s.st_size - size), fname,
460 ERROR("Failed to read %zd bytes from %s (%s)\n", size, fname,
515 static int metadata_find(const char *fname, const char *stag, argument
526 if (!fname) {
530 fp = fopen(fname, "r+");
533 ERROR("Failed to open %s (%s)\n", fname, strerro
602 write_verity_state(const char *fname, off64_t offset, int32_t mode) argument
631 read_verity_state(const char *fname, off64_t offset, int *mode) argument
[all...]
/system/core/toolbox/
H A Dnewfs_msdos.c260 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
847 getdiskinfo(int fd, const char *fname, const char *dtype, __unused int oflag, struct bpb *bpb) argument
955 ckgeom(const char *fname, u_int val, const char *msg) argument
[all...]
/system/netd/server/
H A DBandwidthController.cpp782 char *fname; local
788 asprintf(&fname, "/proc/net/xt_quota/%s", costName);
789 fp = fopen(fname, "re");
790 free(fname);
838 char *fname; local
845 asprintf(&fname, "/proc/net/xt_quota/%s", quotaName);
846 fp = fopen(fname, "we");
847 free(fname);
/system/vold/
H A Dcryptfs.c612 char *fname = NULL; local
615 if (get_crypt_ftr_info(&fname, &starting_off)) {
619 if (fname[0] != '/') {
623 if ( (fd = open(fname, O_RDWR | O_CREAT|O_CLOEXEC, 0600)) < 0) {
624 SLOGE("Cannot open footer file %s for put\n", fname);
750 char *fname = NULL; local
753 if (get_crypt_ftr_info(&fname, &starting_off)) {
757 if (fname[0] != '/') {
761 if ( (fd = open(fname, O_RDWR|O_CLOEXEC)) < 0) {
762 SLOGE("Cannot open footer file %s for get\n", fname);
843 char *fname; local
937 char *fname; local
[all...]

Completed in 216 milliseconds