uboot/arch/microblaze/include/asm/posix_types.h
<<
>>
Prefs
   1/*
   2 * include/asm-microblaze/posix_types.h -- Kernel versions of standard types
   3 *
   4 *  Copyright (C) 2003       John Williams <jwilliams@itee.uq.edu.au>
   5 *  Copyright (C) 2001,2002  NEC Corporation
   6 *  Copyright (C) 2001,2002  Miles Bader <miles@gnu.org>
   7 *
   8 * This file is subject to the terms and conditions of the GNU General
   9 * Public License.  See the file COPYING in the main directory of this
  10 * archive for more details.
  11 *
  12 * Written by Miles Bader <miles@gnu.org>
  13 * Microblaze port by John Williams
  14 */
  15
  16#ifndef __MICROBLAZE_POSIX_TYPES_H__
  17#define __MICROBLAZE_POSIX_TYPES_H__
  18
  19typedef unsigned int    __kernel_dev_t;
  20typedef unsigned long   __kernel_ino_t;
  21typedef unsigned long long __kernel_ino64_t;
  22typedef unsigned int    __kernel_mode_t;
  23typedef unsigned int    __kernel_nlink_t;
  24typedef long            __kernel_off_t;
  25typedef long long       __kernel_loff_t;
  26typedef int             __kernel_pid_t;
  27typedef unsigned short  __kernel_ipc_pid_t;
  28typedef unsigned int    __kernel_uid_t;
  29typedef unsigned int    __kernel_gid_t;
  30#ifdef __GNUC__
  31typedef __SIZE_TYPE__  __kernel_size_t;
  32#else
  33typedef unsigned int    __kernel_size_t;
  34#endif
  35typedef int             __kernel_ssize_t;
  36typedef int             __kernel_ptrdiff_t;
  37typedef long            __kernel_time_t;
  38typedef long            __kernel_suseconds_t;
  39typedef long            __kernel_clock_t;
  40typedef int             __kernel_daddr_t;
  41typedef char *          __kernel_caddr_t;
  42typedef unsigned short  __kernel_uid16_t;
  43typedef unsigned short  __kernel_gid16_t;
  44typedef unsigned int    __kernel_uid32_t;
  45typedef unsigned int    __kernel_gid32_t;
  46
  47typedef unsigned short  __kernel_old_uid_t;
  48typedef unsigned short  __kernel_old_gid_t;
  49
  50
  51typedef struct {
  52#if defined(__KERNEL__) || defined(__USE_ALL)
  53        int     val[2];
  54#else /* !defined(__KERNEL__) && !defined(__USE_ALL) */
  55        int     __val[2];
  56#endif /* !defined(__KERNEL__) && !defined(__USE_ALL) */
  57} __kernel_fsid_t;
  58
  59
  60#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
  61
  62#undef  __FD_SET
  63#define __FD_SET(fd, fd_set) \
  64  __set_bit (fd, (void *)&((__kernel_fd_set *)fd_set)->fds_bits)
  65#undef __FD_CLR
  66#define __FD_CLR(fd, fd_set) \
  67  __clear_bit (fd, (void *)&((__kernel_fd_set *)fd_set)->fds_bits)
  68#undef  __FD_ISSET
  69#define __FD_ISSET(fd, fd_set) \
  70  __test_bit (fd, (void *)&((__kernel_fd_set *)fd_set)->fds_bits)
  71#undef  __FD_ZERO
  72#define __FD_ZERO(fd_set) \
  73  memset (fd_set, 0, sizeof (*(fd_set *)fd_set))
  74
  75#endif /* defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) */
  76
  77#endif /* __MICROBLAZE_POSIX_TYPES_H__ */
  78