File: pppupd.h

package info (click to toggle)
pppupd 0.23-6
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 96 kB
  • ctags: 39
  • sloc: ansic: 399; makefile: 50; sh: 49; perl: 43
file content (52 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * PPPupd - pppupd.h - Include file for PPPupd daemon.
 * Jake Bouvrie	<swarthy@thetasys.com>
 * Fri Jan 26 03:01:04 EST 1996
 */

#include	<unistd.h>
#include	<sys/types.h>
#include	<sys/stat.h>
#include	<signal.h>
#include        <errno.h>
#include	<syslog.h>

#include	<time.h>
#include	<malloc.h>
#include	<ctype.h>
#include	<string.h>

#include	<netdb.h>

#include	<stdio.h>
#include	<stdlib.h>

typedef struct opt {
	char	*logpath;
	char	*connectscriptpath;
	char	*killscriptpath;
	char	*pingpath;
	char	*pingaddr;
	char	*pidpath;
	char	*syslogpriority;
	int	sysloglogging;
	int	stdoutlogging;
	int	delay;
	uid_t	uid;
	gid_t	gid;
} OPT ;	

/* from pppsubs.c */
OPT     *ParseConfigFile(void);
int     PPPConnect(OPT *);
int     PPPConnectTest(OPT *);
int     PPPSendPing(OPT *);
int	PPPKill(char	*killscriptpath);

/* from misc.c */
int	exist(char *);
int	makepriority(char *,int	*,int	*);
char	*getdate();
char	*lowerstr(char *);
void	err_fatal(char *);