NWDIR

Holds information about a directory entry

Service:File and Directory

Structure

  #include <fsio.h>
  
  typedef struct nwdirent
  {
     uint32_t   d_userspec;
     uint32_t   d_flags;
     mode_t     d_type;
     mode_t     d_mode;
     ino_t      d_ino;
     off64_t    d_size;
     uint32_t   d_spare[39]; 
     timespec_t d_cdatetim;
     timespec_t d_adatetim; 
     timespec_t d_bdatetim; 
     timespec_t d_ddatetim; 
     uid_t      d_uid; 
     uid_t      d_archivedID;
     uid_t      d_updatedID;
     uid_t      d_deletedID;
     uint8_t    d_pad1;
     uint8_t    d_pad2;
     uint8_t    d_pad3;
     uint8_t    d_namelen; 
     char       d_name[NAME_MAX+1]; 
  } NWDIR;
  

Fields

d_userspec

Provides a field for the caller; whatever the caller puts in this field is left untouched.

d_flags

Currently unused.

d_type

Specifies the type of entry. See Directory Entry Types.

d_mode

Specifies the file access mode. For a list of possible values, see File Access Modes and NetWare Attributes.

d_ino

Specifies the directory entry number assigned to the entry specified by the d_name field.

d_size

Specifies the entry's size, in bytes; used for files only.

d_cdatetim

Specifies the creation date and time.

d_adatetim

Specifies the date and time when the entry was last accessed.

d_bdatetim

Specifies the date and time when the entry was last archived.

d_ddatetim

Specifies the date and time when the entry was deleted.

d_uid

Specifies the ID of the owner.

d_archivedID

Specifies the ID of the object that last archived the entry.

d_updatedID

Specifies the ID of the object that last modified the entry.

d_deletedID

Specifies the ID of the object that deleted the entry.

d_pad1

Provides padding.

d_pad2

Provides padding.

d_pad3

Provides padding.

d_namelen

Specifies the length of the name in the d_name field.

d_name

Specifies the name of the entry.

Remarks

The d_deletedID and d_ddatetim fields only return valid information in the scanerasedfiles function.

This structure contains NetWare extensions to the DIR structure.