/illumos-gate/usr/src/test/test-runner/stf/contrib/include/ |
H A D | logapi.shlib | 100 logfile="$logfile.$$" 104 "$@" 2>$logfile 106 out="cat $logfile" 186 logfile="$logfile.$$" 189 "$@" 2>$logfile 250 logfile="$logfile.$$" 253 "$@" 2>$logfile 470 typeset logfile=$1 474 /usr/bin/cat $logfile 476 /usr/bin/rm -f $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 | 126 static FILE *logfile = NULL; variable 203 (void) fputs(buf, logfile); in vlog_prefix() 204 (void) fflush(logfile); in vlog_prefix() 278 char logfile[PATH_MAX]; in setlog() local 287 fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, in setlog() 326 char logfile[PATH_MAX]; in vlog_instance() local 650 if (logfile) { in log_init() 651 (void) fclose(logfile); in log_init() 652 logfile = NULL; in log_init() 684 if ((logfile = fdopen(logfd, "a")) == NULL) in log_init() [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db.cc | 81 logfile = NULL; in db() 100 delete logfile; in ~db() 437 if (logfile != NULL) { in reset_log() 445 delete logfile; in reset_log() 446 logfile = NULL; in reset_log() 459 logfile->sync_log(); in close_log() 460 logfile->close(); in close_log() 474 if (logfile == NULL) { in open_log() 490 delete logfile; in open_log() 491 logfile = NULL; in open_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() 1379 logfile->close(); in close_log() 1391 if (logfile == NULL) { in open_log() 1406 if ((logfile->open()) == FALSE) { in open_log() 1408 delete logfile; in open_log() 1409 logfile = NULL; in open_log() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | perfstat.c | 622 int * logfile; 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; 996 openLog (logfile,logname) in openLog() argument 997 int *logfile; in openLog() 1007 if (*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/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/ldapcachemgr/ |
H A D | cachemgr.c | 389 (void) strlcpy(current_admin.logfile, 448 if (strlen(current_admin.logfile) == 0) 471 if (strlen(current_admin.logfile) == 0) 976 cachemgr_set_lf(admin_t *ptr, char *logfile) argument 985 if (logfile == NULL || *logfile == 0) { 1003 if (lstat(logfile, &before) < 0) { 1005 logfile, strerror(errno)); 1012 open(logfile, 1016 logfile, strerror(errno)); 1022 "owned by root\n", logfile); [all …]
|
H A D | cachemgr_door.h | 45 char logfile[MAXPATHLEN]; member
|
/illumos-gate/usr/src/cmd/latencytop/common/ |
H A D | latencytop.c | 221 char logfile[PATH_MAX] = ""; in main() local 280 } else if (strlen(optarg) >= sizeof (logfile)) { in main() 286 (void) strncpy(logfile, optarg, in main() 287 sizeof (logfile)); in main() 415 if (!unknown_option && strlen(logfile) > 0) { in main() 416 err = lt_klog_set_log_file(logfile); in main() 420 logfile); in main() 424 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 316 buffer->lb_logfile = logfile; in log_buffer_create() 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() 504 *lfpp = logfile; in log_file_create() 525 if (logfile != NULL) { in log_file_create() 527 kmem_free(logfile, sizeof (*logfile)); in log_file_create() 912 struct log_file *logfile; in nfslog_logbuffer_rename() local [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 | 152 logfile=$OPTARG 153 [[ -f $logfile ]] || fail "Cannot read file: $logfile" 154 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/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/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/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/ |
H A D | gdb.c | 203 static FILE *logfile; in debug() local 206 if (logfile == NULL) { in debug() 207 logfile = fopen("/tmp/bhyve_gdb.log", "w"); in debug() 208 if (logfile == NULL) in debug() 211 if (caph_limit_stream(fileno(logfile), CAPH_WRITE) == -1) { in debug() 212 fclose(logfile); in debug() 213 logfile = NULL; in debug() 217 setlinebuf(logfile); in debug() 220 vfprintf(logfile, fmt, ap); in debug()
|