blob: f2c9e53d963d4da910c0cb8656d094f993e2cc5c [file] [log] [blame]
sewardjb5b87402011-03-07 16:05:35 +00001
2/*--------------------------------------------------------------------*/
3/*--- s390x/Linux-specific kernel interface: posix types. ---*/
4/*--- vki-posixtypes-s390x-linux.h ---*/
5/*--------------------------------------------------------------------*/
6
7/*
8 This file is part of Valgrind, a dynamic binary instrumentation
9 framework.
10
floriane808f812012-08-06 18:34:24 +000011 Copyright IBM Corp. 2010-2012
sewardjb5b87402011-03-07 16:05:35 +000012
13 This program is free software; you can redistribute it and/or
14 modify it under the terms of the GNU General Public License as
15 published by the Free Software Foundation; either version 2 of the
16 License, or (at your option) any later version.
17
18 This program is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
26 02111-1307, USA.
27
28 The GNU General Public License is contained in the file COPYING.
29*/
30
31/* Contributed by Florian Krohm and Volker Sameske */
32
33#ifndef __VKI_POSIXTYPES_S390X_LINUX_H
34#define __VKI_POSIXTYPES_S390X_LINUX_H
35
36//----------------------------------------------------------------------
37// From linux-2.6.16.60/include/asm-s390/posix_types.h
38//----------------------------------------------------------------------
39
40typedef long __vki_kernel_off_t;
41typedef int __vki_kernel_pid_t;
42typedef unsigned long __vki_kernel_size_t;
43typedef long __vki_kernel_time_t;
44typedef long __vki_kernel_suseconds_t;
45typedef long __vki_kernel_clock_t;
46typedef int __vki_kernel_timer_t;
47typedef int __vki_kernel_clockid_t;
48typedef int __vki_kernel_daddr_t;
49typedef char * __vki_kernel_caddr_t;
50typedef unsigned short __vki_kernel_uid16_t;
51typedef unsigned short __vki_kernel_gid16_t;
52typedef long long __vki_kernel_loff_t;
53
54typedef unsigned int __vki_kernel_ino_t;
55typedef unsigned int __vki_kernel_mode_t;
56typedef unsigned int __vki_kernel_nlink_t;
57typedef int __vki_kernel_ipc_pid_t;
58typedef unsigned int __vki_kernel_uid_t;
59typedef unsigned int __vki_kernel_gid_t;
60typedef long __vki_kernel_ssize_t;
61typedef long __vki_kernel_ptrdiff_t;
62typedef unsigned long __vki_kernel_sigset_t; /* at least 32 bits */
63typedef __vki_kernel_uid_t __vki_kernel_old_uid_t;
64typedef __vki_kernel_gid_t __vki_kernel_old_gid_t;
65typedef __vki_kernel_uid_t __vki_kernel_uid32_t;
66typedef __vki_kernel_gid_t __vki_kernel_gid32_t;
67typedef unsigned short __vki_kernel_old_dev_t;
68
69typedef struct {
70 int val[2];
71} __vki_kernel_fsid_t;
72
73#endif // __VKI_POSIXTYPES_S390X_LINUX_H
74
75/*--------------------------------------------------------------------*/
76/*--- end ---*/
77/*--------------------------------------------------------------------*/