name_open in QNX 6 – are global connect ions supported?

int name_open( const char * name,
int flags ); // In QNX 6

Are global connections currently supported? If not, are there any plans
to support them in future?
Thank you,
Yuriy

QNX 4 to QNX Neutrino migration guide says:
“Note that global names are not supported yet with name attach() and
name locate().”
I hope that someone from QSSL will comment on “yet” and their plans. As for
now the migration guide suggest to walk through all node and provides the
following code:

#include <sys/dispatch.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <share.h>
int my name open(const char *name, int flags)
{
int fd;
DIR *dir;
struct dirent *dent;
char *newname;
if ((fd = name open(name, flags)) != -1 || (flags & NAME FLAG ATTACH GLOBAL)
== 0) {
return fd;
}
if ((dir = opendir("/net")) == NULL) {
errno = ENOENT;
return -1;
}
while (dent = readdir(dir)) {
newname = alloca(strlen("/net/") + strlen(dent->d name) +
strlen("/dev/name/global/") + strlen(name) + 1);
if (!newname) {
errno = ENOMEM;
return -1;
}
sprintf(newname, “/net/%s/dev/name/global/%s”, dent->d name, name);
fd = connect( NTO SIDE CHANNEL, newname, 0, O RDWR, SH DENYNO,
IO CONNECT OPEN, 1, IO FLAG RD | IO FLAG WR,
FTYPE NAME, 0, 0, 0, 0, 0, 0);
if (fd != -1) {
closedir(dir);
return fd;
}
}
closedir(dir);
errno = ENOENT;
return -1;
}

Hope this helps,
Alexander


“Yuriy Synytskyy” <ysynytskyy@mds.nordion.com> wrote in message
news:big106$n3k$1@nntp.qnx.com

int name_open( const char * name,
int flags ); // In QNX 6

Are global connections currently supported? If not, are there any plans
to support them in future?
Thank you,
Yuriy