Change Summary:
Update README.illumos too
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+9 -4) |
Review Request #2346 — Created Sept. 23, 2019 and submitted
Information | |
---|---|
citrus | |
illumos-gate | |
master | |
11744 | |
9b01dfd... | |
Reviewers | |
general | |
11744 zone_sun.tab file must remain sorted
Used a small test program (thanks Alexander)
#include <libzoneinfo.h> #include <locale.h> #include <stdio.h> int main() { char *cur_country = NULL; int nctnt, i; struct tz_continent *ctnts = NULL; struct tz_continent *pctnt = NULL; char *cntry_name; int nctry; struct tz_country *cntries; struct tz_country *pctry; setlocale(LC_MESSAGES, ""); nctnt = get_tz_continents(&ctnts); if (nctnt == -1) { printf("No continent data\n"); } for (i = 1, pctnt = ctnts; pctnt != NULL; pctnt = pctnt->ctnt_next, i++) { nctry = get_tz_countries(&cntries, pctnt); printf("%s - %d\n", pctnt->ctnt_name, nctry); } return 0; }Before - note the -1 for Europe
Africa - 51 America - 53 Antarctica - 2 Arctic - 1 Asia - 50 Atlantic - 9 Australia - 1 Europe - -1 Indian - 11 Pacific - 28After:
Africa - 51 America - 53 Antarctica - 2 Arctic - 1 Asia - 50 Atlantic - 9 Australia - 1 Europe - 49 Indian - 11 Pacific - 28
Update README.illumos too
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+9 -4) |