165f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes/* 265f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * Copyright (C) 2014 The Android Open Source Project 365f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * All rights reserved. 465f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * 565f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * Redistribution and use in source and binary forms, with or without 665f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * modification, are permitted provided that the following conditions 765f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * are met: 865f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * * Redistributions of source code must retain the above copyright 965f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * notice, this list of conditions and the following disclaimer. 1065f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * * Redistributions in binary form must reproduce the above copyright 1165f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * notice, this list of conditions and the following disclaimer in 1265f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * the documentation and/or other materials provided with the 1365f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * distribution. 1465f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * 1565f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1665f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1765f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 1865f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 1965f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 2065f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 2165f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 2265f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 2365f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2465f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2565f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2665f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes * SUCH DAMAGE. 2765f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes */ 2865f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes 2965f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes#ifndef _PTY_H 3065f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes#define _PTY_H 3165f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes 3265f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes#include <sys/cdefs.h> 3365f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes 3465f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes#include <termios.h> 3565f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes#include <sys/ioctl.h> 3665f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes 3765f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes__BEGIN_DECLS 3865f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes 39ff26a16c1de7be696719e9001f0707b7c55b52cfElliott Hughesint openpty(int* __master_fd, int* __slave_fd, char* __slave_name, const struct termios* __termios_ptr, const struct winsize* __winsize_ptr) __INTRODUCED_IN(23); 40ff26a16c1de7be696719e9001f0707b7c55b52cfElliott Hughesint forkpty(int* __master_fd, char* __slave_name, const struct termios* __termios_ptr, const struct winsize* __winsize_ptr) __INTRODUCED_IN(23); 4165f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes 4265f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes__END_DECLS 4365f0df78730fb0d6994f9d4d0a16dc0241081d94Elliott Hughes 44ff26a16c1de7be696719e9001f0707b7c55b52cfElliott Hughes#endif 45