[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

GNU or FreeBSD version of openpty/forkpty on Debian GNU/kFreeBSD?



[ please CC me, I am not subscribed to debian-bsd@ ]

Hi,

"real" GNU systems have openpty and forkpty defined in pty.h from 
libc[1]. On a "real" FreeBSD, the same function are defined in lubutil.h 
from libutil[2] (and util.h on OpenBSD/NetBSD). And there is also 
gnulib[3].

The question arises: what should be used on Debian GNU/kFreeBSD?
There is libutil-freebsd-dev, which ships FreeBSDs libutil, and there is 
pty.h[4] from the GNU libc.

Given our userland is GNU (and libutil-freebsd-dev is only available in 
jessie+ and not installed on the single kFreeBSD machine I have access 
to), I would guess one should use the GNU functions here, right? Or is 
there a reason for using the definitions from libutil instead?

Regards
Evgeni, loving bugs which start as a FTBFS on hurd and end up as "why 
does this even work on bsd?!"

[1] libc6-dev:linux-any: /usr/include/pty.h
    libc0.3-dev:hurd-any: /usr/include/pty.h (heh, I wrote hurd-any)
[2] http://www.freebsd.org/cgi/man.cgi?query=openpty&manpath=FreeBSD+10.0-RELEASE
[3] https://www.gnu.org/software/gnulib/manual/html_node/openpty.html
[4] libc0.1-dev:kfreebsd-any: /usr/include/pty.h

-- 
Bruce Schneier can read and understand Perl programs.


Reply to: