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.
The calling process isn't permitted to change the node's permissions.
node is an invalid node number or node is down.
The BProc system is not running.