| /mirbsd/src/usr.sbin/isdn/isdntrace/ |
| D | trace.c | 249 snprintf(BPfilename, sizeof(BPfilename), "%s", binfile); in main() 251 snprintf(BPfilename, sizeof(BPfilename), "%s%d", in main() 260 snprintf(buffer, sizeof(buffer), in main() 270 snprintf(buffer, sizeof(buffer), in main() 281 snprintf(BPfilename, sizeof(BPfilename), "%s", binfile); in main() 283 snprintf(BPfilename, sizeof(BPfilename), "%s%d", in main() 292 snprintf(buffer, sizeof(buffer), in main() 302 snprintf(buffer, sizeof(buffer), in main() 311 snprintf(devicename, sizeof(devicename), "%s%d", in main() 318 snprintf(buffer, sizeof(buffer), in main() [all …]
|
| /mirbsd/src/lib/libpcap/ |
| D | pcap-bpf.c | 55 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "BIOCGSTATS: %s", in pcap_stats() 113 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "read: %s", in pcap_read() 191 (void)snprintf(device, sizeof device, "/dev/bpf%d", n++); in bpf_open() 201 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s", in bpf_open() 223 snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s", in pcap_open_live() 236 snprintf(ebuf, PCAP_ERRBUF_SIZE, "BIOCVERSION: %s", in pcap_open_live() 242 snprintf(ebuf, PCAP_ERRBUF_SIZE, in pcap_open_live() 259 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s: %s", in pcap_open_live() 265 snprintf(ebuf, PCAP_ERRBUF_SIZE, "BIOCGDLT: %s", in pcap_open_live() 293 (void)snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s", in pcap_open_live() [all …]
|
| D | inet.c | 132 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, 172 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, "socket: %s", 182 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, "SIOCGIFCONF: %s", 215 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, 258 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, "socket: %s", in pcap_lookupnet() 270 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_lookupnet() 273 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_lookupnet() 283 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_lookupnet() 298 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_lookupnet()
|
| D | savefile.c | 114 snprintf(errbuf, PCAP_ERRBUF_SIZE, "%s: %s", fname, in pcap_open_offline() 147 snprintf(errbuf, PCAP_ERRBUF_SIZE, "fread: %s", in pcap_fopen_offline() 153 snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_fopen_offline() 161 snprintf(errbuf, PCAP_ERRBUF_SIZE, "archaic file format"); in pcap_fopen_offline() 256 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_next_packet() 268 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_next_packet() 274 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_next_packet() 292 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in sf_next_packet() 350 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Can't write to %s: %s", in pcap_setup_dump() 371 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "%s: %s", in pcap_dump_open()
|
| D | fad-getad.c | 132 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_or_find_if() 144 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_or_find_if() 156 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_or_find_if() 312 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_addr_to_iflist() 321 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_addr_to_iflist() 330 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_addr_to_iflist() 339 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_addr_to_iflist() 348 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in add_addr_to_iflist() 426 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_findalldevs()
|
| /mirbsd/src/usr.sbin/ppp/ppp/ |
| D | ip.c | 189 snprintf(protobuff, sizeof protobuff, "%d", cproto); in prototxt() 191 snprintf(protobuff, sizeof protobuff, "%s", pe->p_name); in prototxt() 312 snprintf(dbuff, sizeof dbuff, "sport = %d", sport); in FilterCheck() 321 snprintf(dbuff, sizeof dbuff, "sport = %d", sport); in FilterCheck() 351 snprintf(dbuff, sizeof dbuff, "sport = %d, dport = %d", in FilterCheck() 373 snprintf(dbuff, sizeof dbuff, in FilterCheck() 393 snprintf(dbuff + len, sizeof dbuff - len, in FilterCheck() 405 snprintf(dbuff, sizeof dbuff, ", src %s %d", in FilterCheck() 411 snprintf(dbuff + len, sizeof dbuff - len, in FilterCheck() 453 snprintf(dstip, sizeof dstip, "%s", ncpaddr_ntoa(&dstaddr)); in FilterCheck() [all …]
|
| /mirbsd/src/lib/libpthread/uthread/ |
| D | uthread_info_openbsd.c | 112 snprintf(location, sizeof location, "%s:%d", in _thread_dump_entry() 126 snprintf(s, sizeof(s), in _thread_dump_entry() 153 snprintf(s, sizeof(s), "%s sched wake ", info_lead); in _thread_dump_entry() 164 snprintf(s, sizeof s, "%lld.%09ld slice ", in _thread_dump_entry() 171 snprintf(s, sizeof s, "%ld.%06ld\n", in _thread_dump_entry() 185 snprintf(s, sizeof(s), "%s fd %d [%s:%d]\n", in _thread_dump_entry() 193 snprintf(s, sizeof(s), "%s owner %pr/%pw\n", in _thread_dump_entry() 198 snprintf(s, sizeof(s), "%s owner [unknown]\n", info_lead); in _thread_dump_entry() 202 snprintf(s, sizeof(s), "%s sigmask 0x%08lx\n", in _thread_dump_entry() 208 snprintf(s, sizeof(s), in _thread_dump_entry() [all …]
|
| /mirbsd/src/lib/libc/rpc/ |
| D | clnt_perror.c | 74 ret = snprintf(str, len, "%s: %s", s, clnt_sperrno(e.re_status)); in clnt_sperror() 102 snprintf(str, len, "; errno = %s\n", strerror(e.re_errno)); in clnt_sperror() 106 snprintf(str, len, "; low version = %u, high version = %u\n", in clnt_sperror() 111 ret = snprintf(str, len, "; why = "); in clnt_sperror() 122 snprintf(str, len, "%s\n", err); in clnt_sperror() 124 snprintf(str, len, in clnt_sperror() 131 snprintf(str, len, "; low version = %u, high version = %u\n", in clnt_sperror() 136 snprintf(str, len, "; s1 = %u, s2 = %u\n", in clnt_sperror() 145 snprintf(strstart + CLNT_PERROR_BUFLEN - 5, 5, "...\n"); in clnt_sperror() 208 (void) snprintf(str, CLNT_PERROR_BUFLEN, "%s: %s - %s\n", s, in clnt_spcreateerror() [all …]
|
| /mirbsd/src/sys/miscfs/procfs/ |
| D | procfs_status.c | 93 (void) snprintf(ps, sizeof(ps), " %d %d %d %d ", 98 snprintf(ps, sizeof(ps), "%d,%d ", 101 snprintf(ps, sizeof(ps), "%d,%d ", 107 snprintf(ps, sizeof(ps), "%sctty", sep); 113 snprintf(ps, sizeof(ps), "%ssldr", sep); 119 snprintf(ps, sizeof(ps), "noflags"); 124 snprintf(ps, sizeof(ps), " %lld,%ld", 128 snprintf(ps, sizeof(ps), " -1,-1"); 132 snprintf(ps, sizeof(ps), " %lld,%ld %lld,%ld", 137 snprintf(ps, sizeof(ps), " %s", [all …]
|
| /mirbsd/src/usr.bin/netstat/ |
| D | atalk.c | 93 (void) snprintf(mybuf, sizeof(mybuf), "%hu", in at_pr_net() 111 (void) snprintf(mybuf, sizeof(mybuf), "%d", in at_pr_host() 129 (void) snprintf(mybuf, sizeof(mybuf), "%d", in at_pr_port() 134 (void) snprintf(mybuf, sizeof(mybuf), "%d", in at_pr_port() 137 (void) snprintf(mybuf, sizeof(mybuf), "%s", in at_pr_port() 152 (void) snprintf(mybuf, sizeof(mybuf), "%d-%d", in at_pr_range() 156 (void) snprintf(mybuf, sizeof(mybuf), "%d", in at_pr_range() 182 (void) snprintf(mybuf, sizeof(mybuf), "%s", in atalk_print() 186 (void) snprintf(mybuf, sizeof(mybuf), "%s", in atalk_print() 190 (void) snprintf(mybuf, sizeof(mybuf), "%s.%s", in atalk_print() [all …]
|
| /mirbsd/src/usr.sbin/isdn/isdnd/ |
| D | rates.c | 111 snprintf(error, sizeof(error), "error open %s: %s", filename, sys_errlist[errno]); in readrates() 143 …snprintf(error, sizeof(error), "rates: invalid rate type %c%c%c in line %d", *bp, *(bp+1), *(bp+2)… in readrates() 148 snprintf(error, sizeof(error), "rates: invalid rate index %d in line %d", rateindx, line); in readrates() 162 snprintf(error, sizeof(error), "rates: invalid day digit %c in line %d", *bp, line); in readrates() 171 snprintf(error, sizeof(error), "rates: cannot malloc space for rate structure"); in readrates() 205 snprintf(error, sizeof(error), "rates: cannot malloc space2 for rate structure"); in readrates() 221 snprintf(error, sizeof(error), "rates: start_hr error in line %d", line); in readrates() 233 snprintf(error, sizeof(error), "rates: no '.' after start_hr in line %d", line); in readrates() 246 snprintf(error, sizeof(error), "rates: start_min error in line %d", line); in readrates() 260 snprintf(error, sizeof(error), "rates: no '-' after start_min in line %d", line); in readrates() [all …]
|
| /mirbsd/src/sys/arch/i386/i386/ |
| D | procfs_machdep.c | 79 l = snprintf(p, left, "%s ", i386_features[i]); in procfs_getcpuinfstr() 89 l = snprintf(p, left, in procfs_getcpuinfstr() 109 l = snprintf(p, left, "%d\n", cpu_id & 15); in procfs_getcpuinfstr() 111 l = snprintf(p, left, "unknown\n"); in procfs_getcpuinfstr() 120 l = snprintf(p, left, "cpu MHz\t\t: %d\n", in procfs_getcpuinfstr() 124 l = snprintf(p, left, "cpu MHz\t\t: unknown\n"); in procfs_getcpuinfstr() 131 l = snprintf(p, left, in procfs_getcpuinfstr()
|
| /mirbsd/src/libexec/identd/ |
| D | parse.c | 52 if ((n = snprintf(path, sizeof(path), "%s/.noident", homedir)) in check_noident() 75 if ((n = snprintf(path, sizeof path, "%s/.ident", homedir)) in getuserident() 206 if ((n = snprintf(buf, sizeof(buf), in parse() 233 if ((n = snprintf(buf, sizeof(buf), "%d , %d : ERROR : %s\r\n", in parse() 258 if ((n = snprintf(buf, sizeof(buf), in parse() 274 if ((n = snprintf(buf, sizeof(buf), "%d , %d : ERROR : %s\r\n", in parse() 293 if ((n = snprintf(buf, sizeof(buf), in parse() 314 if ((n = snprintf(buf, sizeof(buf), in parse() 328 if ((n = snprintf(buf, sizeof(buf), in parse() 344 if ((n = snprintf(buf, sizeof(buf), in parse() [all …]
|
| /mirbsd/src/usr.bin/less/ |
| D | charset.c | 345 snprintf(buf, sizeof(buf), "%c", c); 347 snprintf(buf, sizeof(buf), "ESC"); 350 snprintf(buf, sizeof(buf), "^%c", 362 snprintf(buf, sizeof(buf), "^%c", c ^ 0100); 365 snprintf(buf, sizeof(buf), binfmt, c); 411 snprintf(buf, sizeof(buf), "%c", c); 413 snprintf(buf, sizeof(buf), "ESC"); 415 snprintf(buf, sizeof(buf), "^%c", c ^ 0100); 417 snprintf(buf, sizeof(buf), "*s<%X>", c);
|
| /mirbsd/src/sys/dev/isa/ |
| D | it.c | 179 snprintf(sc->sensors[start + 0].desc, sizeof(sc->sensors[0].desc), in it_setup_volt() 182 snprintf(sc->sensors[start + 1].desc, sizeof(sc->sensors[1].desc), in it_setup_volt() 185 snprintf(sc->sensors[start + 2].desc, sizeof(sc->sensors[2].desc), in it_setup_volt() 188 snprintf(sc->sensors[start + 3].desc, sizeof(sc->sensors[3].desc), in it_setup_volt() 191 snprintf(sc->sensors[start + 4].desc, sizeof(sc->sensors[4].desc), in it_setup_volt() 194 snprintf(sc->sensors[start + 5].desc, sizeof(sc->sensors[5].desc), in it_setup_volt() 197 snprintf(sc->sensors[start + 6].desc, sizeof(sc->sensors[6].desc), in it_setup_volt() 200 snprintf(sc->sensors[start + 7].desc, sizeof(sc->sensors[7].desc), in it_setup_volt() 203 snprintf(sc->sensors[start + 8].desc, sizeof(sc->sensors[8].desc), in it_setup_volt() 217 snprintf(sc->sensors[start + i].desc, in it_setup_temp() [all …]
|
| /mirbsd/src/sys/dev/pci/ |
| D | pci_subr.c | 378 snprintf(cp, cp_max, "%svendor 0x%04x product 0x%04x", in pci_devinfo() 381 snprintf(cp, cp_max, "\"%s %s\"", vendor_namep, product_namep); in pci_devinfo() 383 snprintf(cp, cp_max, "vendor \"%s\", unknown product 0x%04x", in pci_devinfo() 389 snprintf(cp + cp_len, cp_max - cp_len, in pci_devinfo() 393 snprintf(cp + cp_len, cp_max - cp_len, in pci_devinfo() 397 snprintf(cp + cp_len, cp_max - cp_len, in pci_devinfo() 402 snprintf(cp + cp_len, cp_max - cp_len, in pci_devinfo() 406 snprintf(cp + cp_len, cp_max - cp_len, in pci_devinfo() 410 snprintf(cp + cp_len, cp_max - cp_len, " rev 0x%02x", in pci_devinfo()
|
| /mirbsd/src/sbin/ffsinfo/ |
| D | ffsinfo.c | 235 snprintf(special, len, "%sr%s", _PATH_DEV, device); in main() 237 snprintf(special, len, "%s%s", _PATH_DEV, device); in main() 239 snprintf(special, len, "%svinum/r%s", in main() 245 snprintf(special, len, "%svinum/%s", in main() 353 snprintf(dbg_line, sizeof(dbg_line), in main() 365 snprintf(dbg_line, sizeof(dbg_line), "cgr %d", cylno); in main() 459 snprintf(comment, sizeof(comment), "Inode 0x%08x", inode); in dump_whole_inode() 481 snprintf(comment, sizeof(comment), "Inode 0x%08x: indirect 0", in dump_whole_inode() 495 snprintf(comment, sizeof(comment), "Inode 0x%08x: indirect 1", in dump_whole_inode() 507 snprintf(comment, sizeof(comment), in dump_whole_inode() [all …]
|
| /mirbsd/src/usr.sbin/mrouted/ |
| D | inet.c | 112 snprintf(s, SNAMLEN, "%u.%u.%u.%u", a[0], a[1], a[2], a[3]); in inet_fmt() 128 snprintf(s, SNAMLEN, "default"); in inet_fmts() 136 snprintf(s, SNAMLEN, "%u.%u.%u.%u/%d", a[0], a[1], a[2], a[3], bits); in inet_fmts() 138 snprintf(s, SNAMLEN, "%u.%u.%u/%d", a[0], a[1], a[2], bits); in inet_fmts() 140 snprintf(s, SNAMLEN, "%u.%u/%d", a[0], a[1], bits); in inet_fmts() 142 snprintf(s, SNAMLEN, "%u/%d", a[0], bits); in inet_fmts()
|
| /mirbsd/src/usr.sbin/sensorsd/ |
| D | sensorsd.c | 258 r = snprintf(&buf[n], len - n, "%d", in report() 262 r = snprintf(&buf[n], len - n, "%s", in report() 267 r = snprintf(&buf[n], len - n, "%s", in report() 272 r = snprintf(&buf[n], len - n, "%s", in report() 277 r = snprintf(&buf[n], len - n, "%%%c", in report() 308 snprintf(fbuf, RFBUFSIZ, "%.2fC/%.2fF", in print_sensor() 313 snprintf(fbuf, RFBUFSIZ, "%lld RPM", value); in print_sensor() 316 snprintf(fbuf, RFBUFSIZ, "%.2fV", value / 1000.0 / 1000.0); in print_sensor() 319 snprintf(fbuf, RFBUFSIZ, "%lld ???", value); in print_sensor() 341 snprintf(node, sizeof(node), "hw.sensors.%d", p->num); in parse_config()
|
| /mirbsd/src/libexec/talkd/ |
| D | announce.c | 67 (void)snprintf(full_tty, sizeof(full_tty), "%s/%s", _PATH_DEV, in announce() 114 (void)snprintf(line_buf[i], N_CHARS, " "); in print_mesg() 118 (void)snprintf(line_buf[i], N_CHARS, in print_mesg() 125 (void)snprintf(line_buf[i], N_CHARS, in print_mesg() 131 (void)snprintf(line_buf[i], N_CHARS, "talk: respond with: talk %s@%s", in print_mesg() 136 (void)snprintf(line_buf[i], N_CHARS, " "); in print_mesg()
|
| /mirbsd/src/lib/libutil/ |
| D | uucplock.c | 73 (void)snprintf(lcktmpname, sizeof(lcktmpname), _PATH_UUCPLOCK LOCKTMP, in uu_lock() 75 (void)snprintf(lckname, sizeof(lckname), _PATH_UUCPLOCK LOCKFMT, in uu_lock() 131 snprintf(lckname, sizeof(lckname), _PATH_UUCPLOCK LOCKFMT, ttyname); in uu_lock_txfr() 151 (void)snprintf(tbuf, sizeof(tbuf), _PATH_UUCPLOCK LOCKFMT, ttyname); in uu_unlock() 192 (void)snprintf(errbuf, sizeof(errbuf), fmt, strerror(errno)); in uu_lockerr() 202 len = snprintf(buf, sizeof buf, "%10ld\n", (long)pid); in put_pid()
|
| D | opendisk.c | 60 snprintf(buf, buflen, "%s", path); in opendisk() 75 snprintf(buf, buflen, "%s%c", path, 'a' + rawpart); in opendisk() 83 snprintf(buf, buflen, "%s%s%s", _PATH_DEV, iscooked ? "" : "r", path); in opendisk() 88 snprintf(buf, buflen, "%s%s%s%c", _PATH_DEV, iscooked ? "" : "r", path, in opendisk()
|
| /mirbsd/src/sbin/isakmpd/ |
| D | policy.c | 97 len = snprintf(tmp, sizeof tmp, fmt, ((u_int8_t *)&src2)[0], in my_inet_ntop4() 116 len = snprintf(tmp, sizeof tmp, fmt, src[0], src[1], src[2], src[3], in my_inet_ntop6() 250 snprintf(phase1_group, sizeof phase1_group, "%u", in policy_callback() 401 snprintf(ah_life_seconds, sizeof ah_life_seconds, in policy_callback() 404 snprintf(ah_life_seconds, sizeof ah_life_seconds, in policy_callback() 408 snprintf(ah_life_kbytes, sizeof ah_life_kbytes, in policy_callback() 411 snprintf(ah_life_kbytes, sizeof ah_life_kbytes, in policy_callback() 420 snprintf(esp_life_seconds, in policy_callback() 424 snprintf(esp_life_seconds, in policy_callback() 429 snprintf(esp_life_kbytes, in policy_callback() [all …]
|
| /mirbsd/src/lib/libc/stdio/ |
| D | tempnam.c | 59 (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXXX", f, in tempnam() 67 (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXXX", f, in tempnam() 75 (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXXXXX", f, pfx); in tempnam() 80 (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXXXXX", f, pfx); in tempnam()
|
| /mirbsd/src/usr.bin/make/ |
| D | util.c | 52 snprintf(buf, sizeof buf, "Unknown error %d", e); 206 (void)snprintf(pathname, MAXPATHLEN, 217 (void)snprintf(pathname, MAXPATHLEN, 235 (void)snprintf(pathname, MAXPATHLEN, 241 (void)snprintf(pathname, MAXPATHLEN, 265 (void)snprintf(pathname, MAXPATHLEN, 278 (void)snprintf(pathname, MAXPATHLEN,
|