change the default network pathname prefix
#include <sys/prfx.h> int qnx_prefix_setroot( char *str );
The qnx_prefix_setroot() function changes the default network prefix root of the calling process. This is inherited by all children created after it's changed. The new root must be of the form //number, where number is a logical node id.
The qnx_prefix_setroot() function returns a zero on success. It returns (-1) if str exceeds _QNX_PREFIX_SIZE_MAX (as defined in limits.h).
#include <stdio.h> #include <sys/prfx.h> void main() { printf( "Prefix root is %s\n", qnx_prefix_getroot() ); qnx_prefix_setroot("//99"); printf( "Prefix root is %s\n", qnx_prefix_getroot() ); }
QNX
QNX