diff options
author | Roger A. Faulkner <Roger.Faulkner@Sun.COM> | 2009-11-20 13:51:47 -0800 |
---|---|---|
committer | Roger A. Faulkner <Roger.Faulkner@Sun.COM> | 2009-11-20 13:51:47 -0800 |
commit | 2c797a4e2b3df5a8d31d47a9b5bea4cde7005e9d (patch) | |
tree | 7ca0e520d3c5edfd304fb3dfdee78f0b3c52c54b /usr/src/uts/sparc/sys/old_procfs.h | |
parent | 67dbe2be0c0f1e2eb428b89088bb5667e8f0b9f6 (diff) | |
download | illumos-gate-2c797a4e2b3df5a8d31d47a9b5bea4cde7005e9d.tar.gz |
6900188 prsubr.c is not lint clean
Diffstat (limited to 'usr/src/uts/sparc/sys/old_procfs.h')
-rw-r--r-- | usr/src/uts/sparc/sys/old_procfs.h | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/usr/src/uts/sparc/sys/old_procfs.h b/usr/src/uts/sparc/sys/old_procfs.h index 39a82b4710..bd85977a5d 100644 --- a/usr/src/uts/sparc/sys/old_procfs.h +++ b/usr/src/uts/sparc/sys/old_procfs.h @@ -18,15 +18,15 @@ * * CDDL HEADER END */ + /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - #ifndef _SYS_OLD_PROCFS_H #define _SYS_OLD_PROCFS_H @@ -34,8 +34,6 @@ * This file contains the definitions for the old ioctl()-based * version of the process file system. It is obsolete but will * continue to be supported in SunOS until the next major release. - * Note that <sys/procfs.h> and <sys/old_procfs.h> contain conflicting - * definitions and cannot be included together in the same source file. */ #include <sys/types.h> @@ -57,6 +55,31 @@ extern "C" { #if _STRUCTURED_PROC == 0 /* + * The old (ioctl-based) and new (structured) /proc interfaces define + * related structures of the same name, but slightly diferent contents: + * prmap_t + * prcred_t + * This doesn't hurt because you can't include both of these + * in the same compilation unit: + * <sys/procfs.h> + * <sys/old_procfs.h> + * unless _STRUCTURED_PROC is first defined to be 1. + * (Including <procfs.h> defines it to be 1.) + * + * However, the latest version of lint goes overboard in hunting + * down and reporting differences in functions and data of the + * same name across multiple compilation units, even though there + * is no real problem. To mitigate this, we redefine the old procfs + * names when performing lint. + */ +#if defined(__lint) +#define prmap Prmap +#define prmap_t Prmap_t +#define prcred Prcred +#define prcred_t Prcred_t +#endif /* __lint */ + +/* * ioctl codes and system call interfaces for /proc. */ |