Add endian.h header. Simply includes sys/endian.h

<endian.h> has been accepted by the austin group.
This commit is contained in:
maya 2017-10-16 11:38:25 +00:00
parent d72cb7ab3f
commit a1df7aec01
3 changed files with 39 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.2151 2017/10/10 19:31:56 christos Exp $
# $NetBSD: mi,v 1.2152 2017/10/16 11:38:25 maya Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
./etc/mtree/set.comp comp-sys-root
@ -777,6 +777,7 @@
./usr/include/dns_sd.h comp-mdns-include mdns
./usr/include/dwarf.h comp-c-include
./usr/include/elf.h comp-c-include
./usr/include/endian.h comp-c-include
./usr/include/err.h comp-c-include
./usr/include/errno.h comp-c-include
./usr/include/eti.h comp-c-include

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.143 2016/10/02 17:19:00 kamil Exp $
# $NetBSD: Makefile,v 1.144 2017/10/16 11:38:25 maya Exp $
# @(#)Makefile 8.2 (Berkeley) 1/4/94
# Doing a make includes builds /usr/include
@ -8,8 +8,8 @@ NOOBJ= # defined
# Missing: mp.h
INCS= a.out.h aio.h ar.h assert.h atomic.h \
bitstring.h bm.h cdbw.h complex.h cpio.h ctype.h \
db.h dirent.h disktab.h dlfcn.h err.h errno.h fenv.h fmtmsg.h fnmatch.h \
bitstring.h bm.h cdbw.h complex.h cpio.h ctype.h db.h dirent.h \
disktab.h dlfcn.h endian.h err.h errno.h fenv.h fmtmsg.h fnmatch.h \
fstab.h fts.h ftw.h getopt.h glob.h grp.h ifaddrs.h iconv.h \
inttypes.h iso646.h kvm.h langinfo.h libgen.h \
limits.h link.h link_aout.h link_elf.h locale.h \

34
include/endian.h Normal file
View File

@ -0,0 +1,34 @@
/* $NetBSD: endian.h,v 1.1 2017/10/16 11:38:25 maya Exp $ */
/*-
* Copyright (c) 2017 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _ENDIAN_H_
#define _ENDIAN_H_
#include <sys/endian.h>
#endif /* !_ENDIAN_H_ */