Lines Matching full:open
44 // Open the currently on-record file for reading. Returns 1 if the file is
45 // already open or is opened by this call, 0 if opening the file doesn't
51 if (isOpen) { // file is already open
60 fd = open(realFilename.c_str(), O_RDONLY);
94 // An extended file-open function. This includes some system-specific checks.
95 // Returns 1 if the file is open, 0 otherwise....
100 // Close the disk, in case it's already open for reading only....
103 // try to open the device; may fail....
104 fd = open(realFilename.c_str(), O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH);
109 fd = open(realFilename.c_str(), O_WRONLY | O_SHLOCK);
141 // If disk isn't open, try to open it....
187 // If disk isn't open, try to open it....
205 // If disk isn't open, try to open it....
223 // If disk isn't open, try to open it....
276 // If disk isn't open, try to open it....
299 // If disk isn't open, try to open it....
342 // If disk isn't open, try to open it....
398 // If disk isn't open, try to open it....