Logo ROOT  
Reference Guide
TUnixSystem.cxx File Reference
#include "RConfigure.h"
#include <ROOT/RConfig.hxx>
#include <ROOT/FoundationUtils.hxx>
#include "TUnixSystem.h"
#include "TROOT.h"
#include "TError.h"
#include "TOrdCollection.h"
#include "TRegexp.h"
#include "TPRegexp.h"
#include "TException.h"
#include "Demangle.h"
#include "TEnv.h"
#include "Getline.h"
#include "TInterpreter.h"
#include "TApplication.h"
#include "TObjString.h"
#include "Riostream.h"
#include "TVirtualMutex.h"
#include "TObjArray.h"
#include <map>
#include <algorithm>
#include <atomic>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/dir.h>
#include <sys/statfs.h>
#include <utime.h>
#include <syslog.h>
#include <sys/stat.h>
#include <setjmp.h>
#include <signal.h>
#include <sys/param.h>
#include <pwd.h>
#include <grp.h>
#include <errno.h>
#include <sys/resource.h>
#include <sys/wait.h>
#include <time.h>
#include <sys/time.h>
#include <sys/file.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/un.h>
#include <netdb.h>
#include <fcntl.h>
#include <utmp.h>
Include dependency graph for TUnixSystem.cxx:

Macros

#define HOWMANY(x, y)   (((x)+((y)-1))/(y))
 
#define REAL_DIR_ENTRY(dp)   (dp->d_ino != 0)
 
#define STRUCT_UTMP   struct utmp
 
#define UTMP_FILE   "/etc/utmp"
 

Functions

static const char * DynamicPath (const char *newpath=0, Bool_t reset=kFALSE)
 Get shared library search path. Static utility function. More...
 
static const char * GetExePath ()
 
static void SigHandler (ESignals sig)
 Unix signal handler. More...
 
static void sighandler (int sig)
 Call the signal handler associated with the signal. More...
 

Variables

static struct Signalmap_t gSignalMap [kMAXSIGNALS]
 
const Int_t kFDSETSIZE = 256
 
const Int_t kNFDBITS = (sizeof(Long_t) * 8)
 
const char * kProtocolName = "tcp"
 
const char * kServerPath = "/tmp"
 
const char * kShellMeta = "~*[]{}?$"
 

Macro Definition Documentation

◆ HOWMANY

#define HOWMANY (   x,
  y 
)    (((x)+((y)-1))/(y))

Definition at line 350 of file TUnixSystem.cxx.

◆ REAL_DIR_ENTRY

#define REAL_DIR_ENTRY (   dp)    (dp->d_ino != 0)

Definition at line 3970 of file TUnixSystem.cxx.

◆ STRUCT_UTMP

#define STRUCT_UTMP   struct utmp

Definition at line 170 of file TUnixSystem.cxx.

◆ UTMP_FILE

#define UTMP_FILE   "/etc/utmp"

Definition at line 180 of file TUnixSystem.cxx.

Function Documentation

◆ DynamicPath()

static const char * DynamicPath ( const char *  newpath = 0,
Bool_t  reset = kFALSE 
)
static

Get shared library search path. Static utility function.

Definition at line 4563 of file TUnixSystem.cxx.

◆ GetExePath()

static const char * GetExePath ( )
static

Definition at line 408 of file TUnixSystem.cxx.

◆ SigHandler()

static void SigHandler ( ESignals  sig)
static

Unix signal handler.

Definition at line 400 of file TUnixSystem.cxx.

◆ sighandler()

static void sighandler ( int  sig)
static

Call the signal handler associated with the signal.

Definition at line 3608 of file TUnixSystem.cxx.

Variable Documentation

◆ gSignalMap

struct Signalmap_t gSignalMap[kMAXSIGNALS]
static
Initial value:
= {
{ SIGBUS, 0, 0, "bus error" },
{ SIGSEGV, 0, 0, "segmentation violation" },
{ SIGSYS, 0, 0, "bad argument to system call" },
{ SIGPIPE, 0, 0, "write on a pipe with no one to read it" },
{ SIGILL, 0, 0, "illegal instruction" },
{ SIGQUIT, 0, 0, "quit" },
{ SIGINT, 0, 0, "interrupt" },
{ SIGWINCH, 0, 0, "window size change" },
{ SIGALRM, 0, 0, "alarm clock" },
{ SIGCHLD, 0, 0, "death of a child" },
{ SIGURG, 0, 0, "urgent data arrived on an I/O channel" },
{ SIGFPE, 0, 0, "floating point exception" },
{ SIGTERM, 0, 0, "termination signal" },
{ SIGUSR1, 0, 0, "user-defined signal 1" },
{ SIGUSR2, 0, 0, "user-defined signal 2" }
}

◆ kFDSETSIZE

const Int_t kFDSETSIZE = 256

Definition at line 357 of file TUnixSystem.cxx.

◆ kNFDBITS

const Int_t kNFDBITS = (sizeof(Long_t) * 8)

Definition at line 353 of file TUnixSystem.cxx.

◆ kProtocolName

const char* kProtocolName = "tcp"

Definition at line 346 of file TUnixSystem.cxx.

◆ kServerPath

const char* kServerPath = "/tmp"

Definition at line 345 of file TUnixSystem.cxx.

◆ kShellMeta

const char* kShellMeta = "~*[]{}?$"

Definition at line 1695 of file TUnixSystem.cxx.