get_identity

Returns the identity associated with the specified context.

Library:LibC
Classification:Novell
Service:File and Directory I/O

Syntax

  #include <fsio.h>
   
  int get_identity (
      NXPathCtx_t   pathCtx,
      int          *identity);
  

Parameters

pathCtx

(IN) Specifies a path context.

identity

(OUT) Points to the identity associated with the path context.

Return Values

If successful, returns 0. Otherwise, returns one of the following error codes:

Decimal

Constant

Description

4

EBADF

The underlying file descriptor of the path context is invalid.

105

ENOCONTEXT

The calling thread has no context.

Remarks

The get_identity function returns the identity previously created with the create_identity or the create_server_identity function. If no identity has been created for the specified path context, get_identity returns 0 in the identity parameter.

See Also