Lines Matching defs:link
150 extern int link(const char * target, const char * linkname);
346 struct link {
353 static struct link * links;
673 "\t[ -t localtime-link ] \\\n"
702 /* Compare the two links A and B, for a stable sort by link name. */
706 struct link const *l = a;
707 struct link const *m = b;
712 /* The link names are the same. Make the sort stable by comparing
721 /* Compare the string KEY to the link B, for bsearch. */
725 struct link const *m = b;
737 /* Ignore each link superseded by a later link with the same name. */
747 /* Walk through the link array making links. However,
748 if a link's target has not been made yet, append a copy to the
753 a link to a not-yet-made link, so the process repeats.
754 At any given point in time, the link array consists of the
773 C is the length of the longest link chain. Usually C is
779 struct link *l;
786 error(_("\"Link %s %s\" is part of a link cycle"),
797 error(_("link %s targets itself"), links[i].l_target);
801 /* Make this link unless its target has not been made yet. */
810 /* The link target has not been made yet; copy the link to the end. */
817 warning(_("link %s targeting link %s mishandled by pre-2023 zic"),
821 warning(_("link %s targeting link %s"),
1480 /* If linkat is not supported, fall back on link(A, B).
1483 On some platforms link(A, B) does not follow a symlink A,
1488 if (link(target, outname) == 0) {
1507 fprintf(stderr, _("%s: Can't link %s/%s to %s/%s: %s\n"),
1536 warning(_("symbolic link used because hard link failed: %s"),
1554 warning(_("copy used because hard link failed: %s"),
1557 warning(_("copy used because symbolic link failed: %s"),
1564 /* Return 1 if NAME is an absolute symbolic link, -1 if it is relative,
1565 0 if it is not a symbolic link. If *CACHE is not -2, it is the
2122 struct link l;