Unsupported Pthread APIs

The following functions are not supported by the iSeries(TM) implementation of pthreads. These functions are all defined and provided by the system. You can create and compile with these functions in your application. If the unsupported functions are called, when the application runs the functions immediately fail with the ENOSYS error, and your application can take the appropriate action, such as ignoring the error and continuing.


pthread_atfork()--Register Fork Handlers


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_atfork(void (*prepare)(void),
                    void (*parent)(void),
                    void (*child)(void));

The pthread_atfork() function is not supported by this implementation. The function returns ENOSYS.


pthread_atfork_np()--Register Fork Handlers with Extended Options


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_atfork(int *userstate,
                    void (*prepare)(void),
                    void (*parent)(void),
                    void (*child)(void));

The pthread_atfork_np() function is not supported by this implementation. The function returns ENOSYS.


pthread_attr_getguardsize()--Get Guard Size


  Syntax:
 #include <pthread.h>
 int pthread_attr_getguardsize(const pthread_attr_t *attr,
                               size_t *guardsize);

The pthread_attr_getguardsize() function is not supported by this implementation. The function returns ENOSYS.


pthread_attr_getschedpolicy()--Get Scheduling Policy


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_attr_getschedpolicy(pthread_attr_t *attr,
                                 int *policy);

The pthread_attr_getschedpolicy() function is not supported by this implementation. The function returns ENOSYS.


pthread_attr_getscope()--Get Scheduling Scope


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_attr_getscope(pthread_attr_t *attr,
                           int *contentionscope);

The pthread_attr_getscope() function is not supported by this implementation. The function returns ENOSYS.


pthread_attr_getstackaddr()--Get Stack Address


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_attr_getstackaddr(const pthread_attr_t *attr,
                               void **stackaddr);

The pthread_attr_getstackaddr() function is not supported by this implementation. The function returns ENOSYS.


pthread_attr_getstacksize()--Get Stack Size


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_attr_getstacksize(const pthread_attr_t *attr,
                               size_t *stacksize);

The pthread_attr_getstacksize() function is not supported by this implementation. The function returns ENOSYS.


pthread_attr_setguardsize()--Set Guard Size


  Syntax:
 #include <pthread.h>
 int pthread_attr_setguardsize(pthread_attr_t *attr,
                               size_t guardsize);

The pthread_attr_setguardsize() function is not supported by this implementation. The function returns ENOSYS.


pthread_attr_setschedpolicy()--Set Scheduling Policy


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_attr_setschedpolicy(pthread_attr_t *attr,
                                 int policy);

The pthread_attr_setschedpolicy() function is not supported by this implementation. The function returns ENOSYS.


pthread_attr_setscope()--Set Scheduling Scope


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_attr_setscope(pthread_attr_t *attr,
                           int contentionscope);

The pthread_attr_setscope() function is not supported by this implementation. The function returns ENOSYS.


pthread_attr_setstackaddr()--Set Stack Address


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_attr_setstackaddr(pthread_attr_t *attr,
                               void *stackaddr);

The pthread_attr_setstackaddr() function is not supported by this implementation. The function returns ENOSYS.


pthread_attr_setstacksize()--Set Stack Size


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_attr_setstacksize(pthread_attr_t *attr,
                               size_t stacksize);

The pthread_attr_setstacksize() function is not supported by this implementation. The function returns ENOSYS.


pthread_mutexattr_getprioceiling()--Get Mutex Priority Ceiling Attribute


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *attr,
                                      int *prioceiling);

The pthread_mutexattr_getprioceiling() function is not supported by this implementation. The function returns ENOSYS.


pthread_mutexattr_getprotocol()--Get Mutex Protocol Attribute


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr,
                                   int *protocol);

The pthread_mutexattr_getprotocol() function is not supported by this implementation. The function returns ENOSYS.


pthread_mutexattr_setprioceiling()--Set Mutex Priority Ceiling Attribute


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr,
                                      int prioceiling);

The pthread_mutexatttr_setprioceiling() function is not supported by this implementation. The function returns ENOSYS.


pthread_mutexattr_setprotocol()--Set Mutex Protocol Attribute


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr,
                                   int protocol);

The pthread_mutexattr_setprotocol() function is not supported by this implementation. The function returns ENOSYS.


pthread_mutex_getprioceiling()--Get Mutex Priority Ceiling


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_mutex_getprioceiling(const pthread_mutex_t *mutex,
                                  int *prioceiling);

The pthread_mutex_getprioceiling() function is not supported by this implementation. The function returns ENOSYS.


pthread_mutex_setprioceiling()--Set Mutex Priority Ceiling


  Syntax:
 #include <pthread.h>
 #include <sched.h>
 int pthread_mutex_setprioceiling(pthread_mutex_t *mutex,
                                  int prioceiling, int *oldceiling);

The pthread_mutex_setprioceiling() function is not supported by this implementation. The function returns ENOSYS.


Top | Pthread APIs | APIs by category