diff options
| author | Jason Evans <jasone@FreeBSD.org> | 2000-01-12 09:23:48 +0000 |
|---|---|---|
| committer | Jason Evans <jasone@FreeBSD.org> | 2000-01-12 09:23:48 +0000 |
| commit | 929273386f6e688c008b15fd24932df2ed7e7172 (patch) | |
| tree | b3edfb3b0b6bdadce3b9cf019cabf1218f08038d /lib/libc/stdtime/localtime.c | |
| parent | f3d5d34b459fcd295a618227c37e2bacae1cdf67 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdtime/localtime.c')
| -rw-r--r-- | lib/libc/stdtime/localtime.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c index 66033365874d..34c978bac973 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); |
