1*c9ad075bSchristos /*
2*c9ad075bSchristos * Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
3*c9ad075bSchristos *
4*c9ad075bSchristos * Permission to use, copy, modify, and distribute this software for any
5*c9ad075bSchristos * purpose with or without fee is hereby granted, provided that the above
6*c9ad075bSchristos * copyright notice and this permission notice appear in all copies.
7*c9ad075bSchristos *
8*c9ad075bSchristos * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9*c9ad075bSchristos * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10*c9ad075bSchristos * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11*c9ad075bSchristos * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12*c9ad075bSchristos * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13*c9ad075bSchristos * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14*c9ad075bSchristos * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*c9ad075bSchristos */
16*c9ad075bSchristos
17*c9ad075bSchristos #include <sys/types.h>
18*c9ad075bSchristos
19*c9ad075bSchristos #include <limits.h>
20*c9ad075bSchristos
21*c9ad075bSchristos #include "compat.h"
22*c9ad075bSchristos
23*c9ad075bSchristos int
getptmfd(void)24*c9ad075bSchristos getptmfd(void)
25*c9ad075bSchristos {
26*c9ad075bSchristos return (INT_MAX);
27*c9ad075bSchristos }
28*c9ad075bSchristos
29*c9ad075bSchristos pid_t
fdforkpty(__unused int ptmfd,int * master,char * name,struct termios * tio,struct winsize * ws)30*c9ad075bSchristos fdforkpty(__unused int ptmfd, int *master, char *name, struct termios *tio,
31*c9ad075bSchristos struct winsize *ws)
32*c9ad075bSchristos {
33*c9ad075bSchristos return (forkpty(master, name, tio, ws));
34*c9ad075bSchristos }
35