]>
git.saurik.com Git - wxWidgets.git/blob - utils/Install/inczip/os2data.h
1 /*---------------------------------------------------------------------------
5 OS/2-specific structures and data to be included in the global data struc-
8 ---------------------------------------------------------------------------*/
12 #define MAXPATHLEN 256
13 #define MAXLEN 256 /* temporary buffer length */
14 #define IBUF_LEN 4096 /* input buffer length */
18 #define INCL_DOSPROCESS
19 #define INCL_DOSDEVICES
20 #define INCL_DOSDEVIOCTL
21 #define INCL_DOSERRORS
24 #if (defined(OS2DLL) && !defined(DLL))
38 ino_t d_ino
; /* a bit of a farce */
39 int d_reclen
; /* more farce */
40 int d_namlen
; /* length of d_name */
41 char d_name
[MAXNAMLEN
+ 1]; /* null terminated */
42 /* nonstandard fields */
43 long d_size
; /* size in bytes */
44 unsigned d_mode
; /* MS-DOS or OS/2 file attributes */
49 /* The fields d_size and d_mode are extensions by me (Kai Uwe Rommel). The
50 * find_first and find_next calls deliver these data without any extra cost.
51 * If these data are needed, the fields save a lot of extra calls to stat()
52 * (each stat() again performs a find_first call !).
59 unsigned _d_mode
, _d_time
, _d_date
;
60 struct _dircontents
*_d_next
;
63 typedef struct _dirdesc
65 int dd_id
; /* uniquely identify each open directory */
66 long dd_loc
; /* where we are in directory entry is this */
67 struct _dircontents
*dd_contents
; /* pointer to contents of dir */
68 struct _dircontents
*dd_cp
; /* pointer to current position */
86 int created_dir
; /* used by mapname(), checkdir() */
87 int renamed_fullpath
; /* ditto */
88 int fnlen
; /* ditto */
90 ULONG nLabelDrive
; /* ditto */
94 int longnameEA
; /* checkdir(), close_outfile() */
95 char *lastpathcomp
; /* ditto */
99 USHORT nLastDrive
, nResult
;
102 char *dirname
, *wildname
, matchname
[FILNAMSIZ
];
103 int firstcall
, have_dirname
, dirnamelen
;
105 int rootlen
; /* length of rootpath */
106 char *rootpath
; /* user's "extract-to" directory */
107 char *buildpathHPFS
; /* full path (so far) to extracted file, */
108 char *buildpathFAT
; /* both HPFS/EA (main) and FAT versions */
109 char *endHPFS
; /* corresponding pointers to end of */
110 char *endFAT
; /* buildpath ('\0') */
113 char buffer
[IBUF_LEN
];
114 char output_var
[MAXLEN
];
115 char getvar_buf
[MAXLEN
];
129 #define SYSTEM_SPECIFIC_GLOBALS struct os2Global os2;
130 #define SYSTEM_SPECIFIC_CTOR os2GlobalsCtor
134 # define SYSTEM_API_BRIEF REXXBrief
135 # define SYSTEM_API_DETAILS REXXDetails
136 extern char *REXXBrief
;
137 extern APIDocStruct REXXDetails
[];