SCCS-vsn: lib/libc/gen/timezone.c 5.5
SCCS-vsn: lib/libc/gen/ctime.c 5.9
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)ctime.c 5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)ctime.c 5.9 (Berkeley) %G%";
#endif LIBC_SCCS and not lint
#include "sys/param.h"
#endif LIBC_SCCS and not lint
#include "sys/param.h"
{
struct timeval tv;
struct timezone tz;
{
struct timeval tv;
struct timezone tz;
if (gettimeofday(&tv, &tz))
return -1;
s.timecnt = 0; /* UNIX counts *west* of Greenwich */
s.ttis[0].tt_gmtoff = tz.tz_minuteswest * -SECS_PER_MIN;
s.ttis[0].tt_abbrind = 0;
if (gettimeofday(&tv, &tz))
return -1;
s.timecnt = 0; /* UNIX counts *west* of Greenwich */
s.ttis[0].tt_gmtoff = tz.tz_minuteswest * -SECS_PER_MIN;
s.ttis[0].tt_abbrind = 0;
- (void)strcpy(s.chars, tztab(tz.tz_minuteswest, 0));
+ (void)strcpy(s.chars, _tztab(tz.tz_minuteswest, 0));
tzname[0] = tzname[1] = s.chars;
#ifdef USG_COMPAT
timezone = tz.tz_minuteswest * 60;
tzname[0] = tzname[1] = s.chars;
#ifdef USG_COMPAT
timezone = tz.tz_minuteswest * 60;
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)timezone.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)timezone.c 5.5 (Berkeley) %G%";
#endif LIBC_SCCS and not lint
#include <sys/types.h>
#endif LIBC_SCCS and not lint
#include <sys/types.h>
* STANDARD LIBRARY.
*/
char *
* STANDARD LIBRARY.
*/
char *
register int zone;
int dst;
{
register int zone;
int dst;
{