| /freebsd-13.1/lib/libc/stdlib/ |
| H A D | ptsname.c | 82 if (buflen <= sizeof(_PATH_DEV)) { in __ptsname_r() 91 memcpy(buffer, _PATH_DEV, sizeof(_PATH_DEV)); in __ptsname_r() 92 buffer += sizeof(_PATH_DEV) - 1; in __ptsname_r() 93 buflen -= sizeof(_PATH_DEV) - 1; in __ptsname_r() 113 static char pt_slave[sizeof(_PATH_DEV) + SPECNAMELEN]; in ptsname()
|
| /freebsd-13.1/usr.bin/write/ |
| H A D | write.c | 95 devfd = open(_PATH_DEV, O_RDONLY); in main() 159 if (!strncmp(mytty, _PATH_DEV, strlen(_PATH_DEV))) in main() 160 mytty += strlen(_PATH_DEV); in main() 173 if (!strncmp(argv[1], _PATH_DEV, strlen(_PATH_DEV))) in main() 174 argv[1] += strlen(_PATH_DEV); in main() 283 warn("%s%s", _PATH_DEV, tty); in term_chk() 305 err(1, "openat(%s%s)", _PATH_DEV, tty); in do_write() 309 err(1, "%s%s", _PATH_DEV, tty); in do_write()
|
| /freebsd-13.1/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-13.1/sys/contrib/openzfs/cmd/zpool/os/freebsd/ |
| H A D | zpool_vdev_os.c | 91 if (strncmp(name, _PATH_DEV, sizeof (_PATH_DEV) - 1) != 0) in check_device() 92 snprintf(path, sizeof (path), "%s%s", _PATH_DEV, name); in check_device()
|
| /freebsd-13.1/sbin/mdconfig/ |
| H A D | mdconfig.c | 244 if (!strncmp(optarg, _PATH_DEV, sizeof(_PATH_DEV) - 1)) in main() 245 optarg += sizeof(_PATH_DEV) - 1; in main() 366 fd = open(_PATH_DEV MDCTL_NAME, O_RDWR, 0); in main() 368 err(1, "open(%s%s)", _PATH_DEV, MDCTL_NAME); in main() 373 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in main() 381 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in main() 387 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in main() 563 if (strncmp(u, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in md_find() 564 u += sizeof(_PATH_DEV) - 1; in md_find()
|
| /freebsd-13.1/lib/libc/gen/ |
| H A D | ttyname.c | 53 static char ttyname_buf[sizeof(_PATH_DEV) + MAXNAMLEN]; 74 if (len <= sizeof(_PATH_DEV)) in ttyname_r() 77 strcpy(buf, _PATH_DEV); in ttyname_r()
|
| H A D | ctermid.c | 41 #define LEN_PATH_DEV (sizeof(_PATH_DEV) - 1) 46 static char def[sizeof(_PATH_DEV) + SPECNAMELEN]; in ctermid()
|
| /freebsd-13.1/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-13.1/lib/geom/virstor/ |
| H A D | geom_virstor.c | 325 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in virstor_label() 328 sprintf(param, "%s%s", _PATH_DEV, name); in virstor_label() 403 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) { in virstor_label() 404 strlcpy(md.provider, name + sizeof(_PATH_DEV) - 1, in virstor_label() 459 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in virstor_clear() 462 sprintf(param, "%s%s", _PATH_DEV, name); in virstor_clear()
|
| /freebsd-13.1/lib/libulog/ |
| H A D | ulog_login.c | 48 if (strncmp(line, _PATH_DEV, sizeof _PATH_DEV - 1) == 0) in ulog_fill() 49 line += sizeof _PATH_DEV - 1; in ulog_fill()
|
| /freebsd-13.1/usr.bin/who/ |
| H A D | who.c | 180 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() 274 else if (strncmp(tty, _PATH_DEV, sizeof _PATH_DEV - 1) == 0) in whoami() 275 tty += sizeof _PATH_DEV - 1; in whoami()
|
| /freebsd-13.1/lib/libefivar/ |
| H A D | efivar-dp-xlate.c | 459 if (*dev != '/' || strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) != 0) in find_geom_efi_on_root() 461 dev += sizeof(_PATH_DEV) -1; in find_geom_efi_on_root() 620 if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in dev_path_to_dp() 621 dev += sizeof(_PATH_DEV) -1; in dev_path_to_dp() 659 if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in path_to_dp() 660 dev += sizeof(_PATH_DEV) -1; in path_to_dp()
|
| /freebsd-13.1/sbin/ccdconfig/ |
| H A D | ccdconfig.c | 262 if (!strncmp(cp, _PATH_DEV, strlen(_PATH_DEV))) in do_single() 263 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-13.1/lib/libpam/modules/pam_lastlog/ |
| H A D | pam_lastlog.c | 102 if (strncmp(tty, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in pam_sm_open_session() 103 tty = (const char *)tty + sizeof(_PATH_DEV) - 1; in pam_sm_open_session()
|
| /freebsd-13.1/crypto/heimdal/appl/telnet/telnetd/ |
| H A D | telnetd.h | 219 #ifndef _PATH_DEV 220 #define _PATH_DEV "/dev/" macro
|
| /freebsd-13.1/sbin/fsck/ |
| H A D | fsutil.c | 198 char device[sizeof(_PATH_DEV) - 1 + MNAMELEN]; in getmntpt() 214 if (strlen(_PATH_DEV) + strlen(dev_name) + 1 > in getmntpt() 217 strcpy(device, _PATH_DEV); in getmntpt()
|
| /freebsd-13.1/libexec/talkd/ |
| H A D | talkd.c | 101 if (chdir(_PATH_DEV) < 0) { in main() 102 syslog(LOG_ERR, "chdir: %s: %m", _PATH_DEV); in main()
|
| H A D | process.c | 191 char ftty[sizeof(_PATH_DEV) - 1 + sizeof(ut->ut_line)]; in find_user() 195 (void) strcpy(ftty, _PATH_DEV); in find_user() 203 (void) strcpy(ftty + sizeof(_PATH_DEV) - 1, in find_user()
|
| /freebsd-13.1/usr.sbin/mpsutil/ |
| H A D | mpsutil.c | 105 if (strncmp(optarg, _PATH_DEV, strlen(_PATH_DEV)) == 0) { in main() 106 optarg += strlen(_PATH_DEV); in main()
|
| /freebsd-13.1/usr.sbin/watch/ |
| H A D | watch.c | 162 f = open(_PATH_DEV "snp", mode); in open_snp() 235 if (strlen(name) > 5 && !strncmp(name, _PATH_DEV, sizeof _PATH_DEV - 1)) { in set_dev() 241 sprintf(buf, "%s%s", _PATH_DEV, name); in set_dev()
|
| /freebsd-13.1/usr.sbin/mlxcontrol/ |
| H A D | util.c | 51 sprintf(buf, "%s%s", _PATH_DEV, ctrlrname(unit)); in ctrlrpath() 71 sprintf(buf, "%s%s", _PATH_DEV, drivename(unit)); in drivepath()
|
| /freebsd-13.1/lib/geom/concat/ |
| H A D | geom_concat.c | 159 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in concat_label() 160 name += sizeof(_PATH_DEV) - 1; in concat_label()
|
| /freebsd-13.1/usr.bin/lock/ |
| H A D | lock.c | 151 if (strncmp(ttynam, _PATH_DEV, strlen(_PATH_DEV)) == 0) in main() 152 ttynam += strlen(_PATH_DEV); in main()
|
| /freebsd-13.1/usr.bin/login/ |
| H A D | login_fbtab.c | 101 if (strncmp(devname, _PATH_DEV, sizeof _PATH_DEV - 1) != 0 in login_fbtab()
|