rootx.cxx File Reference

#include "RConfigure.h"
#include "Rtypes.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <errno.h>
#include <netdb.h>
#include <sys/socket.h>
#include <string>
#include <utmp.h>

Go to the source code of this file.

Defines

#define STRUCT_UTMP   struct utmp
#define UTMP_FILE   "/etc/utmp"
#define ROOTBINARY   "root.exe"

Functions

void PopupLogo (bool)
void WaitLogo ()
void PopdownLogo ()
void CloseDisplay ()
static int GetErrno ()
static void ResetErrno ()
static int ReadUtmp ()
static STRUCT_UTMP * SearchEntry (int n, const char *tty)
static const char * GetExePath ()
static void SetRootSys ()
static void SetDisplay ()
static void SetLibraryPath ()
static void SigUsr1 (int)
static void WaitChild (int childpid)
static void PrintUsage (char *pname)
int main (int argc, char **argv)

Variables

static STRUCT_UTMP * gUtmpContents
static bool gNoLogo = false
const int kMAXPATHLEN = 8192


Define Documentation

#define ROOTBINARY   "root.exe"

Definition at line 89 of file rootx.cxx.

Referenced by main().

#define STRUCT_UTMP   struct utmp

Definition at line 72 of file rootx.cxx.

#define UTMP_FILE   "/etc/utmp"

Definition at line 83 of file rootx.cxx.


Function Documentation

void CloseDisplay (  ) 

Definition at line 498 of file rootxx.cxx.

References close, and gDisplay.

static int GetErrno (  )  [static]

Definition at line 103 of file rootx.cxx.

Referenced by G__G__IO_111_0_41(), ProofdExec(), RootdCheckTab(), RootdCloseTab(), RootdGet(), RootdGetDirEntry(), RootdGetFile(), RootdGets(), RootdPut(), RootdPutFile(), and WaitChild().

static const char* GetExePath (  )  [static]

Definition at line 170 of file rootx.cxx.

References buf, and snprintf.

int main ( int  argc,
char **  argv 
)

Definition at line 375 of file rootx.cxx.

References CloseDisplay(), fork(), fprintf(), getenv(), i, int, PopupLogo(), PrintUsage(), ROOTBINARY, SetDisplay(), SetLibraryPath(), SetRootSys(), SigUsr1(), snprintf, void, WaitChild(), and WaitLogo().

void PopdownLogo (  ) 

Definition at line 491 of file rootxx.cxx.

References gMayPopdown.

Referenced by SigUsr1().

void PopupLogo ( bool   ) 

Definition at line 335 of file rootxx.cxx.

References depth, DrawCredits(), False, gAbout, gCreditsHeight, gCreditsPixmap, gCreditsRect, gCreditsWidth, gDisplay, GetRootLogo(), gettimeofday(), gFont, gGC, gHeight, gLogoPixmap, gLogoWindow, gPopupTime, gWidth, ReadContributors(), root, True, x, and y.

Referenced by main().

static void PrintUsage ( char *  pname  )  [static]

Definition at line 354 of file rootx.cxx.

References fprintf().

static int ReadUtmp (  )  [static]

Definition at line 121 of file rootx.cxx.

References EOF, fclose(), fopen, fread, free(), fstat, malloc(), size, size_t, stat, STRUCT_UTMP, and UTMP_FILE.

Referenced by SetDisplay().

static void ResetErrno (  )  [static]

Definition at line 112 of file rootx.cxx.

Referenced by G__G__IO_111_0_42(), ProofdExec(), RootdCheckTab(), RootdCloseTab(), RootdGet(), RootdGetFile(), RootdGets(), RootdPut(), RootdPutFile(), and WaitChild().

static STRUCT_UTMP* SearchEntry ( int  n,
const char *  tty 
) [static]

Definition at line 158 of file rootx.cxx.

References STRUCT_UTMP.

Referenced by SetDisplay().

static void SetDisplay (  )  [static]

Definition at line 217 of file rootx.cxx.

References fprintf(), free(), getenv(), putenv, ReadUtmp(), SearchEntry(), sprintf(), and STRUCT_UTMP.

Referenced by G__G__Base2_242_0_13(), and main().

static void SetLibraryPath (  )  [static]

Definition at line 262 of file rootx.cxx.

References getenv(), putenv, and sprintf().

Referenced by main().

static void SetRootSys (  )  [static]

Definition at line 195 of file rootx.cxx.

References env, GetExePath(), putenv, s, snprintf, and strlcpy().

Referenced by TUnixSystem::Init(), and main().

static void SigUsr1 ( int   )  [static]

Definition at line 318 of file rootx.cxx.

References PopdownLogo().

Referenced by main().

static void WaitChild ( int  childpid  )  [static]

Definition at line 326 of file rootx.cxx.

References GetErrno(), ResetErrno(), WEXITSTATUS, WIFEXITED, WIFSIGNALED, and WTERMSIG.

Referenced by main().

void WaitLogo (  ) 

Definition at line 413 of file rootxx.cxx.

References DrawVersion(), False, gAbout, gCreditsHeight, gCreditsPixmap, gCreditsRect, gDisplay, gDone, gFont, gGC, gLogoPixmap, gLogoWindow, gMayPopdown, gStayUp, int, ScrollCredits(), Sleep(), and StayUp().

Referenced by main().


Variable Documentation

bool gNoLogo = false [static]

Definition at line 99 of file rootx.cxx.

STRUCT_UTMP* gUtmpContents [static]

Definition at line 98 of file rootx.cxx.

const int kMAXPATHLEN = 8192

Definition at line 100 of file rootx.cxx.


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