| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Date: | Wed, 3 Apr 2002 10:30:42 +0200 (MEST) |
| From: | "S. L." <s_i_lao AT gmx DOT net> |
| To: | Andrew DeFaria <Andrew AT DeFaria DOT com> |
| Cc: | cygwin AT cygwin DOT com |
| MIME-Version: | 1.0 |
| References: | <3CAAB156 DOT 2090707 AT DeFaria DOT com> |
| Subject: | Re: imapd on cygwin |
| X-Priority: | 3 (Normal) |
| X-Authenticated-Sender: | #0006551723 AT gmx DOT net |
| X-Authenticated-IP: | [194.102.244.61] |
| Message-ID: | <23473.1017822642@www20.rz2.gmx.net> |
| X-Flags: | 0001 |
> Andrew DeFaria wrote:
[...]
>
> I can find no man page for gettimeofday in Cygwin! And I can't seem to
> even call it properly:
>
> #include <time.h>
> #include <stdio.h>
> int main (void) {
> struct timezone d;
> printf ("Calling gettimeofday\n");
> gettimeofday (NULL, &d);
> printf ("Returned from gettimeofday\n");
> }
>
> $ gcc foo.c
> foo.c: In function `main':
> foo.c:4: storage size of `d' isn't known
>
> So how the hell did it get compiled into imapd this way?!? And how does
> on call gettimeofday in Cygwin?
>
> Finally I tried:
[...]
I don't know if it usefull here, but as Gerrit P. Haase mentioned in
http://sources.redhat.com/ml/cygwin/2001-09/msg00008.html , for using timezone you
must execute a " tzset(); " call before the first line such variable
(timezone) appears.
SLao
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |