Posts Tagged ‘dup’
dup, dup2 – duplicate a file descriptor
USAGE
#include <unistd.h>
int dup(int oldfd);
int dup2(int oldfd, int newfd);
DESCRIPTION
dup() and dup2() create a copy of the file descriptor oldfd.
[...]
Categories: D
open, creat – open and possibly create a file or device
USAGE
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int open(const char *pathname, int flags);
int open(const [...]
