Project

General

Profile

Bug #1777 » endian-hdrs.diff

Andrew Stormont, 2011-11-14 11:44 PM

View differences:

usr/src/head/Makefile Sat Nov 12 20:03:58 2011 +0000 → usr/src/head/Makefile Sun Nov 13 07:28:47 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 Sun Nov 13 07:28:47 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 Sun Nov 13 07:28:47 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
#define __LITTLE_ENDIAN 1234
31
#define __BIG_ENDIAN    4321
32

  
33
#if defined(__i386__) || defined(__x86_64__)
34
#define __BYTE_ORDER    __LITTLE_ENDIAN
35
#elif defined(__sparc__)
36
#define __BYTE_ORDER    __BIG_ENDIAN
37
#endif
38

  
39
#define LITTLE_ENDIAN   __LITTLE_ENDIAN
40
#define BIG_ENDIAN      __BIG_ENDIAN
41
#define BYTE_ORDER      __BYTE_ORDER
42

  
43
#endif	/* _ENDIAN_H */
usr/src/pkg/manifests/system-header.mf Sat Nov 12 20:03:58 2011 +0000 → usr/src/pkg/manifests/system-header.mf Sun Nov 13 07:28:47 2011 +0000
318 318
file path=usr/include/atomic.h
319 319
file path=usr/include/attr.h
320 320
file path=usr/include/auth_attr.h
321
file path=usr/include/byteswap.h
321 322
file path=usr/include/bsm/adt.h
322 323
file path=usr/include/bsm/adt_event.h
323 324
file path=usr/include/bsm/audit.h
......
355 356
file path=usr/include/dlfcn.h
356 357
file path=usr/include/door.h
357 358
file path=usr/include/elf.h
359
file path=usr/include/endian.h
358 360
file path=usr/include/err.h
359 361
file path=usr/include/errno.h
360 362
file path=usr/include/euc.h
(1-1/2)