summaryrefslogtreecommitdiff
path: root/usr/src/head/pthread.h
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2016-04-11 08:27:29 -0700
committerRobert Mustacchi <rm@joyent.com>2016-05-19 07:45:52 -0700
commite56998eefc33ead0f12b364be915dd6bfc12a3f5 (patch)
tree0b428d2a6e27456148b3990f30ef87a2aacd570e /usr/src/head/pthread.h
parentfc2512cfb727d49529d8ed99164db871f4829b73 (diff)
downloadillumos-gate-e56998eefc33ead0f12b364be915dd6bfc12a3f5.tar.gz
6501 Implement pthread_attr_get_np() interface
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/head/pthread.h')
-rw-r--r--usr/src/head/pthread.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/src/head/pthread.h b/usr/src/head/pthread.h
index 8b1bddfa7c..5fe007bf90 100644
--- a/usr/src/head/pthread.h
+++ b/usr/src/head/pthread.h
@@ -21,6 +21,7 @@
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ * Copyright 2016 Joyent, Inc.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
@@ -337,6 +338,14 @@ extern int pthread_mutexattr_setrobust_np(pthread_mutexattr_t *, int);
extern int pthread_mutexattr_getrobust_np(
const pthread_mutexattr_t *_RESTRICT_KYWD, int *_RESTRICT_KYWD);
+/*
+ * These are non-standardized extensions that we provide. Their origins are
+ * documented in their manual pages.
+ */
+#if !defined(_STRICT_SYMBOLS) || defined(__EXTENSIONS__)
+extern int pthread_attr_get_np(pthread_t, pthread_attr_t *);
+#endif /* !_STRICT_SYMBOLS || __EXTENSIONS__ */
+
#endif /* _ASM */
#ifdef __cplusplus