fs_mapkeytopath

Returns the file system path associated with the key.

Library:LibC
Classification:Novell
Service:File System Monitoring

Syntax

  #include <fshooks.h> 
   
  int fs_mapkeytopath (
     zkey_t       key,
     unicode_t   *path,
     size_t      *maxpathlen,
     int          want_volume );
  

Parameters

key

(IN) Specifies the key to the opened file.

path

(OUT) Points to the file system path. If NULL is passed, the system allocates a buffer of the required size.

maxpathlen

(IN) Points to the size of the path buffer.

want_volume

(IN) Specifies whether the volume name is included in the path.

Return Values

If successful, returns 0. Otherwise, returns a nonzero error code.

Remarks

A number of the event structures return the key of the object that was effected by the event. The fs_mapkeytopath function allows you to retrieve the file system path associated with the key.

See Also