source: trunk/src/emx/include/sys/stat.h@ 123

Last change on this file since 123 was 123, checked in by zap, 23 years ago

Started the work for re-designing the EMX C runtime library to not require
EMX.DLL. The new design is projected to be as follows:

  • all emx syscalls are replaced with the routines from the old sys.lib library which is now compilable in both a.out and OMF formats.
  • the sys.a library should be made replaceable and selectable by some gcc switch (e.g. -msyslib=emx would link with emx.a instead of sys.a which would give almost full backward compatibility with emx).
  • All C functions names were renamed to not contain the starting underscore (e.g. fopen and not _fopen). The underscored aliases will be added later with the c_alias library (which will be generated automatically from all public symbols of libc; any exported symbol that do not start with an underscore will be given an underscored alias unless such a symbol is already defined).

Also a lot of updates to the building system. It is now much faster (thanks
to Knut's suggestion of using ash's builtin echo).
Also re-wrote thunk1.asm and thunk2.asm to GAS format; this removes the need
for MASM and makes it possible to use 16-bit functions in a.out programs
without the need for EMX.DLL.
Also made a lot of small changes I don't remember now.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.1 KB
Line 
1/* sys/stat.h (emx+gcc) */
2
3#ifndef _SYS_STAT_H
4#define _SYS_STAT_H
5
6#if !defined (_SYS_TYPES_H)
7 #warning <sys/stat.h> requires <sys/types.h>
8#include <sys/types.h>
9#endif
10
11#if defined (__cplusplus)
12extern "C" {
13#endif
14
15#if !defined (_STAT)
16#define _STAT
17struct stat
18{
19 dev_t st_dev;
20 ino_t st_ino;
21 mode_t st_mode;
22 nlink_t st_nlink;
23 uid_t st_uid;
24 gid_t st_gid;
25 dev_t st_rdev;
26 off_t st_size;
27 time_t st_atime;
28 time_t st_mtime;
29 time_t st_ctime;
30 long st_attr;
31 long st_reserved;
32};
33#endif
34