Lines Matching defs:to
115 * If it is not implemented, fallback to another method. */
273 * ownership to avoid a window where access is too open. */
291 * ownership to avoid a window where access is too open. */
377 int symlink_idempotent(const char *from, const char *to) {
382 assert(to);
384 if (symlink(from, to) < 0) {
388 r = readlink_malloc(to, &p);
399 int symlink_atomic(const char *from, const char *to) {
404 assert(to);
406 r = tempfn_random(to, NULL, &t);
413 if (rename(t, to) < 0) {