Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:dos:api:int21:57 [2021/05/02 08:47] – prokushev | en:docs:dos:api:int21:57 [2021/08/01 05:51] (current) – prokushev | ||
---|---|---|---|
Line 3: | Line 3: | ||
====== Int 21H, AH=57H ====== | ====== Int 21H, AH=57H ====== | ||
- | ===== Version | + | ===== Input ====== |
- | 2 and higher | + | |
- | ===== Brief ===== | + | ^ Subfunction |
+ | | [[en: | ||
+ | | [[en: | ||
- | "GET FILE'S LAST-WRITTEN DATE AND TIME | ||
- | |||
- | ===== Family API ===== | ||
- | |||
- | |||
- | ===== Input ===== | ||
- | |||
- | AX = 5700h | ||
- | BX = file handle | ||
- | |||
- | ===== Return ===== | ||
- | |||
- | CF clear if successful | ||
- | CX = file's time (see #01665) | ||
- | DX = file's date (see #01666) | ||
- | CF set on error | ||
- | AX = error code (01h,06h) (see #01680) | ||
- | |||
- | ===== Notes ===== | ||
- | |||
- | under DR DOS 3.41 and 5.0, this function returns 0 (no date/time) for | ||
- | character devices; MS-DOS returns date and time of opening | ||
- | |||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | ===== See also ===== | ||
- | |||
- | | ||
- | |||
- | ===== Note ===== | ||
- | |||
- | Text based on [[http:// | ||
{{page> | {{page> | ||
- | {{page> | ||
- | |||
- | |||
- | INT 21 - DOS 2+ - SET FILE'S LAST-WRITTEN DATE AND TIME | ||
- | AX = 5701h | ||
- | BX = file handle | ||
- | CX = new time (see #01665) | ||
- | DX = new date (see #01666) | ||
- | Return: CF clear if successful | ||
- | CF set on error | ||
- | AX = error code (01h,06h) (see #01680) | ||
- | SeeAlso: AX=5700h, | ||
- | --------D-215702----------------------------- | ||
- | INT 21 - DOS 4.x only - GET EXTENDED ATTRIBUTES FOR FILE | ||
- | AX = 5702h | ||
- | BX = file handle | ||
- | CX = size of result buffer or 0000h | ||
- | DS:SI -> EAP list (see #01667) | ||
- | ES:DI -> buffer for returned EAV list (see #01670) | ||
- | Return: CF clear if successful | ||
- | CX = size of returned data | ||
- | CF set on error | ||
- | AX = error code (see #01680) | ||
- | Desc: get the current value of one or more extended attributes | ||
- | Notes: if CX=0000h on entry, ES:DI is ignored and no data is actually | ||
- | returned, only the amount of data which is available | ||
- | the default DOS 4 behavior is to return a single word of 0000h (no | ||
- | structures) in the result buffer if CX> | ||
- | functionality was apparently never released to the public | ||
- | SeeAlso: AX=5703h, | ||
- | |||
- | Format of EAP (extended attribute properties) list: | ||
- | Offset Size Description (Table 01667) | ||
- | | ||
- | | ||
- | SeeAlso: #01670 | ||
- | |||
- | Format of EAP (extended attribute property) structure: | ||
- | Offset Size Description (Table 01668) | ||
- | | ||
- | 01h boolean (either 00h or 01h) | ||
- | 02h number (BYTE, WORD, or DWORD) | ||
- | 03h string | ||
- | 04h date stamp | ||
- | 05h time stamp | ||
- | | ||
- | | ||
- | | ||
- | |||
- | Bitfields for EAP flags: | ||
- | Bit(s) Description (Table 01669) | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | Format of EAV (extended attribute value) list: | ||
- | Offset Size Description (Table 01670) | ||
- | | ||
- | | ||
- | SeeAlso: #01667 | ||
- | |||
- | Format of Extended Attribute Value structures: | ||
- | Offset Size Description (Table 01671) | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | var value | ||
- | --------O-215702----------------------------- | ||
- | INT 21 - OS/2 v1.1+ Family API - DosQFileInfo | ||
- | AX = 5702h | ||
- | BX = file handle | ||
- | CX = size of buffer for information | ||
- | DX = level of information | ||
- | 0001h standard file information (see #01672) | ||
- | 0002h Query EA Size (see #01672) | ||
- | 0003h Query EAs from List (see #01673) | ||
- | 0004h Query All EAs (see #01673) | ||
- | ES:DI -> buffer for information (see # | ||
- | Return: CF clear if successful | ||
- | CF set on error | ||
- | AX = error code | ||
- | SeeAlso: AX=5702h/ | ||
- | |||
- | Format of OS/2 DosQFileInfo: | ||
- | Offset Size Description (Table 01672) | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | ---level 2 only--- | ||
- | | ||
- | SeeAlso: # | ||
- | |||
- | Format of OS/2 DosQFileInfo, | ||
- | Offset Size Description (Table 01673) | ||
- | | ||
- | | ||
- | | ||
- | Note: for info level 3, the first pointer must contain the address of a | ||
- | list of the Extended Attributes to be retrieved; for info level 4, | ||
- | it should be 0000h:0000h | ||
- | SeeAlso: # | ||
- | |||
- | Format of OS/2 DosQFileInfo, | ||
- | Offset Size Description (Table 01674) | ||
- | | ||
- | (ret) number of bytes actually used (including this field) | ||
- | | ||
- | |||
- | Format of OS/2 DosQFileInfo, | ||
- | Offset Size Description (Table 01675) | ||
- | | ||
- | | ||
- | BYTE 00h | ||
- | SeeAlso: #01674 | ||
- | |||
- | Format of OS/2 DosQFileInfo, | ||
- | Offset Size Description (Table 01676) | ||
- | | ||
- | (ret) number of bytes actually used (including this field) | ||
- | | ||
- | SeeAlso: # | ||
- | |||
- | Format of OS/2 Extended Attribute data (struct FEA): | ||
- | Offset Size Description (Table 01677) | ||
- | | ||
- | bit 7: critical EA | ||
- | | ||
- | | ||
- | | ||
- | BYTE 00h | ||
- | M BYTEs EA value | ||
- | --------O-215702BXFFFF----------------------- | ||
- | INT 21 - OS/2 v1.1+ Compatibility Box Family API - DosQPathInfo | ||
- | AX = 5702h | ||
- | BX = FFFFh | ||
- | CX = size of buffer for information | ||
- | DX = level of information (0002h) | ||
- | DS:SI -> filename | ||
- | ES:DI -> buffer for FAPI path information (see #01678) | ||
- | Return: CF clear if successful | ||
- | AL = 00h | ||
- | CF set on error | ||
- | AX = error code | ||
- | SeeAlso: AX=5702h" | ||
- | |||
- | Format of FAPI path information: | ||
- | Offset Size Description (Table 01678) | ||
- | 00h 22 BYTEs ??? | ||
- | | ||
- | --------D-215703----------------------------- | ||
- | INT 21 - DOS 4.x only - GET EXTENDED ATTRIBUTE PROPERTIES | ||
- | AX = 5703h | ||
- | BX = file handle | ||
- | CX = size of result buffer or 0000h | ||
- | ES:DI -> result buffer | ||
- | Return: CF clear if successful | ||
- | CX = size of returned data | ||
- | CF set on error | ||
- | AX = error code (see #01680) | ||
- | ES:DI -> zero word (DOS 4.0) if CX >= 2 on entry | ||
- | Desc: get a list of the extended attributes which are defined for the | ||
- | specified file | ||
- | Notes: if CX=0000h on entry, ES:DI is ignored and no data is actually | ||
- | returned, only the amount of data which is available | ||
- | the default DOS 4 behavior is to return a trivial EAP list consisting | ||
- | of the single word 0000h (no EAP structures) if CX> | ||
- | this functionality was apparently never released to the public | ||
- | SeeAlso: AX=5702h, | ||
- | --------O-215703----------------------------- | ||
- | INT 21 - OS/2 v1.1+ Family API - DosSetFileInfo | ||
- | AX = 5703h | ||
- | BX = file handle | ||
- | CX = size of information buffer | ||
- | DX = level of information | ||
- | ES:DI -> information buffer | ||
- | Return: CF clear if successful | ||
- | CF set on error | ||
- | AX = error code | ||
- | SeeAlso: AX=5702h" | ||
- | --------O-215703BXFFFF----------------------- | ||
- | INT 21 - OS/2 v1.1+ Family API - DosSetPathInfo | ||
- | AX = 5703h | ||
- | BX = FFFFh | ||
- | CX = size of information buffer | ||
- | DX = level of information | ||
- | DS:SI -> filename | ||
- | ES:DI -> information buffer | ||
- | Return: CF clear if successful | ||
- | CF set on error | ||
- | AX = error code | ||
- | SeeAlso: AX=5702h/ | ||