Searched refs:logfile (Results 1 - 25 of 34) sorted by relevance

12

/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/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/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_admin.c88 (void) printf("\"%s\" is server log file\n", admin_c.logfile);
118 _nscd_logit(me, "logfile_set = %d, logfile = %s\n",
119 set->logfile_set, *set->logfile == '\0' ?
120 "" : set->logfile);
146 if (_nscd_set_log_file(set->logfile) != NSCD_SUCCESS) {
149 (me, "unable to set log file %s\n", set->logfile);
153 (void) strlcpy(admin_c.logfile, set->logfile,
276 (void) strlcpy(admin_mod.logfile,
H A Dnscd_log.c119 "logfile \"%s\": %sn",
132 "logfile \"%s\": %s\n", lf,
139 "logfile \"%s\": "\
150 _nscd_logit(me, "Start of new logfile %s\n", lf);
283 * logcfg->logfile should have been opened
304 * logcfg->logfile should have been opened
351 if (logcfg->logfile != NULL)
352 return (_nscd_set_lf(logcfg->logfile));
381 off = offsetof(nscd_cfg_global_log_t, logfile);
421 rc = _nscd_cfg_get_handle("logfile", NUL
[all...]
/illumos-gate/usr/src/cmd/logadm/
H A Dtester935 set_file('logfile', 'initially logfile');
936 set_file('logfile.0', 'initially logfile.0');
939 lstat 'logfile' or die "lstat logfile: $!\n";
944 [ -s logfile ] && exit 1
945 [ -f logfile.0 ] || exit 1
946 [ "xinitially logfile" = "x`/bin/cat logfile
[all...]
/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/lib/libnisdb/
H A Ddb.cc83 logfile = NULL;
102 delete logfile;
351 if (logfile->append(&le) < 0) {
368 if (logfile->sync_log() < 0) {
432 /* close existing logfile and delete its structure */
439 if (logfile != NULL) {
441 logfile->sync_log();
442 if (logfile->close() < 0) {
447 delete logfile;
448 logfile
[all...]
H A Ddb_c.x55 db_log *logfile;
70 % db_log *logfile;
83 % Does not affect "logfile" */
108 %/* Destructor: deletes filenames and logfile descriptor.
H A Ddb_dictionary_c.x124 % db_dictlog *logfile;
142 % Does not affect "logfile" */
H A Ddb_dictionary.cc618 logfile = NULL;
935 unlink(filename); /* There shouldn't be a tmpfile or logfile */
1176 "incorporation of dictionary logfile '%s' failed",
1350 /* close existing logfile and delete its structure */
1357 if (logfile != NULL) {
1359 if (logfile->close() < 0) {
1364 delete logfile;
1365 logfile = NULL;
1372 /* close existing logfile, but leave its structure if exists */
1377 if (logfile !
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dperfstat.c315 * This function writes a conn record to the logfile.
615 * logfile - file descripter
621 writeLog (string, logfile, logname, collecting)
624 int * logfile;
634 if (openLog(logfile,logname) != SUCCESS){
641 rv = write(*logfile, string, (unsigned) length);
650 closeLog(logfile);
668 closeLog (logfile)
669 int *logfile;
672 if (*logfile !
[all...]
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/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/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/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/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/cmd/zoneadmd/
H A Dzoneadmd.h74 FILE *logfile; /* file to log to */ member in struct:zlog
/illumos-gate/usr/src/cmd/lp/model/netpr/
H A DMakefile31 PURIFYOPTS = -logfile=/tmp/errs.%p
/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);
/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/lp/cmd/lpsched/
H A DMakefile39 PURIFYOPTS = -logfile=/tmp/errs.%p

Completed in 180 milliseconds

12