PTHREAD...TPSHARED(3POSIX)

🌸 POSIX Programmer's Manual 🌸

okay bestie, so this one lives in the POSIX Programmer's Manual, and before we even get into it there's a little heads-up you need to read, no skipping πŸ’…

🫢 PROLOG

This manual page is part of the POSIX Programmer's Manual.

real talk: the Linux implementation of this interface may differ (so go consult the corresponding Linux manual page for the deets on Linux behavior), or β€” plot twist β€” the interface may not be implemented on Linux at all. 😭

✨ NAME ✨

pthread_rwlockattr_setpshared β€” set the process-shared attribute of the read-write lock attributes object πŸŽ€

it's giving "i set the vibe (the attribute) for sharing across processes" and honestly? iconic.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <pthread.h>

int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr,
    int pshared);

πŸ’– DESCRIPTION πŸ’–

Refer to pthread_rwlockattr_getpshared().

not me telling you to go read the other page, but like… that's literally what it says. the girlies are linked. 🌈

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group.

In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .


and that's the whole page, bestie β€” short and sweet, periodt. πŸ’… this one came to you from IEEE/The Open Group, dated 2017, under the PTHREAD...TPSHARED(3POSIX) glow-up. stay slaying, go read your man pages, mwah πŸŽ€βœ¨