Lines Matching refs:filename
77 char filename[21]; in store_sid() local
78 snprintf(filename, sizeof(filename), "%u", uid); in store_sid()
79 int fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR); in store_sid()
81 ALOGE("could not open file: %s: %s", filename, strerror(errno)); in store_sid()
104 const char *filename = ".coldboot"; in mark_cold_boot() local
105 if (access(filename, F_OK) == -1) { in mark_cold_boot()
106 int fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR); in mark_cold_boot()
108 ALOGE("could not open file: %s : %s", filename, strerror(errno)); in mark_cold_boot()
118 char filename[21]; in maybe_store_sid() local
119 snprintf(filename, sizeof(filename), "%u", uid); in maybe_store_sid()
120 if (access(filename, F_OK) == -1) { in maybe_store_sid()
126 char filename[21]; in read_sid() local
128 snprintf(filename, sizeof(filename), "%u", uid); in read_sid()
129 int fd = open(filename, O_RDONLY); in read_sid()
137 char filename[21]; in clear_sid() local
138 snprintf(filename, sizeof(filename), "%u", uid); in clear_sid()
139 if (remove(filename) < 0) { in clear_sid()