Lines Matching refs:buff
103 char buff[BUFFLEN]; in get_tz_continents() local
119 if (fgets(buff, sizeof (buff), fp) == NULL) { in get_tz_continents()
128 if ((status = skipline(buff)) != 0) { in get_tz_continents()
138 lp = skipwhite(&buff[0]); in get_tz_continents()
209 char buff[BUFFLEN], ccbuf[_CCBUFLEN], *ptr; in get_tz_countries() local
234 if (fgets(buff, sizeof (buff), fp_zone) == NULL) { in get_tz_countries()
243 if ((status = skipline(buff)) != 0) { in get_tz_countries()
259 lp_cc = skipwhite(&buff[0]); in get_tz_countries()
320 if (fgets(buff, sizeof (buff), fp_cc) == NULL) { in get_tz_countries()
329 if ((status = skipline(buff)) != 0) { in get_tz_countries()
339 if ((len = strcspn(buff, WHITESPACE)) != CCLEN) { in get_tz_countries()
344 if ((cmp = strncmp(cp->ctry_code, buff, CCLEN)) == 0) { in get_tz_countries()
347 lp = &buff[CCLEN]; in get_tz_countries()
451 char buff[1024]; in get_timezones_by_country() local
463 if (fgets(buff, sizeof (buff), fp_zone) == NULL) { in get_timezones_by_country()
474 if ((status = skipline(buff)) != 0) { in get_timezones_by_country()
486 lp_cc = skipwhite(&buff[0]); in get_timezones_by_country()
944 char buff[512]; in get_system_tz() local
958 while (fgets(buff, sizeof (buff), ifp) != NULL) { in get_system_tz()
959 if (strncmp(buff, "TZ=", 3) == 0) { in get_system_tz()
961 p = &buff[3]; in get_system_tz()
995 char buff[1024]; in set_system_tz() local
1087 while (fgets(buff, sizeof (buff), ifp) != NULL) { in set_system_tz()
1088 if (!replaced && (strncmp(buff, "TZ=", 3) == 0)) { in set_system_tz()
1089 ret = snprintf(buff, sizeof (buff), tzfmt, in set_system_tz()
1091 if ((ret >= sizeof (buff)) || (ret < 0)) { in set_system_tz()
1092 if (ret >= sizeof (buff)) in set_system_tz()
1103 if (fputs(buff, ofp) == EOF) { in set_system_tz()
1228 char buff[512], *endp; in get_coord() local
1275 (void) strncpy(buff, p_coord, nchar); in get_coord()
1276 buff[nchar] = '\0'; in get_coord()
1278 *degp = (int)strtol(buff, &endp, 10); in get_coord()
1279 if ((endp != &buff[nchar]) || ((*degp == 0) && (errno != 0))) in get_coord()
1284 (void) strncpy(buff, p_coord, COORD_MLEN); in get_coord()
1285 buff[COORD_MLEN] = '\0'; in get_coord()
1287 *minp = (int)strtol(buff, &endp, 10); in get_coord()
1288 if ((endp != &buff[COORD_MLEN]) || in get_coord()
1295 (void) strncpy(buff, p_coord, COORD_SLEN); in get_coord()
1296 buff[COORD_SLEN] = '\0'; in get_coord()
1298 *secp = (int)strtol(buff, &endp, 10); in get_coord()
1299 if ((endp != &buff[COORD_SLEN]) || in get_coord()