1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

FreeBSD port of timezone code.

This commit is contained in:
Garrett Wollman 1994-09-13 03:36:16 +00:00
parent 66ce0eae53
commit d787e2bcd4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2706
5 changed files with 36 additions and 2 deletions

5
usr.sbin/zic/Makefile Normal file
View File

@ -0,0 +1,5 @@
# $Id$
SUBDIR= zic zdump
.include <bsd.subdir.mk>

View File

@ -0,0 +1,3 @@
# $Id$
.include "${.CURDIR}/../../Makefile.inc"

View File

@ -0,0 +1,13 @@
# $Id$
.PATH: ${.CURDIR}/..
PROG= zdump
SRCS= zdump.c ialloc.c scheck.c
MAN8= ${.CURDIR}/../zdump.8
CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../../../lib/libc/stdtime
CFLAGS+= -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS
CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"/usr/share/zoneinfo\" -Demkdir=mkdir
.include <bsd.prog.mk>

View File

@ -528,14 +528,14 @@ const char * const tofile;
register char * toname;
if (fromfile[0] == '/')
fromname = fromfile;
fromname = (char *)fromfile;
else {
fromname = ecpyalloc(directory);
fromname = ecatalloc(fromname, "/");
fromname = ecatalloc(fromname, fromfile);
}
if (tofile[0] == '/')
toname = tofile;
toname = (char *)tofile;
else {
toname = ecpyalloc(directory);
toname = ecatalloc(toname, "/");

13
usr.sbin/zic/zic/Makefile Normal file
View File

@ -0,0 +1,13 @@
# $Id$
.PATH: ${.CURDIR}/..
PROG= zic
SRCS= zic.c ialloc.c scheck.c
MAN8= ${.CURDIR}/../zic.8
CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../../../lib/libc/stdtime
CFLAGS+= -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS
CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"/usr/share/zoneinfo\" -Demkdir=mkdir
.include <bsd.prog.mk>