Re: Different instances with markedly different times
Posted in 2010
Clive Eisen wrote: > On 01/05/2010 15:04, Obnoxio The Clown wrote: >> Clive Eisen wrote: >>> On 01/05/2010 09:46, Clive Eisen wrote: >>>> On 01/05/2010 08:44, Clive Eisen wrote: >>>>> On 30/04/2010 15:29, Fernando Nunes wrote: >>>>>> I have two useless ideas: >>>>>> >>>>>> 1- Overload the OS function that IDS uses (is it gettimeofday()?) and >>>>>> give it some "intelligence" >>>>> That's the one. Use LD_PRELOAD to slug gettimeofday by the offset - >>>>> should only be a few lines of C >>>>> >>>>> >>>>> >>>> in fact here is an almost complete example >>>> >>>> http://uberhip.com/people/godber/interception/html/slide_5.html >>>> >>>> It actually turns xclock into a stopwatch but everything you need is there. >>>> >>>> I would implement it with an environment variable specifying the offset >>>> in seconds - if the ENV is not set then assume 0 >>>> >>>> >>>> >>> And lo the lord google provides >>> >>> http://www.code-wizards.com/projects/libfaketime/ >>> >>> All you need >> You must be immense fun at parties. :o) >> > At least I don't have to dress up in a funny suit to get noticed Like a penguin outfit, you mean? :o) -- Cheers, Obnoxio The Clown http://obotheclown.blogspot.com I will now proceed to pleasure myself with this fish. -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean.