Lines Matching refs:filename
78 char filename[21]; in store_sid() local
79 sprintf(filename, "%u", uid); in store_sid()
80 int fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR); in store_sid()
82 ALOGE("could not open file: %s: %s", filename, strerror(errno)); in store_sid()
90 const char *filename = ".coldboot"; in mark_cold_boot() local
91 if (access(filename, F_OK) == -1) { in mark_cold_boot()
92 int fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR); in mark_cold_boot()
94 ALOGE("could not open file: %s : %s", filename, strerror(errno)); in mark_cold_boot()
104 char filename[21]; in maybe_store_sid() local
105 sprintf(filename, "%u", uid); in maybe_store_sid()
106 if (access(filename, F_OK) == -1) { in maybe_store_sid()
112 char filename[21]; in read_sid() local
114 sprintf(filename, "%u", uid); in read_sid()
115 int fd = open(filename, O_RDONLY); in read_sid()
123 char filename[21]; in clear_sid() local
124 sprintf(filename, "%u", uid); in clear_sid()
125 if (remove(filename) < 0) { in clear_sid()