[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
More nits (was Re: reentrant variants of gethostbyname2/gethostbyaddr)
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: More nits (was Re: reentrant variants of gethostbyname2/gethostbyaddr)
- From: Hannah Schroeter <hannah_(_at_)_schlund_(_dot_)_de>
- Date: Mon, 6 Mar 2006 19:57:56 +0100
- Mail-followup-to: tech_(_at_)_openbsd_(_dot_)_org
- Organization: Schlund + Partner AG
Hello!
On Mon, Mar 06, 2006 at 07:34:17PM +0100, Hannah Schroeter wrote:
>[...]
>Is there any chance that code for that will be added, either (if the
>interfaces are defined in a sane way there) in the way glibc does, or in
>a cleaner way, if there is.
>Or is there any other suggestion for how to resolve hosts by name or
>address in multithreaded code on OpenBSD?
In addition, I'm also missing reentrant variants of getpw{uid,nam}.
And I think <pthread.h> pollutes the global namespace in an unfortunate
way, e.g.
struct pthread;
...
typedef struct pthread *pthread_t;
Wouldn't it make sense to use "private" names for the opaque struct?
I.e.
struct __pthread;
...
typedef struct __pthread *pthread_t;
If that's accepted in general, I'd of course be ready to prepare a
diff.
Kind regards,
Hannah.
Visit your host, monkey.org