. added zoneinfo to build, with fixes for minix

. now using zoneinfo date command, instead of commands/simple/date.c
This commit is contained in:
Ben Gras
2007-03-30 15:32:55 +00:00
parent a2d3b518d8
commit 0be7f44224
21 changed files with 86 additions and 1215 deletions
+6 -4
View File
@@ -29,7 +29,12 @@ static char sccsid[] = "@(#)logwtmp.c 5.2 (Berkeley) 9/20/88";
#endif /* !defined lint */
#include <sys/types.h>
#include <time.h>
#include <utmp.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#ifdef OLD_TIME
@@ -45,14 +50,11 @@ char dummy_to_keep_linker_happy;
#define WTMPFILE "/usr/adm/wtmp"
logwtmp(line, name, host)
char *line, *name, *host;
void logwtmp( char *line, char *name, char *host)
{
struct utmp ut;
struct stat buf;
int fd;
time_t time();
char *strncpy();
if ((fd = open(WTMPFILE, O_WRONLY|O_APPEND, 0)) < 0)
return;