Lines Matching defs:to
4 * The contents of this file are subject to the terms of the
26 * Use is subject to license terms.
64 * function takes as arguments: pointer to log entry, character pointer to
65 * another argument, and pointer to an integer, which is used as a counter.
68 * is exhausted. The second argument to 'execute_on_log' is passed as the
69 * second argument to 'func'. The third argument, 'clean' determines whether
107 /* Print contents of log file to stdout */
114 /* Make copy of current log to log pointed to by 'f'. */
132 "db_log::copy: could not append to log file: ");
188 /* Append given log entry to log. */
214 int from, to, ret = 0;
225 if ((to = open(newname, O_WRONLY|O_CREAT|O_TRUNC, 0660)) < 0) {
234 w = write(to, &buf[b], size);
253 (void) close(to);
257 if (fsync(to) != 0) {
262 (void) close(to);
269 * Return value is expected to be the usual C convention of non-zero
280 WARNING("db_log: could not flush log entry to disk");
287 WARNING("db_log: could not sync log entry to disk");
290 /* Log already stable; nothing to do */
305 * Successful sync of file, but no tmplog to sync
380 "db_log: Error copying \"%s\" to \"%s\": %s",