Home
last modified time | relevance | path

Searched refs:real_path (Results 1 – 2 of 2) sorted by relevance

/hardware/libhardware/
Dhardware.c155 char real_path[PATH_MAX]; in path_in_path() local
156 if (realpath(path, real_path) == NULL) return false; in path_in_path()
162 if (strncmp(real_path, real_in_path, real_in_path_len) != 0) { in path_in_path()
166 return strlen(real_path) > real_in_path_len && in path_in_path()
167 real_path[real_in_path_len] == '/'; in path_in_path()
/hardware/qcom/msm8998/gpt-utils/
Dgpt-utils.cpp529 char real_path[PATH_MAX] = {0}; in get_scsi_node_from_bootdevice() local
538 if (readlink(bootdev_path, real_path, sizeof(real_path) - 1) < 0) { in get_scsi_node_from_bootdevice()
544 if(strlen(real_path) < PATH_TRUNCATE_LOC + 1){ in get_scsi_node_from_bootdevice()
546 real_path); in get_scsi_node_from_bootdevice()
551 real_path[PATH_TRUNCATE_LOC] = '\0'; in get_scsi_node_from_bootdevice()
552 if(strlen(real_path) < LUN_NAME_START_LOC + 1){ in get_scsi_node_from_bootdevice()
554 real_path); in get_scsi_node_from_bootdevice()
562 &real_path[LUN_NAME_START_LOC]); in get_scsi_node_from_bootdevice()
982 char real_path[PATH_MAX] = {0}; in prepare_boot_update() local
1014 if (readlink(buf, real_path, sizeof(real_path) - 1) < 0) in prepare_boot_update()
[all …]