Lines Matching refs:buf
99 * or /usr/share/lib/zoneinfo/localtime on Solaris given in 'buf'.
100 * If file is symbolic link, then the contents it points to are in buf.
104 findZoneinfoFile(char *buf, size_t size, const char *dir)
165 tz = findZoneinfoFile(buf, size, pathname);
181 if (memcmp(buf, dbuf, size) == 0) {
228 char *buf;
302 buf = (char *) malloc(size);
303 if (buf == NULL) {
308 if (read(fd, buf, size) != (ssize_t) size) {
310 free((void *) buf);
315 tz = findZoneinfoFile(buf, size, ZONEINFO_DIR);
316 free((void *) buf);
522 char *buf) {
523 if (buf != NULL) {
524 free(buf);
556 char *buf;
597 buf = malloc(size);
598 if (buf == NULL) {
602 free((void *) buf);
606 if (read(fd, buf, size) != (ssize_t) size) {
608 free((void *) buf);
612 tz = findZoneinfoFile(buf, size, ZONEINFO_DIR);
613 free((void *) buf);
687 char sign, buf[16];
701 sprintf(buf, (const char *)"GMT%c%02d:%02d",
703 return strdup(buf);
711 char sign, buf[32];
737 sprintf(buf, (const char *)"GMT%c%02d:%02d",
739 return strdup(buf);