Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LibTTY providing access to the VM library for spawning a process connected to a pseudo-terminal #16427

Merged
merged 4 commits into from Apr 15, 2024

Conversation

Rinzwind
Copy link
Contributor

@Rinzwind Rinzwind commented Apr 8, 2024

This pull request adds LibTTY which provides access to ‘libtty’, the library added in Pharo VM pull request #742, offering a function to spawn a process connected to a pseudo-terminal. It also adds some methods on LibC which are needed for LibTTYTest, and factors out LibCTypes.

Note that LibCTypes, as well as #flagOpenRDWR and #getProcessStatus: on LibTTYTest, make assumptions about the definitions of ssize_t, pid_t, O_RDWR, WIFEXITED, WEXITSTATUS, WIFSIGNALED and WTERMSIG that are not guaranteed by POSIX.1-2017, but they work for Linux and macOS.

@guillep guillep merged commit 8630bb8 into pharo-project:Pharo12 Apr 15, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants