]> git.ipfire.org Git - thirdparty/systemd.git/commit
terminal-util: add pty_open_peer() helper
authorLennart Poettering <lennart@poettering.net>
Wed, 30 Oct 2024 15:45:15 +0000 (16:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 Oct 2024 21:37:44 +0000 (22:37 +0100)
commitfc9dc71a3f1aeafaada1fd327d3a228e53ed94b6
tree9dcf12a9cdef57ce10a4bcf5c84a3b458b493765
parentfbd2679f664cc9d1aad64a5df0812a984171e5d9
terminal-util: add pty_open_peer() helper

This opens a pty peer in one go, and uses the new race-free TIOCGPTPEER
ioctl() to do so – if it is available.
src/basic/terminal-util.c
src/basic/terminal-util.h
src/test/test-terminal-util.c