Home
last modified time | relevance | path

Searched refs:_PATH_DEV (Results 1 – 25 of 129) sorted by relevance

123456

/freebsd-14.2/lib/libc/stdlib/
H A Dptsname.c80 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 Dwrite.c93 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 Dtty.c47 if (strncmp (res, _PATH_DEV, strlen(_PATH_DEV)) == 0) in clean_ttyname()
48 res += strlen(_PATH_DEV); in clean_ttyname()
H A Dlogin_locl.h108 #ifndef _PATH_DEV
109 #define _PATH_DEV "/dev/" macro
/freebsd-14.2/sys/contrib/openzfs/cmd/zpool/os/freebsd/
H A Dzpool_vdev_os.c92 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 Dmdconfig.c247 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 Dttyname.c51 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 Dctermid.c38 #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 Dzutil_device_path_os.c62 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 Dgeom_virstor.c323 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 Dulog_login.c46 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 Defivar-dp-xlate.c487 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 Dwho.c178 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 Dccdconfig.c260 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 Dmfiutil.c161 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 Dpam_lastlog.c100 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 Dtelnetd.h219 #ifndef _PATH_DEV
220 #define _PATH_DEV "/dev/" macro
/freebsd-14.2/libexec/talkd/
H A Dtalkd.c99 if (chdir(_PATH_DEV) < 0) { in main()
100 syslog(LOG_ERR, "chdir: %s: %m", _PATH_DEV); in main()
H A Dprocess.c189 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 Dmpsutil.c103 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 Dwatch.c160 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 Dutil.c49 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 Dlock.c149 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 Dgeom_concat.c164 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 Dlogin_fbtab.c99 if (strncmp(devname, _PATH_DEV, sizeof _PATH_DEV - 1) != 0 in login_fbtab()

123456