Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 "TEnv.h"
#include "Getline.h"
#include "TInterpreter.h"
#include "TApplication.h"
#include "TObjString.h"
#include "TVirtualMutex.h"
#include "ThreadLocalStorage.h"
#include "TObjArray.h"
#include "snprintf.h"
#include "strlcpy.h"
#include <iostream>
#include <fstream>
#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:

Classes

struct  Signalmap_t
 
class  TFdSet
 
struct  TUtmpContent
 

Namespaces

namespace  ROOT
 tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tbb::task_arena without forward declaring tbb::interface7
 

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=nullptr, Bool_t reset=kFALSE)
 Get shared library search path. Static utility function.
 
static const char * GetExePath ()
 
static void SigHandler (ESignals sig)
 Unix signal handler.
 
static void sighandler (int sig)
 Call the signal handler associated with the signal.
 

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 357 of file TUnixSystem.cxx.

◆ REAL_DIR_ENTRY

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

Definition at line 4004 of file TUnixSystem.cxx.

◆ STRUCT_UTMP

#define STRUCT_UTMP   struct utmp

Definition at line 178 of file TUnixSystem.cxx.

◆ UTMP_FILE

#define UTMP_FILE   "/etc/utmp"

Definition at line 188 of file TUnixSystem.cxx.

Function Documentation

◆ DynamicPath()

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

Get shared library search path. Static utility function.

Definition at line 4597 of file TUnixSystem.cxx.

◆ GetExePath()

static const char * GetExePath ( )
static

Definition at line 415 of file TUnixSystem.cxx.

◆ SigHandler()

static void SigHandler ( ESignals  sig)
static

Unix signal handler.

Definition at line 407 of file TUnixSystem.cxx.

◆ sighandler()

static void sighandler ( int  sig)
static

Call the signal handler associated with the signal.

Definition at line 3635 of file TUnixSystem.cxx.

Variable Documentation

◆ gSignalMap

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

◆ kFDSETSIZE

const Int_t kFDSETSIZE = 256

Definition at line 364 of file TUnixSystem.cxx.

◆ kNFDBITS

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

Definition at line 360 of file TUnixSystem.cxx.

◆ kProtocolName

const char* kProtocolName = "tcp"

Definition at line 353 of file TUnixSystem.cxx.

◆ kServerPath

const char* kServerPath = "/tmp"

Definition at line 352 of file TUnixSystem.cxx.

◆ kShellMeta

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

Definition at line 1738 of file TUnixSystem.cxx.