From efdb7eef2da0d8203c5258a20a11138bf2cffcb3 Mon Sep 17 00:00:00 2001 From: Unknown <> Date: Thu, 31 Aug 2006 02:05:49 +0000 Subject: [PATCH] add files for 2006-08-31T02:05:49Z --- src/osdep/amiga/tz_bsd.c | 38 ++++++++++++++++++++++++++++++++++++++ src/osdep/unix/tz_bsd.c | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 src/osdep/amiga/tz_bsd.c create mode 100644 src/osdep/unix/tz_bsd.c diff --git a/src/osdep/amiga/tz_bsd.c b/src/osdep/amiga/tz_bsd.c new file mode 100644 index 0000000..75ee624 --- /dev/null +++ b/src/osdep/amiga/tz_bsd.c @@ -0,0 +1,38 @@ +/* ======================================================================== + * Copyright 1988-2006 University of Washington + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * + * ======================================================================== + */ + +/* + * Program: BSD-style Time Zone String + * + * Author: Mark Crispin + * Networks and Distributed Computing + * Computing & Communications + * University of Washington + * Administration Building, AG-44 + * Seattle, WA 98195 + * Internet: MRC@CAC.Washington.EDU + * + * Date: 30 August 1994 + * Last Edited: 30 August 2006 + */ + + +/* Append local timezone name + * Accepts: destination string + */ + +void rfc822_timezone (char *s,void *t) +{ + /* append timezone from tm struct */ + sprintf (s + strlen (s)," (%.50s)",((struct tm *) t)->tm_zone); +} diff --git a/src/osdep/unix/tz_bsd.c b/src/osdep/unix/tz_bsd.c new file mode 100644 index 0000000..75ee624 --- /dev/null +++ b/src/osdep/unix/tz_bsd.c @@ -0,0 +1,38 @@ +/* ======================================================================== + * Copyright 1988-2006 University of Washington + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * + * ======================================================================== + */ + +/* + * Program: BSD-style Time Zone String + * + * Author: Mark Crispin + * Networks and Distributed Computing + * Computing & Communications + * University of Washington + * Administration Building, AG-44 + * Seattle, WA 98195 + * Internet: MRC@CAC.Washington.EDU + * + * Date: 30 August 1994 + * Last Edited: 30 August 2006 + */ + + +/* Append local timezone name + * Accepts: destination string + */ + +void rfc822_timezone (char *s,void *t) +{ + /* append timezone from tm struct */ + sprintf (s + strlen (s)," (%.50s)",((struct tm *) t)->tm_zone); +} -- 2.40.0