Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Mar 1999 13:35:24 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Dan Seguin <dseg@texar.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: KLD extern calls 
Message-ID:  <199903182135.NAA03345@dingo.cdrom.com>
In-Reply-To: Your message of "Thu, 18 Mar 1999 16:39:49 EST." <Pine.BSF.3.91.990318163106.25492A-100000@pak.texar.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com




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?199903182135.NAA03345>