bproc_chgrp

Name

bproc_chgrp -- change node ownership

Synopsis

#include <sys/bproc.h>

int bproc_chgrp( int node, int group );

Description

bproc_chgrp changes the group of node to group. A process can chagne the group to any group that that process is a member of.

Return value

On success, bproc_chgrp will return 0. On error, bproc_chgrp will return -1 and errno will be set appropriately.

Errors

EPERM

The calling process isn't permitted to change the node's group or the caller isn't a member of group.

EINVAL

node is an invalid node number or node is down.

EBUSY

The BProc system is not running.

See Also

bproc_access(2), bproc_chmod(2), bproc_chown(2), bproc_nodeinfo(2)