summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime/localtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdtime/localtime.c')
-rw-r--r--lib/libc/stdtime/localtime.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c
index 6603336..34c978b 100644
--- a/lib/libc/stdtime/localtime.c
+++ b/lib/libc/stdtime/localtime.c
@@ -1,6 +1,8 @@
/*
** This file is in the public domain, so clarified as of
** June 5, 1996 by Arthur David Olson (arthur_david_olson@nih.gov).
+**
+** $FreeBSD$
*/
#ifndef lint
@@ -312,7 +314,7 @@ register struct state * const sp;
}
if (doaccess && access(name, R_OK) != 0)
return -1;
- if ((fid = open(name, OPEN_MODE)) == -1)
+ if ((fid = _libc_open(name, OPEN_MODE)) == -1)
return -1;
if ((fstat(fid, &stab) < 0) || !S_ISREG(stab.st_mode))
return -1;
@@ -323,8 +325,8 @@ register struct state * const sp;
int ttisstdcnt;
int ttisgmtcnt;
- i = read(fid, buf, sizeof buf);
- if (close(fid) != 0)
+ i = _libc_read(fid, buf, sizeof buf);
+ if (_libc_close(fid) != 0)
return -1;
p = buf;
p += (sizeof tzhp->tzh_magic) + (sizeof tzhp->tzh_reserved);
OpenPOWER on IntegriCloud