UNIX System Calls
An Introduction |
Prof. David Bernstein |
Computer Science Department |
bernstdh@jmu.edu |
fd = open(path, flags, mode); if (fd == -1) { perror("Error"); exit(EXIT_FAILURE); }
long
may be 4 or 8 bytes)%ld
and cast the value using
(long)
#include
#define
errno
glibc