Print this page
6136 sysmacros.h unnecessarily polutes the namespace


   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 #pragma ident   "%Z%%M% %I%     %E% SMI"
  28 
  29 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  30 /*        All Rights Reserved   */
  31 
  32 
  33 #include <errno.h>
  34 #include <fcntl.h>
  35 #include <kstat.h>
  36 #include <libdevinfo.h>
  37 #include <locale.h>
  38 #include <pwd.h>
  39 #include <signal.h>
  40 #include <stdio.h>
  41 #include <stdlib.h>
  42 #include <string.h>
  43 #include <unistd.h>
  44 #include <sys/mnttab.h>
  45 #include <sys/modctl.h>
  46 #include <sys/stat.h>
  47 #include <sys/sysmacros.h>
  48 #include <sys/types.h>
  49 #include <sys/utssys.h>
  50 #include <sys/var.h>

  51 
  52 /*
  53  * Command line options for fuser command. Mutually exclusive.
  54  */
  55 #define OPT_FILE_ONLY           0x0001          /* -f */
  56 #define OPT_CONTAINED           0x0002          /* -c */
  57 
  58 /*
  59  * Command line option modifiers for fuser command.
  60  */
  61 #define OPT_SIGNAL              0x0100          /* -k, -s */
  62 #define OPT_USERID              0x0200          /* -u */
  63 #define OPT_NBMANDLIST          0x0400          /* -n */
  64 #define OPT_DEVINFO             0x0800          /* -d */
  65 
  66 #define NELEM(a)                (sizeof (a) / sizeof ((a)[0]))
  67 
  68 /*
  69  * System call prototype
  70  */




   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 


  27 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 
  31 #include <errno.h>
  32 #include <fcntl.h>
  33 #include <kstat.h>
  34 #include <libdevinfo.h>
  35 #include <locale.h>
  36 #include <pwd.h>
  37 #include <signal.h>
  38 #include <stdio.h>
  39 #include <stdlib.h>
  40 #include <string.h>
  41 #include <unistd.h>
  42 #include <sys/mnttab.h>
  43 #include <sys/modctl.h>
  44 #include <sys/stat.h>
  45 #include <sys/sysmacros.h>
  46 #include <sys/types.h>
  47 #include <sys/utssys.h>
  48 #include <sys/var.h>
  49 #include <sys/mkdev.h>
  50 
  51 /*
  52  * Command line options for fuser command. Mutually exclusive.
  53  */
  54 #define OPT_FILE_ONLY           0x0001          /* -f */
  55 #define OPT_CONTAINED           0x0002          /* -c */
  56 
  57 /*
  58  * Command line option modifiers for fuser command.
  59  */
  60 #define OPT_SIGNAL              0x0100          /* -k, -s */
  61 #define OPT_USERID              0x0200          /* -u */
  62 #define OPT_NBMANDLIST          0x0400          /* -n */
  63 #define OPT_DEVINFO             0x0800          /* -d */
  64 
  65 #define NELEM(a)                (sizeof (a) / sizeof ((a)[0]))
  66 
  67 /*
  68  * System call prototype
  69  */