libefi: import efichar.c for ucs2 support
[unleashed.git] / include / sys / tl.h
blobb297fe4043db7db0321b6ad2a321478329d1b1cf
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
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _SYS_TL_H
28 #define _SYS_TL_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
37 * These are Sun private declarations. Not to be used by any
38 * external applications/code.
42 * Protocol level for option header - (hex for ascii "TL")
43 * (Hopefully unique!)
45 #define TL_PROT_LEVEL 0x544c
48 * Option and data structures used for sending credentials
50 #define TL_OPT_PEER_CRED 10
51 typedef struct tl_credopt {
52 uid_t tc_uid; /* Effective user id */
53 gid_t tc_gid; /* Effective group id */
54 uid_t tc_ruid; /* Real user id */
55 gid_t tc_rgid; /* Real group id */
56 uid_t tc_suid; /* Saved user id (from exec) */
57 gid_t tc_sgid; /* Saved group id (from exec) */
58 uint_t tc_ngroups; /* number of supplementary groups */
59 } tl_credopt_t;
61 #define TL_OPT_PEER_UCRED 11 /* data structure is ucred */
64 * Ioctl's for the 'tl' driver
66 #define TL_IOC (('T' << 16)|('L' << 8))
67 #define TL_IOC_CREDOPT (TL_IOC|001)
68 /* unused (TL_IOC|002) */
69 #define TL_IOC_UCREDOPT (TL_IOC|003)
71 #ifdef __cplusplus
73 #endif
75 #endif /* _SYS_TL_H */