summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_pts.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-01-30 11:59:19 +0000
committerrwatson <rwatson@FreeBSD.org>2006-01-30 11:59:19 +0000
commit3485717ebc3b45f03e06a7e280a6179c55266a8e (patch)
treeab297e6336a6595ce5ccc890659b7491753b3fac /sys/kern/tty_pts.c
parentea009866207bdcbfb453a804163bff80f4d762e7 (diff)
downloadFreeBSD-src-3485717ebc3b45f03e06a7e280a6179c55266a8e.zip
FreeBSD-src-3485717ebc3b45f03e06a7e280a6179c55266a8e.tar.gz
Move pts master devices into /dev/pty/ instead of littering /dev with them;
this is more consistent with the placement of slaves in /dev/pts. The actual name doesn't matter as it's not part of the exposed API or used by libc. In some sense, it would be nice if these device nodes didn't have to have names in devfs at all. Suggested by: Stephen McKay <smckay at internode dot on dot net>
Diffstat (limited to 'sys/kern/tty_pts.c')
-rw-r--r--sys/kern/tty_pts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty_pts.c b/sys/kern/tty_pts.c
index 5a2f31a..a3ab97b 100644
--- a/sys/kern/tty_pts.c
+++ b/sys/kern/tty_pts.c
@@ -851,8 +851,8 @@ pty_clone(void *arg, struct ucred *cred, char *name, int namelen,
* an open() or we won't create a device".
*/
pt->pt_devc = devc = make_dev_cred(&ptc_cdevsw,
- NUM_TO_MINOR(pt->pt_num), cred, UID_ROOT, GID_WHEEL, 0666, "pty%d",
- pt->pt_num);
+ NUM_TO_MINOR(pt->pt_num), cred, UID_ROOT, GID_WHEEL, 0666,
+ "pty/%d", pt->pt_num);
dev_ref(devc);
devc->si_drv1 = pt;
OpenPOWER on IntegriCloud