From owner-freebsd-hackers Thu Mar 18 13:45: 0 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from pak.texar.com (pak.texar.com [207.112.49.1]) by hub.freebsd.org (Postfix) with ESMTP id E43E514DB4 for ; Thu, 18 Mar 1999 13:44:45 -0800 (PST) (envelope-from dseg@pak.texar.com) Received: (from dseg@localhost) by pak.texar.com (8.8.8/8.8.3) id QAA25535; Thu, 18 Mar 1999 16:45:31 -0500 (EST) Date: Thu, 18 Mar 1999 16:45:31 -0500 (EST) From: Dan Seguin To: Mike Smith Cc: freebsd-hackers@freebsd.org Subject: Re: KLD extern calls In-Reply-To: <199903182135.NAA03345@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 18 Mar 1999, Mike Smith wrote: > > > > Is it possible to make calls to std libs from within a KLD? For example, > > getpwuid()? If so, how does one link it in? I've tried ld by hand > > (specifying -lc), but get "bad exec format" when trying to load it. > > Otherwise, it just refuses to load, claiming "undefined symbol getpwuid". > > This is not limited to the abovementioned call. Any ideas, knowledge, > > help is appreciated. > > No. KLDs execute within the kernel, not in userspace. > I feared as much. I thought maybe there was some kind of "bridge". Thanks for your help. Dan Seguin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message