1 | ;
|
---|
2 | ; STAT.INC -- Assembler version of sys/stat.h
|
---|
3 | ;
|
---|
4 | ; Copyright (c) 1991-1995 by Eberhard Mattes
|
---|
5 | ;
|
---|
6 | ; This file is part of emx.
|
---|
7 | ;
|
---|
8 | ; emx is free software; you can redistribute it and/or modify it
|
---|
9 | ; under the terms of the GNU General Public License as published by
|
---|
10 | ; the Free Software Foundation; either version 2, or (at your option)
|
---|
11 | ; any later version.
|
---|
12 | ;
|
---|
13 | ; emx is distributed in the hope that it will be useful,
|
---|
14 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
16 | ; GNU General Public License for more details.
|
---|
17 | ;
|
---|
18 | ; You should have received a copy of the GNU General Public License
|
---|
19 | ; along with emx; see the file COPYING. If not, write to
|
---|
20 | ; the Free Software Foundation, 59 Temple Place - Suite 330,
|
---|
21 | ; Boston, MA 02111-1307, USA.
|
---|
22 | ;
|
---|
23 | ; See emx.asm for a special exception.
|
---|
24 | ;
|
---|
25 |
|
---|
26 | S_IREAD = 0400Q ; Owner: read
|
---|
27 | S_IWRITE = 0200Q ; Owner: write
|
---|
28 | S_IEXEC = 0100Q ; Owner: exec
|
---|
29 |
|
---|
30 | S_IFMT = 0160000Q ; Mask for file type
|
---|
31 | S_IFCHR = 0020000Q ; Character device
|
---|
32 | S_IFDIR = 0040000Q ; Directory
|
---|
33 | S_IFREG = 0100000Q ; Regular file
|
---|
34 | S_IFSOCK = 0140000Q ; Socket (or pipe)
|
---|
35 |
|
---|
36 | STAT STRUCT
|
---|
37 | ST_DEV DD ?
|
---|
38 | ST_INO DD ?
|
---|
39 | ST_MODE DD ?
|
---|
40 | ST_NLINK DD ?
|
---|
41 | ST_UID DD ?
|
---|
42 | ST_GID DD ?
|
---|
43 | ST_RDEV DD ?
|
---|
44 | ST_SIZE DD ?
|
---|
45 | ST_ATIME DD ?
|
---|
46 | ST_MTIME DD ?
|
---|
47 | ST_CTIME DD ?
|
---|
48 | ST_ATTR DD ?
|
---|
49 | ST_RESERVED DD ?
|
---|
50 | STAT ENDS
|
---|