Home
last modified time | relevance | path

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

12345

/freebsd-12.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-12.1/lib/libc/stdlib/
H A Dptsname.c80 static char pt_slave[sizeof _PATH_DEV + SPECNAMELEN] = _PATH_DEV; in ptsname()
87 if (fdevname_r(fildes, pt_slave + (sizeof _PATH_DEV - 1), in ptsname()
88 sizeof pt_slave - (sizeof _PATH_DEV - 1)) != NULL) in ptsname()
/freebsd-12.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-12.1/sbin/mdconfig/
H A Dmdconfig.c235 if (!strncmp(optarg, _PATH_DEV, sizeof(_PATH_DEV) - 1)) in main()
236 optarg += sizeof(_PATH_DEV) - 1; in main()
357 fd = open(_PATH_DEV MDCTL_NAME, O_RDWR, 0); in main()
359 err(1, "open(%s%s)", _PATH_DEV, MDCTL_NAME); in main()
364 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in main()
372 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in main()
378 err(1, "ioctl(%s%s)", _PATH_DEV, MDCTL_NAME); in main()
554 if (strncmp(u, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in md_find()
555 u += sizeof(_PATH_DEV) - 1; in md_find()
/freebsd-12.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-12.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-12.1/lib/libefivar/
H A Defivar-dp-xlate.c450 if (*dev != '/' || strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) != 0) in find_geom_efi_on_root()
452 dev += sizeof(_PATH_DEV) -1; in find_geom_efi_on_root()
611 if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in dev_path_to_dp()
612 dev += sizeof(_PATH_DEV) -1; in dev_path_to_dp()
650 if (strncmp(dev, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in path_to_dp()
651 dev += sizeof(_PATH_DEV) -1; in path_to_dp()
/freebsd-12.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-12.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-12.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-12.1/sbin/fsck/
H A Dfsutil.c161 char device[sizeof(_PATH_DEV) - 1 + MNAMELEN]; in getmntpt()
177 if (strlen(_PATH_DEV) + strlen(dev_name) + 1 > in getmntpt()
180 strcpy(device, _PATH_DEV); in getmntpt()
/freebsd-12.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-12.1/crypto/heimdal/appl/telnet/telnetd/
H A Dtelnetd.h219 #ifndef _PATH_DEV
220 #define _PATH_DEV "/dev/" macro
/freebsd-12.1/libexec/talkd/
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()
H A Dtalkd.c101 if (chdir(_PATH_DEV) < 0) { in main()
102 syslog(LOG_ERR, "chdir: %s: %m", _PATH_DEV); in main()
/freebsd-12.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-12.1/sys/geom/virstor/
H A Dg_virstor.h133 #ifndef _PATH_DEV
134 #define _PATH_DEV "/dev/" macro
/freebsd-12.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-12.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-12.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-12.1/lib/geom/shsec/
H A Dgeom_shsec.c178 if (strncmp(name, _PATH_DEV, sizeof(_PATH_DEV) - 1) == 0) in shsec_label()
179 name += sizeof(_PATH_DEV) - 1; in shsec_label()
/freebsd-12.1/usr.bin/login/
H A Dlogin_fbtab.c101 if (strncmp(devname, _PATH_DEV, sizeof _PATH_DEV - 1) != 0 in login_fbtab()
/freebsd-12.1/usr.bin/wall/
H A Dttymsg.c67 char device[MAXNAMLEN] = _PATH_DEV; in ttymsg()
77 p = device + sizeof(_PATH_DEV) - 1; in ttymsg()

12345