From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 29 06:22:56 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 8F55816A4CE for ; Sun, 29 Aug 2004 06:22:56 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id C305D43D3F for ; Sun, 29 Aug 2004 06:22:55 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i7T6L5go034352; Sun, 29 Aug 2004 00:21:05 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 29 Aug 2004 00:21:09 -0600 (MDT) Message-Id: <20040829.002109.94555174.imp@bsdimp.com> To: flag@oltrelinux.com From: "M. Warner Losh" In-Reply-To: <20040827182358.GA2114@tin.it> References: <20040827182358.GA2114@tin.it> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org 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: Sun, 29 Aug 2004 06:22:56 -0000 In message: <20040827182358.GA2114@tin.it> Paolo Pisati writes: : As a general rule of thumb, : which are the safe libraries we can link against : while developing a kernel module? None. : I mean, can i use libc functions? All of them? No. You can't. : And what about the other libraries in the base system? None. You can use some functions traditionally in libc that are in the kernel in libkern only. Warner