| 1 |
/* |
| 2 |
* Copyright (C) 1997 Lars Fenneberg |
| 3 |
* |
| 4 |
* Copyright 1992 Livingston Enterprises, Inc. |
| 5 |
* |
| 6 |
* Copyright 1992,1993, 1994,1995 The Regents of the University of Michigan |
| 7 |
* and Merit Network, Inc. All Rights Reserved |
| 8 |
* |
| 9 |
* See the file COPYRIGHT for the respective terms and conditions. |
| 10 |
* If the file is missing contact me at [email protected] |
| 11 |
* and I'll send you a copy. |
| 12 |
* |
| 13 |
*/ |
| 14 |
|
| 15 |
#include <sys/types.h> |
| 16 |
|
| 17 |
#include <ctype.h> |
| 18 |
#include <stdio.h> |
| 19 |
#include <errno.h> |
| 20 |
#include <netdb.h> |
| 21 |
#include <syslog.h> |
| 22 |
|
| 23 |
#include <stdlib.h> |
| 24 |
#include <string.h> |
| 25 |
#include <stdarg.h> |
| 26 |
|
| 27 |
#include <unistd.h> |
| 28 |
#include <fcntl.h> |
| 29 |
#include <sys/stat.h> |
| 30 |
|
| 31 |
#include <limits.h> |
| 32 |
|
| 33 |
#ifndef PATH_MAX |
| 34 |
#define PATH_MAX 1024 |
| 35 |
#endif |
| 36 |
|
| 37 |
#ifndef UCHAR_MAX |
| 38 |
# define UCHAR_MAX 255 |
| 39 |
#endif |
| 40 |
|
| 41 |
#include <pwd.h> |
| 42 |
#include <sys/socket.h> |
| 43 |
#include <netinet/in.h> |
| 44 |
#include <arpa/inet.h> |
| 45 |
|
| 46 |
#include <time.h> |
| 47 |
|
| 48 |
#include <pppd/magic.h> |
| 49 |
|
| 50 |
/* rlib/lock.c */ |
| 51 |
int do_lock_exclusive(int); |
| 52 |
int do_unlock(int); |