Faking system time

Rudolf Polzer adsgohere at durchnull.de
Wed Nov 21 16:33:48 CST 2001


Eduardo G. Andrade <eduardo at ibiz.com.br> wrote:
>  Hello all.
>  
>  I am trying to use WINE to make a windoze-only development environment (very rudimentar, command line cross-compiler and stuff)
>  under Linux, because GNU make is far superior from the M$'s 'nmake'.
>
>  Anyway, I have some trouble with expirating licenses and stuff, and
>  the solution is to revert the system date back to some valid thing
>  and then compile.

You cross-compile, but do not use i586-mingw32msvc-gcc? A shareware
program?

>  Since I am now running it under WINE (yeah! it *almost* works great),
>  I wonder if it is possible to hack wine so it tells the executed program
>  some different date and time (changing systime in Linux tends to wreak
>  havoc with makefiles and stuff)
>  
>  Can someone point out where the unix-to-windoze sysdate translation is
>  done so I can hack it?

gettimeofday() and time() - perhaps you could use a LD_PRELOAD library
to fake them.

-- 
2.4.5 in kernel/signal.c(733):
  Let a parent know about a status change of a child.

                                            http://[email protected]



More information about the wine-users mailing list