1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- //
- // everything.H -- everything in the way of macros and includes
- //
- // Copyright 2003-2013 Michael Sweet
- // Copyright 2002 Greg Ercolano
- //
- // This program is free software; you can redistribute it and/or modify
- // it under the terms of the GNU General Public Licensse as published by
- // the Free Software Foundation; either version 2 of the License, or
- // (at your option) any later version.
- //
- // This program is distributed in the hope that it will be useful,
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- // GNU General Public License for more details.
- //
- // You should have received a copy of the GNU General Public License
- // along with this program; if not, write to the Free Software
- // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- //
- #ifndef EVERYTHING_H
- #define EVERYTHING_H
- #include "config.h"
- #define _BSD_SIGNALS 1 /* IRIX */
- #define _USE_BSD /* LINUX */
- #define _BSD /* OSF1 */
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <sys/wait.h> // waitpid
- #include <sys/file.h> // flock()
- #include <arpa/inet.h> // inet_ntoa()
- #include <unistd.h>
- #include <signal.h>
- #include <string.h>
- #include <ctype.h>
- #include <stdlib.h>
- #include <netdb.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <errno.h>
- #include <time.h>
- #include <pwd.h>
- #include <grp.h>
- #include <poll.h>
- #include <string>
- #include <vector>
- #include <algorithm>
- #include <sstream>
- using namespace std;
- // Constants...
- #define LINE_LEN 4096
- #define GROUP_MAX 1024
- #define FIELD_MAX 1024
- #define AUTH_FAIL 0 // no auth supplied yet
- #define AUTH_READ 1 // allow reading
- #define AUTH_POST 2 // allow posting
- #define AUTH_ALL 3 // allow read + post
- #define AUTH_NOAUTH 4 // no auth needed
- #include "Configuration.H"
- #endif /*!EVERYTHING_H*/
|