初始提交:terminalX 可运行态(M0/M1/M1.5 已真机验证)
- M0: libghostty SSH 终端(渲染/输入/连接)+ 白屏修复(OutputGate) + 会话状态机/自动重连 - M1: tsnet 用户态组网 + SSH-over-tsnet(fd 桥),shell 级真机验证;R5(Go+gvisor+C+++Swift 同进程) retire - M1.5: tmux -CC 原生 tab(MVP) - 结构: packages/(TXCore·TXTransport), apps/TerminalX, vendor/(libghostty-spm/libssh2/mbedtls/tsnet-bridge), artifacts/ - 文档: CLAUDE.md + docs/HANDOFF.md(新会话入口) - 环境: 认证代理→依赖 vendor 本地化;Go 在 ~/.local/go;仅模拟器/未签名 - 待续: M2 mosh, tmux 多 pane, M4 安全(host key/SE) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
89
vendor/libssh2/vms/libssh2_config.h
vendored
Normal file
89
vendor/libssh2/vms/libssh2_config.h
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
/* Copyright (C) The libssh2 project and its contributors.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#ifndef LIBSSH2_CONFIG_H
|
||||
#ifdef __VMS
|
||||
|
||||
#define LIBSSH2_CONFIG_H
|
||||
|
||||
/* VMS specific libssh2_config.h
|
||||
*/
|
||||
|
||||
#define ssize_t SSIZE_T
|
||||
|
||||
typedef unsigned int uint32_t;
|
||||
typedef unsigned int socklen_t; /* missing in headers on VMS */
|
||||
|
||||
/* Have's */
|
||||
|
||||
#define HAVE_UNISTD_H
|
||||
#define HAVE_INTTYPES_H
|
||||
#define HAVE_SYS_TIME_H
|
||||
#define HAVE_SELECT
|
||||
#define HAVE_UIO
|
||||
|
||||
#define HAVE_SYS_SOCKET_H
|
||||
#define HAVE_NETINET_IN_H
|
||||
#define HAVE_ARPA_INET_H
|
||||
|
||||
#define HAVE_GETTIMEOFDAY 1
|
||||
#define HAVE_SNPRINTF 1
|
||||
|
||||
#define POSIX_C_SOURCE
|
||||
|
||||
/* Enable the possibility of using tracing */
|
||||
|
||||
#define LIBSSH2DEBUG 1
|
||||
|
||||
/* For selection of proper block/unblock function in session.c */
|
||||
|
||||
#define HAVE_FIONBIO
|
||||
|
||||
#include <stropts.h>
|
||||
|
||||
/* In VMS TCP/IP Services and some BSD variants SO_STATE retrieves
|
||||
* a bitmask revealing amongst others the blocking state of the
|
||||
* socket. On VMS the bits are undocumented, but SS_NBIO
|
||||
* works, I did not test the other bits. Below bitdefs are
|
||||
* from Berkely source socketvar.h at
|
||||
* http://ftp.fibranet.cat/UnixArchive/PDP-11/Trees/2.11BSD/sys/h/socketvar.h
|
||||
* Socket state bits.
|
||||
* #define SS_NOFDREF 0x001 no file table ref any more
|
||||
* #define SS_ISCONNECTED 0x002 socket connected to a peer
|
||||
* #define SS_ISCONNECTING 0x004 in process of connecting to peer
|
||||
* #define SS_ISDISCONNECTING 0x008 in process of disconnecting
|
||||
* #define SS_CANTSENDMORE 0x010 can't send more data to peer
|
||||
* #define SS_CANTRCVMORE 0x020 can't receive more data from peer
|
||||
* #define SS_RCVATMARK 0x040 at mark on input
|
||||
* #define SS_PRIV 0x080 privileged for broadcast, raw...
|
||||
* #define SS_NBIO 0x100 non-blocking ops
|
||||
* #define SS_ASYNC 0x200 async i/o notify
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef SO_STATE
|
||||
|
||||
/* SO_STATE is defined in stropts.h by DECC
|
||||
* When running on Multinet, SO_STATE renders a protocol
|
||||
* not started error. Functionally this has no impact,
|
||||
* apart from libssh2 not being able to restore the socket
|
||||
* to the proper blocking/non-blocking state.
|
||||
*/
|
||||
|
||||
#define SS_NBIO 0x100
|
||||
|
||||
#endif
|
||||
|
||||
/* Use OpenSSL */
|
||||
#define LIBSSH2_OPENSSL 1
|
||||
|
||||
/* Compile in zlib support. We link against gnv$libzshr, as available
|
||||
* from https://sourceforge.net/projects/vms-ports/files/.
|
||||
*/
|
||||
|
||||
#define LIBSSH2_HAVE_ZLIB
|
||||
|
||||
#endif /* __VMS */
|
||||
#endif /* LIBSSH2_CONFIG_H */
|
||||
Reference in New Issue
Block a user