int io_chown( resmgr_context_t *ctp,
              io_chown_t *msg,
              RESMGR_OCB_T *ocb ) 

Classification: I/O function

Default handler: iofunc_chown_default()

Helper functions: iofunc_ability_check(), iofunc_chown()

Client functions: chown(), fchown()

Messages: _IO_CHOWN

Data structure:

struct _io_chown {
  uint16_t type;
  uint16_t combine_len;
  int32_t  gid;
  int32_t  uid;

typedef union {
  struct _io_chown i;
} io_chown_t;

Description: Responsible for changing the user ID and group ID fields for the resource identified by the passed ocb to uid and gid, respectively. Note that the mount structure flag IOFUNC_PC_CHOWN_RESTRICTED and the OCB flag field should be examined to determine whether the filesystem allows chown() to be performed by non-root users.

Returns: The status via the helper macro _RESMGR_STATUS().