proofd.cxx File Reference

#include "RConfigure.h"
#include "RConfig.h"
#include <ctype.h>
#include <fcntl.h>
#include <pwd.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <string>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
#include <sys/un.h>
#include "snprintf.h"
#include "proofdp.h"
#include "rsadef.h"
#include "rsalib.h"

Go to the source code of this file.

Functions

void Err (int level, const char *msg, int size)
void ErrFatal (int level, const char *msg, int size)
void ErrSys (int level, const char *msg, int size)
static void ProofdTerm (int)
const char * RerouteUser ()
int RpdProofGetAuthSetup (char **abuf)
void ProofdExec ()
void Usage (const char *name, int rc)
int main (int argc, char **argv)

Variables

int gDebug = 0
const int kMaxSlaves = 32
static std::string gAuthrc
static std::string gConfDir
static std::string gOpenHost
static std::string gRootBinDir
static std::string gRpdAuthTab
static std::string gTmpDir
static std::string gUser
static EService gService = kPROOFD
static int gProtocol = 14
static int gRemPid = -1
static std::string gReadHomeAuthrc = "0"
static int gInetdFlag = 0
static int gMaster = -1
static int gRequireAuth = 1


Function Documentation

void Err ( int  level,
const char *  msg,
int  size 
)

Definition at line 257 of file proofd.cxx.

References kROOTD_ERR, ROOT::NetSend(), and ROOT::Perror().

void ErrFatal ( int  level,
const char *  msg,
int  size 
)

Definition at line 263 of file proofd.cxx.

References kMESS_STRING, ROOT::NetSend(), and ROOT::Perror().

void ErrSys ( int  level,
const char *  msg,
int  size 
)

Definition at line 270 of file proofd.cxx.

References ErrFatal(), and ROOT::Perror().

int main ( int  argc,
char **  argv 
)

Definition at line 773 of file proofd.cxx.

References access, ROOT::DaemonStart(), Err, ErrFatal(), Error, ROOT::ErrorInfo(), ROOT::ErrorInit(), ErrSys(), fprintf(), gAuthrc, gConfDir, gDebug, getenv(), gInetdFlag, gMaster, gProtocol, gReadHomeAuthrc, gRemPid, gRequireAuth, gRootBinDir, gService, gTmpDir, gUser, i, kDMN_HOSTEQ, kDMN_RQAUTH, kDMN_SYSLOG, kErrFatal, ROOT::NetClose(), ROOT::NetInit(), ROOT::NetOpen(), p, ProofdExec(), ProofdTerm(), putenv, ROOT::RpdGenRSAKeys(), ROOT::RpdInit(), ROOT::RpdInitSession(), ROOT::RpdSetErrorHandler(), ROOT::RpdSetSysLogFlag(), s, S_ISREG, snprintf, stat, strtol(), Usage(), W_OK, and X_OK.

void ProofdExec (  ) 

Definition at line 457 of file proofd.cxx.

References buf, close, debug, ROOT::ErrorInfo(), fstat, gAuthrc, gConfDir, gDebug, getenv(), GetErrno(), gMaster, gOpenHost, gReadHomeAuthrc, gRemPid, gRequireAuth, gRootBinDir, gTmpDir, gUser, kMESS_ANY, kPROOF_SETENV, len, name, ROOT::NetGetRemoteHost(), ROOT::NetGetSockFd(), ROOT::NetRecvAllocate(), ROOT::NetSend(), NOFILE, p, putenv, RerouteUser(), ResetErrno(), ROOT::RpdGetClientProtocol(), ROOT::RpdGetKeyRoot(), RpdProofGetAuthSetup(), ROOT::RpdSetSysLogFlag(), snprintf, stat, strlcat(), and strlcpy().

Referenced by main().

static void ProofdTerm ( int   )  [static]

Definition at line 294 of file proofd.cxx.

References ROOT::ErrorInfo(), ROOT::NetClose(), and ROOT::RpdAuthCleanup().

Referenced by main().

const char* RerouteUser (  ) 

Definition at line 309 of file proofd.cxx.

References fclose(), fopen, fstat, gConfDir, getenv(), gUser, i, kMaxSlaves, line, and stat.

Referenced by ProofdExec().

int RpdProofGetAuthSetup ( char **  abuf  ) 

Definition at line 418 of file proofd.cxx.

References ROOT::ErrorInfo(), gDebug, len, ROOT::NetRecv(), ROOT::NetRecvRaw(), ROOT::RpdGetAuthProtocol(), ROOT::RpdGetOffSet(), and ROOT::RpdSecureRecv().

Referenced by ProofdExec().

void Usage ( const char *  name,
int  rc 
)

Definition at line 741 of file proofd.cxx.

References fprintf().


Variable Documentation

std::string gAuthrc [static]

Definition at line 237 of file proofd.cxx.

Referenced by main(), and ProofdExec().

std::string gConfDir [static]

Definition at line 238 of file proofd.cxx.

Referenced by main(), ProofdExec(), and RerouteUser().

int gDebug = 0

Definition at line 231 of file proofd.cxx.

int gInetdFlag = 0 [static]

Definition at line 248 of file proofd.cxx.

int gMaster = -1 [static]

Definition at line 249 of file proofd.cxx.

Referenced by main(), and ProofdExec().

std::string gOpenHost [static]

Definition at line 239 of file proofd.cxx.

Referenced by ProofdExec().

int gProtocol = 14 [static]

Definition at line 245 of file proofd.cxx.

std::string gReadHomeAuthrc = "0" [static]

Definition at line 247 of file proofd.cxx.

Referenced by main(), and ProofdExec().

int gRemPid = -1 [static]

Definition at line 246 of file proofd.cxx.

Referenced by main(), and ProofdExec().

int gRequireAuth = 1 [static]

Definition at line 250 of file proofd.cxx.

Referenced by main(), and ProofdExec().

std::string gRootBinDir [static]

Definition at line 240 of file proofd.cxx.

Referenced by main(), and ProofdExec().

std::string gRpdAuthTab [static]

Definition at line 241 of file proofd.cxx.

EService gService = kPROOFD [static]

Definition at line 244 of file proofd.cxx.

std::string gTmpDir [static]

Definition at line 242 of file proofd.cxx.

Referenced by main(), and ProofdExec().

std::string gUser [static]

Definition at line 243 of file proofd.cxx.

const int kMaxSlaves = 32

Definition at line 235 of file proofd.cxx.

Referenced by RerouteUser().


Generated on Tue Jul 5 16:08:22 2011 for ROOT_528-00b_version by  doxygen 1.5.1