Lines Matching refs:filename
80 char filename[21]; in store_sid() local
81 snprintf(filename, sizeof(filename), "%u", uid); in store_sid()
82 int fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR); in store_sid()
84 ALOGE("could not open file: %s: %s", filename, strerror(errno)); in store_sid()
107 const char *filename = ".coldboot"; in mark_cold_boot() local
108 if (access(filename, F_OK) == -1) { in mark_cold_boot()
109 int fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR); in mark_cold_boot()
111 ALOGE("could not open file: %s : %s", filename, strerror(errno)); in mark_cold_boot()
121 char filename[21]; in maybe_store_sid() local
122 snprintf(filename, sizeof(filename), "%u", uid); in maybe_store_sid()
123 if (access(filename, F_OK) == -1) { in maybe_store_sid()
129 char filename[21]; in read_sid() local
131 snprintf(filename, sizeof(filename), "%u", uid); in read_sid()
132 int fd = open(filename, O_RDONLY); in read_sid()
140 char filename[21]; in clear_sid() local
141 snprintf(filename, sizeof(filename), "%u", uid); in clear_sid()
142 if (remove(filename) < 0) { in clear_sid()