diff options
author | Richard Levitte <levitte@openssl.org> | 2016-08-03 21:16:43 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-09-15 23:24:06 +0200 |
commit | 0d3b65832c6fa94c1d1cfa2f99335f323e3227c1 (patch) | |
tree | e3a7995f3ff12d8f0c8f300439a31d77eedcf00e /apps/vms_term_sock.h | |
parent | 6f0ac0e2f27d9240516edb9a23b7863e7ad02898 (diff) |
VSI submission: redirect terminal input through socket
This is needed, because on VMS, select() can only be used on sockets. being
able to use select() on all kinds of file descriptors is unique to Unix.
So, the solution for VMS is to create a layer that translates input from
standard input to socket communication.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/vms_term_sock.h')
-rw-r--r-- | apps/vms_term_sock.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/vms_term_sock.h b/apps/vms_term_sock.h new file mode 100644 index 0000000000..4b445a9649 --- /dev/null +++ b/apps/vms_term_sock.h @@ -0,0 +1,21 @@ +#ifndef TERM_SOCK_H +#define TERM_SOCK_H + +/* +** Terminal Socket Function Codes +*/ +#define TERM_SOCK_CREATE 1 +#define TERM_SOCK_DELETE 2 + +/* +** Terminal Socket Status Codes +*/ +#define TERM_SOCK_FAILURE 0 +#define TERM_SOCK_SUCCESS 1 + +/* +** Terminal Socket Prototype +*/ +int TerminalSocket (int FunctionCode, int *ReturnSocket); + +#endif |