Add definitions of C99 integer format conversion macros.

XXX Fastest minimum-width integer types haven't been decided upon yet.
This commit is contained in:
kleink 2001-04-15 17:13:04 +00:00
parent 6a8763432f
commit f06533a1ee
84 changed files with 2376 additions and 91 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2001/04/15 15:29:02 kleink Exp $
# $NetBSD: Makefile,v 1.17 2001/04/15 17:13:04 kleink Exp $
KDIR= /sys/arch/alpha/include
INCSDIR= /usr/include/alpha
@ -10,7 +10,8 @@ INCS= alpha_cpu.h ansi.h aout_machdep.h asm.h atomic.h autoconf.h \
ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
fbio.h float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kbio.h kcore.h \
limits.h lock.h \
math.h \

View File

@ -0,0 +1,175 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:04 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Klaus Klein.
*
* 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.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 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 _ALPHA_INT_FMTIO_H_
#define _ALPHA_INT_FMTIO_H_
/*
* 7.8.1 Macros for format specifiers
*/
/* fprintf macros for signed integers */
#define PRId8 "d" /* int8_t */
#define PRId16 "d" /* int16_t */
#define PRId32 "d" /* int32_t */
#define PRId64 "lld" /* int64_t */
#define PRIdLEAST8 "d" /* int_least8_t */
#define PRIdLEAST16 "d" /* int_least16_t */
#define PRIdLEAST32 "d" /* int_least32_t */
#define PRIdLEAST64 "ld" /* int_least64_t */
#define PRIdMAX "ld" /* intmax_t */
#define PRIdPTR "ld" /* intptr_t */
#define PRIi8 "i" /* int8_t */
#define PRIi16 "i" /* int16_t */
#define PRIi32 "i" /* int32_t */
#define PRIi64 "li" /* int64_t */
#define PRIiLEAST8 "i" /* int_least8_t */
#define PRIiLEAST16 "i" /* int_least16_t */
#define PRIiLEAST32 "i" /* int_least32_t */
#define PRIiLEAST64 "li" /* int_least64_t */
#define PRIiMAX "li" /* intmax_t */
#define PRIiPTR "li" /* intptr_t */
/* fprintf macros for unsigned integers */
#define PRIo8 "o" /* uint8_t */
#define PRIo16 "o" /* uint16_t */
#define PRIo32 "o" /* uint32_t */
#define PRIo64 "lo" /* uint64_t */
#define PRIoLEAST8 "o" /* uint_least8_t */
#define PRIoLEAST16 "o" /* uint_least16_t */
#define PRIoLEAST32 "o" /* uint_least32_t */
#define PRIoLEAST64 "lo" /* uint_least64_t */
#define PRIoMAX "lo" /* uintmax_t */
#define PRIoPTR "lo" /* uintptr_t */
#define PRIu8 "u" /* uint8_t */
#define PRIu16 "u" /* uint16_t */
#define PRIu32 "u" /* uint32_t */
#define PRIu64 "lu" /* uint64_t */
#define PRIuLEAST8 "u" /* uint_least8_t */
#define PRIuLEAST16 "u" /* uint_least16_t */
#define PRIuLEAST32 "u" /* uint_least32_t */
#define PRIuLEAST64 "lu" /* uint_least64_t */
#define PRIuMAX "lu" /* uintmax_t */
#define PRIuPTR "lu" /* uintptr_t */
#define PRIx8 "x" /* uint8_t */
#define PRIx16 "x" /* uint16_t */
#define PRIx32 "x" /* uint32_t */
#define PRIx64 "lx" /* uint64_t */
#define PRIxLEAST8 "x" /* uint_least8_t */
#define PRIxLEAST16 "x" /* uint_least16_t */
#define PRIxLEAST32 "x" /* uint_least32_t */
#define PRIxLEAST64 "lx" /* uint_least64_t */
#define PRIxMAX "lx" /* uintmax_t */
#define PRIxPTR "lx" /* uintptr_t */
#define PRIX8 "X" /* uint8_t */
#define PRIX16 "X" /* uint16_t */
#define PRIX32 "X" /* uint32_t */
#define PRIX64 "lX" /* uint64_t */
#define PRIXLEAST8 "X" /* uint_least8_t */
#define PRIXLEAST16 "X" /* uint_least16_t */
#define PRIXLEAST32 "X" /* uint_least32_t */
#define PRIXLEAST64 "lX" /* uint_least64_t */
#define PRIXMAX "lX" /* uintmax_t */
#define PRIXPTR "lX" /* uintptr_t */
/* fscanf macros for signed integers */
#define SCNd8 "hhd" /* int8_t */
#define SCNd16 "hd" /* int16_t */
#define SCNd32 "d" /* int32_t */
#define SCNd64 "ld" /* int64_t */
#define SCNdLEAST8 "hhd" /* int_least8_t */
#define SCNdLEAST16 "hd" /* int_least16_t */
#define SCNdLEAST32 "d" /* int_least32_t */
#define SCNdLEAST64 "ld" /* int_least64_t */
#define SCNdMAX "ld" /* intmax_t */
#define SCNdPTR "ld" /* intptr_t */
#define SCNi8 "hhi" /* int8_t */
#define SCNi16 "hi" /* int16_t */
#define SCNi32 "i" /* int32_t */
#define SCNi64 "li" /* int64_t */
#define SCNiLEAST8 "hhi" /* int_least8_t */
#define SCNiLEAST16 "hi" /* int_least16_t */
#define SCNiLEAST32 "i" /* int_least32_t */
#define SCNiLEAST64 "li" /* int_least64_t */
#define SCNiMAX "li" /* intmax_t */
#define SCNiPTR "li" /* intptr_t */
/* fscanf macros for unsigned integers */
#define SCNo8 "hho" /* uint8_t */
#define SCNo16 "ho" /* uint16_t */
#define SCNo32 "o" /* uint32_t */
#define SCNo64 "lo" /* uint64_t */
#define SCNoLEAST8 "hho" /* uint_least8_t */
#define SCNoLEAST16 "ho" /* uint_least16_t */
#define SCNoLEAST32 "o" /* uint_least32_t */
#define SCNoLEAST64 "lo" /* uint_least64_t */
#define SCNoMAX "lo" /* uintmax_t */
#define SCNoPTR "lo" /* uintptr_t */
#define SCNu8 "hhu" /* uint8_t */
#define SCNu16 "hu" /* uint16_t */
#define SCNu32 "u" /* uint32_t */
#define SCNu64 "lu" /* uint64_t */
#define SCNuLEAST8 "hhu" /* uint_least8_t */
#define SCNuLEAST16 "hu" /* uint_least16_t */
#define SCNuLEAST32 "u" /* uint_least32_t */
#define SCNuLEAST64 "lu" /* uint_least64_t */
#define SCNuMAX "lu" /* uintmax_t */
#define SCNuPTR "lu" /* uintptr_t */
#define SCNx8 "hhx" /* uint8_t */
#define SCNx16 "hx" /* uint16_t */
#define SCNx32 "x" /* uint32_t */
#define SCNx64 "lx" /* uint64_t */
#define SCNxLEAST8 "hhx" /* uint_least8_t */
#define SCNxLEAST16 "hx" /* uint_least16_t */
#define SCNxLEAST32 "x" /* uint_least32_t */
#define SCNxLEAST64 "lx" /* uint_least64_t */
#define SCNxMAX "lx" /* uintmax_t */
#define SCNxPTR "lx" /* uintptr_t */
#endif /* !_ALPHA_INT_FMTIO_H_ */

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2001/04/15 15:29:03 kleink Exp $
# $NetBSD: Makefile,v 1.13 2001/04/15 17:13:05 kleink Exp $
KDIR= /sys/arch/amiga/include
INCSDIR= /usr/include/amiga
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
fbio.h float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kcore.h \
limits.h lock.h \
math.h mtpr.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:05 kleink Exp $ */
#include <m68k/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2001/04/15 15:29:03 kleink Exp $
# $NetBSD: Makefile,v 1.8 2001/04/15 17:13:05 kleink Exp $
KDIR= /sys/arch/amigappc/include
INCSDIR= /usr/include/amigappc
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h \
fbio.h float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kcore.h \
limits.h \
math.h mtpr.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:05 kleink Exp $ */
#include <powerpc/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.20 2001/04/15 15:29:03 kleink Exp $
# $NetBSD: Makefile,v 1.21 2001/04/15 17:13:06 kleink Exp $
KDIR= /sys/arch/arc/include
INCSDIR= /usr/include/arc
@ -12,7 +12,7 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
float.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
kcore.h kdbparam.h \
limits.h lock.h \
math.h mips_opcode.h mouse.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:06 kleink Exp $ */
#include <mips/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2001/04/15 15:29:03 kleink Exp $
# $NetBSD: Makefile,v 1.15 2001/04/15 17:13:06 kleink Exp $
KDIR= /sys/arch/arm/include
INCSDIR= /usr/include/arm
@ -10,8 +10,8 @@ INCS= ansi.h aout_machdep.h armreg.h asm.h \
elf_machdep.h endian_machdep.h \
float.h fp.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h ipkdb.h \
isa_machdep.h isapnp_machdep.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
ipkdb.h isa_machdep.h isapnp_machdep.h \
limits.h lock.h \
math.h \
ofisa_machdep.h ofw.h \

View File

@ -0,0 +1,175 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:06 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Klaus Klein.
*
* 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.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 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 _ARM_INT_FMTIO_H_
#define _ARM_INT_FMTIO_H_
/*
* 7.8.1 Macros for format specifiers
*/
/* fprintf macros for signed integers */
#define PRId8 "d" /* int8_t */
#define PRId16 "d" /* int16_t */
#define PRId32 "d" /* int32_t */
#define PRId64 "lld" /* int64_t */
#define PRIdLEAST8 "d" /* int_least8_t */
#define PRIdLEAST16 "d" /* int_least16_t */
#define PRIdLEAST32 "d" /* int_least32_t */
#define PRIdLEAST64 "lld" /* int_least64_t */
#define PRIdMAX "lld" /* intmax_t */
#define PRIdPTR "d" /* intptr_t */
#define PRIi8 "i" /* int8_t */
#define PRIi16 "i" /* int16_t */
#define PRIi32 "i" /* int32_t */
#define PRIi64 "lli" /* int64_t */
#define PRIiLEAST8 "i" /* int_least8_t */
#define PRIiLEAST16 "i" /* int_least16_t */
#define PRIiLEAST32 "i" /* int_least32_t */
#define PRIiLEAST64 "lli" /* int_least64_t */
#define PRIiMAX "lli" /* intmax_t */
#define PRIiPTR "i" /* intptr_t */
/* fprintf macros for unsigned integers */
#define PRIo8 "o" /* uint8_t */
#define PRIo16 "o" /* uint16_t */
#define PRIo32 "o" /* uint32_t */
#define PRIo64 "llo" /* uint64_t */
#define PRIoLEAST8 "o" /* uint_least8_t */
#define PRIoLEAST16 "o" /* uint_least16_t */
#define PRIoLEAST32 "o" /* uint_least32_t */
#define PRIoLEAST64 "llo" /* uint_least64_t */
#define PRIoMAX "llo" /* uintmax_t */
#define PRIoPTR "o" /* uintptr_t */
#define PRIu8 "u" /* uint8_t */
#define PRIu16 "u" /* uint16_t */
#define PRIu32 "u" /* uint32_t */
#define PRIu64 "llu" /* uint64_t */
#define PRIuLEAST8 "u" /* uint_least8_t */
#define PRIuLEAST16 "u" /* uint_least16_t */
#define PRIuLEAST32 "u" /* uint_least32_t */
#define PRIuLEAST64 "llu" /* uint_least64_t */
#define PRIuMAX "llu" /* uintmax_t */
#define PRIuPTR "u" /* uintptr_t */
#define PRIx8 "x" /* uint8_t */
#define PRIx16 "x" /* uint16_t */
#define PRIx32 "x" /* uint32_t */
#define PRIx64 "llx" /* uint64_t */
#define PRIxLEAST8 "x" /* uint_least8_t */
#define PRIxLEAST16 "x" /* uint_least16_t */
#define PRIxLEAST32 "x" /* uint_least32_t */
#define PRIxLEAST64 "llx" /* uint_least64_t */
#define PRIxMAX "llx" /* uintmax_t */
#define PRIxPTR "x" /* uintptr_t */
#define PRIX8 "X" /* uint8_t */
#define PRIX16 "X" /* uint16_t */
#define PRIX32 "X" /* uint32_t */
#define PRIX64 "llX" /* uint64_t */
#define PRIXLEAST8 "X" /* uint_least8_t */
#define PRIXLEAST16 "X" /* uint_least16_t */
#define PRIXLEAST32 "X" /* uint_least32_t */
#define PRIXLEAST64 "llX" /* uint_least64_t */
#define PRIXMAX "llX" /* uintmax_t */
#define PRIXPTR "X" /* uintptr_t */
/* fscanf macros for signed integers */
#define SCNd8 "hhd" /* int8_t */
#define SCNd16 "hd" /* int16_t */
#define SCNd32 "d" /* int32_t */
#define SCNd64 "lld" /* int64_t */
#define SCNdLEAST8 "hhd" /* int_least8_t */
#define SCNdLEAST16 "hd" /* int_least16_t */
#define SCNdLEAST32 "d" /* int_least32_t */
#define SCNdLEAST64 "lld" /* int_least64_t */
#define SCNdMAX "lld" /* intmax_t */
#define SCNdPTR "d" /* intptr_t */
#define SCNi8 "hhi" /* int8_t */
#define SCNi16 "hi" /* int16_t */
#define SCNi32 "i" /* int32_t */
#define SCNi64 "lli" /* int64_t */
#define SCNiLEAST8 "hhi" /* int_least8_t */
#define SCNiLEAST16 "hi" /* int_least16_t */
#define SCNiLEAST32 "i" /* int_least32_t */
#define SCNiLEAST64 "lli" /* int_least64_t */
#define SCNiMAX "lli" /* intmax_t */
#define SCNiPTR "i" /* intptr_t */
/* fscanf macros for unsigned integers */
#define SCNo8 "hho" /* uint8_t */
#define SCNo16 "ho" /* uint16_t */
#define SCNo32 "o" /* uint32_t */
#define SCNo64 "llo" /* uint64_t */
#define SCNoLEAST8 "hho" /* uint_least8_t */
#define SCNoLEAST16 "ho" /* uint_least16_t */
#define SCNoLEAST32 "o" /* uint_least32_t */
#define SCNoLEAST64 "llo" /* uint_least64_t */
#define SCNoMAX "llo" /* uintmax_t */
#define SCNoPTR "o" /* uintptr_t */
#define SCNu8 "hhu" /* uint8_t */
#define SCNu16 "hu" /* uint16_t */
#define SCNu32 "u" /* uint32_t */
#define SCNu64 "llu" /* uint64_t */
#define SCNuLEAST8 "hhu" /* uint_least8_t */
#define SCNuLEAST16 "hu" /* uint_least16_t */
#define SCNuLEAST32 "u" /* uint_least32_t */
#define SCNuLEAST64 "llu" /* uint_least64_t */
#define SCNuMAX "llu" /* uintmax_t */
#define SCNuPTR "u" /* uintptr_t */
#define SCNx8 "hhx" /* uint8_t */
#define SCNx16 "hx" /* uint16_t */
#define SCNx32 "x" /* uint32_t */
#define SCNx64 "llx" /* uint64_t */
#define SCNxLEAST8 "hhx" /* uint_least8_t */
#define SCNxLEAST16 "hx" /* uint_least16_t */
#define SCNxLEAST32 "x" /* uint_least32_t */
#define SCNxLEAST64 "llx" /* uint_least64_t */
#define SCNxMAX "llx" /* uintmax_t */
#define SCNxPTR "x" /* uintptr_t */
#endif /* !_ARM_INT_FMTIO_H_ */

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2001/04/15 15:29:04 kleink Exp $
# $NetBSD: Makefile,v 1.8 2001/04/15 17:13:06 kleink Exp $
KDIR= /sys/arch/arm26/include
INCSDIR= /usr/include/arm26
@ -10,8 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h fp.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
ipkdb.h irq.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h ipkdb.h irq.h \
limits.h lock.h \
math.h \
param.h pcb.h pmap.h proc.h profile.h ptrace.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:07 kleink Exp $ */
#include <arm/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2001/04/15 15:29:04 kleink Exp $
# $NetBSD: Makefile,v 1.15 2001/04/15 17:13:07 kleink Exp $
KDIR= /sys/arch/arm32/include
INCSDIR= /usr/include/arm32
@ -10,7 +10,7 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h fp.h frame.h \
ieee.h ieeefp.h iic.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h io.h ipkdb.h irqhandler.h \
joystick.h \
katelib.h kbd.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:07 kleink Exp $ */
#include <arm/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.15 2001/04/15 15:29:04 kleink Exp $
# $NetBSD: Makefile,v 1.16 2001/04/15 17:13:07 kleink Exp $
KDIR= /sys/arch/atari/include
INCSDIR= /usr/include/atari
@ -10,7 +10,7 @@ INCS= ahdilabel.h ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h frame.h \
intr.h ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
kcore.h \
limits.h lock.h \
math.h msioctl.h mtpr.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:07 kleink Exp $ */
#include <m68k/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2001/04/15 15:29:04 kleink Exp $
# $NetBSD: Makefile,v 1.12 2001/04/15 17:13:08 kleink Exp $
KDIR= /sys/arch/bebox/include
INCSDIR= /usr/include/bebox
@ -10,8 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h fpu.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
ipkdb.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h ipkdb.h \
kcore.h kgdb.h \
limits.h lock.h \
machine_type.h math.h mouse.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:08 kleink Exp $ */
#include <powerpc/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2001/04/15 15:29:05 kleink Exp $
# $NetBSD: Makefile,v 1.9 2001/04/15 17:13:08 kleink Exp $
KDIR= /sys/arch/cobalt/include
INCSDIR= /usr/include/cobalt
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
float.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kcore.h kdbparam.h \
leds.h limits.h lock.h locore.h \
math.h mips_opcode.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:08 kleink Exp $ */
#include <mips/int_fmtio.h>

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:19 kleink Exp $ */
#include <arm/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2001/04/15 15:29:05 kleink Exp $
# $NetBSD: Makefile,v 1.5 2001/04/15 17:13:08 kleink Exp $
KDIR= /sys/arch/dreamcast/include
INCSDIR= /usr/include/dreamcast
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
limits.h lock.h \
math.h mmeye.h \
param.h pcb.h pio.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:08 kleink Exp $ */
#include <sh3/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2001/04/15 15:29:05 kleink Exp $
# $NetBSD: Makefile,v 1.12 2001/04/15 17:13:09 kleink Exp $
KDIR= /sys/arch/evbsh3/include
INCSDIR= /usr/include/evbsh3
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
limits.h lock.h \
math.h \
param.h pcb.h pio.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:09 kleink Exp $ */
#include <sh3/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2001/04/15 15:29:05 kleink Exp $
# $NetBSD: Makefile,v 1.15 2001/04/15 17:13:09 kleink Exp $
KDIR= /sys/arch/hp300/include
INCSDIR= /usr/include/hp300
@ -11,7 +11,8 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
float.h frame.h \
hp300spu.h hpux_machdep.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kcore.h \
limits.h lock.h \
math.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:09 kleink Exp $ */
#include <m68k/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2001/04/15 15:29:06 kleink Exp $
# $NetBSD: Makefile,v 1.8 2001/04/15 17:13:10 kleink Exp $
KDIR= /sys/arch/hpcarm/include
INCSDIR= /usr/include/hpcarm
@ -10,8 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h fp.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h io.h \
irqhandler.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h io.h irqhandler.h \
limits.h lock.h \
math.h \
param.h pcb.h platid.h platid_generated.h platid_mask.h pmap.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:10 kleink Exp $ */
#include <arm/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2001/04/15 15:29:06 kleink Exp $
# $NetBSD: Makefile,v 1.10 2001/04/15 17:13:10 kleink Exp $
KDIR= /sys/arch/hpcmips/include
INCSDIR= /usr/include/hpcmips
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
float.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kbdparam.h kcore.h \
limits.h lock.h locore.h \
math.h mips_opcode.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:10 kleink Exp $ */
#include <mips/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2001/04/15 15:29:06 kleink Exp $
# $NetBSD: Makefile,v 1.5 2001/04/15 17:13:10 kleink Exp $
KDIR= /sys/arch/hpcsh/include
INCSDIR= /usr/include/hpcsh
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
limits.h lock.h \
math.h \
param.h pcb.h pio.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:10 kleink Exp $ */
#include <sh3/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2001/04/15 15:29:06 kleink Exp $
# $NetBSD: Makefile,v 1.18 2001/04/15 17:13:11 kleink Exp $
KDIR= /sys/arch/i386/include
INCSDIR= /usr/include/i386
@ -11,7 +11,8 @@ INCS= ansi.h aout_machdep.h apmvar.h asm.h \
float.h frame.h freebsd_machdep.h \
gdt.h \
ibcs2_machdep.h ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
joystick.h \
kcore.h \
limits.h lock.h \

View File

@ -0,0 +1,175 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:11 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Klaus Klein.
*
* 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.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 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 _I386_INT_FMTIO_H_
#define _I386_INT_FMTIO_H_
/*
* 7.8.1 Macros for format specifiers
*/
/* fprintf macros for signed integers */
#define PRId8 "d" /* int8_t */
#define PRId16 "d" /* int16_t */
#define PRId32 "d" /* int32_t */
#define PRId64 "lld" /* int64_t */
#define PRIdLEAST8 "d" /* int_least8_t */
#define PRIdLEAST16 "d" /* int_least16_t */
#define PRIdLEAST32 "d" /* int_least32_t */
#define PRIdLEAST64 "lld" /* int_least64_t */
#define PRIdMAX "lld" /* intmax_t */
#define PRIdPTR "d" /* intptr_t */
#define PRIi8 "i" /* int8_t */
#define PRIi16 "i" /* int16_t */
#define PRIi32 "i" /* int32_t */
#define PRIi64 "lli" /* int64_t */
#define PRIiLEAST8 "i" /* int_least8_t */
#define PRIiLEAST16 "i" /* int_least16_t */
#define PRIiLEAST32 "i" /* int_least32_t */
#define PRIiLEAST64 "lli" /* int_least64_t */
#define PRIiMAX "lli" /* intmax_t */
#define PRIiPTR "i" /* intptr_t */
/* fprintf macros for unsigned integers */
#define PRIo8 "o" /* uint8_t */
#define PRIo16 "o" /* uint16_t */
#define PRIo32 "o" /* uint32_t */
#define PRIo64 "llo" /* uint64_t */
#define PRIoLEAST8 "o" /* uint_least8_t */
#define PRIoLEAST16 "o" /* uint_least16_t */
#define PRIoLEAST32 "o" /* uint_least32_t */
#define PRIoLEAST64 "llo" /* uint_least64_t */
#define PRIoMAX "llo" /* uintmax_t */
#define PRIoPTR "o" /* uintptr_t */
#define PRIu8 "u" /* uint8_t */
#define PRIu16 "u" /* uint16_t */
#define PRIu32 "u" /* uint32_t */
#define PRIu64 "llu" /* uint64_t */
#define PRIuLEAST8 "u" /* uint_least8_t */
#define PRIuLEAST16 "u" /* uint_least16_t */
#define PRIuLEAST32 "u" /* uint_least32_t */
#define PRIuLEAST64 "llu" /* uint_least64_t */
#define PRIuMAX "llu" /* uintmax_t */
#define PRIuPTR "u" /* uintptr_t */
#define PRIx8 "x" /* uint8_t */
#define PRIx16 "x" /* uint16_t */
#define PRIx32 "x" /* uint32_t */
#define PRIx64 "llx" /* uint64_t */
#define PRIxLEAST8 "x" /* uint_least8_t */
#define PRIxLEAST16 "x" /* uint_least16_t */
#define PRIxLEAST32 "x" /* uint_least32_t */
#define PRIxLEAST64 "llx" /* uint_least64_t */
#define PRIxMAX "llx" /* uintmax_t */
#define PRIxPTR "x" /* uintptr_t */
#define PRIX8 "X" /* uint8_t */
#define PRIX16 "X" /* uint16_t */
#define PRIX32 "X" /* uint32_t */
#define PRIX64 "llX" /* uint64_t */
#define PRIXLEAST8 "X" /* uint_least8_t */
#define PRIXLEAST16 "X" /* uint_least16_t */
#define PRIXLEAST32 "X" /* uint_least32_t */
#define PRIXLEAST64 "llX" /* uint_least64_t */
#define PRIXMAX "llX" /* uintmax_t */
#define PRIXPTR "X" /* uintptr_t */
/* fscanf macros for signed integers */
#define SCNd8 "hhd" /* int8_t */
#define SCNd16 "hd" /* int16_t */
#define SCNd32 "d" /* int32_t */
#define SCNd64 "lld" /* int64_t */
#define SCNdLEAST8 "hhd" /* int_least8_t */
#define SCNdLEAST16 "hd" /* int_least16_t */
#define SCNdLEAST32 "d" /* int_least32_t */
#define SCNdLEAST64 "lld" /* int_least64_t */
#define SCNdMAX "lld" /* intmax_t */
#define SCNdPTR "d" /* intptr_t */
#define SCNi8 "hhi" /* int8_t */
#define SCNi16 "hi" /* int16_t */
#define SCNi32 "i" /* int32_t */
#define SCNi64 "lli" /* int64_t */
#define SCNiLEAST8 "hhi" /* int_least8_t */
#define SCNiLEAST16 "hi" /* int_least16_t */
#define SCNiLEAST32 "i" /* int_least32_t */
#define SCNiLEAST64 "lli" /* int_least64_t */
#define SCNiMAX "lli" /* intmax_t */
#define SCNiPTR "i" /* intptr_t */
/* fscanf macros for unsigned integers */
#define SCNo8 "hho" /* uint8_t */
#define SCNo16 "ho" /* uint16_t */
#define SCNo32 "o" /* uint32_t */
#define SCNo64 "llo" /* uint64_t */
#define SCNoLEAST8 "hho" /* uint_least8_t */
#define SCNoLEAST16 "ho" /* uint_least16_t */
#define SCNoLEAST32 "o" /* uint_least32_t */
#define SCNoLEAST64 "llo" /* uint_least64_t */
#define SCNoMAX "llo" /* uintmax_t */
#define SCNoPTR "o" /* uintptr_t */
#define SCNu8 "hhu" /* uint8_t */
#define SCNu16 "hu" /* uint16_t */
#define SCNu32 "u" /* uint32_t */
#define SCNu64 "llu" /* uint64_t */
#define SCNuLEAST8 "hhu" /* uint_least8_t */
#define SCNuLEAST16 "hu" /* uint_least16_t */
#define SCNuLEAST32 "u" /* uint_least32_t */
#define SCNuLEAST64 "llu" /* uint_least64_t */
#define SCNuMAX "llu" /* uintmax_t */
#define SCNuPTR "u" /* uintptr_t */
#define SCNx8 "hhx" /* uint8_t */
#define SCNx16 "hx" /* uint16_t */
#define SCNx32 "x" /* uint32_t */
#define SCNx64 "llx" /* uint64_t */
#define SCNxLEAST8 "hhx" /* uint_least8_t */
#define SCNxLEAST16 "hx" /* uint_least16_t */
#define SCNxLEAST32 "x" /* uint_least32_t */
#define SCNxLEAST64 "llx" /* uint_least64_t */
#define SCNxMAX "llx" /* uintmax_t */
#define SCNxPTR "x" /* uintptr_t */
#endif /* !_I386_INT_FMTIO_H_ */

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2001/04/15 15:29:07 kleink Exp $
# $NetBSD: Makefile,v 1.8 2001/04/15 17:13:11 kleink Exp $
KDIR= /sys/arch/luna68k/include
INCSDIR= /usr/include/luna68k
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
endian.h endian_machdep.h \
float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kcore.h \
limits.h lock.h \
math.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:11 kleink Exp $ */
#include <m68k/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2001/04/15 15:29:07 kleink Exp $
# $NetBSD: Makefile,v 1.14 2001/04/15 17:13:11 kleink Exp $
KDIR= /sys/arch/m68k/include
INCSDIR= /usr/include/m68k
@ -11,7 +11,7 @@ INCS= ansi.h aout_machdep.h asm.h asm_single.h \
elf_machdep.h endian.h endian_machdep.h \
float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
kcore.h \
limits.h lock.h \
m68k.h math.h \

View File

@ -0,0 +1,175 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:11 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Klaus Klein.
*
* 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.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 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 _M68K_INT_FMTIO_H_
#define _M68K_INT_FMTIO_H_
/*
* 7.8.1 Macros for format specifiers
*/
/* fprintf macros for signed integers */
#define PRId8 "d" /* int8_t */
#define PRId16 "d" /* int16_t */
#define PRId32 "d" /* int32_t */
#define PRId64 "lld" /* int64_t */
#define PRIdLEAST8 "d" /* int_least8_t */
#define PRIdLEAST16 "d" /* int_least16_t */
#define PRIdLEAST32 "d" /* int_least32_t */
#define PRIdLEAST64 "lld" /* int_least64_t */
#define PRIdMAX "lld" /* intmax_t */
#define PRIdPTR "d" /* intptr_t */
#define PRIi8 "i" /* int8_t */
#define PRIi16 "i" /* int16_t */
#define PRIi32 "i" /* int32_t */
#define PRIi64 "lli" /* int64_t */
#define PRIiLEAST8 "i" /* int_least8_t */
#define PRIiLEAST16 "i" /* int_least16_t */
#define PRIiLEAST32 "i" /* int_least32_t */
#define PRIiLEAST64 "lli" /* int_least64_t */
#define PRIiMAX "lli" /* intmax_t */
#define PRIiPTR "i" /* intptr_t */
/* fprintf macros for unsigned integers */
#define PRIo8 "o" /* uint8_t */
#define PRIo16 "o" /* uint16_t */
#define PRIo32 "o" /* uint32_t */
#define PRIo64 "llo" /* uint64_t */
#define PRIoLEAST8 "o" /* uint_least8_t */
#define PRIoLEAST16 "o" /* uint_least16_t */
#define PRIoLEAST32 "o" /* uint_least32_t */
#define PRIoLEAST64 "llo" /* uint_least64_t */
#define PRIoMAX "llo" /* uintmax_t */
#define PRIoPTR "o" /* uintptr_t */
#define PRIu8 "u" /* uint8_t */
#define PRIu16 "u" /* uint16_t */
#define PRIu32 "u" /* uint32_t */
#define PRIu64 "llu" /* uint64_t */
#define PRIuLEAST8 "u" /* uint_least8_t */
#define PRIuLEAST16 "u" /* uint_least16_t */
#define PRIuLEAST32 "u" /* uint_least32_t */
#define PRIuLEAST64 "llu" /* uint_least64_t */
#define PRIuMAX "llu" /* uintmax_t */
#define PRIuPTR "u" /* uintptr_t */
#define PRIx8 "x" /* uint8_t */
#define PRIx16 "x" /* uint16_t */
#define PRIx32 "x" /* uint32_t */
#define PRIx64 "llx" /* uint64_t */
#define PRIxLEAST8 "x" /* uint_least8_t */
#define PRIxLEAST16 "x" /* uint_least16_t */
#define PRIxLEAST32 "x" /* uint_least32_t */
#define PRIxLEAST64 "llx" /* uint_least64_t */
#define PRIxMAX "llx" /* uintmax_t */
#define PRIxPTR "x" /* uintptr_t */
#define PRIX8 "X" /* uint8_t */
#define PRIX16 "X" /* uint16_t */
#define PRIX32 "X" /* uint32_t */
#define PRIX64 "llX" /* uint64_t */
#define PRIXLEAST8 "X" /* uint_least8_t */
#define PRIXLEAST16 "X" /* uint_least16_t */
#define PRIXLEAST32 "X" /* uint_least32_t */
#define PRIXLEAST64 "llX" /* uint_least64_t */
#define PRIXMAX "llX" /* uintmax_t */
#define PRIXPTR "X" /* uintptr_t */
/* fscanf macros for signed integers */
#define SCNd8 "hhd" /* int8_t */
#define SCNd16 "hd" /* int16_t */
#define SCNd32 "d" /* int32_t */
#define SCNd64 "lld" /* int64_t */
#define SCNdLEAST8 "hhd" /* int_least8_t */
#define SCNdLEAST16 "hd" /* int_least16_t */
#define SCNdLEAST32 "d" /* int_least32_t */
#define SCNdLEAST64 "lld" /* int_least64_t */
#define SCNdMAX "lld" /* intmax_t */
#define SCNdPTR "d" /* intptr_t */
#define SCNi8 "hhi" /* int8_t */
#define SCNi16 "hi" /* int16_t */
#define SCNi32 "i" /* int32_t */
#define SCNi64 "lli" /* int64_t */
#define SCNiLEAST8 "hhi" /* int_least8_t */
#define SCNiLEAST16 "hi" /* int_least16_t */
#define SCNiLEAST32 "i" /* int_least32_t */
#define SCNiLEAST64 "lli" /* int_least64_t */
#define SCNiMAX "lli" /* intmax_t */
#define SCNiPTR "i" /* intptr_t */
/* fscanf macros for unsigned integers */
#define SCNo8 "hho" /* uint8_t */
#define SCNo16 "ho" /* uint16_t */
#define SCNo32 "o" /* uint32_t */
#define SCNo64 "llo" /* uint64_t */
#define SCNoLEAST8 "hho" /* uint_least8_t */
#define SCNoLEAST16 "ho" /* uint_least16_t */
#define SCNoLEAST32 "o" /* uint_least32_t */
#define SCNoLEAST64 "llo" /* uint_least64_t */
#define SCNoMAX "llo" /* uintmax_t */
#define SCNoPTR "o" /* uintptr_t */
#define SCNu8 "hhu" /* uint8_t */
#define SCNu16 "hu" /* uint16_t */
#define SCNu32 "u" /* uint32_t */
#define SCNu64 "llu" /* uint64_t */
#define SCNuLEAST8 "hhu" /* uint_least8_t */
#define SCNuLEAST16 "hu" /* uint_least16_t */
#define SCNuLEAST32 "u" /* uint_least32_t */
#define SCNuLEAST64 "llu" /* uint_least64_t */
#define SCNuMAX "llu" /* uintmax_t */
#define SCNuPTR "u" /* uintptr_t */
#define SCNx8 "hhx" /* uint8_t */
#define SCNx16 "hx" /* uint16_t */
#define SCNx32 "x" /* uint32_t */
#define SCNx64 "llx" /* uint64_t */
#define SCNxLEAST8 "hhx" /* uint_least8_t */
#define SCNxLEAST16 "hx" /* uint_least16_t */
#define SCNxLEAST32 "x" /* uint_least32_t */
#define SCNxLEAST64 "llx" /* uint_least64_t */
#define SCNxMAX "llx" /* uintmax_t */
#define SCNxPTR "x" /* uintptr_t */
#endif /* !_M68K_INT_FMTIO_H_ */

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2001/04/15 15:29:07 kleink Exp $
# $NetBSD: Makefile,v 1.13 2001/04/15 17:13:12 kleink Exp $
KDIR= /sys/arch/mac68k/include
INCSDIR= /usr/include/mac68k
@ -11,8 +11,8 @@ INCS= adbsys.h ansi.h aout_machdep.h asm.h autoconf.h \
float.h frame.h \
grfioctl.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
iteioctl.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h iteioctl.h \
kcore.h keyboard.h \
limits.h lock.h \
param.h math.h pcb.h pio.h pmap.h proc.h profile.h psc.h psl.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:12 kleink Exp $ */
#include <m68k/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2001/04/15 15:29:08 kleink Exp $
# $NetBSD: Makefile,v 1.12 2001/04/15 17:13:12 kleink Exp $
KDIR= /sys/arch/macppc/include
INCSDIR= /usr/include/macppc
@ -11,8 +11,8 @@ INCS= adbsys.h ansi.h aout_machdep.h asm.h autoconf.h \
float.h fpu.h frame.h \
grfioctl.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
ipkdb.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h ipkdb.h \
kcore.h keyboard.h \
limits.h lock.h \
machine_type.h math.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:12 kleink Exp $ */
#include <powerpc/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2001/04/15 15:29:08 kleink Exp $
# $NetBSD: Makefile,v 1.19 2001/04/15 17:13:12 kleink Exp $
KDIR= /sys/arch/mips/include
INCSDIR= /usr/include/mips
@ -10,7 +10,7 @@ INCS= ansi.h aout_machdep.h asm.h \
ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
float.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
kcore.h kdbparam.h \
limits.h lock.h locore.h \
math.h mips1_pte.h mips3_pte.h mips_opcode.h mips_param.h \

View File

@ -0,0 +1,175 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:12 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Klaus Klein.
*
* 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.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 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 _MIPS_INT_FMTIO_H_
#define _MIPS_INT_FMTIO_H_
/*
* 7.8.1 Macros for format specifiers
*/
/* fprintf macros for signed integers */
#define PRId8 "d" /* int8_t */
#define PRId16 "d" /* int16_t */
#define PRId32 "d" /* int32_t */
#define PRId64 "lld" /* int64_t */
#define PRIdLEAST8 "d" /* int_least8_t */
#define PRIdLEAST16 "d" /* int_least16_t */
#define PRIdLEAST32 "d" /* int_least32_t */
#define PRIdLEAST64 "lld" /* int_least64_t */
#define PRIdMAX "lld" /* intmax_t */
#define PRIdPTR "d" /* intptr_t */
#define PRIi8 "i" /* int8_t */
#define PRIi16 "i" /* int16_t */
#define PRIi32 "i" /* int32_t */
#define PRIi64 "lli" /* int64_t */
#define PRIiLEAST8 "i" /* int_least8_t */
#define PRIiLEAST16 "i" /* int_least16_t */
#define PRIiLEAST32 "i" /* int_least32_t */
#define PRIiLEAST64 "lli" /* int_least64_t */
#define PRIiMAX "lli" /* intmax_t */
#define PRIiPTR "i" /* intptr_t */
/* fprintf macros for unsigned integers */
#define PRIo8 "o" /* uint8_t */
#define PRIo16 "o" /* uint16_t */
#define PRIo32 "o" /* uint32_t */
#define PRIo64 "llo" /* uint64_t */
#define PRIoLEAST8 "o" /* uint_least8_t */
#define PRIoLEAST16 "o" /* uint_least16_t */
#define PRIoLEAST32 "o" /* uint_least32_t */
#define PRIoLEAST64 "llo" /* uint_least64_t */
#define PRIoMAX "llo" /* uintmax_t */
#define PRIoPTR "o" /* uintptr_t */
#define PRIu8 "u" /* uint8_t */
#define PRIu16 "u" /* uint16_t */
#define PRIu32 "u" /* uint32_t */
#define PRIu64 "llu" /* uint64_t */
#define PRIuLEAST8 "u" /* uint_least8_t */
#define PRIuLEAST16 "u" /* uint_least16_t */
#define PRIuLEAST32 "u" /* uint_least32_t */
#define PRIuLEAST64 "llu" /* uint_least64_t */
#define PRIuMAX "llu" /* uintmax_t */
#define PRIuPTR "u" /* uintptr_t */
#define PRIx8 "x" /* uint8_t */
#define PRIx16 "x" /* uint16_t */
#define PRIx32 "x" /* uint32_t */
#define PRIx64 "llx" /* uint64_t */
#define PRIxLEAST8 "x" /* uint_least8_t */
#define PRIxLEAST16 "x" /* uint_least16_t */
#define PRIxLEAST32 "x" /* uint_least32_t */
#define PRIxLEAST64 "llx" /* uint_least64_t */
#define PRIxMAX "llx" /* uintmax_t */
#define PRIxPTR "x" /* uintptr_t */
#define PRIX8 "X" /* uint8_t */
#define PRIX16 "X" /* uint16_t */
#define PRIX32 "X" /* uint32_t */
#define PRIX64 "llX" /* uint64_t */
#define PRIXLEAST8 "X" /* uint_least8_t */
#define PRIXLEAST16 "X" /* uint_least16_t */
#define PRIXLEAST32 "X" /* uint_least32_t */
#define PRIXLEAST64 "llX" /* uint_least64_t */
#define PRIXMAX "llX" /* uintmax_t */
#define PRIXPTR "X" /* uintptr_t */
/* fscanf macros for signed integers */
#define SCNd8 "hhd" /* int8_t */
#define SCNd16 "hd" /* int16_t */
#define SCNd32 "d" /* int32_t */
#define SCNd64 "lld" /* int64_t */
#define SCNdLEAST8 "hhd" /* int_least8_t */
#define SCNdLEAST16 "hd" /* int_least16_t */
#define SCNdLEAST32 "d" /* int_least32_t */
#define SCNdLEAST64 "lld" /* int_least64_t */
#define SCNdMAX "lld" /* intmax_t */
#define SCNdPTR "d" /* intptr_t */
#define SCNi8 "hhi" /* int8_t */
#define SCNi16 "hi" /* int16_t */
#define SCNi32 "i" /* int32_t */
#define SCNi64 "lli" /* int64_t */
#define SCNiLEAST8 "hhi" /* int_least8_t */
#define SCNiLEAST16 "hi" /* int_least16_t */
#define SCNiLEAST32 "i" /* int_least32_t */
#define SCNiLEAST64 "lli" /* int_least64_t */
#define SCNiMAX "lli" /* intmax_t */
#define SCNiPTR "i" /* intptr_t */
/* fscanf macros for unsigned integers */
#define SCNo8 "hho" /* uint8_t */
#define SCNo16 "ho" /* uint16_t */
#define SCNo32 "o" /* uint32_t */
#define SCNo64 "llo" /* uint64_t */
#define SCNoLEAST8 "hho" /* uint_least8_t */
#define SCNoLEAST16 "ho" /* uint_least16_t */
#define SCNoLEAST32 "o" /* uint_least32_t */
#define SCNoLEAST64 "llo" /* uint_least64_t */
#define SCNoMAX "llo" /* uintmax_t */
#define SCNoPTR "o" /* uintptr_t */
#define SCNu8 "hhu" /* uint8_t */
#define SCNu16 "hu" /* uint16_t */
#define SCNu32 "u" /* uint32_t */
#define SCNu64 "llu" /* uint64_t */
#define SCNuLEAST8 "hhu" /* uint_least8_t */
#define SCNuLEAST16 "hu" /* uint_least16_t */
#define SCNuLEAST32 "u" /* uint_least32_t */
#define SCNuLEAST64 "llu" /* uint_least64_t */
#define SCNuMAX "llu" /* uintmax_t */
#define SCNuPTR "u" /* uintptr_t */
#define SCNx8 "hhx" /* uint8_t */
#define SCNx16 "hx" /* uint16_t */
#define SCNx32 "x" /* uint32_t */
#define SCNx64 "llx" /* uint64_t */
#define SCNxLEAST8 "hhx" /* uint_least8_t */
#define SCNxLEAST16 "hx" /* uint_least16_t */
#define SCNxLEAST32 "x" /* uint_least32_t */
#define SCNxLEAST64 "llx" /* uint_least64_t */
#define SCNxMAX "llx" /* uintmax_t */
#define SCNxPTR "x" /* uintptr_t */
#endif /* !_MIPS_INT_FMTIO_H_ */

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2001/04/15 15:29:08 kleink Exp $
# $NetBSD: Makefile,v 1.10 2001/04/15 17:13:12 kleink Exp $
KDIR= /sys/arch/mipsco/include
INCSDIR= /usr/include/mipsco
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
ecoff_machdep.h elf.h elf_machdep.h endian.h endian_machdep.h \
float.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kcore.h kdbparam.h \
limits.h lock.h locore.h \
mainboard.h math.h mips_opcode.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:12 kleink Exp $ */
#include <mips/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2001/04/15 15:29:08 kleink Exp $
# $NetBSD: Makefile,v 1.11 2001/04/15 17:13:13 kleink Exp $
KDIR= /sys/arch/mmeye/include
INCSDIR= /usr/include/mmeye
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
limits.h lock.h loadfile_machdep.h \
math.h mmeye.h \
param.h pcb.h pio.h pmap.h proc.h profile.h psl.h pte.h ptrace.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:13 kleink Exp $ */
#include <sh3/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.15 2001/04/15 15:29:09 kleink Exp $
# $NetBSD: Makefile,v 1.16 2001/04/15 17:13:13 kleink Exp $
KDIR= /sys/arch/mvme68k/include
INCSDIR= /usr/include/mvme68k
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
elf_machdep.h endian.h endian_machdep.h \
float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kcore.h \
limits.h lock.h \
math.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:13 kleink Exp $ */
#include <m68k/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2001/04/15 15:29:09 kleink Exp $
# $NetBSD: Makefile,v 1.10 2001/04/15 17:13:14 kleink Exp $
KDIR= /sys/arch/news68k/include
INCSDIR= /usr/include/news68k
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
elf_machdep.h endian.h endian_machdep.h \
float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kcore.h \
limits.h lock.h \
math.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:14 kleink Exp $ */
#include <m68k/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.21 2001/04/15 15:29:09 kleink Exp $
# $NetBSD: Makefile,v 1.22 2001/04/15 17:13:14 kleink Exp $
KDIR= /sys/arch/newsmips/include
INCSDIR= /usr/include/newsmips
@ -10,7 +10,8 @@ INCS= adrsmap.h ansi.h asm.h aout_machdep.h apbus.h apcall.h autoconf.h \
ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
float.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kcore.h kdbparam.h \
limits.h lock.h locore.h \
machConst.h math.h mips_opcode.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:14 kleink Exp $ */
#include <mips/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2001/04/15 15:29:09 kleink Exp $
# $NetBSD: Makefile,v 1.12 2001/04/15 17:13:14 kleink Exp $
KDIR= /sys/arch/next68k/include
INCSDIR= /usr/include/next68k
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
elf_machdep.h endian.h endian_machdep.h \
float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kcore.h \
limits.h lock.h \
math.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:14 kleink Exp $ */
#include <m68k/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2001/04/15 15:29:10 kleink Exp $
# $NetBSD: Makefile,v 1.11 2001/04/15 17:13:14 kleink Exp $
KDIR= /sys/arch/ofppc/include
INCSDIR= /usr/include/ofppc
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h fpu.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h ipkdb.h irq.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
ipkdb.h irq.h \
kcore.h \
limits.h lock.h \
machine_type.h math.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:15 kleink Exp $ */
#include <powerpc/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2001/04/15 15:29:10 kleink Exp $
# $NetBSD: Makefile,v 1.12 2001/04/15 17:13:15 kleink Exp $
KDIR= /sys/arch/pc532/include
INCSDIR= /usr/include/pc532
@ -10,7 +10,7 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
endian.h endian_machdep.h \
float.h fpu.h frame.h \
icu.h ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
jmpbuf.h \
kcore.h \
limits.h lock.h \

View File

@ -0,0 +1,175 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:15 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Klaus Klein.
*
* 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.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 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 _NS32K_INT_FMTIO_H_
#define _NS32K_INT_FMTIO_H_
/*
* 7.8.1 Macros for format specifiers
*/
/* fprintf macros for signed integers */
#define PRId8 "d" /* int8_t */
#define PRId16 "d" /* int16_t */
#define PRId32 "d" /* int32_t */
#define PRId64 "lld" /* int64_t */
#define PRIdLEAST8 "d" /* int_least8_t */
#define PRIdLEAST16 "d" /* int_least16_t */
#define PRIdLEAST32 "d" /* int_least32_t */
#define PRIdLEAST64 "lld" /* int_least64_t */
#define PRIdMAX "lld" /* intmax_t */
#define PRIdPTR "d" /* intptr_t */
#define PRIi8 "i" /* int8_t */
#define PRIi16 "i" /* int16_t */
#define PRIi32 "i" /* int32_t */
#define PRIi64 "lli" /* int64_t */
#define PRIiLEAST8 "i" /* int_least8_t */
#define PRIiLEAST16 "i" /* int_least16_t */
#define PRIiLEAST32 "i" /* int_least32_t */
#define PRIiLEAST64 "lli" /* int_least64_t */
#define PRIiMAX "lli" /* intmax_t */
#define PRIiPTR "i" /* intptr_t */
/* fprintf macros for unsigned integers */
#define PRIo8 "o" /* uint8_t */
#define PRIo16 "o" /* uint16_t */
#define PRIo32 "o" /* uint32_t */
#define PRIo64 "llo" /* uint64_t */
#define PRIoLEAST8 "o" /* uint_least8_t */
#define PRIoLEAST16 "o" /* uint_least16_t */
#define PRIoLEAST32 "o" /* uint_least32_t */
#define PRIoLEAST64 "llo" /* uint_least64_t */
#define PRIoMAX "llo" /* uintmax_t */
#define PRIoPTR "o" /* uintptr_t */
#define PRIu8 "u" /* uint8_t */
#define PRIu16 "u" /* uint16_t */
#define PRIu32 "u" /* uint32_t */
#define PRIu64 "llu" /* uint64_t */
#define PRIuLEAST8 "u" /* uint_least8_t */
#define PRIuLEAST16 "u" /* uint_least16_t */
#define PRIuLEAST32 "u" /* uint_least32_t */
#define PRIuLEAST64 "llu" /* uint_least64_t */
#define PRIuMAX "llu" /* uintmax_t */
#define PRIuPTR "u" /* uintptr_t */
#define PRIx8 "x" /* uint8_t */
#define PRIx16 "x" /* uint16_t */
#define PRIx32 "x" /* uint32_t */
#define PRIx64 "llx" /* uint64_t */
#define PRIxLEAST8 "x" /* uint_least8_t */
#define PRIxLEAST16 "x" /* uint_least16_t */
#define PRIxLEAST32 "x" /* uint_least32_t */
#define PRIxLEAST64 "llx" /* uint_least64_t */
#define PRIxMAX "llx" /* uintmax_t */
#define PRIxPTR "x" /* uintptr_t */
#define PRIX8 "X" /* uint8_t */
#define PRIX16 "X" /* uint16_t */
#define PRIX32 "X" /* uint32_t */
#define PRIX64 "llX" /* uint64_t */
#define PRIXLEAST8 "X" /* uint_least8_t */
#define PRIXLEAST16 "X" /* uint_least16_t */
#define PRIXLEAST32 "X" /* uint_least32_t */
#define PRIXLEAST64 "llX" /* uint_least64_t */
#define PRIXMAX "llX" /* uintmax_t */
#define PRIXPTR "X" /* uintptr_t */
/* fscanf macros for signed integers */
#define SCNd8 "hhd" /* int8_t */
#define SCNd16 "hd" /* int16_t */
#define SCNd32 "d" /* int32_t */
#define SCNd64 "lld" /* int64_t */
#define SCNdLEAST8 "hhd" /* int_least8_t */
#define SCNdLEAST16 "hd" /* int_least16_t */
#define SCNdLEAST32 "d" /* int_least32_t */
#define SCNdLEAST64 "lld" /* int_least64_t */
#define SCNdMAX "lld" /* intmax_t */
#define SCNdPTR "d" /* intptr_t */
#define SCNi8 "hhi" /* int8_t */
#define SCNi16 "hi" /* int16_t */
#define SCNi32 "i" /* int32_t */
#define SCNi64 "lli" /* int64_t */
#define SCNiLEAST8 "hhi" /* int_least8_t */
#define SCNiLEAST16 "hi" /* int_least16_t */
#define SCNiLEAST32 "i" /* int_least32_t */
#define SCNiLEAST64 "lli" /* int_least64_t */
#define SCNiMAX "lli" /* intmax_t */
#define SCNiPTR "i" /* intptr_t */
/* fscanf macros for unsigned integers */
#define SCNo8 "hho" /* uint8_t */
#define SCNo16 "ho" /* uint16_t */
#define SCNo32 "o" /* uint32_t */
#define SCNo64 "llo" /* uint64_t */
#define SCNoLEAST8 "hho" /* uint_least8_t */
#define SCNoLEAST16 "ho" /* uint_least16_t */
#define SCNoLEAST32 "o" /* uint_least32_t */
#define SCNoLEAST64 "llo" /* uint_least64_t */
#define SCNoMAX "llo" /* uintmax_t */
#define SCNoPTR "o" /* uintptr_t */
#define SCNu8 "hhu" /* uint8_t */
#define SCNu16 "hu" /* uint16_t */
#define SCNu32 "u" /* uint32_t */
#define SCNu64 "llu" /* uint64_t */
#define SCNuLEAST8 "hhu" /* uint_least8_t */
#define SCNuLEAST16 "hu" /* uint_least16_t */
#define SCNuLEAST32 "u" /* uint_least32_t */
#define SCNuLEAST64 "llu" /* uint_least64_t */
#define SCNuMAX "llu" /* uintmax_t */
#define SCNuPTR "u" /* uintptr_t */
#define SCNx8 "hhx" /* uint8_t */
#define SCNx16 "hx" /* uint16_t */
#define SCNx32 "x" /* uint32_t */
#define SCNx64 "llx" /* uint64_t */
#define SCNxLEAST8 "hhx" /* uint_least8_t */
#define SCNxLEAST16 "hx" /* uint_least16_t */
#define SCNxLEAST32 "x" /* uint_least32_t */
#define SCNxLEAST64 "llx" /* uint_least64_t */
#define SCNxMAX "llx" /* uintmax_t */
#define SCNxPTR "x" /* uintptr_t */
#endif /* !_NS32K_INT_FMTIO_H_ */

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.21 2001/04/15 15:29:10 kleink Exp $
# $NetBSD: Makefile,v 1.22 2001/04/15 17:13:15 kleink Exp $
KDIR= /sys/arch/pmax/include
INCSDIR= /usr/include/pmax
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
fbio.h fbvar.h float.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kcore.h kdbparam.h \
limits.h lock.h locore.h \
math.h mips_opcode.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:15 kleink Exp $ */
#include <mips/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2001/04/15 15:29:10 kleink Exp $
# $NetBSD: Makefile,v 1.17 2001/04/15 17:13:16 kleink Exp $
KDIR= /sys/arch/powerpc/include
INCSDIR= /usr/include/powerpc
@ -11,7 +11,8 @@ INCS= ansi.h aout_machdep.h asm.h \
float.h fpu.h frame.h \
hid.h hid_601.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h ipkdb.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
ipkdb.h \
kcore.h \
limits.h lock.h \
machine_type.h math.h \

View File

@ -0,0 +1,175 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:16 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Klaus Klein.
*
* 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.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 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 _POWERPC_INT_FMTIO_H_
#define _POWERPC_INT_FMTIO_H_
/*
* 7.8.1 Macros for format specifiers
*/
/* fprintf macros for signed integers */
#define PRId8 "d" /* int8_t */
#define PRId16 "d" /* int16_t */
#define PRId32 "d" /* int32_t */
#define PRId64 "lld" /* int64_t */
#define PRIdLEAST8 "d" /* int_least8_t */
#define PRIdLEAST16 "d" /* int_least16_t */
#define PRIdLEAST32 "d" /* int_least32_t */
#define PRIdLEAST64 "lld" /* int_least64_t */
#define PRIdMAX "lld" /* intmax_t */
#define PRIdPTR "d" /* intptr_t */
#define PRIi8 "i" /* int8_t */
#define PRIi16 "i" /* int16_t */
#define PRIi32 "i" /* int32_t */
#define PRIi64 "lli" /* int64_t */
#define PRIiLEAST8 "i" /* int_least8_t */
#define PRIiLEAST16 "i" /* int_least16_t */
#define PRIiLEAST32 "i" /* int_least32_t */
#define PRIiLEAST64 "lli" /* int_least64_t */
#define PRIiMAX "lli" /* intmax_t */
#define PRIiPTR "i" /* intptr_t */
/* fprintf macros for unsigned integers */
#define PRIo8 "o" /* uint8_t */
#define PRIo16 "o" /* uint16_t */
#define PRIo32 "o" /* uint32_t */
#define PRIo64 "llo" /* uint64_t */
#define PRIoLEAST8 "o" /* uint_least8_t */
#define PRIoLEAST16 "o" /* uint_least16_t */
#define PRIoLEAST32 "o" /* uint_least32_t */
#define PRIoLEAST64 "llo" /* uint_least64_t */
#define PRIoMAX "llo" /* uintmax_t */
#define PRIoPTR "o" /* uintptr_t */
#define PRIu8 "u" /* uint8_t */
#define PRIu16 "u" /* uint16_t */
#define PRIu32 "u" /* uint32_t */
#define PRIu64 "llu" /* uint64_t */
#define PRIuLEAST8 "u" /* uint_least8_t */
#define PRIuLEAST16 "u" /* uint_least16_t */
#define PRIuLEAST32 "u" /* uint_least32_t */
#define PRIuLEAST64 "llu" /* uint_least64_t */
#define PRIuMAX "llu" /* uintmax_t */
#define PRIuPTR "u" /* uintptr_t */
#define PRIx8 "x" /* uint8_t */
#define PRIx16 "x" /* uint16_t */
#define PRIx32 "x" /* uint32_t */
#define PRIx64 "llx" /* uint64_t */
#define PRIxLEAST8 "x" /* uint_least8_t */
#define PRIxLEAST16 "x" /* uint_least16_t */
#define PRIxLEAST32 "x" /* uint_least32_t */
#define PRIxLEAST64 "llx" /* uint_least64_t */
#define PRIxMAX "llx" /* uintmax_t */
#define PRIxPTR "x" /* uintptr_t */
#define PRIX8 "X" /* uint8_t */
#define PRIX16 "X" /* uint16_t */
#define PRIX32 "X" /* uint32_t */
#define PRIX64 "llX" /* uint64_t */
#define PRIXLEAST8 "X" /* uint_least8_t */
#define PRIXLEAST16 "X" /* uint_least16_t */
#define PRIXLEAST32 "X" /* uint_least32_t */
#define PRIXLEAST64 "llX" /* uint_least64_t */
#define PRIXMAX "llX" /* uintmax_t */
#define PRIXPTR "X" /* uintptr_t */
/* fscanf macros for signed integers */
#define SCNd8 "hhd" /* int8_t */
#define SCNd16 "hd" /* int16_t */
#define SCNd32 "d" /* int32_t */
#define SCNd64 "lld" /* int64_t */
#define SCNdLEAST8 "hhd" /* int_least8_t */
#define SCNdLEAST16 "hd" /* int_least16_t */
#define SCNdLEAST32 "d" /* int_least32_t */
#define SCNdLEAST64 "lld" /* int_least64_t */
#define SCNdMAX "lld" /* intmax_t */
#define SCNdPTR "d" /* intptr_t */
#define SCNi8 "hhi" /* int8_t */
#define SCNi16 "hi" /* int16_t */
#define SCNi32 "i" /* int32_t */
#define SCNi64 "lli" /* int64_t */
#define SCNiLEAST8 "hhi" /* int_least8_t */
#define SCNiLEAST16 "hi" /* int_least16_t */
#define SCNiLEAST32 "i" /* int_least32_t */
#define SCNiLEAST64 "lli" /* int_least64_t */
#define SCNiMAX "lli" /* intmax_t */
#define SCNiPTR "i" /* intptr_t */
/* fscanf macros for unsigned integers */
#define SCNo8 "hho" /* uint8_t */
#define SCNo16 "ho" /* uint16_t */
#define SCNo32 "o" /* uint32_t */
#define SCNo64 "llo" /* uint64_t */
#define SCNoLEAST8 "hho" /* uint_least8_t */
#define SCNoLEAST16 "ho" /* uint_least16_t */
#define SCNoLEAST32 "o" /* uint_least32_t */
#define SCNoLEAST64 "llo" /* uint_least64_t */
#define SCNoMAX "llo" /* uintmax_t */
#define SCNoPTR "o" /* uintptr_t */
#define SCNu8 "hhu" /* uint8_t */
#define SCNu16 "hu" /* uint16_t */
#define SCNu32 "u" /* uint32_t */
#define SCNu64 "llu" /* uint64_t */
#define SCNuLEAST8 "hhu" /* uint_least8_t */
#define SCNuLEAST16 "hu" /* uint_least16_t */
#define SCNuLEAST32 "u" /* uint_least32_t */
#define SCNuLEAST64 "llu" /* uint_least64_t */
#define SCNuMAX "llu" /* uintmax_t */
#define SCNuPTR "u" /* uintptr_t */
#define SCNx8 "hhx" /* uint8_t */
#define SCNx16 "hx" /* uint16_t */
#define SCNx32 "x" /* uint32_t */
#define SCNx64 "llx" /* uint64_t */
#define SCNxLEAST8 "hhx" /* uint_least8_t */
#define SCNxLEAST16 "hx" /* uint_least16_t */
#define SCNxLEAST32 "x" /* uint_least32_t */
#define SCNxLEAST64 "llx" /* uint_least64_t */
#define SCNxMAX "llx" /* uintmax_t */
#define SCNxPTR "x" /* uintptr_t */
#endif /* !_POWERPC_INT_FMTIO_H_ */

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2001/04/15 15:29:11 kleink Exp $
# $NetBSD: Makefile,v 1.8 2001/04/15 17:13:16 kleink Exp $
KDIR= /sys/arch/prep/include
INCSDIR= /usr/include/prep
@ -10,8 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h fpu.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
ipkdb.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h ipkdb.h \
kcore.h kgdb.h \
limits.h lock.h \
machine_type.h math.h mouse.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:16 kleink Exp $ */
#include <powerpc/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2001/04/15 15:29:11 kleink Exp $
# $NetBSD: Makefile,v 1.6 2001/04/15 17:13:16 kleink Exp $
KDIR= /sys/arch/sandpoint/include
INCSDIR= /usr/include/sandpoint
@ -10,8 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h fpu.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
ipkdb.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h ipkdb.h \
kcore.h kgdb.h \
limits.h lock.h \
machine_type.h math.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:16 kleink Exp $ */
#include <powerpc/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2001/04/15 15:29:11 kleink Exp $
# $NetBSD: Makefile,v 1.6 2001/04/15 17:13:17 kleink Exp $
KDIR= /sys/arch/sgimips/include
INCSDIR= /usr/include/sgimips
@ -10,7 +10,8 @@ INCS= asm.h ansi.h aout_machdep.h arcs.h autoconf.h \
ecoff_machdep.h elf_machdep.h endian.h endian_machdep.h \
float.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h \
kcore.h kdbparam.h \
limits.h lock.h locore.h \
math.h mips_opcode.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:17 kleink Exp $ */
#include <mips/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2001/04/15 15:29:11 kleink Exp $
# $NetBSD: Makefile,v 1.11 2001/04/15 17:13:17 kleink Exp $
KDIR= /sys/arch/sh3/include
INCSDIR= /usr/include/sh3
@ -10,7 +10,7 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h frame.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intcreg.h intr.h \
limits.h lock.h \
math.h mmureg.h \

View File

@ -0,0 +1,175 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:17 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Klaus Klein.
*
* 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.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 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 _SH3_INT_FMTIO_H_
#define _SH3_INT_FMTIO_H_
/*
* 7.8.1 Macros for format specifiers
*/
/* fprintf macros for signed integers */
#define PRId8 "d" /* int8_t */
#define PRId16 "d" /* int16_t */
#define PRId32 "d" /* int32_t */
#define PRId64 "lld" /* int64_t */
#define PRIdLEAST8 "d" /* int_least8_t */
#define PRIdLEAST16 "d" /* int_least16_t */
#define PRIdLEAST32 "d" /* int_least32_t */
#define PRIdLEAST64 "lld" /* int_least64_t */
#define PRIdMAX "lld" /* intmax_t */
#define PRIdPTR "d" /* intptr_t */
#define PRIi8 "i" /* int8_t */
#define PRIi16 "i" /* int16_t */
#define PRIi32 "i" /* int32_t */
#define PRIi64 "lli" /* int64_t */
#define PRIiLEAST8 "i" /* int_least8_t */
#define PRIiLEAST16 "i" /* int_least16_t */
#define PRIiLEAST32 "i" /* int_least32_t */
#define PRIiLEAST64 "lli" /* int_least64_t */
#define PRIiMAX "lli" /* intmax_t */
#define PRIiPTR "i" /* intptr_t */
/* fprintf macros for unsigned integers */
#define PRIo8 "o" /* uint8_t */
#define PRIo16 "o" /* uint16_t */
#define PRIo32 "o" /* uint32_t */
#define PRIo64 "llo" /* uint64_t */
#define PRIoLEAST8 "o" /* uint_least8_t */
#define PRIoLEAST16 "o" /* uint_least16_t */
#define PRIoLEAST32 "o" /* uint_least32_t */
#define PRIoLEAST64 "llo" /* uint_least64_t */
#define PRIoMAX "llo" /* uintmax_t */
#define PRIoPTR "o" /* uintptr_t */
#define PRIu8 "u" /* uint8_t */
#define PRIu16 "u" /* uint16_t */
#define PRIu32 "u" /* uint32_t */
#define PRIu64 "llu" /* uint64_t */
#define PRIuLEAST8 "u" /* uint_least8_t */
#define PRIuLEAST16 "u" /* uint_least16_t */
#define PRIuLEAST32 "u" /* uint_least32_t */
#define PRIuLEAST64 "llu" /* uint_least64_t */
#define PRIuMAX "llu" /* uintmax_t */
#define PRIuPTR "u" /* uintptr_t */
#define PRIx8 "x" /* uint8_t */
#define PRIx16 "x" /* uint16_t */
#define PRIx32 "x" /* uint32_t */
#define PRIx64 "llx" /* uint64_t */
#define PRIxLEAST8 "x" /* uint_least8_t */
#define PRIxLEAST16 "x" /* uint_least16_t */
#define PRIxLEAST32 "x" /* uint_least32_t */
#define PRIxLEAST64 "llx" /* uint_least64_t */
#define PRIxMAX "llx" /* uintmax_t */
#define PRIxPTR "x" /* uintptr_t */
#define PRIX8 "X" /* uint8_t */
#define PRIX16 "X" /* uint16_t */
#define PRIX32 "X" /* uint32_t */
#define PRIX64 "llX" /* uint64_t */
#define PRIXLEAST8 "X" /* uint_least8_t */
#define PRIXLEAST16 "X" /* uint_least16_t */
#define PRIXLEAST32 "X" /* uint_least32_t */
#define PRIXLEAST64 "llX" /* uint_least64_t */
#define PRIXMAX "llX" /* uintmax_t */
#define PRIXPTR "X" /* uintptr_t */
/* fscanf macros for signed integers */
#define SCNd8 "hhd" /* int8_t */
#define SCNd16 "hd" /* int16_t */
#define SCNd32 "d" /* int32_t */
#define SCNd64 "lld" /* int64_t */
#define SCNdLEAST8 "hhd" /* int_least8_t */
#define SCNdLEAST16 "hd" /* int_least16_t */
#define SCNdLEAST32 "d" /* int_least32_t */
#define SCNdLEAST64 "lld" /* int_least64_t */
#define SCNdMAX "lld" /* intmax_t */
#define SCNdPTR "d" /* intptr_t */
#define SCNi8 "hhi" /* int8_t */
#define SCNi16 "hi" /* int16_t */
#define SCNi32 "i" /* int32_t */
#define SCNi64 "lli" /* int64_t */
#define SCNiLEAST8 "hhi" /* int_least8_t */
#define SCNiLEAST16 "hi" /* int_least16_t */
#define SCNiLEAST32 "i" /* int_least32_t */
#define SCNiLEAST64 "lli" /* int_least64_t */
#define SCNiMAX "lli" /* intmax_t */
#define SCNiPTR "i" /* intptr_t */
/* fscanf macros for unsigned integers */
#define SCNo8 "hho" /* uint8_t */
#define SCNo16 "ho" /* uint16_t */
#define SCNo32 "o" /* uint32_t */
#define SCNo64 "llo" /* uint64_t */
#define SCNoLEAST8 "hho" /* uint_least8_t */
#define SCNoLEAST16 "ho" /* uint_least16_t */
#define SCNoLEAST32 "o" /* uint_least32_t */
#define SCNoLEAST64 "llo" /* uint_least64_t */
#define SCNoMAX "llo" /* uintmax_t */
#define SCNoPTR "o" /* uintptr_t */
#define SCNu8 "hhu" /* uint8_t */
#define SCNu16 "hu" /* uint16_t */
#define SCNu32 "u" /* uint32_t */
#define SCNu64 "llu" /* uint64_t */
#define SCNuLEAST8 "hhu" /* uint_least8_t */
#define SCNuLEAST16 "hu" /* uint_least16_t */
#define SCNuLEAST32 "u" /* uint_least32_t */
#define SCNuLEAST64 "llu" /* uint_least64_t */
#define SCNuMAX "llu" /* uintmax_t */
#define SCNuPTR "u" /* uintptr_t */
#define SCNx8 "hhx" /* uint8_t */
#define SCNx16 "hx" /* uint16_t */
#define SCNx32 "x" /* uint32_t */
#define SCNx64 "llx" /* uint64_t */
#define SCNxLEAST8 "hhx" /* uint_least8_t */
#define SCNxLEAST16 "hx" /* uint_least16_t */
#define SCNxLEAST32 "x" /* uint_least32_t */
#define SCNxLEAST64 "llx" /* uint_least64_t */
#define SCNxMAX "llx" /* uintmax_t */
#define SCNxPTR "x" /* uintptr_t */
#endif /* !_SH3_INT_FMTIO_H_ */

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2001/04/15 15:29:12 kleink Exp $
# $NetBSD: Makefile,v 1.19 2001/04/15 17:13:17 kleink Exp $
KDIR= /sys/arch/sparc/include
INCSDIR= /usr/include/sparc
@ -10,7 +10,7 @@ INCS= ansi.h aout_machdep.h apmvar.h asm.h autoconf.h \
eeprom.h elf_machdep.h endian.h endian_machdep.h \
float.h frame.h fsr.h \
idprom.h ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
kbd.h kbio.h kcore.h \
limits.h lock.h \
math.h \

View File

@ -0,0 +1,274 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:17 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Klaus Klein.
*
* 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.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 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 _SPARC_INT_FMTIO_H_
#define _SPARC_INT_FMTIO_H_
/*
* 7.8.1 Macros for format specifiers
*/
/* fprintf macros for signed integers */
#define PRId8 "d" /* int8_t */
#define PRId16 "d" /* int16_t */
#define PRId32 "d" /* int32_t */
#ifdef __arch64__
#define PRId64 "ld" /* int64_t */
#else
#define PRId64 "lld" /* int64_t */
#endif
#define PRIdLEAST8 "d" /* int_least8_t */
#define PRIdLEAST16 "d" /* int_least16_t */
#define PRIdLEAST32 "d" /* int_least32_t */
#ifdef __arch64__
#define PRIdLEAST64 "ld" /* int_least64_t */
#define PRIdMAX "ld" /* intmax_t */
#else
#define PRIdLEAST64 "lld" /* int_least64_t */
#define PRIdMAX "lld" /* intmax_t */
#endif
#define PRIdPTR "ld" /* intptr_t */
#define PRIi8 "i" /* int8_t */
#define PRIi16 "i" /* int16_t */
#define PRIi32 "i" /* int32_t */
#ifdef __arch64__
#define PRIi64 "li" /* int64_t */
#else
#define PRIi64 "lli" /* int64_t */
#endif
#define PRIiLEAST8 "i" /* int_least8_t */
#define PRIiLEAST16 "i" /* int_least16_t */
#define PRIiLEAST32 "i" /* int_least32_t */
#ifdef __arch64__
#define PRIiLEAST64 "li" /* int_least64_t */
#define PRIiMAX "li" /* intmax_t */
#else
#define PRIiLEAST64 "lli" /* int_least64_t */
#define PRIiMAX "lli" /* intmax_t */
#endif
#define PRIiPTR "li" /* intptr_t */
/* fprintf macros for unsigned integers */
#define PRIo8 "o" /* uint8_t */
#define PRIo16 "o" /* uint16_t */
#define PRIo32 "o" /* uint32_t */
#ifdef __arch64__
#define PRIo64 "lo" /* uint64_t */
#else
#define PRIo64 "llo" /* uint64_t */
#endif
#define PRIoLEAST8 "o" /* uint_least8_t */
#define PRIoLEAST16 "o" /* uint_least16_t */
#define PRIoLEAST32 "o" /* uint_least32_t */
#ifdef __arch64__
#define PRIoLEAST64 "lo" /* uint_least64_t */
#define PRIoMAX "lo" /* uintmax_t */
#else
#define PRIoLEAST64 "llo" /* uint_least64_t */
#define PRIoMAX "llo" /* uintmax_t */
#endif
#define PRIoPTR "lo" /* uintptr_t */
#define PRIu8 "u" /* uint8_t */
#define PRIu16 "u" /* uint16_t */
#define PRIu32 "u" /* uint32_t */
#ifdef __arch64__
#define PRIu64 "lu" /* uint64_t */
#else
#define PRIu64 "llu" /* uint64_t */
#endif
#define PRIuLEAST8 "u" /* uint_least8_t */
#define PRIuLEAST16 "u" /* uint_least16_t */
#define PRIuLEAST32 "u" /* uint_least32_t */
#ifdef __arch64__
#define PRIuLEAST64 "lu" /* uint_least64_t */
#define PRIuMAX "lu" /* uintmax_t */
#else
#define PRIuLEAST64 "llu" /* uint_least64_t */
#define PRIuMAX "llu" /* uintmax_t */
#endif
#define PRIuPTR "lu" /* uintptr_t */
#define PRIx8 "x" /* uint8_t */
#define PRIx16 "x" /* uint16_t */
#define PRIx32 "x" /* uint32_t */
#ifdef __arch64__
#define PRIx64 "lx" /* uint64_t */
#else
#define PRIx64 "llx" /* uint64_t */
#endif
#define PRIxLEAST8 "x" /* uint_least8_t */
#define PRIxLEAST16 "x" /* uint_least16_t */
#define PRIxLEAST32 "x" /* uint_least32_t */
#ifdef __arch64__
#define PRIxLEAST64 "lx" /* uint_least64_t */
#define PRIxMAX "lx" /* uintmax_t */
#else
#define PRIxLEAST64 "llx" /* uint_least64_t */
#define PRIxMAX "llx" /* uintmax_t */
#endif
#define PRIxPTR "lx" /* uintptr_t */
#define PRIX8 "X" /* uint8_t */
#define PRIX16 "X" /* uint16_t */
#define PRIX32 "X" /* uint32_t */
#ifdef __arch64__
#define PRIX64 "lX" /* uint64_t */
#else
#define PRIX64 "llX" /* uint64_t */
#endif
#define PRIXLEAST8 "X" /* uint_least8_t */
#define PRIXLEAST16 "X" /* uint_least16_t */
#define PRIXLEAST32 "X" /* uint_least32_t */
#ifdef __arch64__
#define PRIXLEAST64 "lX" /* uint_least64_t */
#define PRIXMAX "lX" /* uintmax_t */
#else
#define PRIXLEAST64 "llX" /* uint_least64_t */
#define PRIXMAX "llX" /* uintmax_t */
#endif
#define PRIXPTR "lX" /* uintptr_t */
/* fscanf macros for signed integers */
#define SCNd8 "hhd" /* int8_t */
#define SCNd16 "hd" /* int16_t */
#define SCNd32 "d" /* int32_t */
#ifdef __arch64__
#define SCNd64 "ld" /* int64_t */
#else
#define SCNd64 "lld" /* int64_t */
#endif
#define SCNdLEAST8 "hhd" /* int_least8_t */
#define SCNdLEAST16 "hd" /* int_least16_t */
#define SCNdLEAST32 "d" /* int_least32_t */
#ifdef __arch64__
#define SCNdLEAST64 "ld" /* int_least64_t */
#define SCNdMAX "ld" /* intmax_t */
#else
#define SCNdLEAST64 "lld" /* int_least64_t */
#define SCNdMAX "lld" /* intmax_t */
#endif
#define SCNdPTR "ld" /* intptr_t */
#define SCNi8 "hhi" /* int8_t */
#define SCNi16 "hi" /* int16_t */
#define SCNi32 "i" /* int32_t */
#ifdef __arch64__
#define SCNi64 "li" /* int64_t */
#else
#define SCNi64 "lli" /* int64_t */
#endif
#define SCNiLEAST8 "hhi" /* int_least8_t */
#define SCNiLEAST16 "hi" /* int_least16_t */
#define SCNiLEAST32 "i" /* int_least32_t */
#ifdef __arch64__
#define SCNiLEAST64 "li" /* int_least64_t */
#define SCNiMAX "li" /* intmax_t */
#else
#define SCNiLEAST64 "lli" /* int_least64_t */
#define SCNiMAX "lli" /* intmax_t */
#endif
#define SCNiPTR "li" /* intptr_t */
/* fscanf macros for unsigned integers */
#define SCNo8 "hho" /* uint8_t */
#define SCNo16 "ho" /* uint16_t */
#define SCNo32 "o" /* uint32_t */
#ifdef __arch64__
#define SCNo64 "lo" /* uint64_t */
#else
#define SCNo64 "llo" /* uint64_t */
#endif
#define SCNoLEAST8 "hho" /* uint_least8_t */
#define SCNoLEAST16 "ho" /* uint_least16_t */
#define SCNoLEAST32 "o" /* uint_least32_t */
#ifdef __arch64__
#define SCNoLEAST64 "lo" /* uint_least64_t */
#define SCNoMAX "lo" /* uintmax_t */
#else
#define SCNoLEAST64 "llo" /* uint_least64_t */
#define SCNoMAX "llo" /* uintmax_t */
#endif
#define SCNoPTR "lo" /* uintptr_t */
#define SCNu8 "hhu" /* uint8_t */
#define SCNu16 "hu" /* uint16_t */
#define SCNu32 "u" /* uint32_t */
#ifdef __arch64__
#define SCNu64 "lu" /* uint64_t */
#else
#define SCNu64 "llu" /* uint64_t */
#endif
#define SCNuLEAST8 "hhu" /* uint_least8_t */
#define SCNuLEAST16 "hu" /* uint_least16_t */
#define SCNuLEAST32 "u" /* uint_least32_t */
#ifdef __arch64__
#define SCNuLEAST64 "lu" /* uint_least64_t */
#define SCNuMAX "lu" /* uintmax_t */
#else
#define SCNuLEAST64 "llu" /* uint_least64_t */
#define SCNuMAX "llu" /* uintmax_t */
#endif
#define SCNuPTR "lu" /* uintptr_t */
#define SCNx8 "hhx" /* uint8_t */
#define SCNx16 "hx" /* uint16_t */
#define SCNx32 "x" /* uint32_t */
#ifdef __arch64__
#define SCNx64 "lx" /* uint64_t */
#else
#define SCNx64 "llx" /* uint64_t */
#endif
#define SCNxLEAST8 "hhx" /* uint_least8_t */
#define SCNxLEAST16 "hx" /* uint_least16_t */
#define SCNxLEAST32 "x" /* uint_least32_t */
#ifdef __arch64__
#define SCNxLEAST64 "lx" /* uint_least64_t */
#define SCNxMAX "lx" /* uintmax_t */
#else
#define SCNxLEAST64 "llx" /* uint_least64_t */
#define SCNxMAX "llx" /* uintmax_t */
#endif
#define SCNxPTR "lx" /* uintptr_t */
#endif /* !_SPARC_INT_FMTIO_H_ */

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2001/04/15 15:29:12 kleink Exp $
# $NetBSD: Makefile,v 1.13 2001/04/15 17:13:17 kleink Exp $
KDIR= /sys/arch/sparc64/include
INCSDIR= /usr/include/sparc64
@ -10,7 +10,7 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
eeprom.h elf_machdep.h endian.h endian_machdep.h \
fbio.h fbvar.h float.h frame.h fsr.h \
idprom.h ieee.h ieeefp.h instr.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
kbd.h kbio.h kcore.h \
limits.h lock.h \
math.h \

View File

@ -0,0 +1,274 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:18 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Klaus Klein.
*
* 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.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 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 _SPARC64_INT_FMTIO_H_
#define _SPARC64_INT_FMTIO_H_
/*
* 7.8.1 Macros for format specifiers
*/
/* fprintf macros for signed integers */
#define PRId8 "d" /* int8_t */
#define PRId16 "d" /* int16_t */
#define PRId32 "d" /* int32_t */
#ifdef __arch64__
#define PRId64 "ld" /* int64_t */
#else
#define PRId64 "lld" /* int64_t */
#endif
#define PRIdLEAST8 "d" /* int_least8_t */
#define PRIdLEAST16 "d" /* int_least16_t */
#define PRIdLEAST32 "d" /* int_least32_t */
#ifdef __arch64__
#define PRIdLEAST64 "ld" /* int_least64_t */
#define PRIdMAX "ld" /* intmax_t */
#else
#define PRIdLEAST64 "lld" /* int_least64_t */
#define PRIdMAX "lld" /* intmax_t */
#endif
#define PRIdPTR "ld" /* intptr_t */
#define PRIi8 "i" /* int8_t */
#define PRIi16 "i" /* int16_t */
#define PRIi32 "i" /* int32_t */
#ifdef __arch64__
#define PRIi64 "li" /* int64_t */
#else
#define PRIi64 "lli" /* int64_t */
#endif
#define PRIiLEAST8 "i" /* int_least8_t */
#define PRIiLEAST16 "i" /* int_least16_t */
#define PRIiLEAST32 "i" /* int_least32_t */
#ifdef __arch64__
#define PRIiLEAST64 "li" /* int_least64_t */
#define PRIiMAX "li" /* intmax_t */
#else
#define PRIiLEAST64 "lli" /* int_least64_t */
#define PRIiMAX "lli" /* intmax_t */
#endif
#define PRIiPTR "li" /* intptr_t */
/* fprintf macros for unsigned integers */
#define PRIo8 "o" /* uint8_t */
#define PRIo16 "o" /* uint16_t */
#define PRIo32 "o" /* uint32_t */
#ifdef __arch64__
#define PRIo64 "lo" /* uint64_t */
#else
#define PRIo64 "llo" /* uint64_t */
#endif
#define PRIoLEAST8 "o" /* uint_least8_t */
#define PRIoLEAST16 "o" /* uint_least16_t */
#define PRIoLEAST32 "o" /* uint_least32_t */
#ifdef __arch64__
#define PRIoLEAST64 "lo" /* uint_least64_t */
#define PRIoMAX "lo" /* uintmax_t */
#else
#define PRIoLEAST64 "llo" /* uint_least64_t */
#define PRIoMAX "llo" /* uintmax_t */
#endif
#define PRIoPTR "lo" /* uintptr_t */
#define PRIu8 "u" /* uint8_t */
#define PRIu16 "u" /* uint16_t */
#define PRIu32 "u" /* uint32_t */
#ifdef __arch64__
#define PRIu64 "lu" /* uint64_t */
#else
#define PRIu64 "llu" /* uint64_t */
#endif
#define PRIuLEAST8 "u" /* uint_least8_t */
#define PRIuLEAST16 "u" /* uint_least16_t */
#define PRIuLEAST32 "u" /* uint_least32_t */
#ifdef __arch64__
#define PRIuLEAST64 "lu" /* uint_least64_t */
#define PRIuMAX "lu" /* uintmax_t */
#else
#define PRIuLEAST64 "llu" /* uint_least64_t */
#define PRIuMAX "llu" /* uintmax_t */
#endif
#define PRIuPTR "lu" /* uintptr_t */
#define PRIx8 "x" /* uint8_t */
#define PRIx16 "x" /* uint16_t */
#define PRIx32 "x" /* uint32_t */
#ifdef __arch64__
#define PRIx64 "lx" /* uint64_t */
#else
#define PRIx64 "llx" /* uint64_t */
#endif
#define PRIxLEAST8 "x" /* uint_least8_t */
#define PRIxLEAST16 "x" /* uint_least16_t */
#define PRIxLEAST32 "x" /* uint_least32_t */
#ifdef __arch64__
#define PRIxLEAST64 "lx" /* uint_least64_t */
#define PRIxMAX "lx" /* uintmax_t */
#else
#define PRIxLEAST64 "llx" /* uint_least64_t */
#define PRIxMAX "llx" /* uintmax_t */
#endif
#define PRIxPTR "lx" /* uintptr_t */
#define PRIX8 "X" /* uint8_t */
#define PRIX16 "X" /* uint16_t */
#define PRIX32 "X" /* uint32_t */
#ifdef __arch64__
#define PRIX64 "lX" /* uint64_t */
#else
#define PRIX64 "llX" /* uint64_t */
#endif
#define PRIXLEAST8 "X" /* uint_least8_t */
#define PRIXLEAST16 "X" /* uint_least16_t */
#define PRIXLEAST32 "X" /* uint_least32_t */
#ifdef __arch64__
#define PRIXLEAST64 "lX" /* uint_least64_t */
#define PRIXMAX "lX" /* uintmax_t */
#else
#define PRIXLEAST64 "llX" /* uint_least64_t */
#define PRIXMAX "llX" /* uintmax_t */
#endif
#define PRIXPTR "lX" /* uintptr_t */
/* fscanf macros for signed integers */
#define SCNd8 "hhd" /* int8_t */
#define SCNd16 "hd" /* int16_t */
#define SCNd32 "d" /* int32_t */
#ifdef __arch64__
#define SCNd64 "ld" /* int64_t */
#else
#define SCNd64 "lld" /* int64_t */
#endif
#define SCNdLEAST8 "hhd" /* int_least8_t */
#define SCNdLEAST16 "hd" /* int_least16_t */
#define SCNdLEAST32 "d" /* int_least32_t */
#ifdef __arch64__
#define SCNdLEAST64 "ld" /* int_least64_t */
#define SCNdMAX "ld" /* intmax_t */
#else
#define SCNdLEAST64 "lld" /* int_least64_t */
#define SCNdMAX "lld" /* intmax_t */
#endif
#define SCNdPTR "ld" /* intptr_t */
#define SCNi8 "hhi" /* int8_t */
#define SCNi16 "hi" /* int16_t */
#define SCNi32 "i" /* int32_t */
#ifdef __arch64__
#define SCNi64 "li" /* int64_t */
#else
#define SCNi64 "lli" /* int64_t */
#endif
#define SCNiLEAST8 "hhi" /* int_least8_t */
#define SCNiLEAST16 "hi" /* int_least16_t */
#define SCNiLEAST32 "i" /* int_least32_t */
#ifdef __arch64__
#define SCNiLEAST64 "li" /* int_least64_t */
#define SCNiMAX "li" /* intmax_t */
#else
#define SCNiLEAST64 "lli" /* int_least64_t */
#define SCNiMAX "lli" /* intmax_t */
#endif
#define SCNiPTR "li" /* intptr_t */
/* fscanf macros for unsigned integers */
#define SCNo8 "hho" /* uint8_t */
#define SCNo16 "ho" /* uint16_t */
#define SCNo32 "o" /* uint32_t */
#ifdef __arch64__
#define SCNo64 "lo" /* uint64_t */
#else
#define SCNo64 "llo" /* uint64_t */
#endif
#define SCNoLEAST8 "hho" /* uint_least8_t */
#define SCNoLEAST16 "ho" /* uint_least16_t */
#define SCNoLEAST32 "o" /* uint_least32_t */
#ifdef __arch64__
#define SCNoLEAST64 "lo" /* uint_least64_t */
#define SCNoMAX "lo" /* uintmax_t */
#else
#define SCNoLEAST64 "llo" /* uint_least64_t */
#define SCNoMAX "llo" /* uintmax_t */
#endif
#define SCNoPTR "lo" /* uintptr_t */
#define SCNu8 "hhu" /* uint8_t */
#define SCNu16 "hu" /* uint16_t */
#define SCNu32 "u" /* uint32_t */
#ifdef __arch64__
#define SCNu64 "lu" /* uint64_t */
#else
#define SCNu64 "llu" /* uint64_t */
#endif
#define SCNuLEAST8 "hhu" /* uint_least8_t */
#define SCNuLEAST16 "hu" /* uint_least16_t */
#define SCNuLEAST32 "u" /* uint_least32_t */
#ifdef __arch64__
#define SCNuLEAST64 "lu" /* uint_least64_t */
#define SCNuMAX "lu" /* uintmax_t */
#else
#define SCNuLEAST64 "llu" /* uint_least64_t */
#define SCNuMAX "llu" /* uintmax_t */
#endif
#define SCNuPTR "lu" /* uintptr_t */
#define SCNx8 "hhx" /* uint8_t */
#define SCNx16 "hx" /* uint16_t */
#define SCNx32 "x" /* uint32_t */
#ifdef __arch64__
#define SCNx64 "lx" /* uint64_t */
#else
#define SCNx64 "llx" /* uint64_t */
#endif
#define SCNxLEAST8 "hhx" /* uint_least8_t */
#define SCNxLEAST16 "hx" /* uint_least16_t */
#define SCNxLEAST32 "x" /* uint_least32_t */
#ifdef __arch64__
#define SCNxLEAST64 "lx" /* uint_least64_t */
#define SCNxMAX "lx" /* uintmax_t */
#else
#define SCNxLEAST64 "llx" /* uint_least64_t */
#define SCNxMAX "llx" /* uintmax_t */
#endif
#define SCNxPTR "lx" /* uintptr_t */
#endif /* !_SPARC64_INT_FMTIO_H_ */

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:19 kleink Exp $ */
#include <m68k/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2001/04/15 15:29:12 kleink Exp $
# $NetBSD: Makefile,v 1.14 2001/04/15 17:13:18 kleink Exp $
KDIR= /sys/arch/sun3/include
INCSDIR= /usr/include/sun3
@ -10,7 +10,7 @@ INCS= ansi.h aout_machdep.h asm.h autoconf.h \
eeprom.h elf_machdep.h endian.h endian_machdep.h \
fbio.h float.h frame.h \
idprom.h ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
kbd.h kbio.h kcore.h \
leds.h limits.h lock.h \
math.h mc68851.h mon.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:18 kleink Exp $ */
#include <m68k/int_fmtio.h>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2001/04/15 15:29:12 kleink Exp $
# $NetBSD: Makefile,v 1.17 2001/04/15 17:13:18 kleink Exp $
KDIR= /sys/arch/vax/include
INCSDIR= /usr/include/vax
@ -10,7 +10,8 @@ INCS= ansi.h aout_machdep.h asm.h \
elf_machdep.h endian.h endian_machdep.h \
float.h frame.h \
ibcs2_machdep.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h ioa.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
ioa.h \
ka410.h ka420.h ka43.h ka630.h ka650.h ka750.h ka820.h \
leds.h loadfile_machdep.h lcgreg.h limits.h lock.h \
macros.h math.h mtpr.h \

View File

@ -0,0 +1,219 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:18 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Klaus Klein.
*
* 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.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the NetBSD
* Foundation, Inc. and its contributors.
* 4. Neither the name of The NetBSD Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 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 _VAX_INT_FMTIO_H_
#define _VAX_INT_FMTIO_H_
/*
* 7.8.1 Macros for format specifiers
*/
/* fprintf macros for signed integers */
#define PRId8 "d" /* int8_t */
#define PRId16 "d" /* int16_t */
#define PRId32 "d" /* int32_t */
#define PRId64 "lld" /* int64_t */
#define PRIdLEAST8 "d" /* int_least8_t */
#define PRIdLEAST16 "d" /* int_least16_t */
#define PRIdLEAST32 "d" /* int_least32_t */
#define PRIdLEAST64 "lld" /* int_least64_t */
#define PRIdMAX "lld" /* intmax_t */
#ifdef __ELF__
#define PRIdPTR "ld" /* intptr_t */
#else
#define PRIdPTR "d" /* intptr_t */
#endif
#define PRIi8 "i" /* int8_t */
#define PRIi16 "i" /* int16_t */
#define PRIi32 "i" /* int32_t */
#define PRIi64 "lli" /* int64_t */
#define PRIiLEAST8 "i" /* int_least8_t */
#define PRIiLEAST16 "i" /* int_least16_t */
#define PRIiLEAST32 "i" /* int_least32_t */
#define PRIiLEAST64 "lli" /* int_least64_t */
#define PRIiMAX "lli" /* intmax_t */
#ifdef __ELF__
#define PRIiPTR "li" /* intptr_t */
#else
#define PRIiPTR "i" /* intptr_t */
#endif
/* fprintf macros for unsigned integers */
#define PRIo8 "o" /* uint8_t */
#define PRIo16 "o" /* uint16_t */
#define PRIo32 "o" /* uint32_t */
#define PRIo64 "llo" /* uint64_t */
#define PRIoLEAST8 "o" /* uint_least8_t */
#define PRIoLEAST16 "o" /* uint_least16_t */
#define PRIoLEAST32 "o" /* uint_least32_t */
#define PRIoLEAST64 "llo" /* uint_least64_t */
#define PRIoMAX "llo" /* uintmax_t */
#ifdef __ELF__
#define PRIoPTR "lo" /* uintptr_t */
#else
#define PRIoPTR "o" /* uintptr_t */
#endif
#define PRIu8 "u" /* uint8_t */
#define PRIu16 "u" /* uint16_t */
#define PRIu32 "u" /* uint32_t */
#define PRIu64 "llu" /* uint64_t */
#define PRIuLEAST8 "u" /* uint_least8_t */
#define PRIuLEAST16 "u" /* uint_least16_t */
#define PRIuLEAST32 "u" /* uint_least32_t */
#define PRIuLEAST64 "llu" /* uint_least64_t */
#define PRIuMAX "llu" /* uintmax_t */
#ifdef __ELF__
#define PRIuPTR "lu" /* uintptr_t */
#else
#define PRIuPTR "u" /* uintptr_t */
#endif
#define PRIx8 "x" /* uint8_t */
#define PRIx16 "x" /* uint16_t */
#define PRIx32 "x" /* uint32_t */
#define PRIx64 "llx" /* uint64_t */
#define PRIxLEAST8 "x" /* uint_least8_t */
#define PRIxLEAST16 "x" /* uint_least16_t */
#define PRIxLEAST32 "x" /* uint_least32_t */
#define PRIxLEAST64 "llx" /* uint_least64_t */
#define PRIxMAX "llx" /* uintmax_t */
#ifdef __ELF__
#define PRIxPTR "lx" /* uintptr_t */
#else
#define PRIxPTR "x" /* uintptr_t */
#endif
#define PRIX8 "X" /* uint8_t */
#define PRIX16 "X" /* uint16_t */
#define PRIX32 "X" /* uint32_t */
#define PRIX64 "llX" /* uint64_t */
#define PRIXLEAST8 "X" /* uint_least8_t */
#define PRIXLEAST16 "X" /* uint_least16_t */
#define PRIXLEAST32 "X" /* uint_least32_t */
#define PRIXLEAST64 "llX" /* uint_least64_t */
#define PRIXMAX "llX" /* uintmax_t */
#ifdef __ELF__
#define PRIXPTR "lX" /* uintptr_t */
#else
#define PRIXPTR "X" /* uintptr_t */
#endif
/* fscanf macros for signed integers */
#define SCNd8 "hhd" /* int8_t */
#define SCNd16 "hd" /* int16_t */
#define SCNd32 "d" /* int32_t */
#define SCNd64 "lld" /* int64_t */
#define SCNdLEAST8 "hhd" /* int_least8_t */
#define SCNdLEAST16 "hd" /* int_least16_t */
#define SCNdLEAST32 "d" /* int_least32_t */
#define SCNdLEAST64 "lld" /* int_least64_t */
#define SCNdMAX "lld" /* intmax_t */
#ifdef __ELF__
#define SCNdPTR "ld" /* intptr_t */
#else
#define SCNdPTR "d" /* intptr_t */
#endif
#define SCNi8 "hhi" /* int8_t */
#define SCNi16 "hi" /* int16_t */
#define SCNi32 "i" /* int32_t */
#define SCNi64 "lli" /* int64_t */
#define SCNiLEAST8 "hhi" /* int_least8_t */
#define SCNiLEAST16 "hi" /* int_least16_t */
#define SCNiLEAST32 "i" /* int_least32_t */
#define SCNiLEAST64 "lli" /* int_least64_t */
#define SCNiMAX "lli" /* intmax_t */
#ifdef __ELF__
#define SCNiPTR "li" /* intptr_t */
#else
#define SCNiPTR "i" /* intptr_t */
#endif
/* fscanf macros for unsigned integers */
#define SCNo8 "hho" /* uint8_t */
#define SCNo16 "ho" /* uint16_t */
#define SCNo32 "o" /* uint32_t */
#define SCNo64 "llo" /* uint64_t */
#define SCNoLEAST8 "hho" /* uint_least8_t */
#define SCNoLEAST16 "ho" /* uint_least16_t */
#define SCNoLEAST32 "o" /* uint_least32_t */
#define SCNoLEAST64 "llo" /* uint_least64_t */
#define SCNoMAX "llo" /* uintmax_t */
#ifdef __ELF__
#define SCNoPTR "lo" /* uintptr_t */
#else
#define SCNoPTR "o" /* uintptr_t */
#endif
#define SCNu8 "hhu" /* uint8_t */
#define SCNu16 "hu" /* uint16_t */
#define SCNu32 "u" /* uint32_t */
#define SCNu64 "llu" /* uint64_t */
#define SCNuLEAST8 "hhu" /* uint_least8_t */
#define SCNuLEAST16 "hu" /* uint_least16_t */
#define SCNuLEAST32 "u" /* uint_least32_t */
#define SCNuLEAST64 "llu" /* uint_least64_t */
#define SCNuMAX "llu" /* uintmax_t */
#ifdef __ELF__
#define SCNuPTR "lu" /* uintptr_t */
#else
#define SCNuPTR "u" /* uintptr_t */
#endif
#define SCNx8 "hhx" /* uint8_t */
#define SCNx16 "hx" /* uint16_t */
#define SCNx32 "x" /* uint32_t */
#define SCNx64 "llx" /* uint64_t */
#define SCNxLEAST8 "hhx" /* uint_least8_t */
#define SCNxLEAST16 "hx" /* uint_least16_t */
#define SCNxLEAST32 "x" /* uint_least32_t */
#define SCNxLEAST64 "llx" /* uint_least64_t */
#define SCNxMAX "llx" /* uintmax_t */
#ifdef __ELF__
#define SCNxPTR "lx" /* uintptr_t */
#else
#define SCNxPTR "x" /* uintptr_t */
#endif
#endif /* !_VAX_INT_FMTIO_H_ */

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2001/04/15 15:29:13 kleink Exp $
# $NetBSD: Makefile,v 1.18 2001/04/15 17:13:18 kleink Exp $
KDIR= /sys/arch/x68k/include
INCSDIR= /usr/include/x68k
@ -11,8 +11,8 @@ INCS= ansi.h aout_machdep.h asm.h \
float.h frame.h \
grfioctl.h \
ieee.h ieeefp.h \
int_const.h int_limits.h int_mwgwtypes.h int_types.h intr.h \
iteioctl.h \
int_const.h int_fmtio.h int_limits.h int_mwgwtypes.h int_types.h \
intr.h iteioctl.h \
kbd.h kbio.h kcore.h \
math.h \
lock.h limits.h \

View File

@ -0,0 +1,3 @@
/* $NetBSD: int_fmtio.h,v 1.1 2001/04/15 17:13:18 kleink Exp $ */
#include <m68k/int_fmtio.h>