/titanic_41/usr/src/test/test-runner/stf/contrib/include/ |
H A D | logapi.shlib | 105 typeset logfile="/tmp/log.$$" 110 while [[ -e $logfile ]]; do 111 logfile="$logfile.$$" 114 "$@" 2>$logfile 116 out="/usr/bin/cat $logfile" 159 _recursive_output $logfile "false" 172 typeset logfile="/tmp/log.$$" 174 while [[ -e $logfile ]]; do 175 logfile="$logfile.$$" 178 "$@" 2>$logfile [all …]
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/util/ |
H A D | log.c | 28 static char logfile[PATH_MAX] = variable 39 char *logfile; member 51 strcpy(logfile, logf); in ldaplogconfig() 84 if ((returnCtx->logfile = strdup(name)) == NULL) { in sundsloginit() 88 openlog(returnCtx->logfile, OPENLOG_OPTIONS, facility); in sundsloginit() 130 if ((logsize > 0) && (stat(logfile, &statbuf) == 0 && in ldaplog() 133 (void) sprintf(newlog1, "%s.%d", logfile, i-1); in ldaplog() 134 (void) sprintf(newlog2, "%s.%d", logfile, i); in ldaplog() 141 (void) rename(logfile, newlog1); in ldaplog() 147 logfd = fopen(logfile, "aF"); in ldaplog()
|
/titanic_41/usr/src/cmd/fs.d/cachefs/cachefslog/ |
H A D | cachefslog.c | 57 char *logfile; in main() local 115 if ((logfile = stats_log_kernel_getname(fs)) == NULL) { in main() 120 if ((logfile[0] == '\0') && (hflag) && (! vflag)) { in main() 121 log_show(argv[optind], logfile); in main() 155 if ((logfile = stats_log_kernel_getname(fs)) == NULL) { in main() 161 log_show(argv[optind], logfile); in main() 202 log_show((char *)(uintptr_t)k->ks_mountpoint, logfile); in main() 220 log_show(char *mount, char *logfile) in log_show() argument 222 if (logfile[0] == '\0') in log_show() 223 logfile = gettext("not logged"); in log_show() [all …]
|
/titanic_41/usr/src/cmd/svc/startd/ |
H A D | log.c | 126 static FILE *logfile = NULL; variable 202 if (st->st_log_flags & STARTD_LOG_FILE && logfile) { in vlog_prefix() 203 (void) fputs(buf, logfile); in vlog_prefix() 204 (void) fflush(logfile); in vlog_prefix() 278 char logfile[PATH_MAX]; in setlog() local 284 (void) snprintf(logfile, PATH_MAX, "%s/%s", st->st_log_prefix, logstem); in setlog() 287 fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, in setlog() 326 char logfile[PATH_MAX]; in vlog_instance() local 334 (void) snprintf(logfile, PATH_MAX, "%s/%s", st->st_log_prefix, in vlog_instance() 338 fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND, in vlog_instance() [all …]
|
/titanic_41/usr/src/lib/libnisdb/ |
H A D | db.cc | 83 logfile = NULL; in db() 102 delete logfile; in ~db() 351 if (logfile->append(&le) < 0) { in log_action() 368 if (logfile->sync_log() < 0) { in log_action() 439 if (logfile != NULL) { in reset_log() 441 logfile->sync_log(); in reset_log() 442 if (logfile->close() < 0) { in reset_log() 447 delete logfile; in reset_log() 448 logfile = NULL; in reset_log() 460 if (logfile != NULL && logfile_opened == TRUE) { in close_log() [all …]
|
H A D | db_c.x | 55 db_log *logfile; member 70 % db_log *logfile;
|
H A D | db_dictionary.cc | 618 logfile = NULL; in db_dictionary() 1357 if (logfile != NULL) { in reset_log() 1359 if (logfile->close() < 0) { in reset_log() 1364 delete logfile; in reset_log() 1365 logfile = NULL; in reset_log() 1377 if (logfile != NULL && logfile_opened == TRUE) { in close_log() 1378 logfile->close(); in close_log() 1390 if (logfile == NULL) { in open_log() 1391 if ((logfile = new db_dictlog(logfilename, PICKLE_APPEND)) == in open_log() 1405 if ((logfile->open()) == NULL) { in open_log() [all …]
|
/titanic_41/usr/src/cmd/bnu/ |
H A D | perfstat.c | 621 writeLog (string, logfile, logname, collecting) in writeLog() argument 624 int * logfile; 634 if (openLog(logfile,logname) != SUCCESS){ 641 rv = write(*logfile, string, (unsigned) length); 650 closeLog(logfile); 668 closeLog (logfile) in closeLog() argument 669 int *logfile; in closeLog() 672 if (*logfile != CLOSED) 674 (void) close(*logfile); 675 *logfile = CLOSED; [all …]
|
H A D | logent.c | 51 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);
|
/titanic_41/usr/src/cmd/nscd/ |
H A D | server.c | 69 static char logfile[128] = { 0 }; variable 239 logfile, sizeof (logfile)); in main() 303 (void) strlcpy(logfile, optarg, sizeof (logfile)); in main() 403 if (*logfile == '\0') { in main() 406 (void) strcpy(logfile, "stderr"); in main() 408 (void) strcpy(logfile, "/dev/null"); in main() 410 (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 | 46 char logfile[NSCD_LOGFILE_LEN]; member 64 char logfile[NSCD_LOGFILE_LEN]; member
|
H A D | nscd_log.c | 351 if (logcfg->logfile != NULL) in _nscd_cfg_log_verify() 352 return (_nscd_set_lf(logcfg->logfile)); in _nscd_cfg_log_verify() 381 off = offsetof(nscd_cfg_global_log_t, logfile); in _nscd_cfg_log_verify()
|
/titanic_41/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr.c | 69 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); [all …]
|
H A D | cachemgr_door.h | 47 char logfile[MAXPATHLEN]; member
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/ttymon/ |
H A D | tmlog.c | 64 char logfile[MAXPATHLEN]; in openttymonlog() local 68 (void) snprintf(logfile, sizeof (logfile), "%s%s/%s", LOGDIR, Tag, in openttymonlog() 73 if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND,0444)) != -1) in openttymonlog() 82 logfile, strerror(errno)); in openttymonlog()
|
/titanic_41/usr/src/uts/common/fs/nfs/ |
H A D | nfs_log.c | 301 struct log_file *logfile; in log_buffer_create() local 305 if (log_file_create(name, &logfile)) in log_buffer_create() 313 buffer->lb_logfile = logfile; in log_buffer_create() 430 struct log_file *logfile = NULL; in log_file_create() local 450 logfile = (struct log_file *)kmem_zalloc(sizeof (*logfile), KM_SLEEP); in log_file_create() 451 logfile->lf_path = name; in log_file_create() 456 logfile->lf_vp = vp; in log_file_create() 457 logfile->lf_refcnt = 1; in log_file_create() 458 mutex_init(&logfile->lf_lock, NULL, MUTEX_DEFAULT, NULL); in log_file_create() 487 mutex_enter(&logfile->lf_lock); in log_file_create() [all …]
|
/titanic_41/usr/src/cmd/streams/log/ |
H A D | strerr.c | 58 static FILE *logfile(FILE *log, struct log_ctl *lp); 75 logfile(FILE *log, struct log_ctl *lp) in logfile() function 151 log = logfile(log, lp); in main()
|
/titanic_41/usr/src/lib/libsip/common/ |
H A D | sip_logging.c | 195 sip_enable_trans_logging(FILE *logfile, int flags) in sip_enable_trans_logging() argument 197 if (logfile == NULL || flags != SIP_DETAIL_LOGGING) in sip_enable_trans_logging() 202 trans_log.sip_logfile = logfile; in sip_enable_trans_logging() 215 sip_enable_dialog_logging(FILE *logfile, int flags) in sip_enable_dialog_logging() argument 217 if (logfile == NULL || flags != SIP_DETAIL_LOGGING) in sip_enable_dialog_logging() 222 dialog_log.sip_logfile = logfile; in sip_enable_dialog_logging()
|
/titanic_41/usr/src/cmd/svr4pkg/libinst/ |
H A D | ocfile.c | 208 char logfile[PATH_MAX]; in ocfile() local 282 (void) snprintf(logfile, sizeof (logfile), "%s/" PKGLOG, pkgadm_dir); in ocfile() 284 if (stat64(logfile, &statl) == -1) in ocfile()
|
/titanic_41/usr/src/cmd/ypcmd/ |
H A D | ypserv.c | 90 static char logfile[] = "/var/yp/ypserv.log"; variable 232 if (access(logfile, _IOWRT)) { in ypinit() 236 freopen(logfile, "a", stdout); in ypinit() 237 freopen(logfile, "a", stderr); in ypinit()
|
/titanic_41/usr/src/lib/libdladm/common/ |
H A D | usage.c | 1040 char *logfile, char *resource, char *stime, char *etime, void *arg) in dladm_walk_usage_res() argument 1058 net_table = parse_logfile(logfile, logtype, &status); in dladm_walk_usage_res() 1186 char *logfile, char *stime, char *etime, void *arg) in dladm_walk_usage_time() argument 1202 net_table = parse_logfile(logfile, logtype, &status); in dladm_walk_usage_time() 1313 char *logfile, void *arg) in dladm_usage_summary() argument 1324 net_table = parse_logfile(logfile, logtype, &status); in dladm_usage_summary() 1365 char *logfile, char *resource, void *arg) in dladm_usage_dates() argument 1378 net_table = parse_logfile(logfile, logtype, &status); in dladm_usage_dates()
|
/titanic_41/usr/src/cmd/lp/model/netpr/ |
H A D | Makefile | 31 PURIFYOPTS = -logfile=/tmp/errs.%p
|
/titanic_41/usr/src/cmd/zoneadmd/ |
H A D | zoneadmd.h | 74 FILE *logfile; /* file to log to */ member
|