RTEMS CPU Kit with SuperCore  4.11.3
Data Structures | Macros | Functions | Variables
rtemsmain.c File Reference
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <pwd.h>
#include <setjmp.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <rtems.h>
#include <rtems/rtems_bsdnet.h>
#include "pppd.h"
#include "magic.h"
#include "fsm.h"
#include "lcp.h"
#include "ipcp.h"
#include "upap.h"
#include "chap.h"
#include "ccp.h"
#include "pathnames.h"
#include "patchlevel.h"
#include "rtemsdialer.h"
Include dependency graph for rtemsmain.c:

Data Structures

struct  protocol_list
 
struct  callout
 

Macros

#define RCSID   "$Id$"
 

Functions

char * ttyname (int)
 ttyname() - POSIX 1003.1b 4.7.2 - Determine Terminal Device Name
 
char * getlogin (void)
 4.2.4 Get User Name, P1003.1b-1993, p. More...
 
int pppdmain (int, char *[])
 
const char * protocol_name (int proto)
 
void new_phase (int p)
 
void die (int status)
 
void update_link_stats (int u)
 
void ppptimeout (void(*func)(void *), void *arg, int time)
 
void pppuntimeout (void(*func)(void *), void *arg)
 
void novm (char *msg)
 

Variables

char ifname [32]
 
int pppifunit
 
char hostname [MAXNAMELEN]
 
int pppd_ttyfd
 
int baud_rate
 
int hungup
 
int privileged
 
int need_holdoff
 
int detached
 
struct stat devstat
 
int prepass = 0
 
int devnam_fixed
 
volatile int pppd_status
 
int unsuccess
 
int do_callback
 
int doing_callback
 
char * callback_script
 
dialerfp pppd_dialer
 
int(* holdoff_hook )(void) = NULL
 
int(* new_phase_hook )(int) = NULL
 
int pppd_phase
 
int pppd_kill_link
 
int open_ccp_flag
 
char ** script_env
 
int s_env_nalloc
 
u_char outpacket_buf [PPP_MRU+PPP_HDRLEN]
 
u_char inpacket_buf [PPP_MRU+PPP_HDRLEN]
 
char * no_ppp_msg = "Sorry - this system lacks PPP kernel support\n"
 
struct pppd_stats link_stats
 
int link_connect_time
 
int link_stats_valid
 
struct protentprotocols []
 
struct protocol_list protocol_list []
 

Function Documentation

◆ getlogin()

char* getlogin ( void  )

4.2.4 Get User Name, P1003.1b-1993, p.

87

Note
P1003.1c/D10, p. 49 adds getlogin_r().

References getlogin_r().

Variable Documentation

◆ protocols

struct protent* protocols[]
Initial value:
= {
&lcp_protent,
&pap_protent,
&chap_protent,
&ipcp_protent,
&ccp_protent,
NULL
}