types.h File Reference

Go to the source code of this file.

Data Structures

struct  fd_set
struct  ustat

Defines

#define NULL   ((void *) 0)
#define __FDSET_LONGS   8
#define __NFDBITS   (8 * sizeof(unsigned long))
#define __FD_SETSIZE   (__FDSET_LONGS*__NFDBITS)
#define __FD_SET(fd, fdsetp)
#define __FD_CLR(fd, fdsetp)
#define __FD_ISSET(fd, fdsetp)
#define __FD_ZERO(fdsetp)

Typedefs

typedef unsigned int size_t
typedef int ssize_t
typedef long time_t
typedef long clock_t
typedef int ptrdiff_t
typedef int pid_t
typedef unsigned short uid_t
typedef unsigned short gid_t
typedef unsigned short dev_t
typedef unsigned long ino_t
typedef unsigned short mode_t
typedef unsigned short umode_t
typedef unsigned short nlink_t
typedef int daddr_t
typedef long off_t
typedef unsigned char u_char
 bsd
typedef unsigned short u_short
typedef unsigned int u_int
typedef unsigned long u_long
typedef unsigned char unchar
 sysv
typedef unsigned short ushort
typedef unsigned int uint
typedef unsigned long ulong
typedef char * caddr_t
typedef unsigned char cc_t
typedef unsigned int speed_t
typedef unsigned long tcflag_t


Define Documentation

#define __FD_CLR ( fd,
fdsetp   ) 

Value:

__asm__ __volatile__("btrl %1,%0": \
                        "=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))

Definition at line 108 of file types.h.

#define __FD_ISSET ( fd,
fdsetp   ) 

Value:

(__extension__ ({ \
                unsigned char __result; \
                __asm__ __volatile__("btl %1,%2 ; setb %0" \
                        :"=q" (__result) :"r" ((int) (fd)), \
                        "m" (*(fd_set *) (fdsetp))); \
                __result; }))

Definition at line 113 of file types.h.

#define __FD_SET ( fd,
fdsetp   ) 

Value:

__asm__ __volatile__("btsl %1,%0": \
                        "=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))

Definition at line 103 of file types.h.

#define __FD_SETSIZE   (__FDSET_LONGS*__NFDBITS)

Definition at line 100 of file types.h.

#define __FD_ZERO ( fdsetp   ) 

Value:

__asm__ __volatile__("cld ; rep ; stosl" \
                        :"=m" (*(fd_set *) (fdsetp)) \
                        :"a" (0), "c" (__FDSET_LONGS), \
                        "D" ((fd_set *) (fdsetp)) :"cx","di")

Definition at line 121 of file types.h.

#define __FDSET_LONGS   8

Those macros may have been defined in <gnu/types.h>. But we always use the ones here.

Definition at line 90 of file types.h.

#define __NFDBITS   (8 * sizeof(unsigned long))

Definition at line 97 of file types.h.

#define NULL   ((void *) 0)

Definition at line 30 of file types.h.


Typedef Documentation

typedef char* caddr_t

Definition at line 60 of file types.h.

typedef unsigned char cc_t

Definition at line 62 of file types.h.

typedef long clock_t

Definition at line 21 of file types.h.

typedef int daddr_t

Definition at line 45 of file types.h.

typedef unsigned short dev_t

Definition at line 36 of file types.h.

typedef unsigned short gid_t

Definition at line 35 of file types.h.

typedef unsigned long ino_t

Definition at line 40 of file types.h.

typedef unsigned short mode_t

Definition at line 42 of file types.h.

typedef unsigned short nlink_t

Definition at line 44 of file types.h.

typedef long off_t

Definition at line 46 of file types.h.

typedef int pid_t

Definition at line 33 of file types.h.

typedef int ptrdiff_t

Definition at line 26 of file types.h.

typedef unsigned int size_t

Definition at line 6 of file types.h.

typedef unsigned int speed_t

Definition at line 63 of file types.h.

typedef int ssize_t

Definition at line 11 of file types.h.

typedef unsigned long tcflag_t

Definition at line 64 of file types.h.

typedef long time_t

Definition at line 16 of file types.h.

typedef unsigned char u_char

bsd

Definition at line 49 of file types.h.

typedef unsigned int u_int

Definition at line 51 of file types.h.

typedef unsigned long u_long

Definition at line 52 of file types.h.

typedef unsigned short u_short

Definition at line 50 of file types.h.

typedef unsigned short uid_t

Definition at line 34 of file types.h.

typedef unsigned int uint

Definition at line 57 of file types.h.

typedef unsigned long ulong

Definition at line 58 of file types.h.

typedef unsigned short umode_t

Definition at line 43 of file types.h.

typedef unsigned char unchar

sysv

Definition at line 55 of file types.h.

typedef unsigned short ushort

Definition at line 56 of file types.h.


Generated on Mon May 1 21:47:01 2006 for KernelAPI by  doxygen 1.4.6-5