"Fossies" - the Fresh Open Source Software Archive

Member "pidentd-3.0.19/src/pidentd.h" (14 Jan 2000, 1526 Bytes) of package /linux/misc/old/pidentd-3.0.19.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "pidentd.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2 ** pidentd.h - Definitions needing global visibility
    3 **
    4 ** Copyright (c) 1997 Peter Eriksson <pen@lysator.liu.se>
    5 **
    6 ** This program is free software; you can redistribute it and/or
    7 ** modify it as you wish - as long as you don't claim that you wrote
    8 ** it.
    9 **
   10 ** This program is distributed in the hope that it will be useful,
   11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
   12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   13 */
   14 
   15 #ifndef PIDENTD_H
   16 #define PIDENTD_H
   17 
   18 #include "s_pthread.h"
   19 
   20 #include "buffer.h"
   21 #include "avail.h"
   22 #include "daemon.h"
   23 #include "sockaddr.h"
   24 #include "kernel.h"
   25 #include "request.h"
   26 #include "server.h"
   27 #include "send.h"
   28 #include "safeio.h"
   29 #include "support.h"
   30 #include "conf.h"
   31 #include "str2.h"
   32 #include "timeout.h"
   33 
   34 #ifdef HAVE_LIBDES
   35 #include "pdes.h"
   36 #endif
   37 
   38 #include "system.h"
   39 
   40 #ifndef PATH_SYSCONFDIR
   41 #define PATH_SYSCONFDIR "/etc"
   42 #endif
   43 
   44 #ifndef PATH_PIDFILE
   45 #define PATH_PIDFILE "/etc/identd.pid"
   46 #endif
   47 
   48 #ifndef PATH_CFGFILE
   49 #define PATH_CFGFILE PATH_SYSCONFDIR "/identd.conf"
   50 #endif
   51 
   52 #define NO_PID ((pid_t) -1)
   53 #define INIT_PID 1
   54 
   55 #define NO_UID ((uid_t) -1)
   56 #define ROOT_UID 0
   57 #define ROOT_GID 0
   58 
   59 extern int debug;
   60 extern uid_t server_uid;
   61 extern gid_t server_gid;
   62 extern char *argv0;
   63 
   64 #ifdef HAVE_LIBDES
   65 
   66 #ifndef PATH_KEYFILE
   67 #define PATH_KEYFILE PATH_SYSCONFDIR "/identd.key"
   68 #endif
   69 
   70 extern int encrypt_flag;
   71 extern char *encrypt_keyfile;
   72 
   73 #endif
   74 
   75 extern char *pidfile_path;
   76 extern char server_version[];
   77 extern pthread_attr_t cattr_detached;
   78 
   79 #endif