The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Sat, 21 Jun 2003 12:55:57 -0400
Local: Sat, Jun 21 2003 12:55 pm
Subject: Re: Portable way of finding libc, unbuffered reads
At 11:55 PM +0200 6/20/03, Jens Rieks wrote:
> > (Which in itself tickles and scares the bejesus out of me.) Is there a That's an interesting trick, albeit a very platform-dependent one. I >> good way of finding the standard C library on a Unix system other than >> hard-wiring it in like this? >Yes. Parrot is linked with the standard C library. You can get a handle for >the own executable by passing a NULL pointer to dlopen. You can also use this >handle to call libc functions. can see adding in support for getting a handle on the current executable (though this is one of the cases where things may behave differently under the interpreter and as a compiled standalope app) Given all this, I think that an alternate version of loadlib to open >You can not pass a NULL pointer to loadlib at the moment, this small hacks I've put in an alternate hack, one that returns NULL from >"converts" an empty string to a NULL pointer to pass it to Parror_dlopen: string_to_cstring if passed in a NULL string pointer. -- Dan --------------------------------------"it's like this"------------------- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||