Lines Matching +defs:link +defs:string
159 extern int link(const char * target, const char * linkname);
190 static zic_t gethms(const char * string, const char * errstring);
355 struct link {
362 static struct link * links;
371 static struct lookup const * byword(const char * string,
617 verror(const char *const string, va_list args)
627 vfprintf(stderr, string, args);
635 error(const char *const string, ...)
638 va_start(args, string);
639 verror(string, args);
645 warning(const char *const string, ...)
649 va_start(args, string);
650 verror(string, args);
684 "\t[ -t localtime-link ] \\\n"
713 /* Compare the two links A and B, for a stable sort by link name. */
717 struct link const *l = a;
718 struct link const *m = b;
723 /* The link names are the same. Make the sort stable by comparing
732 /* Compare the string KEY to the link B, for bsearch. */
736 struct link const *m = b;
748 /* Ignore each link superseded by a later link with the same name. */
758 /* Walk through the link array making links. However,
759 if a link's target has not been made yet, append a copy to the
764 a link to a not-yet-made link, so the process repeats.
765 At any given point in time, the link array consists of the
784 C is the length of the longest link chain. Usually C is
790 struct link *l;
797 error(_("\"Link %s %s\" is part of a link cycle"),
808 error(_("link %s targets itself"), links[i].l_target);
812 /* Make this link unless its target has not been made yet. */
821 /* The link target has not been made yet; copy the link to the end. */
828 warning(_("link %s targeting link %s mishandled by pre-2023 zic"),
832 warning(_("link %s targeting link %s"),
1428 freshly allocated string. TARGET should be a relative file name, and
1515 /* If linkat is not supported, fall back on link(A, B).
1518 On some platforms link(A, B) does not follow a symlink A,
1523 if (link(target, outname) == 0) {
1542 fprintf(stderr, _("%s: Can't link %s%s%s to %s%s%s: %s\n"),
1574 warning(_("symbolic link used because hard link failed: %s"),
1592 warning(_("copy used because hard link failed: %s"),
1595 warning(_("copy used because symbolic link not obvious"));
1597 warning(_("copy used because symbolic link failed: %s"),
1604 /* Return 1 if NAME is an absolute symbolic link, -1 if it is relative,
1605 0 if it is not a symbolic link. If *CACHE is not -2, it is the
1805 ** Convert a string of one of the forms
1808 ** A null string maps to zero.
1813 gethms(char const *string, char const *errstring)
1821 if (string == NULL || *string == '\0')
1823 if (*string == '-') {
1825 ++string;
1827 switch (sscanf(string,
2163 struct link l;
2422 writezone(const char *const name, const char *const string, char version,
2747 putc(0, fp); /* empty-string abbreviation */
2824 fprintf(fp, "\n%s\n", string);
3033 /* Store into RESULT a proleptic TZ string that represent the future
3036 negative integer if no such TZ string exists. */
3059 /* Internet RFC 9636 section 6.1 says to use an empty TZ string if
3230 _("no proleptic TZ string for zone"),
3473 /* The earliest transition into a time governed by the TZ string. */
3483 /* Omit trailing transitions deducible from the TZ string,
3934 newabbr(const char *string)
3938 if (strcmp(string, GRANDPARENTED) != 0) {
3942 cp = string;
3947 if (noise && cp - string < 3)
3949 if (cp - string > ZIC_MAX_ABBR_LEN_WO_WARN)
3954 warning("%s (%s)", mp, string);
3956 i = strlen(string) + 1;
3961 strncpy(&chars[charcnt], string, sizeof(chars) - charcnt - 1);