Home | History | Annotate | Download | only in asm
      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>
     22 typedef unsigned long __kernel_ino_t;
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 typedef unsigned int __kernel_mode_t;
     25 #if _MIPS_SZLONG == 32
     26 typedef unsigned long __kernel_nlink_t;
     27 #endif
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #if _MIPS_SZLONG == 64
     30 typedef unsigned int __kernel_nlink_t;
     31 #endif
     32 typedef long __kernel_off_t;
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 typedef int __kernel_pid_t;
     35 typedef int __kernel_ipc_pid_t;
     36 typedef unsigned int __kernel_uid_t;
     37 typedef unsigned int __kernel_gid_t;
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #if _MIPS_SZLONG == 32
     40 typedef unsigned int __kernel_size_t;
     41 typedef int __kernel_ssize_t;
     42 typedef int __kernel_ptrdiff_t;
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #endif
     45 #if _MIPS_SZLONG == 64
     46 typedef unsigned long __kernel_size_t;
     47 typedef long __kernel_ssize_t;
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 typedef long __kernel_ptrdiff_t;
     50 #endif
     51 typedef long __kernel_time_t;
     52 typedef long __kernel_suseconds_t;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 typedef long __kernel_clock_t;
     55 typedef int __kernel_timer_t;
     56 typedef int __kernel_clockid_t;
     57 typedef long __kernel_daddr_t;
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 typedef char * __kernel_caddr_t;
     60 typedef unsigned short __kernel_uid16_t;
     61 typedef unsigned short __kernel_gid16_t;
     62 typedef unsigned int __kernel_uid32_t;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 typedef unsigned int __kernel_gid32_t;
     65 typedef __kernel_uid_t __kernel_old_uid_t;
     66 typedef __kernel_gid_t __kernel_old_gid_t;
     67 typedef unsigned int __kernel_old_dev_t;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #ifdef __GNUC__
     70 typedef long long __kernel_loff_t;
     71 #endif
     72 typedef 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