From owner-freebsd-questions@FreeBSD.ORG Fri Apr 21 23:42:51 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F065616A401 for ; Fri, 21 Apr 2006 23:42:50 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75A1D43D45 for ; Fri, 21 Apr 2006 23:42:50 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.4/8.13.1) with ESMTP id k3LNglmH042478 for ; Fri, 21 Apr 2006 16:42:48 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.4/8.13.1/Submit) id k3LNglM4042477 for freebsd-questions@FreeBSD.ORG; Fri, 21 Apr 2006 16:42:47 -0700 (PDT) (envelope-from kline) Date: Fri, 21 Apr 2006 16:42:46 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20060421234246.GA42445@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 19+ years of service to the Unix community Cc: Subject: getfiletime() and setfiletime() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 23:42:51 -0000 For my fellow hackers only, With all the billions-and-billions of lines of C hacked by people reading this, do any of you have the functions that would get and save-away the stat mtime, then be able to set the original mtime of the file to what it was? I am getting back to working on a programm that cleans away embedded html, jpg, and other non ASCII (or 8859-1) and leaves just-plain-text. This from my ~/Mail/* files. Ideally, I would like to set the timestamp of each file to what it was. So before I re-invent wheels, I thought I'd ask the list. Anybody? tia, people, gary -- Gary Kline kline@thought.org www.thought.org Public service Unix