summaryrefslogtreecommitdiff
path: root/pptpd-1.3.3/compat.h
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-08-03 13:28:53 +0400
committerKozlov Dmitry <dima@server>2010-08-03 13:28:53 +0400
commit5a2d6079eba1c7e2a9479cb10d714b5a97bbfe4f (patch)
treee72134e47e1491580af15e3eccbba451f13fdd42 /pptpd-1.3.3/compat.h
parentba8e1a64e75930a161afac9048e7d03b7f880644 (diff)
downloadaccel-ppp-xebd-5a2d6079eba1c7e2a9479cb10d714b5a97bbfe4f.tar.gz
accel-ppp-xebd-5a2d6079eba1c7e2a9479cb10d714b5a97bbfe4f.zip
initiating work on accel-pptpd, replacement of modified poptop
Diffstat (limited to 'pptpd-1.3.3/compat.h')
-rw-r--r--pptpd-1.3.3/compat.h82
1 files changed, 0 insertions, 82 deletions
diff --git a/pptpd-1.3.3/compat.h b/pptpd-1.3.3/compat.h
deleted file mode 100644
index d176f98..0000000
--- a/pptpd-1.3.3/compat.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * compat.h
- *
- * Compatibility functions for different OSes (prototypes)
- *
- * $Id: compat.h,v 1.5 2005/01/05 11:01:51 quozl Exp $
- */
-
-#ifndef _PPTPD_COMPAT_H
-#define _PPTPD_COMPAT_H
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#if HAVE_SETSID
-#define SETSIDPGRP setsid
-#else
-#define SETSIDPGRP setpgrp
-#endif
-
-#include <sys/types.h>
-
-#ifndef HAVE_STRLCPY
-/* void since to be fast and portable, we use strncpy, but this
- * means we don't know how many bytes were copied
- */
-extern void strlcpy(char *dst, const char *src, size_t size);
-#endif /* !HAVE_STRLCPY */
-
-#ifndef HAVE_MEMMOVE
-extern void *memmove(void *dst, const void *src, size_t size);
-#endif /* !HAVE_MEMMOVE */
-
-#ifndef HAVE_OPENPTY
-/* Originally from code by C. S. Ananian */
-
-/* These are the Linux values - and fairly sane defaults.
- * Since we search from the start and just skip errors, they'll do.
- * Note that Unix98 has an openpty() call so we don't need to worry
- * about the new pty names here.
- */
-#define PTYDEV "/dev/ptyxx"
-#define TTYDEV "/dev/ttyxx"
-#define PTYMAX 11
-#define TTYMAX 11
-#define PTYCHAR1 "pqrstuvwxyzabcde"
-#define PTYCHAR2 "0123456789abcdef"
-
-/* Dummy the last 2 args, so we don't have to find the right include
- * files on every OS to define the needed structures.
- */
-extern int openpty(int *, int *, char *, void *, void *);
-#endif /* !HAVE_OPENPTY */
-
-#ifndef HAVE_STRERROR
-extern char *strerror(int);
-#endif
-
-extern void my_setproctitle(int argc, char **argv, const char *format, ...)
- __attribute__ ((format (printf, 3, 4)));
-
-/* signal to pipe delivery implementation */
-
-/* create a signal pipe, returns 0 for success, -1 with errno for failure */
-int sigpipe_create();
-
-/* generic handler for signals, writes signal number to pipe */
-void sigpipe_handler(int signum);
-
-/* assign a signal number to the pipe */
-void sigpipe_assign(int signum);
-
-/* return the signal pipe read file descriptor for select(2) */
-int sigpipe_fd();
-
-/* read and return the pending signal from the pipe */
-int sigpipe_read();
-
-void sigpipe_close();
-
-#endif /* !_PPTPD_COMPAT_H */