io_dup()

int io_dup ( resmgr_context_t *ctp,
             io_dup_t *msg,
             RESMGR_OCB_T *ocb ) 

Classification: I/O

Default handler: NULL—handled by base layer

Helper functions: none

Client functions: dup(), dup2(), fcntl(), fork(), spawn*(), vfork()

Messages: _IO_DUP

Data structure:

struct _io_dup {
  uint16_t         type;
  uint16_t         combine_len;
  struct _msg_info info;
  uint32_t         reserved;
  uint32_t         key;
};

typedef union {
  struct _io_dup   i;
} io_dup_t;

Description: This is the dup() message handler. As with the io_close_dup(), you won't likely handle this message yourself. Instead, the base-layer library will handle it.

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