mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 06:22:17 +00:00
LibC: Add posix_openpt(), grantpt() and unlockpt()
This makes getting a pseudoterminal pair a little bit more portable. Note that grantpt() and unlockpt() are currently no-ops, since we've already granted the pseudoterminal slave to the calling user. We also accept O_CLOEXEC to posix_openpt(), unlike some systems. :^)
This commit is contained in:
parent
6d1740e4be
commit
f2a087126c
Notes:
sideshowbarker
2024-07-19 09:35:41 +09:00
Author: https://github.com/awesomekling
Commit: f2a087126c
5 changed files with 58 additions and 6 deletions
|
@ -100,4 +100,8 @@ typedef struct {
|
|||
} ldiv_t;
|
||||
ldiv_t ldiv(long, long);
|
||||
|
||||
int posix_openpt(int flags);
|
||||
int grantpt(int fd);
|
||||
int unlockpt(int fd);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue