Lines Matching refs:open
57 // already open or is opened by this call, 0 if opening the file doesn't
63 if (isOpen) { // file is already open
72 fd = open(realFilename.c_str(), O_RDONLY);
118 // An extended file-open function. This includes some system-specific checks.
119 // Returns 1 if the file is open, 0 otherwise....
124 // Close the disk, in case it's already open for reading only....
127 // try to open the device; may fail....
128 fd = open(realFilename.c_str(), O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH);
133 fd = open(realFilename.c_str(), O_WRONLY | O_SHLOCK);
165 // If disk isn't open, try to open it....
209 // If disk isn't open, try to open it....
232 // If disk isn't open, try to open it....
250 // If disk isn't open, try to open it....
268 // If disk isn't open, try to open it....
322 // If disk isn't open, try to open it....
345 // If disk isn't open, try to open it....
388 // If disk isn't open, try to open it....
444 // If disk isn't open, try to open it....