term.c (3343:539f62f485dd) term.c (5543:3af77710f397)
1/* $OpenBSD: netcat.c,v 1.57 2002/12/30 18:00:18 stevesk Exp $ */
2/*
3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 32 unchanged lines hidden (view full) ---

41#include <poll.h>
42#include <stdarg.h>
43#include <stdio.h>
44#include <stdlib.h>
45#include <string.h>
46#include <unistd.h>
47#include <fcntl.h>
48
1/* $OpenBSD: netcat.c,v 1.57 2002/12/30 18:00:18 stevesk Exp $ */
2/*
3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 32 unchanged lines hidden (view full) ---

41#include <poll.h>
42#include <stdarg.h>
43#include <stdio.h>
44#include <stdlib.h>
45#include <string.h>
46#include <unistd.h>
47#include <fcntl.h>
48
49ssize_t atomicio(ssize_t (*)(), int, void *, size_t);
50void readwrite(int);
51int remote_connect(char *, char *, struct addrinfo);
49ssize_t atomicio(ssize_t (*)(), int, void *, size_t);
50void readwrite(int);
51int remote_connect(char *, char *, struct addrinfo);
52
52
53struct termios saved_ios;
54void raw_term();
55void restore_term();
53struct termios saved_ios;
54void raw_term();
55void restore_term();
56
56
57char progname[256];
58void usage(int);
57char progname[256];
58void usage(int);
59
60int
61main(int argc, char *argv[])
62{
63 int ch, s, ret;
64 char *host, *port, *endp;
65 struct addrinfo hints;
66 socklen_t len;

--- 248 unchanged lines hidden ---
59
60int
61main(int argc, char *argv[])
62{
63 int ch, s, ret;
64 char *host, *port, *endp;
65 struct addrinfo hints;
66 socklen_t len;

--- 248 unchanged lines hidden ---