Lines Matching refs:deref_file
159 Buffer *deref_file = BufferNewFrom(file, strlen(file)); local
169 if (lstat(BufferData(deref_file), &statbuf) == -1)
179 ssize_t linksize = readlink(BufferData(deref_file), buf, statbuf.st_size);
193 char dir[BufferSize(deref_file) + 1];
194 strcpy(dir, BufferData(deref_file));
196 BufferPrintf(deref_file, "%s/%s", dir, buf);
200 BufferSet(deref_file, buf, linksize);
202 BufferPrintf(pretty_file, "'%s' (from symlink '%s')", BufferData(deref_file), file);
211 strcpy(backup, BufferData(deref_file));
221 strcpy(new, BufferData(deref_file));
230 if (!CopyFilePermissionsDisk(BufferData(deref_file), new))
239 if (link(BufferData(deref_file), backup) == -1)
247 if (!CopyRegularFileDisk(BufferData(deref_file), backup))
253 if (!CopyFilePermissionsDisk(BufferData(deref_file), backup))
280 if (rename(new, BufferData(deref_file)) == -1)
291 BufferDestroy(deref_file);