Linux: Add support for the BLKFLSBUF ioctl
[valgrind.git] / include / vki / vki-posixtypes-mips64-linux.h
blob96d2728b730fc653e69372ac8d4177edba50ca50
2 /*--------------------------------------------------------------------*/
3 /*--- mips/Linux-specific kernel interface: posix types. ---*/
4 /*--- vki-posixtypes-mips64-linux.h ---*/
5 /*--------------------------------------------------------------------*/
7 /*
8 This file is part of Valgrind, a dynamic binary instrumentation
9 framework.
11 Copyright (C) 2010-2017 RT-RK
12 mips-valgrind@rt-rk.com
14 This program is free software; you can redistribute it and/or
15 modify it under the terms of the GNU General Public License as
16 published by the Free Software Foundation; either version 2 of the
17 License, or (at your option) any later version.
19 This program is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 General Public License for more details.
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
27 02111-1307, USA.
30 #ifndef __VKI_POSIXTYPES_MIPS64_LINUX_H
31 #define __VKI_POSIXTYPES_MIPS64_LINUX_H
33 typedef unsigned long __vki_kernel_ino_t;
34 typedef unsigned int __vki_kernel_mode_t;
35 #if (_MIPS_SZLONG == 32)
36 typedef unsigned long __vki_kernel_nlink_t;
37 #endif
38 #if (_MIPS_SZLONG == 64)
39 typedef unsigned int __vki_kernel_nlink_t;
40 #endif
41 typedef long __vki_kernel_off_t;
42 typedef int __vki_kernel_pid_t;
43 typedef int __vki_kernel_ipc_pid_t;
44 typedef unsigned int __vki_kernel_uid_t;
45 typedef unsigned int __vki_kernel_gid_t;
46 #if (_MIPS_SZLONG == 32)
47 typedef unsigned int __vki_kernel_size_t;
48 typedef int __vki_kernel_ssize_t;
49 typedef int __vki_kernel_ptrdiff_t;
50 #endif
51 #if (_MIPS_SZLONG == 64)
52 typedef unsigned long __vki_kernel_size_t;
53 typedef long __vki_kernel_ssize_t;
54 typedef long __vki_kernel_ptrdiff_t;
55 #endif
56 typedef long __vki_kernel_time_t;
57 typedef long __vki_kernel_suseconds_t;
58 typedef long __vki_kernel_clock_t;
59 typedef int __vki_kernel_timer_t;
60 typedef int __vki_kernel_clockid_t;
61 typedef long __vki_kernel_daddr_t;
62 typedef char * __vki_kernel_caddr_t;
64 typedef unsigned short __vki_kernel_uid16_t;
65 typedef unsigned short __vki_kernel_gid16_t;
66 typedef unsigned int __vki_kernel_uid32_t;
67 typedef unsigned int __vki_kernel_gid32_t;
68 typedef __vki_kernel_uid_t __vki_kernel_old_uid_t;
69 typedef __vki_kernel_gid_t __vki_kernel_old_gid_t;
70 typedef unsigned int __vki_kernel_old_dev_t;
72 typedef long long __vki_kernel_loff_t;
74 typedef struct {
75 #if (_MIPS_SZLONG == 32)
76 long val[2];
77 #endif
78 #if (_MIPS_SZLONG == 64)
79 int val[2];
80 #endif
81 } __vki_kernel_fsid_t;
83 #endif // __VKI_POSIXTYPES_MIPS64_LINUX_H
85 /*--------------------------------------------------------------------*/
86 /*--- end vki-posixtypes-mips-linux.h ---*/
87 /*--------------------------------------------------------------------*/