forked from conclusiveeng/lib9p
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Portions contributed by: Andy Fiddaman <[email protected]>
- Loading branch information
Showing
16 changed files
with
972 additions
and
166 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef __ILLUMOS_ENDIAN_H | ||
#define __ILLUMOS_ENDIAN_H | ||
|
||
/* | ||
* Shims to make illumos' endian headers and macros compatible | ||
* with FreeBSD's <sys/endian.h> | ||
*/ | ||
|
||
# include <endian.h> | ||
|
||
# define _COMPAT_LITTLE_ENDIAN 0x12345678 | ||
# define _COMPAT_BIG_ENDIAN 0x87654321 | ||
|
||
# ifdef _LITTLE_ENDIAN | ||
# define _BYTE_ORDER _COMPAT_LITTLE_ENDIAN | ||
# endif | ||
# ifdef _BIG_ENDIAN | ||
# define _BYTE_ORDER _COMPAT_BIG_ENDIAN | ||
# endif | ||
|
||
# undef _LITTLE_ENDIAN | ||
# undef _BIG_ENDIAN | ||
# define _LITTLE_ENDIAN _COMPAT_LITTLE_ENDIAN | ||
# define _BIG_ENDIAN _COMPAT_BIG_ENDIAN | ||
|
||
#endif /* __ILLUMOS_ENDIAN_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.