/* * This function opens the file specified by path * according to the request specified by flags. */ #include #include #include int open(const char *path, int flags, mode_t mode) { /* * - Check that path is a valid path */ /* * - Check that flags contains a valid request */ /* * - Attempt to open the specified file */ /* * - Return file descriptor or -1 */ }