Bug #1777 » endian-hdrs.diff
usr/src/head/Makefile Tue Nov 29 11:46:16 2011 +1100 → usr/src/head/Makefile Fri Dec 23 08:16:07 2011 +0000 | ||
---|---|---|
47 | 47 |
assert.h \ |
48 | 48 |
atomic.h \ |
49 | 49 |
attr.h \ |
50 |
byteswap.h \ |
|
50 | 51 |
config_admin.h \ |
51 | 52 |
cpio.h \ |
52 | 53 |
crypt.h \ |
... | ... | |
60 | 61 |
dlfcn.h \ |
61 | 62 |
door.h \ |
62 | 63 |
elf.h \ |
64 |
endian.h \ |
|
63 | 65 |
err.h \ |
64 | 66 |
errno.h \ |
65 | 67 |
euc.h \ |
/dev/null Thu Jan 01 00:00:00 1970 +0000 → usr/src/head/byteswap.h Fri Dec 23 08:16:07 2011 +0000 | ||
---|---|---|
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, Version 1.0 only |
|
6 |
* (the "License"). You may not use this file except in compliance |
|
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 2011 Nexenta Systems, Inc. All rights reserved. |
|
24 |
* Use is subject to license terms. |
|
25 |
*/ |
|
26 | ||
27 |
#ifndef _BYTESWAP_H |
|
28 |
#define _BYTESWAP_H |
|
29 | ||
30 |
#include <sys/byteorder.h> |
|
31 | ||
32 |
#define bswap_8 BSWAP_8 |
|
33 |
#define bswap_16 BSWAP_16 |
|
34 |
#define bswap_32 BSWAP_32 |
|
35 |
#define bswap_64 BSWAP_64 |
|
36 | ||
37 |
#endif /* _BYTESWAP_H */ |
/dev/null Thu Jan 01 00:00:00 1970 +0000 → usr/src/head/endian.h Fri Dec 23 08:16:07 2011 +0000 | ||
---|---|---|
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, Version 1.0 only |
|
6 |
* (the "License"). You may not use this file except in compliance |
|
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 2011 Nexenta Systems, Inc. All rights reserved. |
|
24 |
* Use is subject to license terms. |
|
25 |
*/ |
|
26 | ||
27 |
#ifndef _ENDIAN_H |
|
28 |
#define _ENDIAN_H |
|
29 | ||
30 |
#include <sys/isa_defs.h> |
|
31 | ||
32 |
#define __LITTLE_ENDIAN 1234 |
|
33 |
#define __BIG_ENDIAN 4321 |
|
34 | ||
35 |
#if defined(_LITTLE_ENDIAN) |
|
36 |
#define __BYTE_ORDER __LITTLE_ENDIAN |
|
37 |
#elif defined(_BIG_ENDIAN) |
|
38 |
#define __BYTE_ORDER __BIG_ENDIAN |
|
39 |
#endif |
|
40 | ||
41 |
#define LITTLE_ENDIAN __LITTLE_ENDIAN |
|
42 |
#define BIG_ENDIAN __BIG_ENDIAN |
|
43 |
#define BYTE_ORDER __BYTE_ORDER |
|
44 | ||
45 |
#endif /* _ENDIAN_H */ |
usr/src/pkg/manifests/system-header.mf Tue Nov 29 11:46:16 2011 +1100 → usr/src/pkg/manifests/system-header.mf Fri Dec 23 08:16:07 2011 +0000 | ||
---|---|---|
330 | 330 |
file path=usr/include/bsm/audit_uevents.h |
331 | 331 |
file path=usr/include/bsm/devices.h |
332 | 332 |
file path=usr/include/bsm/libbsm.h |
333 |
file path=usr/include/byteswap.h |
|
333 | 334 |
file path=usr/include/config_admin.h |
334 | 335 |
file path=usr/include/cpio.h |
335 | 336 |
file path=usr/include/crypt.h |
... | ... | |
359 | 360 |
file path=usr/include/dlfcn.h |
360 | 361 |
file path=usr/include/door.h |
361 | 362 |
file path=usr/include/elf.h |
363 |
file path=usr/include/endian.h |
|
362 | 364 |
file path=usr/include/err.h |
363 | 365 |
file path=usr/include/errno.h |
364 | 366 |
file path=usr/include/eti.h |
- « Previous
- 1
- 2
- Next »