| /freebsd/lib/libc/stdlib/ |
| H A D | ptsname.c | 77 if (buflen <= sizeof(_PATH_DEV)) { in __ptsname_r() 86 memcpy(buffer, _PATH_DEV, sizeof(_PATH_DEV)); in __ptsname_r() 87 buffer += sizeof(_PATH_DEV) - 1; in __ptsname_r() 88 buflen -= sizeof(_PATH_DEV) - 1; in __ptsname_r() 108 static char pt_slave[sizeof(_PATH_DEV) + SPECNAMELEN]; in ptsname()
|
| /freebsd/usr.bin/write/ |
| H A D | write.c | 80 devfd = open(_PATH_DEV, O_RDONLY); in main() 144 if (!strncmp(mytty, _PATH_DEV, strlen(_PATH_DEV))) in main() 145 mytty += strlen(_PATH_DEV); in main() 158 if (!strncmp(argv[1], _PATH_DEV, strlen(_PATH_DEV))) in main() 159 argv[1] += strlen(_PATH_DEV); in main() 268 warn("%s%s", _PATH_DEV, tty); in term_chk() 290 err(1, "openat(%s%s)", _PATH_DEV, tty); in do_write() 294 err(1, "%s%s", _PATH_DEV, tty); in do_write()
|
| /freebsd/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/sbin/mdconfig/ |
| H A D | mdconfig.c | 253 if (!strncmp(optarg, _PATH_DEV, sizeof(_PATH_DEV) - 1)) in main() 254 optarg += sizeof(_PATH_DEV) - 1; in main() 373 md_fd = open(_PATH_DEV MDCTL_NAME, O_RDWR, 0); in main() 375 err(1, "open(%s%s)", _PATH_DEV, MDCTL_NAME); in main() 380 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in main() 388 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in main() 394 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in main() 426 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in print_options() 627 if (strncmp(u, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in md_find() 628 u += sizeof(_PATH_DEV) - 1; in md_find()
|
| /freebsd/sys/contrib/openzfs/cmd/zpool/os/freebsd/ |
| H A D | zpool_vdev_os.c | 93 if (strncmp(name, _PATH_DEV, sizeof (_PATH_DEV) - 1) != 0) in check_device() 94 snprintf(path, sizeof (path), "%s%s", _PATH_DEV, name); in check_device()
|
| /freebsd/lib/geom/virstor/ |
| H A D | geom_virstor.c | 309 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in virstor_label() 312 sprintf(param, "%s%s", _PATH_DEV, name); in virstor_label() 415 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) { in virstor_label() 416 strlcpy(md.provider, name + sizeof(_PATH_DEV) - 1, in virstor_label() 470 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in virstor_clear() 473 sprintf(param, "%s%s", _PATH_DEV, name); in virstor_clear()
|
| /freebsd/lib/libc/gen/ |
| H A D | ttyname.c | 50 static char ttyname_buf[sizeof(_PATH_DEV) + MAXNAMLEN]; 71 if (len <= sizeof(_PATH_DEV)) in __ssp_real() 74 strcpy(buf, _PATH_DEV); in __ssp_real()
|
| H A D | ctermid.c | 39 #define LEN_PATH_DEV (sizeof(_PATH_DEV) - 1) 44 static char def[sizeof(_PATH_DEV) + SPECNAMELEN]; in __ssp_real()
|
| /freebsd/sys/contrib/openzfs/lib/libzutil/os/freebsd/ |
| H A D | zutil_device_path_os.c | 63 if (strncmp(path, _PATH_DEV, sizeof (_PATH_DEV) - 1) == 0) in zfs_strip_path() 64 return (path + sizeof (_PATH_DEV) - 1); in zfs_strip_path()
|
| /freebsd/lib/libefivar/ |
| H A D | efivar-dp-xlate.c | 483 if (*dev != '/' || strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) != 0) in find_geom_efi_on_root() 485 dev += sizeof(_PATH_DEV) -1; in find_geom_efi_on_root() 655 if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in dev_path_to_dp() 656 dev += sizeof(_PATH_DEV) -1; in dev_path_to_dp() 701 dev = rp + sizeof(_PATH_DEV) - 1; in path_to_dp() 704 if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in path_to_dp() 705 dev += sizeof(_PATH_DEV) - 1; in path_to_dp()
|
| /freebsd/usr.bin/who/ |
| H A D | who.c | 177 snprintf(tty, sizeof(tty), "%s%s", _PATH_DEV, ut->ut_line); in row() 218 (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/lib/libulog/ |
| H A D | ulog_login.c | 45 if (strncmp(line, _PATH_DEV, sizeof _PATH_DEV - 1) == 0) in ulog_fill() 46 line += sizeof _PATH_DEV - 1; in ulog_fill()
|
| /freebsd/sbin/ccdconfig/ |
| H A D | ccdconfig.c | 259 if (!strncmp(cp, _PATH_DEV, strlen(_PATH_DEV))) in do_single() 260 cp += strlen(_PATH_DEV); in do_single() 351 if (!strncmp(name, _PATH_DEV, strlen(_PATH_DEV))) in resolve_ccdname() 352 name += strlen(_PATH_DEV); in resolve_ccdname()
|
| /freebsd/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/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/lib/libutil/ |
| H A D | mntopts.c | 153 if ((len = strlen(_PATH_DEV) + strlen(path) + 1) > buflen) in prependdevtopath() 155 strncpy(buf, _PATH_DEV, len); in prependdevtopath() 156 strncat(buf, path, len - sizeof(_PATH_DEV)); in prependdevtopath() 171 char device[sizeof(_PATH_DEV) - 1 + MNAMELEN]; in getmntpoint()
|
| /freebsd/crypto/heimdal/appl/telnet/telnetd/ |
| H A D | telnetd.h | 219 #ifndef _PATH_DEV 220 #define _PATH_DEV "/dev/" macro
|
| /freebsd/libexec/talkd/ |
| H A D | process.c | 183 char ftty[sizeof(_PATH_DEV) - 1 + sizeof(ut->ut_line)]; in find_user() 187 (void) strcpy(ftty, _PATH_DEV); in find_user() 195 (void) strcpy(ftty + sizeof(_PATH_DEV) - 1, in find_user()
|
| H A D | talkd.c | 87 if (chdir(_PATH_DEV) < 0) { in main() 88 syslog(LOG_ERR, "chdir: %s: %m", _PATH_DEV); in main()
|
| /freebsd/usr.sbin/mpsutil/ |
| H A D | mpsutil.c | 102 if (strncmp(optarg, _PATH_DEV, strlen(_PATH_DEV)) == 0) { in main() 103 optarg += strlen(_PATH_DEV); in main()
|
| /freebsd/sbin/swapon/ |
| H A D | swapon.c | 232 (fnmatch(_PATH_DEV MD_NAME "[0-9]*", name, 0) == 0 || in swap_on_off() 234 strncmp(_PATH_DEV MD_NAME, name, in swap_on_off() 235 sizeof(_PATH_DEV MD_NAME)) == 0 || in swap_on_off() 237 strncmp(_PATH_DEV MD_NAME DOT_ELI, name, in swap_on_off() 238 sizeof(_PATH_DEV MD_NAME DOT_ELI)) == 0 || in swap_on_off() 600 snprintf(mdpath, sizeof(mdpath), "%s%s%d" DOT_ELI, _PATH_DEV, in swap_on_off_md() 605 snprintf(mdpath, sizeof(mdpath), "%s%s%d", _PATH_DEV, in swap_on_off_md() 617 _PATH_DEV, MD_NAME, mdunit); in swap_on_off_md()
|
| /freebsd/usr.sbin/watch/ |
| H A D | watch.c | 159 f = open(_PATH_DEV "snp", mode); in open_snp() 232 if (strlen(name) > 5 && !strncmp(name, _PATH_DEV, sizeof _PATH_DEV - 1)) { in set_dev() 238 sprintf(buf, "%s%s", _PATH_DEV, name); in set_dev()
|
| /freebsd/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/lib/geom/concat/ |
| H A D | geom_concat.c | 163 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in concat_label() 164 name += sizeof(_PATH_DEV) - 1; in concat_label()
|