XrdSysUtils Class Reference

#include <XrdSysUtils.hh>

List of all members.

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 (  )  [inline]

Constructor and destructor.

XrdSysUtils::~XrdSysUtils (  )  [inline]

Member Function Documentation

static const char* XrdSysUtils::ExecName (  )  [static]

Get the name of the current executable.

Returns:
the full path of the executable invoked.
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, ...);
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.
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.

numsig - The signal value to be blocked.

Returns:
true - signal is blocked.
false - signal not blocked, errno has teh reason.
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.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 16 Oct 2020 for xrootd by  doxygen 1.6.1