#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 |
void CloseDisplay | ( | ) |
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] |
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 | ( | ) |
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] |
static int ReadUtmp | ( | ) | [static] |
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] |
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] |
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] |
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().
STRUCT_UTMP* gUtmpContents [static] |
const int kMAXPATHLEN = 8192 |