#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 <cstdlib>
#include <sys/types.h>
#include <sys/dir.h>
#include <sys/statfs.h>
#include <utime.h>
#include <syslog.h>
#include <sys/stat.h>
#include <csetjmp>
#include <csignal>
#include <sys/param.h>
#include <pwd.h>
#include <grp.h>
#include <cerrno>
#include <sys/resource.h>
#include <sys/wait.h>
#include <ctime>
#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>
Classes | |
struct | Signalmap_t |
class | TFdSet |
struct | TUtmpContent |
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 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 = "~*[]{}?$" |
Definition at line 4006 of file TUnixSystem.cxx.
Definition at line 178 of file TUnixSystem.cxx.
#define UTMP_FILE "/etc/utmp" |
Definition at line 188 of file TUnixSystem.cxx.
Get shared library search path.
Static utility function.
The runtime cost (syscalls) of this function can be shortened by injecting a pre-calculated result for the system library search path in form of ‘export ROOT_LDSYSPATH=$(LD_DEBUG=libs LD_PRELOAD=DOESNOTEXIST ls /tmp/DOESNOTEXIST 2>&1 | grep -m 1 "system search path" | sed 's/.*=//g’ | awk '//{print $1}')` This might be useful in scenarios, where ROOT is instantiated many times.
Definition at line 4609 of file TUnixSystem.cxx.
Definition at line 415 of file TUnixSystem.cxx.
Unix signal handler.
Definition at line 407 of file TUnixSystem.cxx.
Call the signal handler associated with the signal.
Definition at line 3637 of file TUnixSystem.cxx.
|
static |
Definition at line 364 of file TUnixSystem.cxx.
const char* kProtocolName = "tcp" |
Definition at line 353 of file TUnixSystem.cxx.
const char* kServerPath = "/tmp" |
Definition at line 352 of file TUnixSystem.cxx.
const char* kShellMeta = "~*[]{}?$" |
Definition at line 1737 of file TUnixSystem.cxx.