aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1996-01-22 00:02:33 +0000
committerJulian Elischer <julian@FreeBSD.org>1996-01-22 00:02:33 +0000
commitf70177e76e605ec6e6cd5b938fa77ade5d380e87 (patch)
treea89c7f50ec371cef4418259b9dccdd31ebb2f61f /sys/sys
parent61de51cad66df0d565233915f856932159d33a4a (diff)
downloadsrc-f70177e76e605ec6e6cd5b938fa77ade5d380e87.tar.gz
src-f70177e76e605ec6e6cd5b938fa77ade5d380e87.zip
Reviewed by: julian and (hsu?)
Submitted by: John Birrel(L?) changes for threadsafe operations
Notes
Notes: svn path=/head/; revision=13545
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/errno.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/sys/errno.h b/sys/sys/errno.h
index 3bac4ed751de..3dddd456834b 100644
--- a/sys/sys/errno.h
+++ b/sys/sys/errno.h
@@ -36,15 +36,20 @@
* SUCH DAMAGE.
*
* @(#)errno.h 8.5 (Berkeley) 1/21/94
- * $Id: errno.h,v 1.2 1994/08/02 07:52:54 davidg Exp $
+ * $Id: errno.h,v 1.3 1994/08/21 04:41:42 paul Exp $
*/
#ifndef _SYS_ERRNO_H_
#define _SYS_ERRNO_H_
#ifndef KERNEL
+#ifdef _THREAD_SAFE
+extern int * __error();
+#define errno (* __error())
+#else
extern int errno; /* global error number */
#endif
+#endif
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */