| /netbsd-src/external/gpl3/binutils/dist/zlib/examples/ |
| H A D | gzlog.c | 289 struct log { struct 348 local int log_lock(struct log *log) in log_lock() argument 353 strcpy(log->end, ".lock"); in log_lock() 354 while ((fd = open(log->path, O_CREAT | O_EXCL, 0644)) < 0) { in log_lock() 357 if (stat(log->path, &st) == 0 && time(NULL) - st.st_mtime > PATIENCE) { in log_lock() 358 unlink(log->path); in log_lock() 364 if (stat(log->path, &st) == 0) in log_lock() 365 log->lock = st.st_mtime; in log_lock() 372 local void log_touch(struct log *log) in log_touch() argument 376 strcpy(log->end, ".lock"); in log_touch() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/zlib/examples/ |
| H A D | gzlog.c | 289 struct log { struct 348 local int log_lock(struct log *log) in log_lock() argument 353 strcpy(log->end, ".lock"); in log_lock() 354 while ((fd = open(log->path, O_CREAT | O_EXCL, 0644)) < 0) { in log_lock() 357 if (stat(log->path, &st) == 0 && time(NULL) - st.st_mtime > PATIENCE) { in log_lock() 358 unlink(log->path); in log_lock() 364 if (stat(log->path, &st) == 0) in log_lock() 365 log->lock = st.st_mtime; in log_lock() 372 local void log_touch(struct log *log) in log_touch() argument 376 strcpy(log->end, ".lock"); in log_touch() [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/zlib/examples/ |
| H A D | gzlog.c | 289 struct log { struct 348 local int log_lock(struct log *log) in log_lock() argument 353 strcpy(log->end, ".lock"); in log_lock() 354 while ((fd = open(log->path, O_CREAT | O_EXCL, 0644)) < 0) { in log_lock() 357 if (stat(log->path, &st) == 0 && time(NULL) - st.st_mtime > PATIENCE) { in log_lock() 358 unlink(log->path); in log_lock() 364 if (stat(log->path, &st) == 0) in log_lock() 365 log->lock = st.st_mtime; in log_lock() 372 local void log_touch(struct log *log) in log_touch() argument 376 strcpy(log->end, ".lock"); in log_touch() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/gt/uc/ |
| H A D | intel_guc_log.c | 18 static void guc_log_capture_logs(struct intel_guc_log *log); 63 static inline struct intel_guc *log_to_guc(struct intel_guc_log *log) in log_to_guc() argument 65 return container_of(log, struct intel_guc, log); in log_to_guc() 68 static void guc_log_enable_flush_events(struct intel_guc_log *log) in guc_log_enable_flush_events() argument 70 intel_guc_enable_msg(log_to_guc(log), in guc_log_enable_flush_events() 75 static void guc_log_disable_flush_events(struct intel_guc_log *log) in guc_log_disable_flush_events() argument 77 intel_guc_disable_msg(log_to_guc(log), in guc_log_disable_flush_events() 153 static void guc_move_to_next_buf(struct intel_guc_log *log) in guc_move_to_next_buf() argument 162 relay_reserve(log->relay.channel, log->vma->obj->base.size); in guc_move_to_next_buf() 165 relay_flush(log->relay.channel); in guc_move_to_next_buf() [all …]
|
| /netbsd-src/usr.bin/newsyslog/ |
| H A D | newsyslog.c | 160 struct conf_entry log; in main() local 214 for (lineno = 0; !parse_cfgline(&log, fd, &lineno);) { in main() 221 if (strcmp(log.logfile, argv[i]) == 0) in main() 226 log_examine(&log, force); in main() 240 parse_cfgline(struct conf_entry *log, FILE *fd, size_t *_lineno) in parse_cfgline() argument 273 (void)memset(log, 0, sizeof(*log)); in parse_cfgline() 277 (void)strlcpy(log->logfile, *ap++, sizeof(log->logfile)); in parse_cfgline() 278 if (log->logfile[0] != '/') in parse_cfgline() 297 log->uid = (uid_t)-1; in parse_cfgline() 299 log->uid = pw->pw_uid; in parse_cfgline() [all …]
|
| /netbsd-src/external/gpl2/lvm2/dist/scripts/ |
| H A D | lvm_dump.sh | 90 log="$dir/lvmdump.log" 94 echo "$@" >> "$log" 97 log() { function 98 echo "$@" >> "$log" 119 log "\"$LVM\" vgscan -vvvv > \"$dir/vgscan\" 2>&1" 122 log "\"$LVM\" pvscan -v >> \"$dir/pvscan\" 2>> \"$log\"" 125 log "\"$LVM\" lvs -a -o +devices >> \"$dir/lvs\" 2>> \"$log\"" 128 log "\"$LVM\" pvs -a -v > \"$dir/pvs\" 2>> \"$log\"" 131 log "\"$LVM\" vgs -v > \"$dir/vgs\" 2>> \"$log\"" 141 log "cman_tool $i 2>> \"$log\"" [all …]
|
| /netbsd-src/share/examples/syslogd/ |
| H A D | all.newsyslog.conf | 7 /var/log/auth root:wheel 600 4 500 168 Z 8 /var/log/authpriv root:wheel 600 4 500 168 Z 9 /var/log/cron 600 4 100 168 Z 10 /var/log/daemon 600 9 600 168 Z 11 /var/log/ftp 600 9 1000 168 Z 12 /var/log/kern 600 9 100 168 Z 13 /var/log/lpr 600 4 100 168 Z 14 /var/log/mail 600 9 1000 168 Z 15 /var/log/news 600 4 100 168 Z 16 /var/log/syslog 600 9 100 168 Z [all …]
|
| H A D | all.debug | 8 # chmod go= /var/log/authpriv 10 auth.debug /var/log/auth 11 authpriv.debug /var/log/authpriv 12 cron.debug /var/log/cron 13 daemon.debug /var/log/daemon 14 ftp.debug /var/log/ftp 15 kern.debug /var/log/kern 16 lpr.debug /var/log/lpr 17 mail.debug /var/log/mail 18 news.debug /var/log/news [all …]
|
| /netbsd-src/external/bsd/elftosb/dist/sbtool/ |
| H A D | sbtool.cpp | 186 Log::log(Logger::ERROR, "error: unrecognized option\n\n"); in processOptions() 247 Log::log(Logger::ERROR, "error: %s\n", e.what()); in run() 252 Log::log(Logger::ERROR, "error: unexpected exception\n"); in run() 305 Log::log("---- Boot image header ----\n"); in readBootImage() 313 Log::log("Header digest is correct.\n"); in readBootImage() 317 …Log::log(Logger::WARNING, "warning: stored SHA-1 header digest does not match the actual header di… in readBootImage() 318 Log::log(Logger::WARNING, "\n---- Actual SHA-1 digest of image header ----\n"); in readBootImage() 326 Log::log("\n---- Section table ----\n"); in readBootImage() 331 Log::log("Section %d:\n", n); in readBootImage() 339 Log::log("\n---- Key dictionary ----\n"); in readBootImage() [all …]
|
| /netbsd-src/external/bsd/ntp/dist/scripts/update-leap/ |
| H A D | update-leap.sh | 286 log "info" "Checksum of $1 validated" 289 log "error" "Checksum of $1 is invalid:" 291 log "error" "EXPECTED: $FSHA" 292 log "error" "COMPUTED: $DSHA" 302 … log "notice" "File expired on `date -u -d \"Jan 1, 1970 00:00:00 +0000 + $EXPIRES seconds\"`" 311 log "critical" "Missing ntp configuration $NTPCONF" 319 log "error" "$NTPCONF does not specify a leapfile" 326 log "notice" "Requested install to $1, but $NTPCONF specifies $LEAPFILE" 341 log "info" "Attempting download from $LEAPSRC, try $TRY.." 343 if wget $PROTO $PREFER -o ${TMPFILE}.log $LEAPSRC -O $TMPFILE ; then [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/bounce/ |
| H A D | bounce_append_service.c | 71 VSTREAM *log; in bounce_append_service() local 81 log = mail_queue_open(service, queue_id, in bounce_append_service() 83 if (log == 0) in bounce_append_service() 90 if (deliver_flock(vstream_fileno(log), INTERNAL_LOCK, (VSTRING *) 0) < 0) in bounce_append_service() 110 if ((orig_length = vstream_fseek(log, 0L, SEEK_END)) < 0) in bounce_append_service() 116 vstream_fputs("\n", log); in bounce_append_service() 118 vstream_fprintf(log, "<%s>: %s\n", *rcpt->address == 0 ? "" : in bounce_append_service() 122 vstream_fprintf(log, "%s=%s\n", MAIL_ATTR_RECIP, *rcpt->address ? in bounce_append_service() 126 vstream_fprintf(log, "%s=%s\n", MAIL_ATTR_ORCPT, in bounce_append_service() 129 vstream_fprintf(log, "%s=%ld\n", MAIL_ATTR_OFFSET, rcpt->offset); in bounce_append_service() [all …]
|
| /netbsd-src/sys/external/isc/libsodium/dist/test/default/ |
| H A D | Makefile.in | 515 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* 622 tst=$$dir$$f; log='$@'; \ 648 TEST_SUITE_LOG = test-suite.log 662 am__test_logs1 = $(TESTS:=.log) 663 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) 664 TEST_LOGS = $(am__test_logs2:.test.log=.log) 1790 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create 1829 || { echo "$$errmsg $$i.log" >&2; st=1; }; \ 1914 log_list=`for i in $$bases; do echo $$i.log; done`; \ 1924 log_list=`for i in $$bases; do echo $$i.log; done`; \ [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-rc/ |
| H A D | ResourceScriptStmt.cpp | 26 raw_ostream &OptionalStmtList::log(raw_ostream &OS) const { in log() function in llvm::rc::OptionalStmtList 29 Stmt->log(OS); in log() 34 raw_ostream &LanguageResource::log(raw_ostream &OS) const { in log() function in llvm::rc::LanguageResource 46 raw_ostream &AcceleratorsResource::log(raw_ostream &OS) const { in log() function in llvm::rc::AcceleratorsResource 48 OptStatements->log(OS); in log() 59 raw_ostream &BitmapResource::log(raw_ostream &OS) const { in log() function in llvm::rc::BitmapResource 63 raw_ostream &CursorResource::log(raw_ostream &OS) const { in log() function in llvm::rc::CursorResource 67 raw_ostream &IconResource::log(raw_ostream &OS) const { in log() function in llvm::rc::IconResource 71 raw_ostream &HTMLResource::log(raw_ostream &OS) const { in log() function in llvm::rc::HTMLResource 88 raw_ostream &MenuDefinitionList::log(raw_ostream &OS) const { in log() function in llvm::rc::MenuDefinitionList [all …]
|
| /netbsd-src/games/sail/ |
| H A D | lo_main.c | 73 struct logs log; in lo_curses() local 100 while (fread(&log, sizeof log, 1, fp) == 1 && in lo_curses() 101 log.l_name[0] != '\0' && in lo_curses() 103 if (longfmt && (pass = getpwuid(log.l_uid)) != NULL) in lo_curses() 105 "%10.10s (%s)", log.l_name, pass->pw_name); in lo_curses() 108 "%20.20s", log.l_name); in lo_curses() 109 ship = &scene[log.l_gamenum].ship[log.l_shipnum]; in lo_curses() 112 title[n++], sbuf, ship->shipname, log.l_netpoints, in lo_curses() 113 (float) log.l_netpoints / ship->specs->pts); in lo_curses() 128 struct logs log; in lo_main() local [all …]
|
| /netbsd-src/external/bsd/unbound/dist/testdata/padding.tdir/ |
| H A D | padding.test | 19 cat tap.log 21 cat fwd.log 22 cat unbound2.log 23 cat unbound.log 28 echo "> wait for log to happen on timer" 30 echo "> check tap.log for dnstap info" 31 # see if it logged the information in tap.log 33 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 34 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 35 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi [all …]
|
| /netbsd-src/external/bsd/unbound/dist/testdata/ipset.tdir/ |
| H A D | ipset.test | 18 cat fwd.log 19 cat unbound.log 24 if grep "ipset: add 1.1.1.1 to atotallymadeupnamefor4 for www.example.net." unbound.log; then 28 cat fwd.log 29 cat unbound.log 41 cat fwd.log 42 cat unbound.log 47 if grep "ipset: add ::1 to atotallymadeupnamefor6 for www.example.net." unbound.log; then 51 cat fwd.log 52 cat unbound.log [all …]
|
| /netbsd-src/external/bsd/unbound/dist/testdata/dnstap_reconnect.tdir/ |
| H A D | dnstap_reconnect.test | 18 cat tap.log 20 cat fwd.log 21 cat unbound.log 26 echo "> check tap.log for dnstap info" 27 # see if it logged the information in tap.log 29 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 30 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 31 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 32 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 10; fi 33 if grep "www.example.com" tap.log; then echo "yes it is in tap.log"; [all …]
|
| /netbsd-src/external/bsd/unbound/dist/testdata/dnstap_tls.tdir/ |
| H A D | dnstap_tls.test | 18 cat tap.log 20 cat fwd.log 21 cat unbound.log 26 echo "> check tap.log for dnstap info" 27 # see if it logged the information in tap.log 29 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 30 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 31 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 32 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 33 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi [all …]
|
| /netbsd-src/external/bsd/unbound/dist/testdata/dnstap_tcp.tdir/ |
| H A D | dnstap_tcp.test | 18 cat tap.log 20 cat fwd.log 21 cat unbound.log 26 echo "> check tap.log for dnstap info" 27 # see if it logged the information in tap.log 29 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 30 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 31 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 32 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 33 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi [all …]
|
| /netbsd-src/external/bsd/unbound/dist/testdata/dnstap.tdir/ |
| H A D | dnstap.test | 18 cat tap.log 20 cat fwd.log 21 cat unbound.log 26 echo "> wait for log to happen on timer" 28 echo "> check tap.log for dnstap info" 29 # see if it logged the information in tap.log 31 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 32 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 33 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi 34 if grep "www.example.com" tap.log >/dev/null; then :; else sleep 1; fi [all …]
|
| /netbsd-src/tests/ipf/regress/ |
| H A D | i19 | 1 block in quick log level user.debug proto icmp all 2 block in quick log level mail.info proto icmp all 3 block in quick log level daemon.notice proto icmp all 4 block in quick log level auth.warn proto icmp all 5 block in quick log level syslog.err proto icmp all 6 block in quick log level lpr.crit proto icmp all 7 block in quick log level news.alert proto icmp all 8 block in quick log level uucp.emerg proto icmp all 9 block in quick log level cron.debug proto icmp all 10 block in quick log level ftp.info proto icmp all [all …]
|
| /netbsd-src/external/bsd/kyua-cli/dist/integration/ |
| H A D | global_test.sh | 73 atf_check -s exit:0 test ! -f test.log 74 atf_check -s exit:3 -o empty -e ignore kyua --logfile=test.log 77 atf_check -s exit:0 test -f test.log 79 grep ' E .* No command provided' test.log || atf_fail "Log file does" \ 86 atf_check -s exit:0 test ! -f test.log 87 atf_check -s exit:3 -o empty -e ignore kyua --logfile=test.log 90 atf_check -s exit:0 test -f test.log 92 grep ' E .* No command provided' test.log || atf_fail "Log file does" \ 94 if grep ' D ' test.log; then 102 atf_check -s exit:0 test ! -f test.log [all …]
|
| /netbsd-src/external/lgpl3/mpfr/dist/tests/ |
| H A D | Makefile.in | 1451 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* 1558 tst=$$dir$$f; log='$@'; \ 1585 TEST_SUITE_LOG = test-suite.log 1599 am__test_logs1 = $(TESTS:=.log) 1600 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) 1601 TEST_LOGS = $(am__test_logs2:.test.log=.log) 1769 $(GREP) -v '^\(PASS\|FAIL\) ' tversion.log 2> /dev/null || true; \ 1800 LOGS_NO_TVERSION = $(TESTS_NO_TVERSION:%=%.log) 1866 .SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs 3014 .log.trs: [all …]
|
| /netbsd-src/tests/ipf/expected/ |
| H A D | i19.dist | 1 block in log level user.debug quick proto icmp from any to any 2 block in log level mail.info quick proto icmp from any to any 3 block in log level daemon.notice quick proto icmp from any to any 4 block in log level auth.warn quick proto icmp from any to any 5 block in log level syslog.err quick proto icmp from any to any 6 block in log level lpr.crit quick proto icmp from any to any 7 block in log level news.alert quick proto icmp from any to any 8 block in log level uucp.emerg quick proto icmp from any to any 9 block in log level cron.debug quick proto icmp from any to any 10 block in log level ftp.info quick proto icmp from any to any [all …]
|
| /netbsd-src/external/lgpl3/gmp/dist/tests/mpz/ |
| H A D | Makefile.in | 595 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* 702 tst=$$dir$$f; log='$@'; \ 728 TEST_SUITE_LOG = test-suite.log 742 am__test_logs1 = $(TESTS:=.log) 743 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) 744 TEST_LOGS = $(am__test_logs2:.test.log=.log) 923 .SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs 1296 .log.trs: 1302 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) 1310 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ [all …]
|