Home
last modified time | relevance | path

Searched refs:fname (Results 1 – 12 of 12) sorted by relevance

/system/core/fs_mgr/
Dfs_mgr_verity.cpp363 static int check_verity_restart(const char *fname) in check_verity_restart() argument
371 fd = TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_CLOEXEC)); in check_verity_restart()
375 ERROR("Failed to open %s (%s)\n", fname, strerror(errno)); in check_verity_restart()
381 ERROR("Failed to fstat %s (%s)\n", fname, strerror(errno)); in check_verity_restart()
392 ERROR("Failed to lseek %jd %s (%s)\n", (intmax_t)(s.st_size - size), fname, in check_verity_restart()
398 ERROR("Failed to read %zd bytes from %s (%s)\n", size, fname, in check_verity_restart()
453 static int metadata_find(const char *fname, const char *stag, in metadata_find() argument
464 if (!fname) { in metadata_find()
468 fp = fopen(fname, "r+"); in metadata_find()
471 ERROR("Failed to open %s (%s)\n", fname, strerror(errno)); in metadata_find()
[all …]
/system/core/toolbox/
Dnewfs_msdos.c260 const char *fname, *dtype, *bname; in newfs_msdos_main() local
360 fname = *argv++; in newfs_msdos_main()
361 if (!opt_create && !strchr(fname, '/')) { in newfs_msdos_main()
362 snprintf(buf, sizeof(buf), "%s%s", _PATH_DEV, fname); in newfs_msdos_main()
363 if (!(fname = strdup(buf))) in newfs_msdos_main()
376 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0644); in newfs_msdos_main()
378 errx(1, "failed to create %s", fname); in newfs_msdos_main()
381 } else if ((fd = open(fname, opt_N ? O_RDONLY : O_RDWR)) == -1) in newfs_msdos_main()
382 err(1, "%s", fname); in newfs_msdos_main()
384 err(1, "%s", fname); in newfs_msdos_main()
[all …]
/system/bt/bta/gatt/
Dbta_gattc_cache.c1520 char fname[255] = {0}; in bta_gattc_cache_load() local
1521 bta_gattc_generate_cache_file_name(fname, p_clcb->p_srcb->server_bda); in bta_gattc_cache_load()
1523 FILE *fd = fopen(fname, "rb"); in bta_gattc_cache_load()
1526 __func__, fname, strerror(errno)); in bta_gattc_cache_load()
1535 APPL_TRACE_ERROR("%s: can't read GATT cache version from: %s", __func__, fname); in bta_gattc_cache_load()
1540 APPL_TRACE_ERROR("%s: wrong GATT cache version: %s", __func__, fname); in bta_gattc_cache_load()
1547 APPL_TRACE_ERROR("%s: can't read number of GATT attributes: %s", __func__, fname); in bta_gattc_cache_load()
1554 APPL_TRACE_ERROR("%s: can't read GATT attributes: %s", __func__, fname); in bta_gattc_cache_load()
1584 char fname[255] = {0}; in bta_gattc_cache_write() local
1585 bta_gattc_generate_cache_file_name(fname, server_bda); in bta_gattc_cache_write()
[all …]
/system/extras/verity/
DVerityVerifier.java72 public VerityVerifier(String fname) throws Exception { in VerityVerifier() argument
77 openImage(fname); in VerityVerifier()
117 private static PublicKey getMincryptPublicKey(String fname) throws Exception { in getMincryptPublicKey() argument
118 try (RandomAccessFile key = new RandomAccessFile(fname, "r")) { in getMincryptPublicKey()
142 private void openImage(String fname) throws Exception { in openImage() argument
146 Process p = Runtime.getRuntime().exec("simg2img " + fname + in openImage()
DUtils.java213 static X509Certificate loadPEMCertificate(String fname) throws Exception { in loadPEMCertificate() argument
214 try (FileInputStream fis = new FileInputStream(fname)) { in loadPEMCertificate()
281 static byte[] read(String fname) throws Exception { in read() argument
283 File f = new File(fname); in read()
294 static void write(byte[] data, String fname) throws Exception{ in write() argument
295 FileOutputStream out = new FileOutputStream(fname); in write()
/system/core/fastboot/
Dfastboot.cpp810 static int load_buf(Transport* transport, const char *fname, struct fastboot_buffer *buf) in load_buf() argument
814 fd = open(fname, O_RDONLY | O_BINARY); in load_buf()
959 static void do_flash(Transport* transport, const char* pname, const char* fname) { in do_flash() argument
962 if (load_buf(transport, fname, &buf)) { in do_flash()
963 die("cannot load '%s'", fname); in do_flash()
1048 char* fname = find_item("info", product); in do_flashall() local
1049 if (fname == nullptr) die("cannot find android-info.txt"); in do_flashall()
1052 void* data = load_file(fname, &sz); in do_flashall()
1058 fname = find_item(images[i].part_name, product); in do_flashall()
1060 if (load_buf(transport, fname, &buf)) { in do_flashall()
[all …]
Dusb_linux.cpp84 char fname[64]; member
364 strcpy(usb->fname, devname); in find_usb_device()
441 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, handle_->desc, handle_->fname); in Read()
443 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, handle_->fname, retry); in Read()
493 if (access(handle_->fname, F_OK)) in WaitForDisconnect()
/system/vold/
Dcryptfs.c608 char *fname = NULL; in put_crypt_ftr_and_key() local
613 if (get_crypt_ftr_info(&fname, &starting_off)) { in put_crypt_ftr_and_key()
617 if (fname[0] != '/') { in put_crypt_ftr_and_key()
621 if ( (fd = open(fname, O_RDWR | O_CREAT|O_CLOEXEC, 0600)) < 0) { in put_crypt_ftr_and_key()
622 SLOGE("Cannot open footer file %s for put\n", fname); in put_crypt_ftr_and_key()
756 char *fname = NULL; in get_crypt_ftr_and_key() local
759 if (get_crypt_ftr_info(&fname, &starting_off)) { in get_crypt_ftr_and_key()
763 if (fname[0] != '/') { in get_crypt_ftr_and_key()
767 if ( (fd = open(fname, O_RDWR|O_CLOEXEC)) < 0) { in get_crypt_ftr_and_key()
768 SLOGE("Cannot open footer file %s for get\n", fname); in get_crypt_ftr_and_key()
[all …]
/system/netd/server/
DBandwidthController.cpp749 char *fname; in getInterfaceQuota() local
755 asprintf(&fname, "/proc/net/xt_quota/%s", costName); in getInterfaceQuota()
756 fp = fopen(fname, "re"); in getInterfaceQuota()
757 free(fname); in getInterfaceQuota()
803 char *fname; in updateQuota() local
810 asprintf(&fname, "/proc/net/xt_quota/%s", quotaName); in updateQuota()
811 fp = fopen(fname, "we"); in updateQuota()
812 free(fname); in updateQuota()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dutil.c64 file_matching(const char *fname) in file_matching() argument
71 fname_copy = grep_strdup(fname); in file_matching()
75 if (fnmatch(fpattern[i].pat, fname, 0) == 0 || in file_matching()
Dgrep.h140 bool file_matching(const char *fname);
/system/connectivity/shill/mobile_operator_db/
Dserviceproviders_converter.py208 fd, fname = tempfile.mkstemp(prefix='converter_')
209 logging.info('Dumping XML to file %s', fname)
405 _, fname = os.path.split(__file__)
407 self._SpewComment("This file is generated by the script %s" % fname)