Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Add endian.h header. Simply includes sys/endian.h
details: https://anonhg.NetBSD.org/src/rev/df23ee03fdab
branches: trunk
changeset: 356836:df23ee03fdab
user: maya <maya%NetBSD.org@localhost>
date: Mon Oct 16 11:38:25 2017 +0000
description:
Add endian.h header. Simply includes sys/endian.h
<endian.h> has been accepted by the austin group.
diffstat:
distrib/sets/lists/comp/mi | 3 ++-
include/Makefile | 6 +++---
include/endian.h | 34 ++++++++++++++++++++++++++++++++++
3 files changed, 39 insertions(+), 4 deletions(-)
diffs (75 lines):
diff -r 4fd92f66000a -r df23ee03fdab distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi Mon Oct 16 11:37:20 2017 +0000
+++ b/distrib/sets/lists/comp/mi Mon Oct 16 11:38:25 2017 +0000
@@ -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
diff -r 4fd92f66000a -r df23ee03fdab include/Makefile
--- a/include/Makefile Mon Oct 16 11:37:20 2017 +0000
+++ b/include/Makefile Mon Oct 16 11:38:25 2017 +0000
@@ -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 @@
# 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 \
diff -r 4fd92f66000a -r df23ee03fdab include/endian.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/include/endian.h Mon Oct 16 11:38:25 2017 +0000
@@ -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_ */
Home |
Main Index |
Thread Index |
Old Index