[Previous]
[Contents]
[Next]

qnx_name_locators()

return an array of nodes running the global name locator

Synopsis:

#include <sys/name.h>
int qnx_name_locators( nid_t nids[] );

Description:

The qnx_name_locators() function fills an array with node numbers that are running the global name locator. The array nids must be big enough to hold 10 elements.

Returns:

The number of elements in nids.

Examples:

#include <stdio.h>
#include <sys/name.h>

void main()
  {
    int i, n;
    nid_t nids[10];

    printf( "Name Locators:" );
    n = qnx_name_locators( &nids );
    for( i = 0 ; i < n ; ++i )
      printf( " %ld", nids[i] );
    printf( "\n" );
  }

Classification:

QNX

Safety:
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

qnx_name_attach(), qnx_name_detach(), qnx_name_locate(), qnx_name_query()


[Previous]
[Contents]
[Next]