SetReaddirAttribute

Sets the attributes that are to be used when searching for files and directories by calling the readdir function

Local Servers:blocking
Remote Servers:blocking
NetWare Server:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Platform:NLM
Service:File System

Syntax

   #include <nwfileio.h> 
     
   int SetReaddirAttribute  (  
      DIR             *dirP,   
      unsigned long    newAttribute);
   

Parameters

dirP

(IN) Points to the DIR structure obtained by calling opendir or readdir.

newAttribute

(IN) Specifies the new attribute.

Return Values

Returns a value of 0 if successful, nonzero otherwise.

Remarks

SetReaddirAttribute can be called any time after the DIR structure has been obtained from the opendir function. The modified search attributes are in effect for calling the readdir function.

The following search attributes are defined:

_A_NORMAL

Normal file; read/write permitted

_A_RDONLY

Read-only file

_A_HIDDEN

Hidden file

_A_SYSTEM

System file

_A_VOLID

Volume ID entry

_A_SUBDIR

Subdirectory

_A_ARCH

Archive file

See Also

closedir, opendir, readdir