From: noer AT cygnus DOT com (Geoffrey Noer) Subject: Re: settimeofday doesn't work 26 Jan 1999 22:03:14 -0800 Message-ID: <19990126181313.A6478.cygnus.gnu-win32@cygnus.com> References: <1 DOT 5 DOT 4 DOT 32 DOT 19990126193709 DOT 0067bd20 AT lola DOT univ-lemans DOT fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Serguei DACHIAN Cc: gnu-win32 AT cygnus DOT com On Tue, Jan 26, 1999, Serguei DACHIAN wrote: > > I am trying to use "settimeofday" in my code on B20.1+Win98, but it returns > "-1", doesn't alter sytem clock and subsequent call to perror prints the > following on the stdout: > > Error: Function not implemented > > So, what the problem is??? Is settimeofday really "not implemented" under > CygWin??? Will (and when) it be implemented??? Is there some alternative > function I can call to modify sytem clock??? Yep, it hasn't been implemented yet: /* settimeofday: BSD */ extern "C" int settimeofday (const struct timeval *, const struct timezone *) { set_errno (ENOSYS); return -1; } If someone sends me a patch to implement this and an assignment form, I'd be happy to apply it. :-) -- Geoffrey Noer noer AT cygnus DOT com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".