bproc_chown

Name

bproc_chown -- change node ownership

Synopsis

#include <sys/bproc.h>

int bproc_chown( int node, int user );

Description

bproc_chown changes the owner of node to user. Only the superuser is allowed to change node ownership.

Return value

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

Errors

EPERM

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

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_chgrp(2), bproc_nodeinfo(2)