File: hasopenpty.h-yes.c

package info (click to toggle)
tinyssh 20190101-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,208 kB
  • sloc: ansic: 11,914; sh: 1,005; python: 385; makefile: 18
file content (15 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Public domain. */
#include <sys/types.h>
#include <termios.h>
#include <sys/ioctl.h>

extern int openpty(int *, int *, char *, struct termios *, struct winsize *);

static void foo(void) {
    int master, slave;
    openpty(&master, &slave, 0, 0, 0);
}

int main(void) {
    return 0;
}