bproc_access

Name

bproc_access -- determine whether a node can be accessed

Synopsis

#include <sys/bproc.h>

int bproc_access( int node, int mode );

Description

bproc_access checks whether the type of accesses specificied by mode is allowed. Currently the only type of accessis BPROC_X_OK.

Return value

If the access is allowed, bproc_access will return 0. If the access isn't allowed, bproc_access will return -1 and errno will be set to EACCES. On error, bproc_access will return -1 and errno will be set appropriately.

Errors

EINVAL

node is an invalid node number or node is down.

EBUSY

The BProc system is not running.

See Also

bproc_chmod(2), bproc_chown(2), bproc_chgrp(2), bproc_nodeinfo(2)