#ifndef _SYS_TYPES_H
#define _SYS_TYPES_H

#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int size_t;	// ڶĴСȣ
#endif

#ifndef _TIME_T
#define _TIME_T
typedef long time_t;		// ʱ䣨ƣ
#endif

#ifndef _PTRDIFF_T
#define _PTRDIFF_T
typedef long ptrdiff_t;
#endif

#ifndef NULL
#define NULL ((void *) 0)
#endif

typedef int pid_t;		// ڽ̺źͽš
typedef unsigned short uid_t;	// ûţûʶţ
typedef unsigned char gid_t;	// š
typedef unsigned short dev_t;	// 豸š
typedef unsigned short ino_t;	// ļкš
typedef unsigned short mode_t;	// ĳЩļԡ
typedef unsigned short umode_t;	//
typedef unsigned char nlink_t;	// Ӽ
typedef int daddr_t;
typedef long off_t;		// ļȣС
typedef unsigned char u_char;	// ޷ַ͡
typedef unsigned short ushort;	// ޷Ŷ͡

typedef struct
{
  int quot, rem;
}
div_t;				// DIV 
typedef struct
{
  long quot, rem;
}
ldiv_t;				// ڳDIV 

struct ustat
{
  daddr_t f_tfree;
  ino_t f_tinode;
  char f_fname[6];
  char f_fpack[6];
};

#endif
