mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-19 15:32:10 +08:00
28 lines
1021 B
C
28 lines
1021 B
C
/*************************************************************************\
|
|
* Copyright (C) Michael Kerrisk, 2018. *
|
|
* *
|
|
* This program is free software. You may use, modify, and redistribute it *
|
|
* under the terms of the GNU Lesser General Public License as published *
|
|
* by the Free Software Foundation, either version 3 or (at your option) *
|
|
* any later version. This program is distributed without any warranty. *
|
|
* See the files COPYING.lgpl-v3 and COPYING.gpl-v3 for details. *
|
|
\*************************************************************************/
|
|
|
|
/* Header file for Listing 64-2 */
|
|
|
|
/* pty_fork.h
|
|
|
|
Header file for pty_fork.c.
|
|
*/
|
|
#ifndef FORK_PTY_H
|
|
#define FORK_PTY_H
|
|
|
|
#include <termios.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/types.h>
|
|
|
|
pid_t ptyFork(int *masterFd, char *slaveName, size_t snLen,
|
|
const struct termios *slaveTermios, const struct winsize *slaveWS);
|
|
|
|
#endif
|