Subversion Repositories Kolibri OS

Rev

Rev 617 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 617 Rev 987
Line 1... Line 1...
1
;-----------------------------------------------------------------------------
1
;;================================================================================================;;
2
; Copyright (c) 2006-2007, mike.dld
2
;;//// libio.inc //// (c) mike.dld, 2007-2008 ////////////////////////////////////////////////////;;
3
;-----------------------------------------------------------------------------
3
;;================================================================================================;;
4
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4
;;                                                                                                ;;
5
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5
;; This file is part of Common development libraries (Libs-Dev).                                  ;;
6
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6
;;                                                                                                ;;
-
 
7
;; Libs-Dev is free software: you can redistribute it and/or modify it under the terms of the GNU ;;
7
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8
;; General Public License as published by the Free Software Foundation, either version 3 of the   ;;
8
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
9
;; License, or (at your option) any later version.                                                ;;
-
 
10
;;                                                                                                ;;
9
; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
11
;; Libs-Dev is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without  ;;
10
; DEALINGS IN THE SOFTWARE.
12
;; even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU  ;;
-
 
13
;; General Public License for more details.                                                       ;;
-
 
14
;;                                                                                                ;;
11
;-----------------------------------------------------------------------------
15
;; You should have received a copy of the GNU General Public License along with Libs-Dev. If not, ;;
-
 
16
;; see .                                                            ;;
-
 
17
;;                                                                                                ;;
-
 
18
;;================================================================================================;;
Line -... Line 19...
-
 
19
 
-
 
20
 
12
 
21
O_BINARY = 00000000b
13
O_READ	 = 00000001b
22
O_READ	 = 00000001b
14
O_WRITE  = 00000010b
23
O_WRITE  = 00000010b
15
O_CREATE = 00000100b
24
O_CREATE = 00000100b
-
 
25
O_SHARE  = 00001000b
Line 16... Line 26...
16
O_SHARE  = 00001000b
26
O_TEXT	 = 00010000b
17
 
27
 
18
SEEK_SET = 0
28
SEEK_SET = 0
Line 19... Line 29...
19
SEEK_CUR = 1
29
SEEK_CUR = 1
20
SEEK_END = 2
30
SEEK_END = 2
21
 
31
 
22
struct DateTime
32
struct FileDateTime
23
  union
33
  union
24
    time    dd ?
34
    time    dd ?
Line 56... Line 66...
56
ends
66
ends
Line 57... Line 67...
57
 
67
 
58
struct FileInfoA
68
struct FileInfoA
59
  Attributes   dd ?
69
  Attributes   dd ?
60
  Flags        dd ?
70
  Flags        dd ?
61
  DateCreate   DateTime
71
  DateCreate   FileDateTime
62
  DateAccess   DateTime
72
  DateAccess   FileDateTime
-
 
73
  DateModify   FileDateTime
63
  DateModify   DateTime
74
  union
-
 
75
    FileSize   dq ?
-
 
76
    struct
64
  FileSize     dd ?
77
      FileSizeLow  dd ?
-
 
78
      FileSizeHigh dd ?
-
 
79
    ends
65
  FileSizeHigh dd ?
80
  ends
66
  FileName     rb 264
81
  FileName     rb 252
Line 67... Line 82...
67
ends
82
ends
68
 
83
 
69
struct FileInfoW
84
struct FileInfoW
70
  Attributes   dd ?
85
  Attributes   dd ?
71
  Flags        dd ?
86
  Flags        dd ?
72
  DateCreate   DateTime
87
  DateCreate   FileDateTime
-
 
88
  DateAccess   FileDateTime
73
  DateAccess   DateTime
89
  DateModify   FileDateTime
-
 
90
  union
-
 
91
    FileSize   dq ?
74
  DateModify   DateTime
92
    struct
-
 
93
      FileSizeLow  dd ?
-
 
94
      FileSizeHigh dd ?
75
  FileSize     dd ?
95
    ends
76
  FileSizeHigh dd ?
96
  ends
Line 77... Line 97...
77
  FileName     rw 260
97
  FileName     rw 260
78
ends
98
ends
Line 87... Line 107...
87
FA_HIDDEN   = 00000010b
107
FA_HIDDEN   = 00000010b
88
FA_SYSTEM   = 00000100b
108
FA_SYSTEM   = 00000100b
89
FA_LABEL    = 00001000b
109
FA_LABEL    = 00001000b
90
FA_FOLDER   = 00010000b
110
FA_FOLDER   = 00010000b
91
FA_ARCHIVED = 00100000b
111
FA_ARCHIVED = 00100000b
-
 
112
FA_ANY	    = 00111111b