Lines Matching refs:open
154 the system open() call. If the modify time of an existing lock file is
230 #include <fcntl.h> /* open */
354 while ((fd = open(log->path, O_CREAT | O_EXCL, 0644)) < 0) {
496 /* Append len bytes from data to the locked and open log file. len may be zero
629 fd = open(log->path, O_RDONLY, 0);
758 if ((fd = open(log->path, O_RDONLY, 0)) < 0) {
795 /* Close the foo.gz file (if open) and release the lock. */
804 /* Open foo.gz, verify the header, and load the extra field contents, after
817 /* release open file resource if left over -- can occur if lock lost
827 /* open the log file, foo.gz */
829 log->fd = open(log->path, O_RDWR | O_CREAT, 0644);
953 fd = open(log->path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
963 fd = open(log->path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
1014 fd = open(log->path, O_WRONLY | O_CREAT | O_TRUNC, 0644);