1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _ASM_POSIX_TYPES_H
20#define _ASM_POSIX_TYPES_H
21#include <asm/sgidefs.h>
22typedef unsigned long __kernel_ino_t;
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24typedef unsigned int __kernel_mode_t;
25#if _MIPS_SZLONG == 32
26typedef unsigned long __kernel_nlink_t;
27#endif
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#if _MIPS_SZLONG == 64
30typedef unsigned int __kernel_nlink_t;
31#endif
32typedef long __kernel_off_t;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34typedef int __kernel_pid_t;
35typedef int __kernel_ipc_pid_t;
36typedef unsigned int __kernel_uid_t;
37typedef unsigned int __kernel_gid_t;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#if _MIPS_SZLONG == 32
40typedef unsigned int __kernel_size_t;
41typedef int __kernel_ssize_t;
42typedef int __kernel_ptrdiff_t;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#endif
45#if _MIPS_SZLONG == 64
46typedef unsigned long __kernel_size_t;
47typedef long __kernel_ssize_t;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49typedef long __kernel_ptrdiff_t;
50#endif
51typedef long __kernel_time_t;
52typedef long __kernel_suseconds_t;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54typedef long __kernel_clock_t;
55typedef int __kernel_timer_t;
56typedef int __kernel_clockid_t;
57typedef long __kernel_daddr_t;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59typedef char * __kernel_caddr_t;
60typedef unsigned short __kernel_uid16_t;
61typedef unsigned short __kernel_gid16_t;
62typedef unsigned int __kernel_uid32_t;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64typedef unsigned int __kernel_gid32_t;
65typedef __kernel_uid_t __kernel_old_uid_t;
66typedef __kernel_gid_t __kernel_old_gid_t;
67typedef unsigned int __kernel_old_dev_t;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#ifdef __GNUC__
70typedef long long __kernel_loff_t;
71#endif
72typedef struct {
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#if _MIPS_SZLONG == 32
75 long val[2];
76#endif
77#if _MIPS_SZLONG == 64
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 int val[2];
80#endif
81} __kernel_fsid_t;
82#if !defined(__GLIBC__) || __GLIBC__ < 2
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#undef __FD_SET
85#define __FD_SET(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] |= (1<<((fd) & 31)))
86#undef __FD_CLR
87#define __FD_CLR(fd, fdsetp) (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] &= ~(1<<((fd) & 31)))
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#undef __FD_ISSET
90#define __FD_ISSET(fd, fdsetp) ((((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] & (1<<((fd) & 31))) != 0)
91#undef __FD_ZERO
92#define __FD_ZERO(fdsetp) (memset (fdsetp, 0, sizeof (*(fd_set *)(fdsetp))))
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#endif
95#endif
96