X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/347732736a7c51fb7ebcab24122de84882e9665f..1e00c92b81273392a7db4796dc163b0729891e44:/mac/macmisc.c diff --git a/mac/macmisc.c b/mac/macmisc.c index 7255b3d9..a1a88f5a 100644 --- a/mac/macmisc.c +++ b/mac/macmisc.c @@ -1,4 +1,4 @@ -/* $Id: macmisc.c,v 1.3 2003/03/29 23:07:55 ben Exp $ */ +/* $Id$ */ /* * Copyright (c) 1999, 2003 Ben Harris * All rights reserved. @@ -38,6 +38,7 @@ #include "putty.h" #include "mac.h" +#include "ssh.h" #if TARGET_API_MAC_CARBON /* @@ -155,7 +156,7 @@ int filename_is_null(Filename fn) return fn.fss.vRefNum == 0 && fn.fss.parID == 0 && fn.fss.name[0] == 0; } -FILE *f_open(Filename fn, char const *mode) +FILE *f_open(Filename fn, char const *mode, int is_private) { short savevol; long savedir; @@ -172,6 +173,33 @@ FILE *f_open(Filename fn, char const *mode) return ret; } +struct tm ltime(void) +{ + struct tm tm; + DateTimeRec d; + GetTime(&d); + + tm.tm_sec=d.second; + tm.tm_min=d.minute; + tm.tm_hour=d.hour; + tm.tm_mday=d.day; + tm.tm_mon=d.month-1; + tm.tm_year=d.year-1900; + tm.tm_wday=d.dayOfWeek; + tm.tm_yday=1; /* GetTime doesn't tell us */ + tm.tm_isdst=0; /* Have to do DST ourselves */ + + /* XXX find out DST adjustment and add it */ + + return tm; +} + +const int platform_uses_x11_unix_by_default = FALSE; + +char *platform_get_x_display(void) { + return NULL; +} + /* * Local Variables: * c-file-style: "simon"