From owner-freebsd-hackers@FreeBSD.ORG Fri May 26 20:58:54 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 679D516A559 for ; Fri, 26 May 2006 20:58:54 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from fri.itea.ntnu.no (fri.itea.ntnu.no [129.241.7.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id F30B943D55 for ; Fri, 26 May 2006 20:58:53 +0000 (GMT) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id 3963C7F04 for ; Fri, 26 May 2006 22:58:53 +0200 (CEST) Received: from gaupe.stud.ntnu.no (gaupe.stud.ntnu.no [129.241.56.184]) by fri.itea.ntnu.no (Postfix) with ESMTP for ; Fri, 26 May 2006 22:58:53 +0200 (CEST) Received: by gaupe.stud.ntnu.no (Postfix, from userid 2312) id 1560BCFFFA; Fri, 26 May 2006 22:59:18 +0200 (CEST) Date: Fri, 26 May 2006 22:59:18 +0200 From: Ulf Lilleengen To: freebsd-hackers@freebsd.org Message-ID: <20060526205917.GA12965@stud.ntnu.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Subject: Formatting time in kernel 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: Fri, 26 May 2006 20:58:55 -0000 Hi, I've been looking through the kernel code the past few days, but I have not found what I'm looking for, which is a way to format "struct timeval" for output in the same matter as the ctime(3) in the standard libc. I keep thinking how this part of the code should not be in kernel because of this, but things will be vastly more complicated if not because of the whole gvinum structure. (This is for use in the gvinum dumpconfig option I'm working on, and I'm not sure if it's really that important showing the creation time, but that's a different discussion). I could ofcourse write my own, but I thought I'd just ask here. Thanks in advance -- Mvh Ulf Lilleengen