Home
last modified time | relevance | path

Searched refs:tz_country (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libzoneinfo/common/
H A Dlibzoneinfo.h84 struct tz_country { struct
89 struct tz_country *ctry_next; /* pointer to next element */ argument
94 extern int get_tz_countries(struct tz_country **, struct tz_continent *); argument
95 extern int get_timezones_by_country(struct tz_timezone **, struct tz_country *);
97 extern int free_tz_countries(struct tz_country *);
H A Dlibzone.c89 static int compar(struct tz_country *, struct tz_country *);
206 get_tz_countries(struct tz_country **country, struct tz_continent *cont) in get_tz_countries()
211 struct tz_country *head = NULL, *prev = NULL, *next, *cp, *cp2; in get_tz_countries()
289 if ((cp = (struct tz_country *) in get_tz_countries()
290 calloc(1, sizeof (struct tz_country))) == NULL) { in get_tz_countries()
391 ((cp2 = calloc(ncount, sizeof (struct tz_country))) != NULL)) { in get_tz_countries()
400 (void) memcpy(&cp2[i], cp, sizeof (struct tz_country)); in get_tz_countries()
405 qsort(cp2, ncount, sizeof (struct tz_country), in get_tz_countries()
447 struct tz_country *country) in get_timezones_by_country()
659 free_tz_countries(struct tz_country *country) in free_tz_countries()
[all …]