Index: share/man/man4/linux.4 =================================================================== --- share/man/man4/linux.4 +++ share/man/man4/linux.4 @@ -139,6 +139,7 @@ .El .Sh SEE ALSO .Xr brandelf 1 , +.Xr pty 4 , .Xr elf 5 , .Xr fdescfs 5 , .Xr linprocfs 5 , Index: share/man/man4/pty.4 =================================================================== --- share/man/man4/pty.4 +++ share/man/man4/pty.4 @@ -27,19 +27,21 @@ .\" .\" $FreeBSD$ .\" -.Dd August 20, 2008 +.Dd September 9, 2019 .Dt PTY 4 .Os .Sh NAME .Nm pty -.Nd BSD-style and System V-style compatibility pseudo-terminal driver +.Nd old-style compatibility pseudo-terminal driver .Sh SYNOPSIS .Cd "device pty" .Sh DESCRIPTION The .Nm driver provides support for the traditional BSD naming scheme that was -used for accessing pseudo-terminals. +used for accessing pseudo-terminals before it was replaced by +.Xr pts 4 . +This traditional naming is still used in Linux. When the device .Pa /dev/ptyXX is being opened, a new terminal shall be created with the @@ -59,7 +61,8 @@ It is only provided for compatibility with older C libraries that tried to open such devices when .Xr posix_openpt 2 -was being called. +was being called, +and for running Linux binaries. .Sh FILES The BSD-style compatibility pseudo-terminal driver uses the following device names: Index: sys/compat/linux/linux_common.c =================================================================== --- sys/compat/linux/linux_common.c +++ sys/compat/linux/linux_common.c @@ -99,3 +99,4 @@ DECLARE_MODULE(linuxcommon, linux_common_mod, SI_SUB_EXEC, SI_ORDER_ANY); MODULE_VERSION(linuxcommon, 1); +MODULE_DEPEND(linuxcommon, pty, 1, 1, 1); Index: sys/dev/pty/pty.c =================================================================== --- sys/dev/pty/pty.c +++ sys/dev/pty/pty.c @@ -164,3 +164,4 @@ } DEV_MODULE(pty, pty_modevent, NULL); +MODULE_VERSION(pty, 1);