main.c File Reference

#include <sys/types.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <stdio.h>
#include <ttyent.h>
#include <utmp.h>
#include <net/gen/in.h>
#include <net/gen/tcp.h>
#include <net/gen/tcp_io.h>
#include <net/gen/socket.h>
#include <net/gen/netdb.h>
#include <net/gen/inet.h>
#include "telnetd.h"

Include dependency graph for main.c:

Go to the source code of this file.

Functions

 _PROTOTYPE (void usage,(void))
 _PROTOTYPE (int main,(int argc, char *argv[]))
 _PROTOTYPE (void wtmp,(int type, int linenr, char *line, pid_t pid, char *host))
void usage ()
int main (int argc, argv)

Variables

static char * Version = "@(#) telnetd 1.00 (07/26/92)"
int opt_d = 0


Function Documentation

_PROTOTYPE void  wtmp,
(int type, int linenr, char *line, pid_t pid, char *host
 

_PROTOTYPE int  main,
(int argc, char *argv[]) 
 

_PROTOTYPE void  usage,
(void) 
 

int main int  argc,
argv 
 

Definition at line 56 of file main.c.

References AF_INET, buff, c, EOF, get_pty(), gethostbyaddr, getopt(), getttyent(), hostent::h_name, hostname, inet_ntoa(), ioctl, lineno, NULL, NWIOGTCPCONF, nwio_tcpconf::nwtc_remaddr, opt_d, opterr, optind, pid, sprintf(), strlen(), tty_name, usage, and write.

void usage void   ) 
 

Definition at line 49 of file main.c.

References exit(), fprintf(), and stderr.


Variable Documentation

int opt_d = 0
 

Definition at line 42 of file main.c.

char* Version = "@(#) telnetd 1.00 (07/26/92)" [static]
 

Definition at line 40 of file main.c.


Generated on Fri Apr 14 22:58:47 2006 for minix by  doxygen 1.4.6