From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 31 13:44:57 2004 Return-Path: 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 77B1716A4CE for ; Tue, 31 Aug 2004 13:44:57 +0000 (GMT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id E93CD43D1D for ; Tue, 31 Aug 2004 13:44:56 +0000 (GMT) (envelope-from mike@urgle.com) Received: from guylian.urgle.com ([80.177.40.54]) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 1C28wR-0007Ur-0Y; Tue, 31 Aug 2004 13:44:55 +0000 Received: from mike by guylian.urgle.com with local (Exim 4.32; FreeBSD) id 1C28wQ-000KHf-V9; Tue, 31 Aug 2004 13:44:55 +0000 Date: Tue, 31 Aug 2004 14:44:54 +0100 From: Mike Bristow To: Brian O'Shea Message-ID: <20040831134454.GA77426@urgle.com> References: <20040827182358.GA2114@tin.it> <20040828204050.77238.qmail@web50903.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040828204050.77238.qmail@web50903.mail.yahoo.com> User-Agent: Mutt/1.5.6i cc: FreeBSD_Hackers Subject: Re: Library (ab)use in kernel land X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2004 13:44:57 -0000 On Sat, Aug 28, 2004 at 01:40:50PM -0700, Brian O'Shea wrote: > That being said, there are a few analogs of the standard C > library functions in the kernel, such as printf, strcpy, bcmp, > qsort, etc. You can find sources for them in src/sys/libkern/ > with prototypes in the src/sys/sys/libkern.h and src/sys/sys/systm.h > header files. And manual pages in section 9 of the manual, eg: $ man 9 printf will give you the docs for the printf that you can call in kernelspace.