#include <XrdSysUtils.hh>
◆ XrdSysUtils()
XrdSysUtils::XrdSysUtils |
( |
| ) |
|
|
inline |
Constructor and destructor.
◆ ~XrdSysUtils()
XrdSysUtils::~XrdSysUtils |
( |
| ) |
|
|
inline |
◆ 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: