Subj : Re: pthread_attr_setstackaddr() on Linux To : comp.programming.threads From : Haro Panosyan Date : Fri Jun 10 2005 01:18 pm Loic, > Really, no idea what you are talking about. What are this "ENTERPRIZE" > and "non ENTREPRIZE" machines, exactly? I wish I knew what I am talking about:) Seriously, as I said in the first posting, POSIX threads were not completelly implemented before, e.i. you could not set stack/size for threads. In different documents I have read about threads they would explain : "you don't have to worry about allocating memory for thread stack. It will be done automatically" and so on. I guess I posted a question here a few years ago and got conformation. Now, it seems to me some Linux implementations support this, and as David said, I can use ..setstack() function. What I am saying is this function, dispite being POSIX standart function, is not supported under some Linux distributions. I am using "uname -a" return value to check(know) if this function is supported. Whenever this function is supported, I call it "enterprize", sounds funny, but all I am interested, about to somehow distinguish which machines I can run which function of POSIX standart thread library. To wrap this up, I would like to put a question here: Is it true some Linux distributions do not support pthread_attr_setsatck() ? Examples of uname: >uname -a Linux "some.machine.in.some.com" 2.4.9-31custom #1 SMP Wed Oct 16 13:07:01 CDT 2002 i686 unknown The last word "unknown" tells me about the system which does not support setstack. >uname -a Linux "some.machine.in.some.com" 2.4.21-15.ELhugemem #1 SMP Thu Apr 22 00:09:08 EDT 2004 i686 i686 i386 GNU/Linux If the last word is GNU/Linux, then it supports it. Thanks, -haro loic-dev@gmx.net wrote: > Hi Paro, > > >>With my first compilation I got WARNING message for >>pthread_attr_setstackaddr() function being depreciated, >>so I am using pthread_attr_setstack() on "ENTERPRIZE" machines only, >>i.e if "uname -a" will return GNU/Linux at the end. >> >>For SunOS still I am using "pthread_attr_setstackaddr()". >> >>And for "None ENTERPRIZE" machine I am not using either. >> >>If someone could help me to really understand what is "ENTERPRIZE" >>and what is not, then that should be very helpfull. > > > Really, no idea what you are talking about. What are this "ENTERPRIZE" > and "non ENTREPRIZE" machines, exactly? > > Cheers, > Loic. > .