[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More nits (was Re: reentrant variants of gethostbyname2/gethostbyaddr)



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