pthread_mutexattr_getpshared(3) Library Functions Manual pthread_mutexattr_getpshared, pthread_mutexattr_setpshared - / POSIX (libpthread, -lpthread) #include int pthread_mutexattr_getpshared( const pthread_mutexattr_t *restrict attr, int *restrict pshared); int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared); . , , . : PTHREAD_PROCESS_PRIVATE , , , . . PTHREAD_PROCESS_SHARED , , , , , . pthread_mutexattr_getpshared() , attr, , pshared. pthread_mutexattr_setpshared() , attr, , pshared. attr , . 0. . pthread_mutexattr_setpshared() : EINVAL pshared. ENOTSUP pshared is PTHREAD_PROCESS_SHARED but the implementation does not support process-shared mutexes. POSIX.1-2008. POSIX.1-2001. pthread_mutexattr_init(3), pthreads(7) () Alexey, Azamat Hackimov , kogamatranslator49 , Darima Kogan , Max Is , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.17 8 2026 . pthread_mutexattr_getpshared(3)