google_ad_section_start open, creat - open and possibly create a file or device #include < sys/types.h >#include < sys/stat.h >#include < fcntl.h > int open(const char *pathname, int flags);int open(const char *pathname, int flags, mode_t mode);int creat(const char *pathname, mode_t mode); Given a pathname for a file, open () returns a file descriptor, a small, nonnegative integer for use in subsequent system calls ( read (2) , write (2) , lseek (2) , fcntl (2) , etc.). The file descriptor returned by a successful call will be the lowest-numbered file descriptor not currently open for the process. By default, the new file descriptor is set to remain open across an execve (2) (i.e., the FD_CLOEXEC file descriptor flag described in fcntl (2) is initially disabled; the O_CLOEXEC flag, described below, can be used to change this default). The file offset is set to the beginning...