]> git.proxmox.com Git - mirror_lxc.git/blame - src/include/openpty.h
licensing: Add missing headers and FSF address
[mirror_lxc.git] / src / include / openpty.h
CommitLineData
250b1eec
SG
1/*
2 * openpty: glibc implementation
3 *
4 * Copyright (C) 1998, 1999, 2004 Free Software Foundation, Inc.
5 *
6 * Authors:
7 * Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
8 *
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.
13
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.
18
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
22 */
23
e827ff7e
SG
24#ifndef _openpty_h
25#define _openpty_h
26
27#include <termios.h>
28#include <sys/ioctl.h>
29
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. */
33extern int openpty (int *__amaster, int *__aslave, char *__name,
34 const struct termios *__termp,
35 const struct winsize *__winp);
36
37#endif