Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Mar 1999 16:45:31 -0500 (EST)
From:      Dan Seguin <dseg@texar.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: KLD extern calls 
Message-ID:  <Pine.BSF.3.91.990318164449.25492B-100000@pak.texar.com>
In-Reply-To: <199903182135.NAA03345@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.990318164449.25492B-100000>