| /illumos-gate/usr/src/test/test-runner/stf/contrib/include/ |
| H A D | logapi.shlib | 92 typeset logfile="/tmp/log.$$" 99 while [[ -e $logfile ]]; do 100 logfile="$logfile.$$" 104 "$@" 2>$logfile 106 out="cat $logfile" 142 _recursive_output $logfile "false" 180 typeset logfile="/tmp/log.$$" 185 while [[ -e $logfile ]]; do 186 logfile="$logfile.$$" 189 "$@" 2>$logfile [all …]
|
| /illumos-gate/usr/src/lib/libldap5/sources/ldap/util/ |
| H A D | log.c | 26 static char logfile[PATH_MAX] = variable 37 char *logfile; member 49 strcpy(logfile, logf); in ldaplogconfig() 82 if ((returnCtx->logfile = strdup(name)) == NULL) { in sundsloginit() 86 openlog(returnCtx->logfile, OPENLOG_OPTIONS, facility); in sundsloginit() 128 if ((logsize > 0) && (stat(logfile, &statbuf) == 0 && in ldaplog() 131 (void) sprintf(newlog1, "%s.%d", logfile, i-1); in ldaplog() 132 (void) sprintf(newlog2, "%s.%d", logfile, i); in ldaplog() 139 (void) rename(logfile, newlog1); in ldaplog() 145 logfd = fopen(logfile, "aF"); in ldaplog()
|
| /illumos-gate/usr/src/cmd/svc/startd/ |
| H A D | log.c | 127 static FILE *logfile = NULL; variable 203 if (st->st_log_flags & STARTD_LOG_FILE && logfile) { in vlog_prefix() 204 (void) fputs(buf, logfile); in vlog_prefix() 205 (void) fflush(logfile); in vlog_prefix() 279 char logfile[PATH_MAX]; in setlog() local 285 (void) snprintf(logfile, PATH_MAX, "%s/%s", st->st_log_prefix, logstem); in setlog() 288 fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, in setlog() 327 char logfile[PATH_MAX]; in vlog_instance() local 335 (void) snprintf(logfile, PATH_MAX, "%s/%s", st->st_log_prefix, in vlog_instance() 339 fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, in vlog_instance() [all …]
|
| /illumos-gate/usr/src/lib/libnisdb/ |
| H A D | db.cc | 81 logfile = NULL; in db() 100 delete logfile; in ~db() 349 if (logfile->append(&le) < 0) { in log_action() 366 if (logfile->sync_log() < 0) { in log_action() 437 if (logfile != NULL) { in reset_log() 439 logfile->sync_log(); in reset_log() 440 if (logfile->close() < 0) { in reset_log() 445 delete logfile; in reset_log() 446 logfile = NULL; in reset_log() 458 if (logfile != NULL && logfile_opened == TRUE) { in close_log() [all …]
|
| H A D | db_c.x | 53 db_log *logfile; member 68 % db_log *logfile;
|
| H A D | db_dictionary.cc | 619 logfile = NULL; in db_dictionary() 1358 if (logfile != NULL) { in reset_log() 1360 if (logfile->close() < 0) { in reset_log() 1365 delete logfile; in reset_log() 1366 logfile = NULL; in reset_log() 1378 if (logfile != NULL && logfile_opened == TRUE) { in close_log() 1379 logfile->close(); in close_log() 1391 if (logfile == NULL) { in open_log() 1392 if ((logfile = new db_dictlog(logfilename, PICKLE_APPEND)) == in open_log() 1406 if ((logfile->open()) == FALSE) { in open_log() [all …]
|
| /illumos-gate/usr/src/cmd/bnu/ |
| H A D | perfstat.c | 619 writeLog (string, logfile, logname, collecting) in writeLog() argument 622 int * logfile; 632 if (openLog(logfile,logname) != SUCCESS){ 639 rv = write(*logfile, string, (unsigned) length); 648 closeLog(logfile); 666 closeLog (logfile) in closeLog() argument 667 int *logfile; in closeLog() 670 if (*logfile != CLOSED) 672 (void) close(*logfile); 673 *logfile = CLOSED; [all …]
|
| H A D | logent.c | 48 static char logfile[MAXFULLNAME]; local 59 && strncmp(Rmtname, BASENAME(logfile, '/'), MAXBASENAME) != 0) { 65 sprintf(logfile, "%s/%s", Logfile, Rmtname); 66 _Lf = fopen(logfile, "a"); 67 (void) chmod(logfile, LOGFILEMODE);
|
| /illumos-gate/usr/src/cmd/ldapcachemgr/ |
| H A D | cachemgr.c | 70 static int cachemgr_set_lf(admin_t *ptr, char *logfile); 351 (void) strcpy(current_admin.logfile, LOGFILE); 389 (void) strlcpy(current_admin.logfile, 390 optarg, sizeof (current_admin.logfile)); 448 if (strlen(current_admin.logfile) == 0) 452 (void) strcpy(current_admin.logfile, LOGFILE); 453 (void) cachemgr_set_lf(¤t_admin, current_admin.logfile); 471 if (strlen(current_admin.logfile) == 0) 472 (void) strcpy(current_admin.logfile, "/dev/null"); 473 (void) cachemgr_set_lf(¤t_admin, current_admin.logfile); [all …]
|
| H A D | cachemgr_door.h | 45 char logfile[MAXPATHLEN]; member
|
| /illumos-gate/usr/src/cmd/nscd/ |
| H A D | server.c | 70 static char logfile[128] = { 0 }; variable 240 logfile, sizeof (logfile)); in main() 304 (void) strlcpy(logfile, optarg, sizeof (logfile)); in main() 404 if (*logfile == '\0') { in main() 407 (void) strcpy(logfile, "stderr"); in main() 409 (void) strcpy(logfile, "/dev/null"); in main() 411 (void) _nscd_add_admin_mod(NULL, 'l', logfile, in main()
|
| H A D | nscd_admin.c | 88 (void) printf("\"%s\" is server log file\n", admin_c.logfile); in _nscd_client_showstats() 119 set->logfile_set, *set->logfile == '\0' ? in _nscd_server_setadmin() 120 "" : set->logfile); in _nscd_server_setadmin() 146 if (_nscd_set_log_file(set->logfile) != NSCD_SUCCESS) { in _nscd_server_setadmin() 149 (me, "unable to set log file %s\n", set->logfile); in _nscd_server_setadmin() 153 (void) strlcpy(admin_c.logfile, set->logfile, in _nscd_server_setadmin() 276 (void) strlcpy(admin_mod.logfile, in _nscd_add_admin_mod()
|
| H A D | nscd_admin.h | 44 char logfile[NSCD_LOGFILE_LEN]; member 62 char logfile[NSCD_LOGFILE_LEN]; member
|
| H A D | nscd_log.c | 349 if (logcfg->logfile != NULL) in _nscd_cfg_log_verify() 350 return (_nscd_set_lf(logcfg->logfile)); in _nscd_cfg_log_verify() 379 off = offsetof(nscd_cfg_global_log_t, logfile); in _nscd_cfg_log_verify()
|
| /illumos-gate/usr/src/cmd/latencytop/ |
| H A D | latencytop.c | 222 char logfile[PATH_MAX] = ""; in main() local 281 } else if (strlen(optarg) >= sizeof (logfile)) { in main() 287 (void) strncpy(logfile, optarg, in main() 288 sizeof (logfile)); in main() 416 if (!unknown_option && strlen(logfile) > 0) { in main() 417 err = lt_klog_set_log_file(logfile); in main() 421 logfile); in main() 425 logfile); in main()
|
| /illumos-gate/usr/src/uts/common/fs/nfs/ |
| H A D | nfs_log.c | 304 struct log_file *logfile; in log_buffer_create() local 308 if (log_file_create(name, &logfile)) in log_buffer_create() 316 buffer->lb_logfile = logfile; in log_buffer_create() 433 struct log_file *logfile = NULL; in log_file_create() local 454 logfile = (struct log_file *)kmem_zalloc(sizeof (*logfile), KM_SLEEP); in log_file_create() 455 logfile->lf_path = name; in log_file_create() 460 logfile->lf_vp = vp; in log_file_create() 461 logfile->lf_refcnt = 1; in log_file_create() 462 mutex_init(&logfile->lf_lock, NULL, MUTEX_DEFAULT, NULL); in log_file_create() 491 mutex_enter(&logfile->lf_lock); in log_file_create() [all …]
|
| /illumos-gate/usr/src/cmd/ttymon/ |
| H A D | tmlog.c | 57 char logfile[MAXPATHLEN]; in openttymonlog() local 60 (void) snprintf(logfile, sizeof (logfile), "%s%s/%s", LOGDIR, Tag, in openttymonlog() 65 if ((fd = open(logfile, O_WRONLY | O_CREAT | O_APPEND, 0444)) != -1) in openttymonlog() 74 logfile, strerror(errno)); in openttymonlog()
|
| /illumos-gate/usr/src/test/zfs-tests/cmd/scripts/ |
| H A D | zfstest.ksh | 178 logfile=$OPTARG 179 [[ -f $logfile ]] || fail "Cannot read file: $logfile" 180 xargs+=" -l $logfile"
|
| /illumos-gate/usr/src/cmd/streams/log/ |
| H A D | strerr.c | 56 static FILE *logfile(FILE *log, struct log_ctl *lp); 73 logfile(FILE *log, struct log_ctl *lp) in logfile() function 149 log = logfile(log, lp); in main()
|
| /illumos-gate/usr/src/lib/libsip/common/ |
| H A D | sip_logging.c | 193 sip_enable_trans_logging(FILE *logfile, int flags) in sip_enable_trans_logging() argument 195 if (logfile == NULL || flags != SIP_DETAIL_LOGGING) in sip_enable_trans_logging() 200 trans_log.sip_logfile = logfile; in sip_enable_trans_logging() 213 sip_enable_dialog_logging(FILE *logfile, int flags) in sip_enable_dialog_logging() argument 215 if (logfile == NULL || flags != SIP_DETAIL_LOGGING) in sip_enable_dialog_logging() 220 dialog_log.sip_logfile = logfile; in sip_enable_dialog_logging()
|
| /illumos-gate/usr/src/test/smbsrv-tests/tests/smbtorture/ |
| H A D | runst-rpc.ksh | 57 logfile=$outdir/smbtor-rpc-${tstamp}.log 79 $runsmbtor $match -e $excl_file -o $logfile $timeout \
|
| H A D | runst-smb2.ksh | 57 logfile=$outdir/smbtor-smb2-${tstamp}.log 79 $runsmbtor $match -e $excl_file -o $logfile $timeout \
|
| /illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
| H A D | ocfile.c | 212 char logfile[PATH_MAX]; in ocfile() local 285 (void) snprintf(logfile, sizeof (logfile), "%s/" PKGLOG, pkgadm_dir); in ocfile() 287 if (stat64(logfile, &statl) == -1) in ocfile()
|
| /illumos-gate/usr/src/cmd/ypcmd/ |
| H A D | ypserv.c | 89 static char logfile[] = "/var/yp/ypserv.log"; variable 231 if (access(logfile, _IOWRT)) { in ypinit() 235 freopen(logfile, "a", stdout); in ypinit() 236 freopen(logfile, "a", stderr); in ypinit()
|
| /illumos-gate/usr/src/cmd/bhyve/common/ |
| H A D | gdb.c | 188 static FILE *logfile; in debug() local 191 if (logfile == NULL) { in debug() 192 logfile = fopen("/tmp/bhyve_gdb.log", "w"); in debug() 193 if (logfile == NULL) in debug() 196 if (caph_limit_stream(fileno(logfile), CAPH_WRITE) == -1) { in debug() 197 fclose(logfile); in debug() 198 logfile = NULL; in debug() 202 setlinebuf(logfile); in debug() 205 vfprintf(logfile, fmt, ap); in debug()
|