pty.h 433 B

123456789101112131415161718
  1. /*
  2. * Copyright (c) 2021, Gunnar Beutner <gbeutner@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <sys/cdefs.h>
  8. #include <termios.h>
  9. __BEGIN_DECLS
  10. int openpty(int* amaster, int* aslave, char* name, const struct termios* termp, const struct winsize* winp);
  11. pid_t forkpty(int* amaster, char* name, const struct termios* termp, const struct winsize* winp);
  12. int login_tty(int fd);
  13. __END_DECLS