Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 11 Feb 2002 16:30:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 11 Feb 2002 16:30:17 -0500 Received: from mail-src.takas.lt ([212.59.31.66]:11015 "EHLO mail.takas.lt") by vger.kernel.org with ESMTP id ; Mon, 11 Feb 2002 16:30:09 -0500 Date: Mon, 11 Feb 2002 23:29:38 +0200 (EET) From: Nerijus Baliunas Subject: Re: faking time To: SA products cc: "linux-kernel@vger.kernel.org" MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-846930886-1013462978=:12549" In-Reply-To: <3C67AFD3.722C5471@ntlworld.com> In-Reply-To: <3C67AFD3.722C5471@ntlworld.com> X-Mailer: Mahogany 0.64.1 'Sparc', compiled for Linux 2.4.17 i686 Message-ID: X-OriginalArrivalTime: 11 Feb 2002 21:30:07.0795 (UTC) FILETIME=[46F86830:01C1B343] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --8323328-846930886-1013462978=:12549 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-Disposition: INLINE On Mon, 11 Feb 2002 11:49:39 +0000 SA products wrote: Sp> I want to fake the time returned by the time() system call so that for a Sp> limited number Sp> of user space programs the time can be set to the future or the past Sp> without affecting Sp> other applications and without affecting system time-- Ideally I would Sp> like to install a Sp> loadable module to accomplish this- Any hints ? Any starting points? I am attaching an "ending point", i.e. a complete working module. Web page will be at http://www.prodata.lt/dateshift/ in a few weeks. Regards, Nerijus --8323328-846930886-1013462978=:12549 Content-Type: APPLICATION/X-GZIP; NAME="dateshift-0.95.tgz" Content-Transfer-Encoding: BASE64 Content-Disposition: INLINE; FILENAME="dateshift-0.95.tgz" H4sIAEs3aDwAA+xcW3PbRpbOK/ErOvIkJCWSIinJqpiRZxVZ9jiRLZclzyQ7 2WK1gCbZJghg0YBkTcb/cX6C85IXv+jRValK7Xf6ggtF2ZlZj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DvA 269klt5WGr/7V4WbBjlfXjSYlnXr9l9cXtgykxh6jQ0UWeHka//s4rVykSne iXjfcHgdFSlvM/xyj1bCCD4XwdJVG8NOrrTefXYI9THcp5yDmUcVYxJCflcd OEfoZcQxoML1d29MVmGzAP7i2m3MFnm9VuXhGMVYZrptcoTPuztsA7cYXlPu mJhWMGUrKqZGfFM9vTgenrn7Dc3Y8Yr9hjsacfDSooOlfTyI3contcD+eHvg O+oetPvgCzxszyeZ3wYB8Ko+dm+XFIBK63GgCCHd7CD1X2V8v+9rWTfymQMd KIO0nI4dHyjY/e1v5AIj2RctWrRo0aJFixYtWrRo0aJFixYtWrRo0aJFixYt Gu0X65vusAB4AAA= --8323328-846930886-1013462978=:12549-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/