]> git.proxmox.com Git - mirror_zfs-debian.git/blob - zfs/lib/libzcommon/include/sys/zfs_i18n.h
Remove stray stub kernel files which should be brought in my linux-kernel-module...
[mirror_zfs-debian.git] / zfs / lib / libzcommon / include / sys / zfs_i18n.h
1 /*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27 #ifndef _SYS_ZFS_I18N_H
28 #define _SYS_ZFS_I18N_H
29
30
31
32 #include <sys/sunddi.h>
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 /*
39 * z_case behaviors
40 * The first two describe the extent of case insensitivity.
41 * The third describes matching behavior when mixed sensitivity
42 * is allowed.
43 */
44 #define ZFS_CI_ONLY 0x01 /* all lookups case-insensitive */
45 #define ZFS_CI_MIXD 0x02 /* some lookups case-insensitive */
46
47 /*
48 * ZFS_UTF8_ONLY
49 * If set, the file system should reject non-utf8 characters in names.
50 */
51 #define ZFS_UTF8_ONLY 0x04
52
53 enum zfs_case {
54 ZFS_CASE_SENSITIVE,
55 ZFS_CASE_INSENSITIVE,
56 ZFS_CASE_MIXED
57 };
58
59 enum zfs_normal {
60 ZFS_NORMALIZE_NONE,
61 ZFS_NORMALIZE_D,
62 ZFS_NORMALIZE_KC,
63 ZFS_NORMALIZE_C,
64 ZFS_NORMALIZE_KD
65 };
66
67 #ifdef __cplusplus
68 }
69 #endif
70
71 #endif /* _SYS_ZFS_I18N_H */