solaris.h revision 5562
5562N/A/*
5562N/A * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5562N/A *
5562N/A * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT
5562N/A *
5562N/A */
5562N/A
5562N/A/*
5562N/A * Redistribution and use in source and binary forms, with or without modification,
5562N/A * are permitted provided that the following conditions are met:
5562N/A *
5562N/A * 1. Redistributions of source code must retain the above copyright notice,
5562N/A * this list of conditions and the following disclaimer.
5562N/A *
5562N/A * 2. Redistributions in binary form must reproduce the above copyright notice,
5562N/A * this list of conditions and the following disclaimer in the documentation
5562N/A * and/or other materials provided with the distribution.
5562N/A *
5562N/A * 3. Neither the name of the copyright holder nor the names of its contributors
5562N/A * may be used to endorse or promote products derived from this software without
5562N/A * specific prior written permission.
5562N/A *
5562N/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
5562N/A * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
5562N/A * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
5562N/A * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
5562N/A * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
5562N/A * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
5562N/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
5562N/A * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
5562N/A * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
5562N/A * OF THE POSSIBILITY OF SUCH DAMAGE.
5562N/A */
5562N/A
5562N/A#ifndef _SOLARIS_H
5562N/A#define _SOLARIS_H
5562N/A
5562N/A/*
5562N/A * Definitions of __* types
5562N/A */
5562N/Atypedef uint64_t __u64;
5562N/Atypedef uint32_t __u32;
5562N/Atypedef uint16_t __u16;
5562N/Atypedef uint8_t __u8;
5562N/A
5562N/A/*
5562N/A * Endian specific conversion macros
5562N/A */
5562N/A#if defined(_LITTLE_ENDIAN)
5562N/A#define htobe64(x) htonll(x)
5562N/A#define be64toh(x) htonll(x)
5562N/A#else /* BIG_ENDIAN */
5562N/A#define htobe64(x) (x)
5562N/A#define be64toh(x) (x)
5562N/A#endif /* BIG_ENDIAN */
5562N/A
5562N/A#endif /* _SOLARIS_H */