xrootd
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
XrdSysUtils Class Reference

#include <XrdSysUtils.hh>

Public Member Functions

 XrdSysUtils ()
 Constructor and destructor.
 
 ~XrdSysUtils ()
 

Static Public Member Functions

static const char * ExecName ()
 
static int FmtUname (char *buff, int blen)
 
static int GetSigNum (const char *sname)
 
static bool SigBlock ()
 
static bool SigBlock (int numsig)
 

Constructor & Destructor Documentation

◆ XrdSysUtils()

XrdSysUtils::XrdSysUtils ( )
inline

Constructor and destructor.

◆ ~XrdSysUtils()

XrdSysUtils::~XrdSysUtils ( )
inline

Member Function Documentation

◆ ExecName()

static const char * XrdSysUtils::ExecName ( )
static

Get the name of the current executable.

Returns
the full path of the executable invoked.

◆ FmtUname()

static int XrdSysUtils::FmtUname ( char *  buff,
int  blen 
)
static

Format the uname information

Parameters
buff- pointer to the buffer to hold the uname as: <sysname> <release> [<version>] [<machine>]
blen- length of the buffer.
Returns
the output of snprintf(buff, blen, ...);

◆ GetSigNum()

static int XrdSysUtils::GetSigNum ( const char *  sname)
static

Get common signal number.

Parameters
sname- the signal name as in sigxxx or just xxx (see kill).
Returns
=0 - unknown or unsupported signal.
!0 - the corresponding signal number.

◆ SigBlock() [1/2]

static bool XrdSysUtils::SigBlock ( )
static

Block common signals. This must be called at program start.

Returns
true - common signals are blocked.
false - common signals not blocked, errno has teh reason.

◆ SigBlock() [2/2]

static bool XrdSysUtils::SigBlock ( int  numsig)
static

Block a particular signal. This should be called at program start so that the block applies to all threads.

@aparam numsig - The signal value to be blocked.

Returns
true - signal is blocked.
false - signal not blocked, errno has teh reason.

The documentation for this class was generated from the following file: