Lines Matching refs:buff

101 	char buff[BUFFLEN];  in get_tz_continents()  local
117 if (fgets(buff, sizeof (buff), fp) == NULL) { in get_tz_continents()
126 if ((status = skipline(buff)) != 0) { in get_tz_continents()
136 lp = skipwhite(&buff[0]); in get_tz_continents()
207 char buff[BUFFLEN], ccbuf[_CCBUFLEN], *ptr; in get_tz_countries() local
236 if (fgets(buff, sizeof (buff), fp_zone) == NULL) { in get_tz_countries()
245 if ((status = skipline(buff)) != 0) { in get_tz_countries()
261 lp_cc = skipwhite(&buff[0]); in get_tz_countries()
322 if (fgets(buff, sizeof (buff), fp_cc) == NULL) { in get_tz_countries()
331 if ((status = skipline(buff)) != 0) { in get_tz_countries()
341 if ((len = strcspn(buff, WHITESPACE)) != CCLEN) { in get_tz_countries()
346 if ((cmp = strncmp(cp->ctry_code, buff, CCLEN)) == 0) { in get_tz_countries()
349 lp = &buff[CCLEN]; in get_tz_countries()
453 char buff[1024]; in get_timezones_by_country() local
465 if (fgets(buff, sizeof (buff), fp_zone) == NULL) { in get_timezones_by_country()
476 if ((status = skipline(buff)) != 0) { in get_timezones_by_country()
488 lp_cc = skipwhite(&buff[0]); in get_timezones_by_country()
946 char buff[512]; in get_system_tz() local
960 while (fgets(buff, sizeof (buff), ifp) != NULL) { in get_system_tz()
961 if (strncmp(buff, "TZ=", 3) == 0) { in get_system_tz()
963 p = &buff[3]; in get_system_tz()
997 char buff[1024]; in set_system_tz() local
1089 while (fgets(buff, sizeof (buff), ifp) != NULL) { in set_system_tz()
1090 if (!replaced && (strncmp(buff, "TZ=", 3) == 0)) { in set_system_tz()
1091 ret = snprintf(buff, sizeof (buff), tzfmt, in set_system_tz()
1093 if ((ret >= sizeof (buff)) || (ret < 0)) { in set_system_tz()
1094 if (ret >= sizeof (buff)) in set_system_tz()
1105 if (fputs(buff, ofp) == EOF) { in set_system_tz()
1230 char buff[512], *endp; in get_coord() local
1277 (void) strncpy(buff, p_coord, nchar); in get_coord()
1278 buff[nchar] = '\0'; in get_coord()
1280 *degp = (int)strtol(buff, &endp, 10); in get_coord()
1281 if ((endp != &buff[nchar]) || ((*degp == 0) && (errno != 0))) in get_coord()
1286 (void) strncpy(buff, p_coord, COORD_MLEN); in get_coord()
1287 buff[COORD_MLEN] = '\0'; in get_coord()
1289 *minp = (int)strtol(buff, &endp, 10); in get_coord()
1290 if ((endp != &buff[COORD_MLEN]) || in get_coord()
1297 (void) strncpy(buff, p_coord, COORD_SLEN); in get_coord()
1298 buff[COORD_SLEN] = '\0'; in get_coord()
1300 *secp = (int)strtol(buff, &endp, 10); in get_coord()
1301 if ((endp != &buff[COORD_SLEN]) || in get_coord()