2008-02-08 01:45:15 +03:00
|
|
|
;;================================================================================================;;
|
|
|
|
;;//// libio.inc //// (c) mike.dld, 2007-2008 ////////////////////////////////////////////////////;;
|
|
|
|
;;================================================================================================;;
|
|
|
|
;; ;;
|
|
|
|
;; This file is part of Common development libraries (Libs-Dev). ;;
|
|
|
|
;; ;;
|
|
|
|
;; Libs-Dev is free software: you can redistribute it and/or modify it under the terms of the GNU ;;
|
2009-01-27 02:43:01 +03:00
|
|
|
;; Lesser General Public License as published by the Free Software Foundation, either version 2.1 ;;
|
|
|
|
;; of the License, or (at your option) any later version. ;;
|
2008-02-08 01:45:15 +03:00
|
|
|
;; ;;
|
|
|
|
;; Libs-Dev is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without ;;
|
|
|
|
;; even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;;
|
2009-01-27 02:43:01 +03:00
|
|
|
;; Lesser General Public License for more details. ;;
|
2008-02-08 01:45:15 +03:00
|
|
|
;; ;;
|
2009-01-27 02:43:01 +03:00
|
|
|
;; You should have received a copy of the GNU Lesser General Public License along with Libs-Dev. ;;
|
|
|
|
;; If not, see <http://www.gnu.org/licenses/>. ;;
|
2008-02-08 01:45:15 +03:00
|
|
|
;; ;;
|
|
|
|
;;================================================================================================;;
|
|
|
|
|
|
|
|
|
|
|
|
O_BINARY = 00000000b
|
2012-04-05 15:27:23 +04:00
|
|
|
O_READ = 00000001b
|
2008-02-08 01:45:15 +03:00
|
|
|
O_WRITE = 00000010b
|
|
|
|
O_CREATE = 00000100b
|
|
|
|
O_SHARE = 00001000b
|
2012-04-05 15:27:23 +04:00
|
|
|
O_TEXT = 00010000b
|
2008-02-08 01:45:15 +03:00
|
|
|
|
|
|
|
SEEK_SET = 0
|
|
|
|
SEEK_CUR = 1
|
|
|
|
SEEK_END = 2
|
|
|
|
|
|
|
|
struct FileDateTime
|
|
|
|
union
|
|
|
|
time dd ?
|
|
|
|
struct
|
|
|
|
sec db ?
|
|
|
|
min db ?
|
|
|
|
hour db ?
|
|
|
|
ends
|
|
|
|
ends
|
|
|
|
union
|
|
|
|
date dd ?
|
|
|
|
struct
|
|
|
|
day db ?
|
|
|
|
month db ?
|
|
|
|
year dw ?
|
|
|
|
ends
|
|
|
|
ends
|
|
|
|
ends
|
|
|
|
|
|
|
|
struct FileInfoBlock
|
|
|
|
Function dd ?
|
|
|
|
Position dd ?
|
|
|
|
Flags dd ?
|
|
|
|
Count dd ?
|
|
|
|
Buffer dd ?
|
2012-04-05 15:27:23 +04:00
|
|
|
db ?
|
2008-02-08 01:45:15 +03:00
|
|
|
FileName dd ?
|
|
|
|
ends
|
|
|
|
|
|
|
|
struct FileInfoHeader
|
|
|
|
Version dd ?
|
|
|
|
FilesRead dd ?
|
|
|
|
FilesCount dd ?
|
2012-04-05 15:27:23 +04:00
|
|
|
rd 5
|
2008-02-08 01:45:15 +03:00
|
|
|
ends
|
|
|
|
|
|
|
|
struct FileInfoA
|
|
|
|
Attributes dd ?
|
|
|
|
Flags dd ?
|
|
|
|
DateCreate FileDateTime
|
|
|
|
DateAccess FileDateTime
|
|
|
|
DateModify FileDateTime
|
|
|
|
union
|
|
|
|
FileSize dq ?
|
|
|
|
struct
|
|
|
|
FileSizeLow dd ?
|
|
|
|
FileSizeHigh dd ?
|
|
|
|
ends
|
|
|
|
ends
|
2012-04-05 15:27:23 +04:00
|
|
|
FileName rb 264
|
2008-02-08 01:45:15 +03:00
|
|
|
ends
|
|
|
|
|
|
|
|
struct FileInfoW
|
|
|
|
Attributes dd ?
|
|
|
|
Flags dd ?
|
|
|
|
DateCreate FileDateTime
|
|
|
|
DateAccess FileDateTime
|
|
|
|
DateModify FileDateTime
|
|
|
|
union
|
|
|
|
FileSize dq ?
|
|
|
|
struct
|
|
|
|
FileSizeLow dd ?
|
|
|
|
FileSizeHigh dd ?
|
|
|
|
ends
|
|
|
|
ends
|
|
|
|
FileName rw 260
|
|
|
|
ends
|
|
|
|
|
|
|
|
virtual at 0
|
2012-04-05 15:27:23 +04:00
|
|
|
FileInfo FileInfoA
|
|
|
|
FileInfo fix FileInfoA
|
2008-02-08 01:45:15 +03:00
|
|
|
sizeof.FileInfo fix sizeof.FileInfoA
|
|
|
|
end virtual
|
|
|
|
|
|
|
|
FA_READONLY = 00000001b
|
|
|
|
FA_HIDDEN = 00000010b
|
|
|
|
FA_SYSTEM = 00000100b
|
|
|
|
FA_LABEL = 00001000b
|
|
|
|
FA_FOLDER = 00010000b
|
|
|
|
FA_ARCHIVED = 00100000b
|
2012-04-05 15:27:23 +04:00
|
|
|
FA_ANY = 00111111b
|