Jump to content

FS RMDIR: Difference between revisions

From EDM2
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..."
 
Ak120 (talk | contribs)
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.  


: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==
==Returns==
==Sample==
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>


</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.


The FSD should not remove any directory that has entries other than ' .' and '..' in it. 
[[Category:IFS Interfaces]]
[[Category:IFS Interfaces]]
{{DISPLAYTITLE:FS_RMDIR}}

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.