Changeset 5587cf7 in mainline
- Timestamp:
- 2010-11-26T01:15:00Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3ebba9a
- Parents:
- 855e0d8
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/include/stdint.h
r855e0d8 r5587cf7 33 33 #define BOOT_STDINT_H_ 34 34 35 #define INT8_MIN (0x80)36 #define INT8_MAX (0x7F)35 #define INT8_MIN INT8_C(0x80) 36 #define INT8_MAX INT8_C(0x7F) 37 37 38 #define UINT8_MIN (0u)39 #define UINT8_MAX (0xFFu)38 #define UINT8_MIN UINT8_C(0) 39 #define UINT8_MAX UINT8_C(0xFF) 40 40 41 #define INT16_MIN (0x8000)42 #define INT16_MAX (0x7FFF)41 #define INT16_MIN INT16_C(0x8000) 42 #define INT16_MAX INT16_C(0x7FFF) 43 43 44 #define UINT16_MIN (0u)45 #define UINT16_MAX (0xFFFFu)44 #define UINT16_MIN UINT16_C(0) 45 #define UINT16_MAX UINT16_C(0xFFFF) 46 46 47 #define INT32_MIN (0x80000000l)48 #define INT32_MAX (0x7FFFFFFFl)47 #define INT32_MIN INT32_C(0x80000000) 48 #define INT32_MAX INT32_C(0x7FFFFFFF) 49 49 50 #define UINT32_MIN (0ul)51 #define UINT32_MAX (0xFFFFFFFFul)50 #define UINT32_MIN UINT32_C(0) 51 #define UINT32_MAX UINT32_C(0xFFFFFFFF) 52 52 53 #define INT64_MIN (0x8000000000000000ll)54 #define INT64_MAX (0x7FFFFFFFFFFFFFFFll)53 #define INT64_MIN INT64_C(0x8000000000000000) 54 #define INT64_MAX INT64_C(0x7FFFFFFFFFFFFFFF) 55 55 56 #define UINT64_MIN (0ull)57 #define UINT64_MAX (0xFFFFFFFFFFFFFFFFull)56 #define UINT64_MIN UINT64_C(0) 57 #define UINT64_MAX UINT64_C(0xFFFFFFFFFFFFFFFF) 58 58 59 59 #endif -
boot/generic/include/typedefs.h
r855e0d8 r5587cf7 37 37 #include <arch/types.h> 38 38 39 #define NULL 39 #define NULL ((void *) 0) 40 40 41 41 #define false 0 … … 43 43 44 44 typedef uint8_t bool; 45 typedef int32_t wchar_t;46 45 47 46 #endif -
kernel/arch/abs32le/include/types.h
r855e0d8 r5587cf7 53 53 } fncptr_t; 54 54 55 #define PRIp PRIx32 /**< Format for uintptr_t. */ 56 #define PRIs PRIu32 /**< Format for size_t. */ 55 #define INTN_C(c) INT32_C(c) 56 #define UINTN_C(c) UINT32_C(c) 57 57 58 #define PRIdn PRId32 /**< Format for native_t. */ 58 59 #define PRIun PRIu32 /**< Format for unative_t. */ 59 60 #define PRIxn PRIx32 /**< Format for hexadecimal unative_t. */ 61 #define PRIua PRIu32 /**< Format for atomic_count_t. */ 60 62 61 63 #endif -
kernel/arch/amd64/include/types.h
r855e0d8 r5587cf7 50 50 } fncptr_t; 51 51 52 #define PRIp PRIx64 /**< Format for uintptr_t. */ 53 #define PRIs PRIu64 /**< Format for size_t. */ 52 #define INTN_C(c) INT64_C(c) 53 #define UINTN_C(c) UINT64_C(c) 54 54 55 #define PRIdn PRId64 /**< Format for native_t. */ 55 56 #define PRIun PRIu64 /**< Format for unative_t. */ 56 57 #define PRIxn PRIx64 /**< Format for hexadecimal unative_t. */ 58 #define PRIua PRIu64 /**< Format for atomic_count_t. */ 57 59 58 60 #endif -
kernel/arch/arm32/include/types.h
r855e0d8 r5587cf7 57 57 } fncptr_t; 58 58 59 #define PRIp PRIx32 /**< Format for uintptr_t. */ 60 #define PRIs PRIu32 /**< Format for size_t. */ 59 #define INTN_C(c) INT32_C(c) 60 #define UINTN_C(c) UINT32_C(c) 61 61 62 #define PRIdn PRId32 /**< Format for native_t. */ 62 63 #define PRIun PRIu32 /**< Format for unative_t. */ 63 64 #define PRIxn PRIx32 /**< Format for hexadecimal unative_t. */ 65 #define PRIua PRIu32 /**< Format for atomic_count_t. */ 64 66 65 67 #endif -
kernel/arch/ia32/include/types.h
r855e0d8 r5587cf7 50 50 } fncptr_t; 51 51 52 #define PRIp PRIx32 /**< Format for uintptr_t. */ 53 #define PRIs PRIu32 /**< Format for size_t. */ 52 #define INTN_C(c) INT32_C(c) 53 #define UINTN_C(c) UINT32_C(c) 54 54 55 #define PRIdn PRId32 /**< Format for native_t. */ 55 56 #define PRIun PRIu32 /**< Format for unative_t. */ 56 57 #define PRIxn PRIx32 /**< Format for hexadecimal unative_t. */ 58 #define PRIua PRIu32 /**< Format for atomic_count_t. */ 57 59 58 60 #endif -
kernel/arch/ia64/include/types.h
r855e0d8 r5587cf7 52 52 } __attribute__((may_alias)) fncptr_t; 53 53 54 #define PRIp PRIx64 /**< Format for uintptr_t. */ 55 #define PRIs PRIu64 /**< Format for size_t. */ 54 #define INTN_C(c) INT64_C(c) 55 #define UINTN_C(c) UINT64_C(c) 56 56 57 #define PRIdn PRId64 /**< Format for native_t. */ 57 58 #define PRIun PRIu64 /**< Format for unative_t. */ 58 59 #define PRIxn PRIx64 /**< Format for hexadecimal unative_t. */ 60 #define PRIua PRIu64 /**< Format for atomic_count_t. */ 59 61 60 62 #endif -
kernel/arch/mips32/include/types.h
r855e0d8 r5587cf7 50 50 } fncptr_t; 51 51 52 #define PRIp PRIx32 /**< Format for uintptr_t. */ 53 #define PRIs PRIu32 /**< Format for size_t. */ 52 #define INTN_C(c) INT32_C(c) 53 #define UINTN_C(c) UINT32_C(c) 54 54 55 #define PRIdn PRId32 /**< Format for native_t. */ 55 56 #define PRIun PRIu32 /**< Format for unative_t. */ 56 57 #define PRIxn PRIx32 /**< Format for hexadecimal unative_t. */ 58 #define PRIua PRIu32 /**< Format for atomic_count_t. */ 57 59 58 60 #endif -
kernel/arch/ppc32/include/types.h
r855e0d8 r5587cf7 50 50 } fncptr_t; 51 51 52 #define PRIp PRIx32 /**< Format for uintptr_t. */ 53 #define PRIs PRIu32 /**< Format for size_t. */ 52 #define INTN_C(c) INT32_C(c) 53 #define UINTN_C(c) UINT32_C(c) 54 54 55 #define PRIdn PRId32 /**< Format for native_t. */ 55 56 #define PRIun PRIu32 /**< Format for unative_t. */ 56 57 #define PRIxn PRIx32 /**< Format for hexadecimal unative_t. */ 58 #define PRIua PRIu32 /**< Format for atomic_count_t. */ 57 59 58 60 #endif -
kernel/arch/sparc64/include/types.h
r855e0d8 r5587cf7 52 52 typedef uint8_t asi_t; 53 53 54 #define PRIp PRIx64 /**< Format for uintptr_t. */ 55 #define PRIs PRIu64 /**< Format for size_t. */ 54 #define INTN_C(c) INT64_C(c) 55 #define UINTN_C(c) UINT64_C(c) 56 56 57 #define PRIdn PRId64 /**< Format for native_t. */ 57 58 #define PRIun PRIu64 /**< Format for unative_t. */ 58 59 #define PRIxn PRIx64 /**< Format for hexadecimal unative_t. */ 60 #define PRIua PRIu64 /**< Format for atomic_count_t. */ 59 61 60 62 #endif -
kernel/generic/include/typedefs.h
r855e0d8 r5587cf7 40 40 #include <arch/types.h> 41 41 42 #define NULL 42 #define NULL ((void *) 0) 43 43 44 44 #define false 0 … … 69 69 typedef int32_t devno_t; 70 70 71 typedef int32_t wchar_t;72 73 71 typedef volatile uint8_t ioport8_t; 74 72 typedef volatile uint16_t ioport16_t; -
uspace/lib/c/arch/abs32le/include/inttypes.h
r855e0d8 r5587cf7 34 34 #define LIBC_abs32le_INTTYPES_H_ 35 35 36 #define PRIdPTR PRId32 37 #define PRIoPTR PRIo32 38 #define PRIuPTR PRIu32 39 #define PRIxPTR PRIx32 40 #define PRIXPTR PRIX32 36 #define PRIdn PRId32 /**< Format for sysarg_t, ipcarg_t, etc. */ 37 #define PRIun PRIu32 /**< Format for sysarg_t, ipcarg_t, etc. */ 38 #define PRIxn PRIx32 /**< Format for hexadecimal sysarg_t, ipcarg_t, etc. */ 39 #define PRIua PRIu32 /**< Format for atomic_count_t. */ 41 40 42 41 #endif -
uspace/lib/c/arch/amd64/include/inttypes.h
r855e0d8 r5587cf7 30 30 * @{ 31 31 */ 32 /** @file Macros for format specifiers.33 *34 * Macros for formatting stdint types as specified in section35 * 7.8.1 Macros for format specifiers of the C99 draft specification36 * (ISO/IEC 9899:201x). Only some macros from the specification are37 * implemented.38 */39 32 40 33 #ifndef LIBC_amd64_INTTYPES_H_ 41 34 #define LIBC_amd64_INTTYPES_H_ 42 35 43 #define PRIdPTR PRId64 44 #define PRIoPTR PRIo64 45 #define PRIuPTR PRIu64 46 #define PRIxPTR PRIx64 47 #define PRIXPTR PRIX64 36 #define PRIdn PRId64 /**< Format for sysarg_t, ipcarg_t, etc. */ 37 #define PRIun PRIu64 /**< Format for sysarg_t, ipcarg_t, etc. */ 38 #define PRIxn PRIx64 /**< Format for hexadecimal sysarg_t, ipcarg_t, etc. */ 39 #define PRIua PRIu64 /**< Format for atomic_count_t. */ 48 40 49 41 #endif -
uspace/lib/c/arch/arm32/include/inttypes.h
r855e0d8 r5587cf7 30 30 * @{ 31 31 */ 32 /** @file Macros for format specifiers.33 *34 * Macros for formatting stdint types as specified in section35 * 7.8.1 Macros for format specifiers of the C99 draft specification36 * (ISO/IEC 9899:201x). Only some macros from the specification are37 * implemented.38 */39 32 40 33 #ifndef LIBC_arm32_INTTYPES_H_ 41 34 #define LIBC_arm32_INTTYPES_H_ 42 35 43 #define PRIdPTR PRId32 44 #define PRIoPTR PRIo32 45 #define PRIuPTR PRIu32 46 #define PRIxPTR PRIx32 47 #define PRIXPTR PRIX32 36 #define PRIdn PRId32 /**< Format for sysarg_t, ipcarg_t, etc. */ 37 #define PRIun PRIu32 /**< Format for sysarg_t, ipcarg_t, etc. */ 38 #define PRIxn PRIx32 /**< Format for hexadecimal sysarg_t, ipcarg_t, etc. */ 39 #define PRIua PRIu32 /**< Format for atomic_count_t. */ 48 40 49 41 #endif -
uspace/lib/c/arch/ia32/include/inttypes.h
r855e0d8 r5587cf7 30 30 * @{ 31 31 */ 32 /** @file Macros for format specifiers.33 *34 * Macros for formatting stdint types as specified in section35 * 7.8.1 Macros for format specifiers of the C99 draft specification36 * (ISO/IEC 9899:201x). Only some macros from the specification are37 * implemented.38 */39 32 40 33 #ifndef LIBC_ia32_INTTYPES_H_ 41 34 #define LIBC_ia32_INTTYPES_H_ 42 35 43 #define PRIdPTR PRId32 44 #define PRIoPTR PRIo32 45 #define PRIuPTR PRIu32 46 #define PRIxPTR PRIx32 47 #define PRIXPTR PRIX32 36 #define PRIdn PRId32 /**< Format for sysarg_t, ipcarg_t, etc. */ 37 #define PRIun PRIu32 /**< Format for sysarg_t, ipcarg_t, etc. */ 38 #define PRIxn PRIx32 /**< Format for hexadecimal sysarg_t, ipcarg_t, etc. */ 39 #define PRIua PRIu32 /**< Format for atomic_count_t. */ 48 40 49 41 #endif -
uspace/lib/c/arch/ia64/include/inttypes.h
r855e0d8 r5587cf7 30 30 * @{ 31 31 */ 32 /** @file Macros for format specifiers.33 *34 * Macros for formatting stdint types as specified in section35 * 7.8.1 Macros for format specifiers of the C99 draft specification36 * (ISO/IEC 9899:201x). Only some macros from the specification are37 * implemented.38 */39 32 40 33 #ifndef LIBC_ia64_INTTYPES_H_ 41 34 #define LIBC_ia64_INTTYPES_H_ 42 35 43 #define PRIdPTR PRId64 44 #define PRIoPTR PRIo64 45 #define PRIuPTR PRIu64 46 #define PRIxPTR PRIx64 47 #define PRIXPTR PRIX64 36 #define PRIdn PRId64 /**< Format for sysarg_t, ipcarg_t, etc. */ 37 #define PRIun PRIu64 /**< Format for sysarg_t, ipcarg_t, etc. */ 38 #define PRIxn PRIx64 /**< Format for hexadecimal sysarg_t, ipcarg_t, etc. */ 39 #define PRIua PRIu64 /**< Format for atomic_count_t. */ 48 40 49 41 #endif -
uspace/lib/c/arch/mips32/include/inttypes.h
r855e0d8 r5587cf7 30 30 * @{ 31 31 */ 32 /** @file Macros for format specifiers.33 *34 * Macros for formatting stdint types as specified in section35 * 7.8.1 Macros for format specifiers of the C99 draft specification36 * (ISO/IEC 9899:201x). Only some macros from the specification are37 * implemented.38 */39 32 40 33 #ifndef LIBC_mips32_INTTYPES_H_ 41 34 #define LIBC_mips32_INTTYPES_H_ 42 35 43 #define PRIdPTR PRId32 44 #define PRIoPTR PRIo32 45 #define PRIuPTR PRIu32 46 #define PRIxPTR PRIx32 47 #define PRIXPTR PRIX32 36 #define PRIdn PRId32 /**< Format for sysarg_t, ipcarg_t, etc. */ 37 #define PRIun PRIu32 /**< Format for sysarg_t, ipcarg_t, etc. */ 38 #define PRIxn PRIx32 /**< Format for hexadecimal sysarg_t, ipcarg_t, etc. */ 39 #define PRIua PRIu32 /**< Format for atomic_count_t. */ 48 40 49 41 #endif -
uspace/lib/c/arch/ppc32/include/inttypes.h
r855e0d8 r5587cf7 30 30 * @{ 31 31 */ 32 /** @file Macros for format specifiers.33 *34 * Macros for formatting stdint types as specified in section35 * 7.8.1 Macros for format specifiers of the C99 draft specification36 * (ISO/IEC 9899:201x). Only some macros from the specification are37 * implemented.38 */39 32 40 33 #ifndef LIBC_ppc32_INTTYPES_H_ 41 34 #define LIBC_ppc32_INTTYPES_H_ 42 35 43 #define PRIdPTR PRId32 44 #define PRIoPTR PRIo32 45 #define PRIuPTR PRIu32 46 #define PRIxPTR PRIx32 47 #define PRIXPTR PRIX32 36 #define PRIdn PRId32 /**< Format for sysarg_t, ipcarg_t, etc. */ 37 #define PRIun PRIu32 /**< Format for sysarg_t, ipcarg_t, etc. */ 38 #define PRIxn PRIx32 /**< Format for hexadecimal sysarg_t, ipcarg_t, etc. */ 39 #define PRIua PRIu32 /**< Format for atomic_count_t. */ 48 40 49 41 #endif -
uspace/lib/c/arch/sparc64/include/inttypes.h
r855e0d8 r5587cf7 30 30 * @{ 31 31 */ 32 /** @file Macros for format specifiers.33 *34 * Macros for formatting stdint types as specified in section35 * 7.8.1 Macros for format specifiers of the C99 draft specification36 * (ISO/IEC 9899:201x). Only some macros from the specification are37 * implemented.38 */39 32 40 33 #ifndef LIBC_sparc64_INTTYPES_H_ 41 34 #define LIBC_sparc64_INTTYPES_H_ 42 35 43 #define PRIdPTR PRId64 44 #define PRIoPTR PRIo64 45 #define PRIuPTR PRIu64 46 #define PRIxPTR PRIx64 47 #define PRIXPTR PRIX64 36 #define PRIdn PRId64 /**< Format for sysarg_t, ipcarg_t, etc. */ 37 #define PRIun PRIu64 /**< Format for sysarg_t, ipcarg_t, etc. */ 38 #define PRIxn PRIx64 /**< Format for hexadecimal sysarg_t, ipcarg_t, etc. */ 39 #define PRIua PRIu64 /**< Format for atomic_count_t. */ 48 40 49 41 #endif -
uspace/lib/c/include/sys/typefmt.h
r855e0d8 r5587cf7 39 39 #include <inttypes.h> 40 40 41 /* off64_t */41 /* off64_t, aoff64_t */ 42 42 #define PRIdOFF64 PRId64 43 43 #define PRIuOFF64 PRIu64 … … 45 45 #define PRIXOFF64 PRIX64 46 46 47 /* (s)size_t */48 #define PRIdSIZE PRIdPTR49 #define PRIuSIZE PRIuPTR50 #define PRIxSIZE PRIxPTR51 #define PRIXSIZE PRIXPTR52 53 /* sysarg_t */54 #define PRIdSYSARG PRIdPTR55 #define PRIuSYSARG PRIuPTR56 #define PRIxSYSARG PRIxPTR57 #define PRIXSYSARG PRIxPTR58 59 /* ipcarg_t */60 #define PRIdIPCARG PRIdPTR61 #define PRIuIPCARG PRIuPTR62 #define PRIxIPCARG PRIxPTR63 #define PRIXIPCARG PRIXPTR64 65 /* taskid_t */66 #define PRIdTASKID PRId6467 #define PRIuTASKID PRIu6468 #define PRIxTASKID PRIx6469 #define PRIXTASKID PRIx6470 71 47 #endif 72 48
Note:
See TracChangeset
for help on using the changeset viewer.