From owner-freebsd-hackers@FreeBSD.ORG Wed May 12 17:53:41 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C8F0106566B for ; Wed, 12 May 2010 17:53:41 +0000 (UTC) (envelope-from knoseeker@googlemail.com) Received: from mail-yw0-f181.google.com (mail-yw0-f181.google.com [209.85.211.181]) by mx1.freebsd.org (Postfix) with ESMTP id B6B948FC26 for ; Wed, 12 May 2010 17:53:40 +0000 (UTC) Received: by ywh11 with SMTP id 11so126729ywh.7 for ; Wed, 12 May 2010 10:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=lum8Fd29iD1wZTPD5duL1wVXFkFF33Hz9APrJba8hOU=; b=pYiVqSsUKXqNCYdCgz0OWz/m9xLxmjRS3Aak9hTesqMLWqIjp0VBAvj5P1KxOCB5t0 9q4EMMcAOpKgVJILiLjhhd1YxIqE+RagdkD1V2WqX++24qoL1iFnH6e8TNbqMQZJ0VJV eOxCGdiQoN/jali+GpHkhsh1AeiAKF7pimCHo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pDCBWneQN5wRMi1T1xJoze7QU/47RFc+ZKNF74dCV+NosRgc9FYkW4u4lFh7Z7sbNb IvsHKHT+dKIATKDbp7h4BUWra3Pe+kh5leEGVLqFqcGUWQG3zGqDP/18kMFFuIJEugl2 +1EpTtDGOzv1egwBECyjutkBPAiMCF7MceI5Q= MIME-Version: 1.0 Received: by 10.151.28.13 with SMTP id f13mr13586220ybj.143.1273686819103; Wed, 12 May 2010 10:53:39 -0700 (PDT) Received: by 10.151.85.19 with HTTP; Wed, 12 May 2010 10:53:38 -0700 (PDT) Date: Wed, 12 May 2010 17:53:38 +0000 Message-ID: From: Knowledge Seeker To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: utimes(2): changing the birth time X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2010 17:53:41 -0000 Hi, Is there a way to set birth time to a value greater(newer) than the actual birth time (not in the future, but not the current time)? The man page utimes(2) says that is only possible to change to an older value. I saw a way to do this by opening a new file, coping the data, setting the other attributes, then calling utimes 2 times to set the birth and the modification time. Is there a way to change it without creating a new file? Thanks in advance. -- Knoseeker