Blob


1 //////////
6 #ifndef _LOCALE_H_
7 #define _LOCALE_H_
9 #include <sys/null.h>
11 struct lconv {
12 char *decimal_point;
13 char *thousands_sep;
14 char *grouping;
15 char *int_curr_symbol;
16 char *currency_symbol;
17 char *mon_decimal_point;
18 char *mon_thousands_sep;
19 char *mon_grouping;
20 char *positive_sign;
21 char *negative_sign;
22 char int_frac_digits;
23 char frac_digits;
24 char p_cs_precedes;
25 char p_sep_by_space;
26 char n_cs_precedes;
27 char n_sep_by_space;
28 char p_sign_posn;
29 char n_sign_posn;
30 char int_p_cs_precedes;
31 char int_p_sep_by_space;
32 char int_n_cs_precedes;
33 char int_n_sep_by_space;
34 char int_p_sign_posn;
35 char int_n_sign_posn;
36 };
38 #define LC_ALL 0
39 #define LC_COLLATE 1
40 #define LC_CTYPE 2
41 #define LC_MONETARY 3
42 #define LC_NUMERIC 4
43 #define LC_TIME 5
44 #define LC_MESSAGES 6
46 #define _LC_LAST 7
48 #include <sys/defs.h>
50 #if __POSIX_VISIBLE >= 200809
52 #ifndef _LOCALE_T_DEFINED_
53 #define _LOCALE_T_DEFINED_
54 typedef void *locale_t;
55 #endif
57 #define LC_COLLATE_MASK (1 << LC_COLLATE)
58 #define LC_CTYPE_MASK (1 << LC_CTYPE)
59 #define LC_MONETARY_MASK (1 << LC_MONETARY)
60 #define LC_NUMERIC_MASK (1 << LC_NUMERIC)
61 #define LC_TIME_MASK (1 << LC_TIME)
62 #define LC_MESSAGES_MASK (1 << LC_MESSAGES)
64 #define LC_ALL_MASK ((1 << _LC_LAST) - 2)
66 #define LC_GLOBAL_LOCALE ((locale_t)-1)
68 #endif
71 __BEGIN_DECLS
72 struct lconv *localeconv(void);
73 char *setlocale(int, const char *);
75 #if __POSIX_VISIBLE >= 200809
76 locale_t duplocale(locale_t);
77 void freelocale(locale_t);
78 locale_t newlocale(int, const char *, locale_t);
79 locale_t uselocale(locale_t);
80 #endif
81 __END_DECLS
83 #endif
89 #ifndef _PROTOCOLS_DUMPRESTORE_H_
90 #define _PROTOCOLS_DUMPRESTORE_H_
93 #define TP_BSIZE 1024
94 #define NTREC 10
95 #define HIGHDENSITYTREC 32
96 #define TP_NINDIR (TP_BSIZE/)
97 #define LBLSIZE 16
98 #define NAMELEN 64
100 #define OFS_MAGIC (int)60011
101 #define NFS_MAGIC (int)60012
102 #ifndef FS_UFS2_MAGIC
103 #define FS_UFS2_MAGIC (int)0x19540119
104 #endif
105 #define CHECKSUM (int)84446
107 extern union u_spcl {
108 char dummy[TP_BSIZE];
109 struct s_spcl {
110 int32_t c_type;
111 int32_t c_old_date;
112 int32_t c_old_ddate;
113 int32_t c_volume;
114 int32_t c_old_tapea;
115 uint32_t c_inumber;
116 int32_t c_magic;
117 int32_t c_checksum;
118 union {
119 struct ufs1_dinode __uc_dinode;
120 struct {
121 uint16_t __uc_mode;
122 int16_t __uc_spare1[3];
123 uint64_t __uc_size;
124 int32_t __uc_old_atime;
125 int32_t __uc_atimensec;
126 int32_t __uc_old_mtime;
127 int32_t __uc_mtimensec;
128 int32_t __uc_spare2[2];
129 int32_t __uc_rdev;
130 int32_t __uc_birthtimensec;
131 int64_t __uc_birthtime;
132 int64_t __uc_atime;
133 int64_t __uc_mtime;
134 int32_t __uc_spare4[7];
135 uint32_t __uc_file_flags;
136 int32_t __uc_spare5[2];
137 uint32_t __uc_uid;
138 uint32_t __uc_gid;
139 int32_t __uc_spare6[2];
140 } __uc_ino;
141 } __c_ino;
142 int32_t c_count;
143 char c_addr[TP_NINDIR];
144 char c_label[LBLSIZE];
145 int32_t c_level;
146 char c_filesys[NAMELEN];
147 char c_dev[NAMELEN];
148 char c_host[NAMELEN];
149 int32_t c_flags;
150 int32_t c_old_firstrec;
151 int64_t c_date;
152 int64_t c_ddate;
153 int64_t c_tapea;
154 int64_t c_firstrec;
155 int32_t c_spare[24];
156 } s_spcl;
157 } u_spcl;
158 #define spcl u_spcl.s_spcl
160 #define c_dinode __c_ino.__uc_dinode
161 #define c_mode __c_ino.__uc_ino.__uc_mode
162 #define c_spare1 __c_ino.__uc_ino.__uc_spare1
163 #define c_size __c_ino.__uc_ino.__uc_size
164 #define c_old_atime __c_ino.__uc_ino.__uc_old_atime
165 #define c_atime __c_ino.__uc_ino.__uc_atime
166 #define c_atimensec __c_ino.__uc_ino.__uc_atimensec
167 #define c_mtime __c_ino.__uc_ino.__uc_mtime
168 #define c_mtimensec __c_ino.__uc_ino.__uc_mtimensec
169 #define c_birthtime __c_ino.__uc_ino.__uc_birthtime
170 #define c_birthtimensec __c_ino.__uc_ino.__uc_birthtimensec
171 #define c_old_mtime __c_ino.__uc_ino.__uc_old_mtime
172 #define c_rdev __c_ino.__uc_ino.__uc_rdev
173 #define c_file_flags __c_ino.__uc_ino.__uc_file_flags
174 #define c_uid __c_ino.__uc_ino.__uc_uid
175 #define c_gid __c_ino.__uc_ino.__uc_gid
178 #define TS_TAPE 1
179 #define TS_INODE 2
180 #define TS_ADDR 4
181 #define TS_BITS 3
182 #define TS_CLRI 6
183 #define TS_END 5
186 #define DR_NEWHEADER 0x0001
187 #define DR_NEWINODEFMT 0x0002
189 #define DUMPOUTFMT "%-18s %c %s"
191 #define DUMPINFMT "%18s %c %[^\n]\n"
193 #endif