mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:37:47 +00:00
LibC: Implement openpty(), forkpty() and login_tty()
These are used by OpenSSH.
This commit is contained in:
parent
6783f65d5a
commit
f48f26f52d
4 changed files with 161 additions and 93 deletions
18
Userland/Libraries/LibC/pty.h
Normal file
18
Userland/Libraries/LibC/pty.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Gunnar Beutner <gbeutner@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <termios.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
int openpty(int* amaster, int* aslave, char* name, const struct termios* termp, const struct winsize* winp);
|
||||
pid_t forkpty(int* amaster, int* aslave, char* name, const struct termios* termp, const struct winsize* winp);
|
||||
int login_tty(int fd);
|
||||
|
||||
__END_DECLS
|
Loading…
Add table
Add a link
Reference in a new issue