FS RMDIR: Difference between revisions
Appearance
Created page with "Removes a subdirectory from the specified disk. ==Syntax== FS_RMDIR(pcdfsi, pcdfsd, pName, iCurDirEnd) ==Parameters== ;pcdfsi :is a pointer to the file-system-independent..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
Removes a subdirectory from the specified disk. | {{DISPLAYTITLE:FS_RMDIR}} | ||
Removes a subdirectory from the specified disk. | |||
==Syntax== | ==Syntax== | ||
FS_RMDIR(pcdfsi, pcdfsd, pName, iCurDirEnd) | FS_RMDIR(pcdfsi, pcdfsd, pName, iCurDirEnd) | ||
==Parameters== | ==Parameters== | ||
;pcdfsi :is a pointer to the file-system-independent working directory structure. | ;pcdfsi:is a pointer to the file-system-independent working directory structure. | ||
;pcdfsd:is a pointer to the file-system-dependent working directory structure. | |||
;pcdfsd :is a pointer to the file-system-dependent working directory structure . | ;pName:is a pointer to the ASCIIZ name of the directory to be removed. | ||
:The FSD does not need to verify this pointer. | |||
;pName :is a pointer to the ASCIIZ name of the directory to be removed. | ;iCurDirEnd :is the index of the end of the current directory in pName. | ||
:This is used to optimize FSD path processing. If iCurDirEnd == -1, there is no directory relevant to the name text, that is a device. | |||
:The FSD does not need to verify this pointer. | |||
;iCurDirEnd :is the index of the end of the current directory in pName. | |||
==Calling Sequence== | |||
== | |||
<PRE> | <PRE> | ||
int far pascal FS_RMDIR(pcdfsi, pcdfsd, pName, iCurDirEnd) | int far pascal FS_RMDIR(pcdfsi, pcdfsd, pName, iCurDirEnd) | ||
Line 25: | Line 21: | ||
char far * pName; | char far * pName; | ||
unsigned short iCurDirEnd; | unsigned short iCurDirEnd; | ||
</PRE> | |||
==Remarks== | ==Remarks== | ||
OS/2 assures that the directory being removed is not the current directory nor the parent of any current directory of any process. | OS/2 assures that the directory being removed is not the current directory nor the parent of any current directory of any process. | ||
The FSD should not remove any directory that has entries other than '.' and '..' in it. | |||
[[Category:IFS Interfaces]] | [[Category:IFS Interfaces]] | ||
Latest revision as of 02:52, 10 February 2020
Removes a subdirectory from the specified disk.
Syntax
FS_RMDIR(pcdfsi, pcdfsd, pName, iCurDirEnd)
Parameters
- pcdfsi
- is a pointer to the file-system-independent working directory structure.
- pcdfsd
- is a pointer to the file-system-dependent working directory structure.
- pName
- is a pointer to the ASCIIZ name of the directory to be removed.
- The FSD does not need to verify this pointer.
- iCurDirEnd
- is the index of the end of the current directory in pName.
- This is used to optimize FSD path processing. If iCurDirEnd == -1, there is no directory relevant to the name text, that is a device.
Calling Sequence
int far pascal FS_RMDIR(pcdfsi, pcdfsd, pName, iCurDirEnd) struct cdfsi far * pcdfsi; struct cdfsd far * pcdfsd; char far * pName; unsigned short iCurDirEnd;
Remarks
OS/2 assures that the directory being removed is not the current directory nor the parent of any current directory of any process.
The FSD should not remove any directory that has entries other than '.' and '..' in it.