Discussion:
[patch] No ptry support for VMS for now.
(too old to reply)
John E. Malmberg
2017-07-03 20:21:30 UTC
Permalink
Raw Message
Hello,

This patch gets the forkpty.c, grantpt.c, and openpty.c modules building
on OpenVMS.

I will need to figure out later how to actually implement these for
OpenVMS pseudo terminals.

Regards,
-John
Bruno Haible
2017-07-03 23:26:05 UTC
Permalink
Raw Message
Hello John,
Post by John E. Malmberg
This patch gets the forkpty.c, grantpt.c, and openpty.c modules building
on OpenVMS.
I will need to figure out later how to actually implement these for
OpenVMS pseudo terminals.
I wouldn't like to apply intermediate patches like this one.
I'll prefer if you come back with a patch once you have figured out to actually
implement this functionality for OpenVMS.

Rationale: This is the most efficient way of communicating between you and us.
The people who need the intermediate patches are most likely already in contact
with you (pulling from your gnulib forked repo, if you have one).
The complete patch will not be so large that it would be unreviewable without
the intermediate patch.

Bruno
John E. Malmberg
2017-07-03 23:47:35 UTC
Permalink
Raw Message
Post by Bruno Haible
Hello John,
Post by John E. Malmberg
This patch gets the forkpty.c, grantpt.c, and openpty.c modules building
on OpenVMS.
I will need to figure out later how to actually implement these for
OpenVMS pseudo terminals.
I wouldn't like to apply intermediate patches like this one.
I'll prefer if you come back with a patch once you have figured out to actually
implement this functionality for OpenVMS.
Rationale: This is the most efficient way of communicating between you and us.
The people who need the intermediate patches are most likely already in contact
with you (pulling from your gnulib forked repo, if you have one).
The complete patch will not be so large that it would be unreviewable without
the intermediate patch.
Currently the modules fail to build on OpenVMS at all, so anyone trying
to port something to OpenVMS that has these modules is going have their
build fail, even if they are not using ptys.

I am not aware of any code to currently map the forkpty() or openpty()
code to an OpenVMS pseudo terminal device, and I do not know when I will
have the time to implement it.

Based on the way OpenVMS implements pseudo terminal devices it is likely
that grantpt will not do anything, but I have not verified that.

This is because I have not encountered a program to be ported to OpenVMS
that requires pseudo terminal device support.

Regards,
-John
Bruno Haible
2017-07-04 00:13:15 UTC
Permalink
Raw Message
Post by John E. Malmberg
Currently the modules fail to build on OpenVMS at all, so anyone trying
to port something to OpenVMS that has these modules is going have their
build fail, even if they are not using ptys.
There are several solutions to this problem:
- You can set up a forked gnulib repo, which anyone trying to port
something to OpenVMS shall use.
- Or you can publish a set of --avoid options for gnulib-tool that
such people shall use.
- Or you can augment the 'posix-modules' script with an option
--for-openvms, so that is becomes easy to generate a testdir
without the modules that are not yet ported to OpenVMS.

Bruno

Loading...