uboot/arch/nios2/include/asm/posix_types.h
<<
>>
Prefs
   1#ifndef __ASM_NIOS2_POSIX_TYPES_H_
   2#define __ASM_NIOS2_POSIX_TYPES_H_
   3
   4/*
   5 * This file is generally used by user-level software, so you need to
   6 * be a little careful about namespace pollution etc.  Also, we cannot
   7 * assume GCC is being used.
   8 */
   9
  10typedef unsigned short  __kernel_dev_t;
  11typedef unsigned long   __kernel_ino_t;
  12typedef unsigned short  __kernel_mode_t;
  13typedef unsigned short  __kernel_nlink_t;
  14typedef long            __kernel_off_t;
  15typedef int             __kernel_pid_t;
  16typedef unsigned short  __kernel_ipc_pid_t;
  17typedef unsigned short  __kernel_uid_t;
  18typedef unsigned short  __kernel_gid_t;
  19#ifdef __GNUC__
  20typedef __SIZE_TYPE__   __kernel_size_t;
  21#else
  22typedef unsigned long   __kernel_size_t;
  23#endif
  24typedef long            __kernel_ssize_t;
  25typedef int             __kernel_ptrdiff_t;
  26typedef long            __kernel_time_t;
  27typedef long            __kernel_suseconds_t;
  28typedef long            __kernel_clock_t;
  29typedef int             __kernel_daddr_t;
  30typedef char *          __kernel_caddr_t;
  31typedef unsigned short  __kernel_uid16_t;
  32typedef unsigned short  __kernel_gid16_t;
  33typedef unsigned int    __kernel_uid32_t;
  34typedef unsigned int    __kernel_gid32_t;
  35
  36typedef unsigned short  __kernel_old_uid_t;
  37typedef unsigned short  __kernel_old_gid_t;
  38
  39#ifdef __GNUC__
  40typedef long long       __kernel_loff_t;
  41#endif
  42
  43typedef struct {
  44#if defined(__KERNEL__) || defined(__USE_ALL)
  45        int     val[2];
  46#else /* !defined(__KERNEL__) && !defined(__USE_ALL) */
  47        int     __val[2];
  48#endif /* !defined(__KERNEL__) && !defined(__USE_ALL) */
  49} __kernel_fsid_t;
  50
  51#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
  52
  53#undef  __FD_SET
  54#define __FD_SET(d, set)        ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d))
  55
  56#undef  __FD_CLR
  57#define __FD_CLR(d, set)        ((set)->fds_bits[__FDELT(d)] &= ~__FDMASK(d))
  58
  59#undef  __FD_ISSET
  60#define __FD_ISSET(d, set)      ((set)->fds_bits[__FDELT(d)] & __FDMASK(d))
  61
  62#undef  __FD_ZERO
  63#define __FD_ZERO(fdsetp) (memset (fdsetp, 0, sizeof(*(fd_set *)fdsetp)))
  64
  65#endif /* defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) */
  66
  67#endif /* __ASM_NIOS2_POSIX_TYPES_H_ */
  68