Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  
 
XFN Interface Library Functionsfn_ctx_lookup(3XFN)


NAME

 fn_ctx_lookup - look up name in context

SYNOPSIS

 
cc [ flag ... ] file ... -lxfn [ library ... ]
#include <xfn/xfn.h>
FN_ref_t *fn_ctx_lookup(FN_ctx_t *ctx, const FN_composite_name_t *name, FN_status_t *status);

DESCRIPTION

 

This operation returns the reference bound to name relative to the context ctx.


RETURN VALUE

 

If the operation succeeds, the fn_ctx_lookup() function returns a handle to the reference bound to name. Otherwise, 0 is returned and status is set appropriately.


ERRORS

 

fn_ctx_lookup() sets status as described FN_status_t(3XFN) and xfn_status_codes(3XFN).


APPLICATION USAGE

 

Some naming services may not always have reference information for all names in their contexts; for such names, such naming services may return a special reference whose type indicates that the name is not bound to any address. This reference may be name service specific or it may be the conventional NULL reference defined in the X/Open registry. See fns_references(5).


ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelSafe.

SEE ALSO

 

FN_composite_name_t(3XFN), FN_ctx_t(3XFN), FN_ref_t(3XFN), FN_status_t(3XFN), fns_references(5), xfn_status_codes (3XFN), xfn(3XFN), attributes(5)


NOTES

 

The Federated Naming Service based on the X/Open XFN standard might not be supported in a future release of the Solaris operating system.



SunOS 5.9Go To TopLast Changed 16 Oct 2003


Updated: 2004-01-16, 18:55