I$MakDir

From NitrOS-9
Jump to: navigation, search
Make Directory Creates and initializes a directory
OS9 I$MakDir 103F 85

Entry Conditions

B directory attributes

X address of the pathlist

Exit Conditions

X address of the last byte of the pathlist + 1; skips any trailing blanks

Error Output

CC carry set on error

B error code, if any

Additional Information

  • The Make Directory call creates and initializes a directory as specified by the pathlist. The directory contains only two entries, one for itself (.) and one for its parent directory (..).
  • NitrOS-9 makes the calling process the owner of the directory.
  • Because the Make Directory call does not open the directory, it does not return a path number.
  • The new directory automatically has its directory bit set in the access permission attributes. The remaining attributes are specified by the byte passed in Register B. The bits are defined as follows:
Bit Definition
0 Read
1 Write
2 Execute
3 Public read
4 Public write
5 Public execute
6 Single-user
7 Don’t care