| /freebsd-14.2/lib/libc/stdlib/ |
| H A D | ptsname.c | 80 if (buflen <= sizeof(_PATH_DEV)) { in __ptsname_r() 89 memcpy(buffer, _PATH_DEV, sizeof(_PATH_DEV)); in __ptsname_r() 90 buffer += sizeof(_PATH_DEV) - 1; in __ptsname_r() 91 buflen -= sizeof(_PATH_DEV) - 1; in __ptsname_r() 111 static char pt_slave[sizeof(_PATH_DEV) + SPECNAMELEN]; in ptsname()
|
| /freebsd-14.2/usr.bin/write/ |
| H A D | write.c | 93 devfd = open(_PATH_DEV, O_RDONLY); in main() 157 if (!strncmp(mytty, _PATH_DEV, strlen(_PATH_DEV))) in main() 158 mytty += strlen(_PATH_DEV); in main() 171 if (!strncmp(argv[1], _PATH_DEV, strlen(_PATH_DEV))) in main() 172 argv[1] += strlen(_PATH_DEV); in main() 281 warn("%s%s", _PATH_DEV, tty); in term_chk() 303 err(1, "openat(%s%s)", _PATH_DEV, tty); in do_write() 307 err(1, "%s%s", _PATH_DEV, tty); in do_write()
|
| /freebsd-14.2/crypto/heimdal/appl/login/ |
| H A D | tty.c | 47 if (strncmp (res, _PATH_DEV, strlen(_PATH_DEV)) == 0) in clean_ttyname() 48 res += strlen(_PATH_DEV); in clean_ttyname()
|
| H A D | login_locl.h | 108 #ifndef _PATH_DEV 109 #define _PATH_DEV "/dev/" macro
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/zpool/os/freebsd/ |
| H A D | zpool_vdev_os.c | 92 if (strncmp(name, _PATH_DEV, sizeof (_PATH_DEV) - 1) != 0) in check_device() 93 snprintf(path, sizeof (path), "%s%s", _PATH_DEV, name); in check_device()
|
| /freebsd-14.2/sbin/mdconfig/ |
| H A D | mdconfig.c | 247 if (!strncmp(optarg, _PATH_DEV, sizeof(_PATH_DEV) - 1)) in main() 248 optarg += sizeof(_PATH_DEV) - 1; in main() 369 fd = open(_PATH_DEV MDCTL_NAME, O_RDWR, 0); in main() 371 err(1, "open(%s%s)", _PATH_DEV, MDCTL_NAME); in main() 376 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in main() 384 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in main() 390 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in main() 566 if (strncmp(u, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in md_find() 567 u += sizeof(_PATH_DEV) - 1; in md_find()
|
| /freebsd-14.2/lib/libc/gen/ |
| H A D | ttyname.c | 51 static char ttyname_buf[sizeof(_PATH_DEV) + MAXNAMLEN]; 72 if (len <= sizeof(_PATH_DEV)) in ttyname_r() 75 strcpy(buf, _PATH_DEV); in ttyname_r()
|
| H A D | ctermid.c | 38 #define LEN_PATH_DEV (sizeof(_PATH_DEV) - 1) 43 static char def[sizeof(_PATH_DEV) + SPECNAMELEN]; in ctermid()
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzutil/os/freebsd/ |
| H A D | zutil_device_path_os.c | 62 if (strncmp(path, _PATH_DEV, sizeof (_PATH_DEV) - 1) == 0) in zfs_strip_path() 63 return (path + sizeof (_PATH_DEV) - 1); in zfs_strip_path()
|
| /freebsd-14.2/lib/geom/virstor/ |
| H A D | geom_virstor.c | 323 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in virstor_label() 326 sprintf(param, "%s%s", _PATH_DEV, name); in virstor_label() 401 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) { in virstor_label() 402 strlcpy(md.provider, name + sizeof(_PATH_DEV) - 1, in virstor_label() 456 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in virstor_clear() 459 sprintf(param, "%s%s", _PATH_DEV, name); in virstor_clear()
|
| /freebsd-14.2/lib/libulog/ |
| H A D | ulog_login.c | 46 if (strncmp(line, _PATH_DEV, sizeof _PATH_DEV - 1) == 0) in ulog_fill() 47 line += sizeof _PATH_DEV - 1; in ulog_fill()
|
| /freebsd-14.2/lib/libefivar/ |
| H A D | efivar-dp-xlate.c | 487 if (*dev != '/' || strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) != 0) in find_geom_efi_on_root() 489 dev += sizeof(_PATH_DEV) -1; in find_geom_efi_on_root() 659 if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in dev_path_to_dp() 660 dev += sizeof(_PATH_DEV) -1; in dev_path_to_dp() 705 dev = rp + sizeof(_PATH_DEV) - 1; in path_to_dp() 708 if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in path_to_dp() 709 dev += sizeof(_PATH_DEV) - 1; in path_to_dp()
|
| /freebsd-14.2/usr.bin/who/ |
| H A D | who.c | 178 snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, ut->ut_line); in row() 219 (void)snprintf(ttybuf, sizeof(ttybuf), "%s%s", _PATH_DEV, line); in ttystat() 275 else if (strncmp(tty, _PATH_DEV, sizeof _PATH_DEV - 1) == 0) in whoami() 276 tty += sizeof _PATH_DEV - 1; in whoami()
|
| /freebsd-14.2/sbin/ccdconfig/ |
| H A D | ccdconfig.c | 260 if (!strncmp(cp, _PATH_DEV, strlen(_PATH_DEV))) in do_single() 261 cp += strlen(_PATH_DEV); in do_single() 352 if (!strncmp(name, _PATH_DEV, strlen(_PATH_DEV))) in resolve_ccdname() 353 name += strlen(_PATH_DEV); in resolve_ccdname()
|
| /freebsd-14.2/usr.sbin/mfiutil/ |
| H A D | mfiutil.c | 161 if (asprintf(&mfi_device, "%s%s%d", _PATH_DEV, mfi_type, in main() 165 if (strncmp(mfi_device, _PATH_DEV, strlen(_PATH_DEV)) != 0) { in main() 166 if (asprintf(&temp, "%s%s%d", _PATH_DEV, mfi_type, in main()
|
| /freebsd-14.2/lib/libpam/modules/pam_lastlog/ |
| H A D | pam_lastlog.c | 100 if (strncmp(tty, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in pam_sm_open_session() 101 tty = (const char *)tty + sizeof(_PATH_DEV) - 1; in pam_sm_open_session()
|
| /freebsd-14.2/crypto/heimdal/appl/telnet/telnetd/ |
| H A D | telnetd.h | 219 #ifndef _PATH_DEV 220 #define _PATH_DEV "/dev/" macro
|
| /freebsd-14.2/libexec/talkd/ |
| H A D | talkd.c | 99 if (chdir(_PATH_DEV) < 0) { in main() 100 syslog(LOG_ERR, "chdir: %s: %m", _PATH_DEV); in main()
|
| H A D | process.c | 189 char ftty[sizeof(_PATH_DEV) - 1 + sizeof(ut->ut_line)]; in find_user() 193 (void) strcpy(ftty, _PATH_DEV); in find_user() 201 (void) strcpy(ftty + sizeof(_PATH_DEV) - 1, in find_user()
|
| /freebsd-14.2/usr.sbin/mpsutil/ |
| H A D | mpsutil.c | 103 if (strncmp(optarg, _PATH_DEV, strlen(_PATH_DEV)) == 0) { in main() 104 optarg += strlen(_PATH_DEV); in main()
|
| /freebsd-14.2/usr.sbin/watch/ |
| H A D | watch.c | 160 f = open(_PATH_DEV "snp", mode); in open_snp() 233 if (strlen(name) > 5 && !strncmp(name, _PATH_DEV, sizeof _PATH_DEV - 1)) { in set_dev() 239 sprintf(buf, "%s%s", _PATH_DEV, name); in set_dev()
|
| /freebsd-14.2/usr.sbin/mlxcontrol/ |
| H A D | util.c | 49 sprintf(buf, "%s%s", _PATH_DEV, ctrlrname(unit)); in ctrlrpath() 69 sprintf(buf, "%s%s", _PATH_DEV, drivename(unit)); in drivepath()
|
| /freebsd-14.2/usr.bin/lock/ |
| H A D | lock.c | 149 if (strncmp(ttynam, _PATH_DEV, strlen(_PATH_DEV)) == 0) in main() 150 ttynam += strlen(_PATH_DEV); in main()
|
| /freebsd-14.2/lib/geom/concat/ |
| H A D | geom_concat.c | 164 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in concat_label() 165 name += sizeof(_PATH_DEV) - 1; in concat_label()
|
| /freebsd-14.2/usr.bin/login/ |
| H A D | login_fbtab.c | 99 if (strncmp(devname, _PATH_DEV, sizeof _PATH_DEV - 1) != 0 in login_fbtab()
|