pkg: ship usr/lib/security/amd64/*.so links
[unleashed.git] / include / sys / utssys.h
blob4b1a4dab49cf73a208150fbcd8e3d01b1c5721cc
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
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.
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]
20 * CDDL HEADER END
22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 /* All Rights Reserved */
27 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
31 #ifndef _SYS_UTSSYS_H
32 #define _SYS_UTSSYS_H
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
39 * Definitions related to the utssys() system call.
43 * "commands" of utssys
45 #define UTS_USTAT 0x2 /* 1 was umask */
46 #define UTS_FUSERS 0x3
49 * Flags to UTS_FUSERS
51 #define F_FILE_ONLY 0x01
52 #define F_CONTAINED 0x02
53 #define F_NBMANDLIST 0x04 /* Only NBMAND locks users */
54 #define F_DEVINFO 0x08 /* get device usage info for a dip instead */
55 /* of a minor node */
56 #define F_KINFO_COUNT 0x10 /* get the current number of kernel */
57 /* device consumers */
60 * structures yielded by UTS_FUSERS
62 typedef struct f_user {
63 int fu_flags; /* see below */
64 union {
65 struct {
66 pid_t u_pid;
67 uid_t u_uid;
68 } u_info;
69 struct {
70 int k_modid;
71 int k_instance;
72 int k_minor;
73 } k_info;
74 } fu_info;
75 } f_user_t;
77 typedef struct fu_data {
78 int fud_user_max;
79 int fud_user_count;
80 struct f_user fud_user[1];
81 } fu_data_t;
84 * defines to simplify access to members of the f_user_t structure
86 #define fu_pid fu_info.u_info.u_pid
87 #define fu_uid fu_info.u_info.u_uid
89 #define fu_modid fu_info.k_info.k_modid
90 #define fu_instance fu_info.k_info.k_instance
91 #define fu_minor fu_info.k_info.k_minor
93 #define fu_data_size(x) (sizeof (fu_data_t) - sizeof (f_user_t) + \
94 ((x) * sizeof (f_user_t)))
97 * fu_flags values
99 #define F_CDIR 0x1
100 #define F_RDIR 0x2
101 #define F_TEXT 0x4
102 #define F_MAP 0x8
103 #define F_OPEN 0x10
104 #define F_TRACE 0x20
105 #define F_TTY 0x40
106 #define F_NBM 0x80 /* NBMAND lock in place */
107 #define F_KERNEL 0x80000000
109 #ifdef __cplusplus
111 #endif
113 #endif /* _SYS_UTSSYS_H */