Topic : TOS - The Operating System Author : Version : tos.hyp (December 19, 2008) Subject : Programmieren/Atari Nodes : 3010 Index Size : 93790 HCP-Version : 5 Compiled on : Atari @charset : atarist @lang : @default : Title @help : @options : +g -i -s +x +zz -t4 @width : 70 View Ref-File5.16.19 Dxopendir TOS Name: »Dxopendir« - Open directory for reading. Opcode: 1296 Syntax: int32_t Dxopendir ( int8_t *name, int16_t flag ); Description: Dxopendir calls the normal Dopendir, but then saves the returned handle and flag in a chained list, so that Dreaddir and Dxreaddir know what they have to convert for this directory. Dcloseddir deletes the handle again from the list. Dreaddir and Dxreaddir convert the returned name to lower case. The function opens the directory name for reading. The parameter flag describes the manner how the directory is to be opened: flag Meaning 0 Normal mode In this mode an attempt is made not to restrict the length of the filename. Also, Dreaddir in this mode return an index number (similar to the UNIX inode's) in the first 4 bytes of the filename. 1 Compatibility mode In this mode file-systems behave as if Fsfirst or Fsnext calls were being used. In particular, filenames will be truncated according to the DOS-convention to 8+3 characters, if that is possible. Newer programs should always use the normal mode if possible, in order to exploit the full functionaity. Return value: The function returns a 32-bit directory handle if successful; this may also be negative, but in no case may contain the value 0xff in the higher byte, through which it can be differentiated from errors. In case of error, the following returns are possible: EPTHNF : name is not a valid directory EACCDN : The directory is not addressable by this program ENSMEM : The kernel cannot allocate memory for this operation Availability: When the system extension Dir_Lwr (supplied with Egale 4.2) is installed. Creates the cookie 'DYDL'. Group: Directory functions See Also: Binding Dclosedir Dreaddir Drewinddir Pdomain