| /netbsd-src/usr.bin/write/ |
| H A D | term_chk.c | 70 i = snprintf(path, sizeof path, _PATH_DEV "%s", tty); in term_chk() 128 if (strncmp(mytty, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in check_sender() 129 mytty += sizeof(_PATH_DEV) - 1; in check_sender() 131 err(1, "%s%s", _PATH_DEV, mytty); in check_sender()
|
| H A D | write.c | 96 if (!strncmp(argv[2], _PATH_DEV, strlen(_PATH_DEV))) in main() 97 argv[2] += strlen(_PATH_DEV); in main() 105 err(1, "%s%s", _PATH_DEV, argv[2]); in main()
|
| /netbsd-src/usr.sbin/irdaattach/ |
| H A D | irdaattach.c | 105 if (strncmp(_PATH_DEV, dev, sizeof(_PATH_DEV) - 1)) { in main() 107 "%s%s", _PATH_DEV, dev); in main() 128 printf("%sirframe%d\n", _PATH_DEV, frdev); in main()
|
| /netbsd-src/lib/libc/gen/ |
| H A D | ttyname.c | 83 if (strlcpy(buf, _PATH_DEV, len) >= len) in __weak_alias() 85 buf += strlen(_PATH_DEV); in __weak_alias() 86 len -= strlen(_PATH_DEV); in __weak_alias()
|
| H A D | devname.c | 98 rv = snprintf(path, len, "%s%d", &_PATH_DEV_PTS[sizeof(_PATH_DEV) - 1], in devname_ptslookup() 110 static const char path_dev[] = _PATH_DEV; in devname_fts()
|
| /netbsd-src/sbin/slattach/ |
| H A D | slattach.c | 122 if (strncmp(_PATH_DEV, dev, sizeof(_PATH_DEV) - 1)) { in main() 124 "%s%s", _PATH_DEV, dev); in main()
|
| /netbsd-src/libexec/talkd/ |
| H A D | process.c | 188 char ftty[sizeof(_PATH_DEV) + sizeof(ep->line)]; in find_user() 195 (void) strlcpy(ftty, _PATH_DEV, sizeof(ftty)); in find_user() 205 (void)strlcpy(ftty + sizeof(_PATH_DEV) - 1, ep->line, in find_user() 206 sizeof(ftty) - sizeof(_PATH_DEV) + 1); in find_user()
|
| H A D | talkd.c | 112 if (chdir(_PATH_DEV) < 0) { in main() 113 syslog(LOG_ERR, "chdir: %s: %m", _PATH_DEV); in main()
|
| /netbsd-src/lib/libpam/modules/pam_lastlog/ |
| H A D | pam_lastlog.c | 164 if (strncmp(tty, _PATH_DEV, strlen(_PATH_DEV)) == 0) in pam_sm_open_session() 165 tty = tty + strlen(_PATH_DEV); in pam_sm_open_session() 220 if (strncmp(tty, _PATH_DEV, strlen(_PATH_DEV)) == 0) in pam_sm_close_session() 221 tty = tty + strlen(_PATH_DEV); in pam_sm_close_session()
|
| /netbsd-src/tools/gpt/ |
| H A D | opendisk.h | 3 #ifndef _PATH_DEV 4 #define _PATH_DEV "/dev/" macro
|
| /netbsd-src/usr.sbin/i2cscan/ |
| H A D | i2cscan.c | 191 if (strncmp(_PATH_DEV, dev, sizeof(_PATH_DEV) - 1)) { in main() 192 (void)snprintf(devn, sizeof(devn), "%s%s", _PATH_DEV, dev); in main()
|
| /netbsd-src/usr.bin/last/ |
| H A D | last.c | 347 if (!strncmp(arg, _PATH_DEV, sizeof(_PATH_DEV) - 1)) in ttyconv() 348 return (&arg[sizeof(_PATH_DEV) - 1]); in ttyconv()
|
| /netbsd-src/libexec/rpc.rusersd/ |
| H A D | rusers_proc.c | 67 #ifndef _PATH_DEV 68 #define _PATH_DEV "/dev" macro 161 snprintf(dev_name, sizeof dev_name, "%s/%s", _PATH_DEV, tty); in getidle()
|
| /netbsd-src/external/bsd/tmux/usr.bin/tmux/ |
| H A D | utempter.c | 130 ttyp = tty + sizeof(_PATH_DEV) - 1; in utmp_create() 155 ttyp = tty + sizeof(_PATH_DEV) - 1; in utmp_destroy()
|
| /netbsd-src/sbin/newfs_ext2fs/ |
| H A D | newfs_ext2fs.c | 268 len = sizeof(_PATH_DEV) - 1; in main() 270 if (strncmp(_PATH_DEV, s1, len) == 0) in main() 275 if (strncmp(_PATH_DEV, s2, len) == 0) { in main()
|
| /netbsd-src/usr.sbin/gpioctl/ |
| H A D | gpioctl.c | 116 if (strncmp(_PATH_DEV, dev, sizeof(_PATH_DEV) - 1)) { in main() 117 (void)snprintf(devn, sizeof(devn), "%s%s", _PATH_DEV, dev); in main()
|
| /netbsd-src/sbin/badsect/ |
| H A D | badsect.c | 104 size_t dl = sizeof(_PATH_DEV); in main() 117 (void)strlcpy(name, _PATH_DEV, sizeof(name)); in main()
|
| /netbsd-src/external/cddl/osnet/dist/cmd/zpool/ |
| H A D | zpool_vdev.c | 366 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) != 0) in check_device() 367 snprintf(path, sizeof(path), "%s%s", _PATH_DEV, name); in check_device() 469 if (strncmp(arg, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in make_leaf_vdev() 472 snprintf(path, sizeof (path), "%s%s", _PATH_DEV, arg); in make_leaf_vdev()
|
| /netbsd-src/sys/arch/atari/stand/ahdilabel/ |
| H A D | openraw.c | 54 snprintf (buf, MAXPATHLEN, "%sr%s%c", _PATH_DEV, name, RAW_PART + 'a'); in openraw()
|
| /netbsd-src/libexec/comsat/ |
| H A D | comsat.c | 226 char tty[sizeof(_PATH_DEV) + sizeof(ep->line) + 1]; in notify() 237 (void)snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, ep->line); in notify()
|
| /netbsd-src/lib/libtelnet/ |
| H A D | sra.c | 462 if (strncmp(ttyn, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in rootterm() 463 ttyn += sizeof(_PATH_DEV) - 1; in rootterm()
|
| /netbsd-src/sys/arch/atari/stand/installboot/ |
| H A D | installboot.c | 143 size_t dnlen = sizeof(_PATH_DEV) + strlen(argv[0]) + 8; in main() 146 snprintf(dn, dnlen, "%sr%s%c", _PATH_DEV, argv[0], in main() 150 snprintf(dn, dnlen, "%sr%s", _PATH_DEV, argv[0]); in main()
|
| /netbsd-src/include/ |
| H A D | paths.h | 109 #define _PATH_DEV "/dev/" macro
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| H A D | roken-common.h | 137 #ifndef _PATH_DEV 138 #define _PATH_DEV "/dev/" macro
|
| /netbsd-src/sbin/nvmectl/ |
| H A D | devlist.c | 96 warnx("could not open "_PATH_DEV"%s\n", name); in devlist()
|