Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
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
--
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.