summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/pty.cpp
AgeCommit message (Collapse)Author
2021-05-30LibC: openpty error handling updateDavid Carlier
2021-05-18LibC: Use ptsname_r() instead of ptsname() in openpty() (#7231)Gunnar Beutner
This improves thread-safety because ptsname() is using a global buffer that is shared between threads.
2021-05-14LibC: Do not include errno.h inside unistd.hJean-Baptiste Boric
POSIX does not mandate this, therefore let's not do it.
2021-05-06LibC: Update forkpty() master fd before fork()'s child branchLinus Groh
2021-05-06LibC: Remove 'int* aslave' parameter from forkpty()Linus Groh
Only keep track of that (and eventually close() it) internally instead. This argument is not present on other systems, so we were running into compatibility issues with ports. Also bring the implementation closer to Linux and OpenBSD by making sure to close the slave pty fd in the fork()'d child as well as _exit()'ing on login_tty() failure - it's non-POSIX, so those are our references here. :^)
2021-04-30LibC: Implement openpty(), forkpty() and login_tty()Gunnar Beutner
These are used by OpenSSH.