swapcontext() in QNX 6.2?

Does anyone know whether QNX plans to support UNIX set/getcontext(),
makecontext() and swapcontext()? QNX 6.2 has a
/usr/include/ucontext.h file containing prototypes for these
functions, but they’re commented out.

I’m porting some software that makes use of very simple user-level
threads that can be implemented with either the above functions, or,
alternately, setjmp(), longjmp and sigaltstack(). See:

http://www.usenix.org/publications/library/proceedings/usenix2000/general/full_papers/engelschall/engelschall.pdf

:: sigh :: QNX 6.2 also seems to be missing sigaltstack(), so this
trick didn’t work ‘out of the box’.

Can anyone recommend a way of implementing this functionality under
QNX?

TIA,

  • Dave

A user-level threads library (with source afair) was on QNX FTP site few
years back. I don’t know how it was implemented. It is also surprize for me
that sigaltstack is missing, i was under impression it is there…

– igor

“dwolfe5272” <dwolfe5272@hotmail.com> wrote in message
news:9f52367e.0207132113.d58f363@posting.google.com

Does anyone know whether QNX plans to support UNIX set/getcontext(),
makecontext() and swapcontext()? QNX 6.2 has a
/usr/include/ucontext.h file containing prototypes for these
functions, but they’re commented out.

I’m porting some software that makes use of very simple user-level
threads that can be implemented with either the above functions, or,
alternately, setjmp(), longjmp and sigaltstack(). See:


http://www.usenix.org/publications/library/proceedings/usenix2000/general/fu

ll_papers/engelschall/engelschall.pdf

:: sigh :: QNX 6.2 also seems to be missing sigaltstack(), so this
trick didn’t work ‘out of the box’.

Can anyone recommend a way of implementing this functionality under
QNX?

TIA,

  • Dave