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

Re: pthreads in hurd



On Mon, Mar 05, 2001 at 08:58:18AM -0800, Jeff Bailey wrote:
> On Mon, Mar 05, 2001 at 08:50:50AM -0500, Igor Khavkine wrote:
> 
> > > The other thing is that bits/pthread.h doesn't have anything that 
> > > defines _HURD_THREADVAR_THREAD.  I have looked through the various 
> > > definiations in the sysdeps directory, but the obvious file 
> > > hurd/threadvar.h doesn't contain a definition for this.
> > 
> > This is an enum constant defined in [glibc]/hurd/hurd/threadvar.h, it
> > serves as an index into the stack of a newly created thread.
> 
> Sorry, I wasn't clear.  You're refering to the same file that I looked 
> at.  These are the enum's provided:
> 
> /* These values are the indices for the standard per-thread variables.  */
> enum __hurd_threadvar_index
>   {
>     _HURD_THREADVAR_MIG_REPLY,  /* Reply port for MiG user stub 
> functions.  */
>     _HURD_THREADVAR_ERRNO,      /* `errno' value for this thread.  */
>     _HURD_THREADVAR_SIGSTATE,   /* This thread's `struct hurd_sigstate'.  */
>     _HURD_THREADVAR_DYNAMIC_USER, /* Dynamically-assigned user variables. */
#define _HURD_THREADVAR_THREAD _HURD_THREADVAR_DYNAMIC_USER
>     _HURD_THREADVAR_MALLOC,     /* For use of malloc. */
>     _HURD_THREADVAR_DL_ERROR,   /* For use of -ldl and dynamic linker. */
>     _HURD_THREADVAR_MAX         /* Default value for 
> __hurd_threadvar_max.  */
>   };
> 
> This file in my libc checkout hasn't been updated since 1999.  Have I 
> missed a commit somewhere?

I took the glibc source from the debian package. And the file that I have
contains the line that I added. I'm not sure how old that file is though.

Igor



Reply to: