bproc_chmod

Name

bproc_chmod -- change the permissions on a node

Synopsis

#include <sys/bproc.h>

int bproc_chmod( int node, int mode );

Description

bproc_chmod changes the permissions on node to mode.

Return value

On success, bproc_chmod will return 0. On error, bproc_chmod will return -1 and errno will be set appropriately. The calling user must be the node owner or the superuser in order to change the permissions.

Errors

EPERM

The calling process isn't permitted to change the node's permissions.

EINVAL

node is an invalid node number or node is down.

EBUSY

The BProc system is not running.

See Also

bproc_access(2), bproc_chown(2), bproc_chgrp(2), bproc_nodeinfo(2)