This is a discussion on More nits (was Re: reentrant variants of gethostbyname2/gethostbyaddr) within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Hello! On Mon, Mar 06, 2006 at 07:34:17PM +0100, Hannah Schroeter wrote: >[...] >Is there any chance that code ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| Thread Tools | |
| Display Modes | |
|
|