Function gkfs::syscall::gkfs_dup2

Function Documentation

int gkfs::syscall::gkfs_dup2(int oldfd, int newfd)

gkfs wrapper for dup2() system calls errno may be set

Parameters:
  • oldfd –

  • newfd –

Returns:

file descriptor int or -1 on error