]>
git.proxmox.com Git - mirror_lxc.git/blob - src/include/openpty.h
2 * openpty: glibc implementation
4 * Copyright (C) 1998, 1999, 2004 Free Software Foundation, Inc.
7 * Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
28 #include <sys/ioctl.h>
30 /* Create pseudo tty master slave pair with NAME and set terminal
31 attributes according to TERMP and WINP and return handles for both
32 ends in AMASTER and ASLAVE. */
33 extern int openpty (int *__amaster
, int *__aslave
, char *__name
,
34 const struct termios
*__termp
,
35 const struct winsize
*__winp
);