Searched defs:logfile (Results 1 - 20 of 20) sorted by relevance

/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr_door.h47 char logfile[MAXPATHLEN]; member in struct:admin
H A Dcachemgr.c69 static int cachemgr_set_lf(admin_t *ptr, char *logfile);
349 (void) strcpy(current_admin.logfile, LOGFILE);
387 (void) strlcpy(current_admin.logfile,
388 optarg, sizeof (current_admin.logfile));
446 if (strlen(current_admin.logfile) == 0)
450 (void) strcpy(current_admin.logfile, LOGFILE);
453 current_admin.logfile);
471 if (strlen(current_admin.logfile) == 0)
472 (void) strcpy(current_admin.logfile, "/dev/null");
474 current_admin.logfile);
977 cachemgr_set_lf(admin_t *ptr, char *logfile) argument
[all...]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_admin.h46 char logfile[NSCD_LOGFILE_LEN]; member in struct:nscd_admin
64 char logfile[NSCD_LOGFILE_LEN]; member in struct:nscd_admin_mod
H A Dserver.c69 static char logfile[128] = { 0 }; variable
239 logfile, sizeof (logfile));
303 (void) strlcpy(logfile, optarg, sizeof (logfile));
403 if (*logfile == '\0') {
406 (void) strcpy(logfile, "stderr");
408 (void) strcpy(logfile, "/dev/null");
410 (void) _nscd_add_admin_mod(NULL, 'l', logfile,
H A Dnscd_config.h350 char *logfile; member in struct:__anon1010
/illumos-gate/usr/src/cmd/bnu/
H A Dlogent.c51 static char logfile[MAXFULLNAME]; local
62 && strncmp(Rmtname, BASENAME(logfile, '/'), MAXBASENAME) != 0) {
68 sprintf(logfile, "%s/%s", Logfile, Rmtname);
69 _Lf = fopen(logfile, "a");
70 (void) chmod(logfile, LOGFILEMODE);
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmlog.c64 char logfile[MAXPATHLEN]; local
68 (void) snprintf(logfile, sizeof (logfile), "%s%s/%s", LOGDIR, Tag,
73 if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND,0444)) != -1)
82 logfile, strerror(errno));
135 (void) unlink(tlogf); /* remove any stale tmp logfile */
/illumos-gate/usr/src/lib/libldap5/sources/ldap/util/
H A Dlog.c28 static char logfile[PATH_MAX] = variable
39 char *logfile; member in struct:_logctx
51 strcpy(logfile, logf);
84 if ((returnCtx->logfile = strdup(name)) == NULL) {
88 openlog(returnCtx->logfile, OPENLOG_OPTIONS, facility);
130 if ((logsize > 0) && (stat(logfile, &statbuf) == 0 &&
133 (void) sprintf(newlog1, "%s.%d", logfile, i-1);
134 (void) sprintf(newlog2, "%s.%d", logfile, i);
141 (void) rename(logfile, newlog1);
147 logfd = fopen(logfile, "a
[all...]
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dzoneadmd.h74 FILE *logfile; /* file to log to */ member in struct:zlog
/illumos-gate/usr/src/cmd/streams/log/
H A Dstrerr.c58 static FILE *logfile(FILE *log, struct log_ctl *lp);
75 logfile(FILE *log, struct log_ctl *lp) function
151 log = logfile(log, lp);
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_logging.c195 sip_enable_trans_logging(FILE *logfile, int flags) argument
197 if (logfile == NULL || flags != SIP_DETAIL_LOGGING)
202 trans_log.sip_logfile = logfile;
215 sip_enable_dialog_logging(FILE *logfile, int flags) argument
217 if (logfile == NULL || flags != SIP_DETAIL_LOGGING)
222 dialog_log.sip_logfile = logfile;
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypserv.c90 static char logfile[] = "/var/yp/ypserv.log"; variable
232 if (access(logfile, _IOWRT)) {
236 freopen(logfile, "a", stdout);
237 freopen(logfile, "a", stderr);
H A Dypxfr.c164 char logfile[] = "/var/yp/ypxfr.log"; variable
337 if (access(logfile, W_OK)) {
340 (void) freopen(logfile, "a", stderr);
/illumos-gate/usr/src/cmd/svc/startd/
H A Dlog.c126 static FILE *logfile = NULL; variable
202 if (st->st_log_flags & STARTD_LOG_FILE && logfile) {
203 (void) fputs(buf, logfile);
204 (void) fflush(logfile);
261 * logfile and syslogd file descriptors from being leaked to child processes.
278 char logfile[PATH_MAX]; local
284 (void) snprintf(logfile, PATH_MAX, "%s/%s", st->st_log_prefix, logstem);
287 fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND,
326 char logfile[PATH_MAX]; local
334 (void) snprintf(logfile, PATH_MA
[all...]
/illumos-gate/usr/src/cmd/latencytop/common/
H A Dlatencytop.c221 char logfile[PATH_MAX] = ""; local
280 } else if (strlen(optarg) >= sizeof (logfile)) {
286 (void) strncpy(logfile, optarg,
287 sizeof (logfile));
415 if (!unknown_option && strlen(logfile) > 0) {
416 err = lt_klog_set_log_file(logfile);
420 logfile);
424 logfile);
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Docfile.c208 char logfile[PATH_MAX]; local
281 /* determine blocks used by the logfile */
282 (void) snprintf(logfile, sizeof (logfile), "%s/" PKGLOG, pkgadm_dir);
284 if (stat64(logfile, &statl) == -1)
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipmon.c145 static char *logfile = NULL; variable
1607 logfile = argv[optind];
1608 log = logfile ? fopen(logfile, "a") : stdout;
1671 if (logfile && (fp = fopen(logfile, "a"))) {
/illumos-gate/usr/src/cmd/tsol/tnd/
H A Dtnd.c418 char *logfile = TNDLOG; local
435 logfile = optarg;
453 logf = tnlog_open(logfile);
476 tnlog_open(logfile)
477 char *logfile;
481 if ((fp = fopen(logfile, "a")) == NULL) {
482 syslog(LOG_ERR, "unable to open logfile %s",
483 logfile);
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_log.c121 * These two macros are used to prep a logfile data structure and
125 * the logfile struct.
301 struct log_file *logfile; local
305 if (log_file_create(name, &logfile))
313 buffer->lb_logfile = logfile;
421 * 'logfile' is set to be the log_file structure with reference one.
430 struct log_file *logfile = NULL; local
450 logfile = (struct log_file *)kmem_zalloc(sizeof (*logfile), KM_SLEEP);
451 logfile
910 struct log_file *logfile; local
[all...]
/illumos-gate/usr/src/lib/libdladm/common/
H A Dusage.c1040 char *logfile, char *resource, char *stime, char *etime, void *arg)
1058 net_table = parse_logfile(logfile, logtype, &status);
1186 char *logfile, char *stime, char *etime, void *arg)
1202 net_table = parse_logfile(logfile, logtype, &status);
1313 char *logfile, void *arg)
1324 net_table = parse_logfile(logfile, logtype, &status);
1365 char *logfile, char *resource, void *arg)
1378 net_table = parse_logfile(logfile, logtype, &status);
1398 /* get the starting point in the logfile */
1039 dladm_walk_usage_res(int (*fn)(dladm_usage_t *, void *), int logtype, char *logfile, char *resource, char *stime, char *etime, void *arg) argument
1185 dladm_walk_usage_time(int (*fn)(dladm_usage_t *, void *), int logtype, char *logfile, char *stime, char *etime, void *arg) argument
1312 dladm_usage_summary(int (*fn)(dladm_usage_t *, void *), int logtype, char *logfile, void *arg) argument
1364 dladm_usage_dates(int (*fn)(dladm_usage_t *, void *), int logtype, char *logfile, char *resource, void *arg) argument

Completed in 118 milliseconds