summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/inc/lint.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc/inc/lint.h')
-rw-r--r--usr/src/lib/libc/inc/lint.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/usr/src/lib/libc/inc/lint.h b/usr/src/lib/libc/inc/lint.h
index 48098ab61a..d031a250c5 100644
--- a/usr/src/lib/libc/inc/lint.h
+++ b/usr/src/lib/libc/inc/lint.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.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -37,12 +37,22 @@ extern "C" {
* We must include "lint.h" as the first #include in all libc source files
* for the purpose of running lint over libc, else lint errors occur due to
* lint not knowing the details of the implementation of locales and stdio.
- * "synonyms.h" includes "lint.h" so only the files that do not include
- * "synonyms.h" need to explicitly include "lint.h".
*/
#if defined(__lint)
+
#include "mbstatet.h"
#include "file64.h"
+
+#else
+
+/*
+ * Small optimization for callers of syscall() and __systemcall().
+ * This could/should be defined elsewhere, but here is a particularly
+ * attractive place since all source files in libc include "lint.h".
+ */
+#define syscall _syscall6
+#define __systemcall __systemcall6
+
#endif
#ifdef __cplusplus