Lines Matching defs:file
15 * otherwise, applies only to this software file. Patent licenses, if
35 * to provide a 'write history' of a file which can be examined to
36 * judge the state of a file (ie. whether it is corrupted or not) based
46 * about a file write. Examples include the file name, offset, length,
54 * NOTE: For target file analysis based on a write logfile, the
55 * assumption is made that the file being written to is
59 * target file simultaneously.
61 * The history file created is a collection of variable length records
106 * be truncated if it currently exists. If it is non-zero, the file will
109 * The mode argument is the [absolute] mode which the file will be
124 * Open 1 file descriptor as O_APPEND
200 * If offset is -1, we append the record at the end of file
202 * Otherwise, we overlay wrec at the file offset indicated and assume
229 "Could not reposition file pointer - lseek(%s, 0, SEEK_CUR) failed: %s\n",
237 "Could not reposition file pointer - lseek(%s, %ld, SEEK_SET) failed: %s\n",
273 * Move to EOF. offset will always hold the current file offset
278 "Could not reposition file pointer - lseek(%s, 0, SEEK_END) failed: %s\n",
285 "Could not reposition file pointer - lseek(%s, 0, SEEK_CUR) failed: %s\n",
297 * Check for beginning of file - if there aren't enough bytes
309 * Move to the proper file offset, and read into buf
313 "Could not reposition file pointer - lseek(%s, %d, SEEK_SET) failed: %s\n",
322 "Could not read history file at offset %d - read(%d, %p, %d) failed: %s\n",
337 * of buf and continue reading the file.
407 char *file, *host, *pattern;
431 file = buf + sizeof(struct wlog_rec_disk);
432 host = file + wrecd->w_pathlen;
436 memcpy(file, wrec->w_path, wrecd->w_pathlen);
454 char *file, *host, *pattern;
471 file = buf + sizeof(struct wlog_rec_disk);
472 memcpy(wrec->w_path, file, wrec->w_pathlen);