19990502 sourceware import
This commit is contained in:
commit
252b5132c7
2316 changed files with 881473 additions and 0 deletions
1
include/mpw/sys/file.h
Normal file
1
include/mpw/sys/file.h
Normal file
|
@ -0,0 +1 @@
|
|||
/* empty */
|
1
include/mpw/sys/param.h
Normal file
1
include/mpw/sys/param.h
Normal file
|
@ -0,0 +1 @@
|
|||
/* empty */
|
9
include/mpw/sys/resource.h
Normal file
9
include/mpw/sys/resource.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#ifndef __SYS_RESOURCE_H__
|
||||
#define __SYS_RESOURCE_H__
|
||||
|
||||
struct rusage {
|
||||
struct timeval ru_utime;
|
||||
struct timeval ru_stime;
|
||||
};
|
||||
|
||||
#endif /* __SYS_RESOURCE_H__ */
|
44
include/mpw/sys/stat.h
Normal file
44
include/mpw/sys/stat.h
Normal file
|
@ -0,0 +1,44 @@
|
|||
/* Imitation sys/stat.h. */
|
||||
|
||||
#ifndef __SYS_STAT_H__
|
||||
#define __SYS_STAT_H__
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
|
||||
struct stat {
|
||||
dev_t st_dev;
|
||||
ino_t st_ino;
|
||||
mode_t st_mode;
|
||||
short st_nlink;
|
||||
uid_t st_uid;
|
||||
gid_t st_gid;
|
||||
dev_t st_rdev;
|
||||
off_t st_size;
|
||||
off_t st_rsize;
|
||||
time_t st_atime;
|
||||
int st_spare1;
|
||||
time_t st_mtime;
|
||||
int st_spare2;
|
||||
time_t st_ctime;
|
||||
int st_spare3;
|
||||
long st_blksize;
|
||||
long st_blocks;
|
||||
long st_spare4[2];
|
||||
};
|
||||
|
||||
#define S_IFMT 0170000L
|
||||
#define S_IFDIR 0040000L
|
||||
#define S_IFREG 0100000L
|
||||
#define S_IREAD 0400
|
||||
#define S_IWRITE 0200
|
||||
#define S_IEXEC 0100
|
||||
|
||||
#define S_IFIFO 010000 /* FIFO special */
|
||||
#define S_IFCHR 020000 /* character special */
|
||||
#define S_IFBLK 030000 /* block special */
|
||||
|
||||
int stat (char *path, struct stat *buf);
|
||||
int fstat (int fd, struct stat *buf);
|
||||
|
||||
#endif /* __SYS_STAT_H___ */
|
13
include/mpw/sys/time.h
Normal file
13
include/mpw/sys/time.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
/* Imitation sys/time.h. */
|
||||
|
||||
#ifndef __SYS_TIME_H__
|
||||
#define __SYS_TIME_H__
|
||||
|
||||
#include <time.h>
|
||||
|
||||
struct timeval {
|
||||
long tv_sec;
|
||||
long tv_usec;
|
||||
};
|
||||
|
||||
#endif /* __SYS_TIME_H__ */
|
15
include/mpw/sys/types.h
Normal file
15
include/mpw/sys/types.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* Imitation sys/types.h. */
|
||||
|
||||
#ifndef __SYS_TYPES_H__
|
||||
#define __SYS_TYPES_H__
|
||||
|
||||
#include <Types.h>
|
||||
|
||||
typedef short dev_t;
|
||||
typedef short ino_t;
|
||||
typedef unsigned short mode_t;
|
||||
typedef unsigned short uid_t;
|
||||
typedef unsigned short gid_t;
|
||||
typedef long off_t;
|
||||
|
||||
#endif /* __SYS_TYPES_H__ */
|
Loading…
Add table
Add a link
Reference in a new issue