*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> pthread_stackseg_np (3)              
Title
Content
Arch
Section
 

PTHREAD_STACKSEG_NP(3)

Contents


NAME    [Toc]    [Back]

     pthread_stackseg_np - return stack size and location

SYNOPSIS    [Toc]    [Back]

     #include <sys/signal.h>
     #include <pthread_np.h>

     int
     pthread_stackseg_np(pthread_t thread, stack_t *sinfo);

DESCRIPTION    [Toc]    [Back]

     The pthread_stackseg_np() function returns information about
the given
     thread's   stack.   A  stack_t  is  the  same  as  a  struct
sigaltstack (see
     sigaltstack(2)) except the ss_sp variable points to the  top
of the stack
     instead of the base.

RETURN VALUES    [Toc]    [Back]

     If  successful,  the pthread_stackseg_np() function will return 0.  Otherwise
 an error number will be returned to indicate the error.

ERRORS    [Toc]    [Back]

     The pthread_stackseg_np() function will fail if:

     [EAGAIN]       Stack information for the given thread is not
currently
                   available.  There is  no  guarantee  that  the
given thread's
                   stack  information will ever become available.

SEE ALSO    [Toc]    [Back]

      
      
     sigaltstack(2), pthreads(3)

STANDARDS    [Toc]    [Back]

     pthread_stackseg_np() is a non-portable  extension  to  IEEE
Std 1003.1-2001
     (``POSIX'').

OpenBSD      3.6                         January     15,     2004
[ Back ]
 Similar pages
Name OS Title
getvroot IRIX Get location and size of virtual root for window
prefposition IRIX specifies the preferred location and size of a graphics window
mvView IRIX Change the location and size of the region for movie display inside a GL window
index IRIX return location of FORTRAN substring
index IRIX return location of FORTRAN substring
telldir Linux return current location in directory stream.
maxssiz HP-UX maximum size (in bytes) of the stack for any user process
pthread_attr_setstackaddr_np Tru64 Changes the stack address and size of the specified thread attributes object
maxssiz_64bit HP-UX maximum size (in bytes) of the stack for any user process
sigreturn Linux return from signal handler and cleanup stack frame
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service