Lines Matching defs:relro_tmp
77 char relro_tmp[strlen(relro) + sizeof(tmpsuffix)];
78 strlcpy(relro_tmp, relro, sizeof(relro_tmp));
79 strlcat(relro_tmp, tmpsuffix, sizeof(relro_tmp));
80 int tmp_fd = TEMP_FAILURE_RETRY(mkstemp(relro_tmp));
82 ALOGE("Failed to create temporary file %s: %s", relro_tmp, strerror(errno));
94 unlink(relro_tmp);
98 chmod(relro_tmp, S_IRUSR | S_IRGRP | S_IROTH) != 0 ||
99 rename(relro_tmp, relro) != 0) {
101 unlink(relro_tmp);