summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/inc/mtlib.h
diff options
context:
space:
mode:
authorraf <none@none>2006-03-23 17:06:26 -0800
committerraf <none@none>2006-03-23 17:06:26 -0800
commit1d2738a5bf9233cca445b538dd8072428a953b17 (patch)
tree0fcb3e304cbe6bdbced14e02fe40812b9baf32a5 /usr/src/lib/libc/inc/mtlib.h
parent19485c10c3945da20fb22366880d733c45bd9c57 (diff)
downloadillumos-joyent-1d2738a5bf9233cca445b538dd8072428a953b17.tar.gz
6402763 __threaded escaped from the reservation, abused by Forte6.1
Diffstat (limited to 'usr/src/lib/libc/inc/mtlib.h')
-rw-r--r--usr/src/lib/libc/inc/mtlib.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/usr/src/lib/libc/inc/mtlib.h b/usr/src/lib/libc/inc/mtlib.h
index 9397d58f14..89c2376949 100644
--- a/usr/src/lib/libc/inc/mtlib.h
+++ b/usr/src/lib/libc/inc/mtlib.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -115,16 +114,16 @@ extern void assert_no_libc_locks_held(void);
/*
* Cheap check to tell if stdio needs to lock for MT progs.
* Referenced directly in port/stdio/flush.c and FLOCKFILE and
- * FUNLOCKFILE macros. __threaded gets set to 1 when the first
+ * FUNLOCKFILE macros. __libc_threaded gets set to 1 when the first
* thread (beyond the main thread) is created in _thrp_create().
*/
-extern int __threaded;
+extern int __libc_threaded;
#define FILELOCKING(iop) (GET_IONOLOCK(iop) == 0)
#define FLOCKFILE(lk, iop) \
{ \
- if (__threaded && FILELOCKING(iop)) \
+ if (__libc_threaded && FILELOCKING(iop)) \
lk = _flockget((iop)); \
else \
lk = NULL; \