]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/sandbox/include/asm/posix_types.h
sandbox: Correct data sizes and printf() strings in fdtdec.c
[people/ms/u-boot.git] / arch / sandbox / include / asm / posix_types.h
CommitLineData
744d9859
SG
1/*
2 * linux/include/asm-arm/posix_types.h
3 *
4 * Copyright (C) 1996-1998 Russell King.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * Changelog:
11 * 27-06-1996 RMK Created
12 */
13#ifndef __ARCH_ARM_POSIX_TYPES_H
14#define __ARCH_ARM_POSIX_TYPES_H
15
16/*
17 * This file is generally used by user-level software, so you need to
18 * be a little careful about namespace pollution etc. Also, we cannot
19 * assume GCC is being used.
20 */
21
22typedef unsigned short __kernel_dev_t;
23typedef unsigned long __kernel_ino_t;
24typedef unsigned short __kernel_mode_t;
25typedef unsigned short __kernel_nlink_t;
26typedef long __kernel_off_t;
27typedef int __kernel_pid_t;
28typedef unsigned short __kernel_ipc_pid_t;
29typedef unsigned short __kernel_uid_t;
30typedef unsigned short __kernel_gid_t;
31#if CONFIG_SANDBOX_BITS_PER_LONG == 32
32typedef unsigned int __kernel_size_t;
33typedef int __kernel_ssize_t;
34typedef int __kernel_ptrdiff_t;
35#else
36typedef unsigned long __kernel_size_t;
37typedef long __kernel_ssize_t;
38typedef long __kernel_ptrdiff_t;
39#endif
40typedef long __kernel_time_t;
41typedef long __kernel_suseconds_t;
42typedef long __kernel_clock_t;
43typedef int __kernel_daddr_t;
44typedef char *__kernel_caddr_t;
45typedef unsigned short __kernel_uid16_t;
46typedef unsigned short __kernel_gid16_t;
47typedef unsigned int __kernel_uid32_t;
48typedef unsigned int __kernel_gid32_t;
49
50typedef unsigned short __kernel_old_uid_t;
51typedef unsigned short __kernel_old_gid_t;
52
53#ifdef __GNUC__
54typedef long long __kernel_loff_t;
55#endif
56
57#endif