Searched refs:log_file (Results 1 - 25 of 30) sorted by relevance

12

/freebsd-9.3-release/usr.sbin/ctm/ctm_rmail/
H A Derror.h3 extern void err_set_log(char *log_file);
H A Derror.c35 err_set_log(char *log_file) argument
39 if ((fp = fopen(log_file, "a")) == NULL)
40 err("cannot log to '%s'", log_file);
H A Dctm_rmail.c62 char *log_file = NULL; local
79 STRING('l', log_file)
88 if (log_file != NULL)
89 err_set_log(log_file);
/freebsd-9.3-release/contrib/ofed/management/opensm/osmeventplugin/src/
H A Dosmeventplugin.c58 FILE *log_file; member in struct:_log_events
70 log->log_file = fopen(SAMPLE_PLUGIN_OUTPUT_FILE, "a+");
72 if (!(log->log_file)) {
89 fclose(log->log_file);
108 fprintf(log->log_file,
120 fprintf(log->log_file,
131 fprintf(log->log_file,
142 fprintf(log->log_file,
/freebsd-9.3-release/contrib/ntp/sntp/libevent/build-aux/
H A Dtest-driver54 log_file= # Where to save the output of the test script.
64 --log-file) log_file=$2; shift;;
78 test x"$log_file" = x && missing_opts="$missing_opts --log-file"
100 do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
107 "$@" >$log_file 2>&1
129 echo "$res $test_name (exit status: $estatus)" >>$log_file
/freebsd-9.3-release/contrib/openpam/
H A Dtest-driver53 # TODO: $log_file, $trs_file and $test_name are defined).
55 log_file= # Where to save the output of the test script.
65 --log-file) log_file=$2; shift;;
88 do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
95 "$@" >$log_file 2>&1
/freebsd-9.3-release/usr.sbin/ctm/ctm_dequeue/
H A Dctm_dequeue.c62 char *log_file = NULL; local
76 STRING('l', log_file)
82 if (log_file)
83 err_set_log(log_file);
/freebsd-9.3-release/contrib/ofed/management/opensm/opensm/
H A Dosm_log.c302 IN const char *log_file,
311 p_log->log_file_name = (char *)log_file;
315 if (log_file == NULL || !strcmp(log_file, "-") ||
316 !strcmp(log_file, "stdout"))
318 else if (!strcmp(log_file, "stderr"))
332 IN const char *log_file,
335 return osm_log_init_v2(p_log, flush, log_flags, log_file, 0,
299 osm_log_init_v2(IN osm_log_t * const p_log, IN const boolean_t flush, IN const uint8_t log_flags, IN const char *log_file, IN const unsigned long max_size, IN const boolean_t accum_log_file) argument
329 osm_log_init(IN osm_log_t * const p_log, IN const boolean_t flush, IN const uint8_t log_flags, IN const char *log_file, IN const boolean_t accum_log_file) argument
H A Dmain.c257 printf("--log_file, -f <log-file-name>\n"
550 {"log_file", 1, NULL, 'f'},
770 opt.log_file = optarg;
939 if (opt.log_file != NULL)
940 printf(" Log File: %s\n", opt.log_file);
/freebsd-9.3-release/crypto/heimdal/lib/kadm5/
H A Ddestroy_s.c58 free (c->log_file);
H A Dcontext_s.c101 ctx->log_context.log_file = strdup(p);
115 if (ctx->log_context.log_file == NULL)
116 asprintf(&ctx->log_context.log_file, "%s/log", hdb_db_dir(context));
H A Dprivate.h74 char *log_file; member in struct:kadm5_log_context
H A Dinit_s.c57 assert(ctx->log_context.log_file != NULL);
H A Dlog.c100 fd = open (log_context->log_file, O_RDWR | O_CREAT, 0600);
103 log_context->log_file);
108 log_context->log_file);
132 fd = open (log_context->log_file, O_RDWR | O_CREAT | O_TRUNC, 0600);
/freebsd-9.3-release/contrib/gdb/gdb/
H A Dremote-st.c57 FILE *log_file; variable
97 putc (c & 0x7f, log_file);
168 fflush (log_file);
302 log_file = fopen (LOG_FILE, "w");
303 if (log_file == NULL)
325 if (log_file)
327 if (ferror (log_file))
329 if (fclose (log_file) != 0)
/freebsd-9.3-release/contrib/ofed/management/opensm/include/opensm/
H A Dosm_log.h213 IN const char *log_file,
229 * log_file
278 IN const char *log_file, IN const boolean_t accum_log_file);
H A Dosm_subnet.h174 char *log_file; member in struct:osm_subn_opt
328 * log_file
/freebsd-9.3-release/usr.sbin/ctm/ctm_smail/
H A Dctm_smail.c58 char *log_file = NULL; local
69 STRING('l', log_file)
76 if (log_file != NULL)
77 err_set_log(log_file);
/freebsd-9.3-release/contrib/ofed/management/opensm/osmtest/
H A Dmain.c173 "--log_file\n"
313 {"log_file", 1, NULL, 'l'},
337 opt.log_file = NULL;
456 opt.log_file = optarg;
457 printf("\tLog File:%s\n", opt.log_file);
/freebsd-9.3-release/crypto/heimdal/lib/hdb/
H A Ddbinfo.c44 char *log_file; member in struct:hdb_dbinfo
81 p = krb5_config_get_string(context, db_binding, "log_file", NULL);
83 di->log_file = strdup(p);
215 return dbp->log_file;
/freebsd-9.3-release/contrib/ofed/management/opensm/osmtest/include/
H A Dosmtest.h87 char *log_file; member in struct:_osmtest_opt
/freebsd-9.3-release/usr.sbin/lpr/lpd/
H A Drecvjob.c116 if (open(pp->log_file, O_WRONLY|O_APPEND, 0664) < 0) {
117 syslog(LOG_ERR, "%s: %m", pp->log_file);
/freebsd-9.3-release/usr.sbin/lpr/common_source/
H A Dprintcap.c235 &pp->log_file));
347 cfree(pp->log_file);
H A Dlp.h61 char *log_file; /* LF: log file */ member in struct:printer
/freebsd-9.3-release/crypto/heimdal/lib/krb5/
H A Dlog.c214 log_file(const char *timestr, function
253 return krb5_addlog_func(context, fac, min, max, log_file, close_file, fd);

Completed in 206 milliseconds

12