Home
last modified time | relevance | path

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

123456

/freebsd-13.1/lib/libc/stdlib/
H A Dptsname.c82 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 Dwrite.c95 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 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-13.1/sys/contrib/openzfs/cmd/zpool/os/freebsd/
H A Dzpool_vdev_os.c91 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 Dmdconfig.c244 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 Dttyname.c53 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 Dctermid.c41 #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 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-13.1/lib/geom/virstor/
H A Dgeom_virstor.c325 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 Dulog_login.c48 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 Dwho.c180 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 Defivar-dp-xlate.c459 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 Dccdconfig.c262 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 Dpam_lastlog.c102 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 Dtelnetd.h219 #ifndef _PATH_DEV
220 #define _PATH_DEV "/dev/" macro
/freebsd-13.1/sbin/fsck/
H A Dfsutil.c198 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 Dtalkd.c101 if (chdir(_PATH_DEV) < 0) { in main()
102 syslog(LOG_ERR, "chdir: %s: %m", _PATH_DEV); in main()
H A Dprocess.c191 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 Dmpsutil.c105 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 Dwatch.c162 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 Dutil.c51 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 Dgeom_concat.c159 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 Dlock.c151 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 Dlogin_fbtab.c101 if (strncmp(devname, _PATH_DEV, sizeof _PATH_DEV - 1) != 0 in login_fbtab()

123456