Lines Matching refs:filename
94 char filename[21]; in store_sid() local
95 snprintf(filename, sizeof(filename), "%u", userId); in store_sid()
96 int fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR); in store_sid()
98 ALOGE("could not open file: %s: %s", filename, strerror(errno)); in store_sid()
123 const char* filename = ".coldboot"; in mark_cold_boot() local
124 if (access(filename, F_OK) == -1) { in mark_cold_boot()
125 int fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR); in mark_cold_boot()
127 ALOGE("could not open file: %s : %s", filename, strerror(errno)); in mark_cold_boot()
137 char filename[21]; in maybe_store_sid() local
138 snprintf(filename, sizeof(filename), "%u", userId); in maybe_store_sid()
139 if (access(filename, F_OK) == -1) { in maybe_store_sid()
145 char filename[21]; in read_sid() local
147 snprintf(filename, sizeof(filename), "%u", userId); in read_sid()
148 int fd = open(filename, O_RDONLY); in read_sid()
156 char filename[21]; in clear_sid() local
157 snprintf(filename, sizeof(filename), "%u", userId); in clear_sid()
158 if (remove(filename) < 0 && errno != ENOENT) { in clear_sid()