Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pthread_rwlockattr_getpshared(3) — Tru64 UNIX 5.0a

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pthread_rwlockattr_setpshared(3)

pthread_rwlockattr_init(3)

pthread_rwlockattr_getpshared(3)  —  Subroutines

NAME

pthread_rwlockattr_getpshared − Obtains the process-shared attribute of a read-write lock attributes object. 

LIBRARY

DECthreads POSIX 1003.1c Library (libpthread.so)

SYNOPSIS

#include <pthread.h>

int   pthread_rwlockattr_getpshared(
                      const pthread_rwlockattr_t       ∗attr,
                      int                              ∗pshared);

PARAMETERS

attrAddress of the read-write lock attributes object whose process-shared attribute is to be obtained. 

psharedLocation to store the value of the process-shared attribute of attr. 

DESCRIPTION

This routine obtains the value of the process-shared attribute in the read-write lock attributes object referenced by attr and stores it at the location pshared. The object referenced by attr must be initialized before this routine is called. 

RETURN VALUES

If an error condition occurs, this routine returns an integer value indicating the type of error.  Possible return values are as follows:

0Successful completion. 

[EINVAL]The value specified by attr is not a valid attributes object. 

ERRORS

None

RELATED INFORMATION

Functions: pthread_rwlockattr_setpshared(3), pthread_rwlockattr_init(3)

Manuals: Guide to DECthreads and Programmer’s Guide
 
 
 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026