xrootd
Loading...
Searching...
No Matches
Macros | Functions
XrdSysPlatform.hh File Reference
#include <cstdint>
#include <cstdlib>
Include dependency graph for XrdSysPlatform.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STATFS   statvfs
 
#define STATFS_BUFF   struct statvfs
 
#define FS_BLKFACT   1
 
#define SHMDT_t   char *
 
#define FLOCK_t   flock_t
 
#define GTZ_NULL   (void *)0
 
#define SOCKLEN_t   socklen_t
 
#define PTR2INT(x)   int(x)
 
#define O_BINARY   0
 
#define Netdata_t   char *
 
#define Sokdata_t   void *
 
#define IOV_INIT(data, dlen)   data,dlen
 
#define MAKEDIR(path, mode)   mkdir(path,mode)
 
#define CHMOD(path, mode)   chmod(path,mode)
 
#define net_errno   errno
 
#define XRDABS(x)   (x < 0 ? -x : x)
 
#define LT_MODULE_EXT   ".so"
 

Functions

static uint16_t bswap (uint16_t x)
 
static uint32_t bswap (uint32_t x)
 
static uint64_t bswap (uint64_t x)
 
size_t strlcpy (char *dst, const char *src, size_t size)
 

Macro Definition Documentation

◆ CHMOD

#define CHMOD (   path,
  mode 
)    chmod(path,mode)

◆ FLOCK_t

#define FLOCK_t   flock_t

◆ FS_BLKFACT

#define FS_BLKFACT   1

◆ GTZ_NULL

#define GTZ_NULL   (void *)0

◆ IOV_INIT

#define IOV_INIT (   data,
  dlen 
)    data,dlen

◆ LT_MODULE_EXT

#define LT_MODULE_EXT   ".so"

◆ MAKEDIR

#define MAKEDIR (   path,
  mode 
)    mkdir(path,mode)

◆ net_errno

#define net_errno   errno

◆ Netdata_t

#define Netdata_t   char *

◆ O_BINARY

#define O_BINARY   0

◆ PTR2INT

#define PTR2INT (   x)    int(x)

◆ SHMDT_t

#define SHMDT_t   char *

◆ SOCKLEN_t

#define SOCKLEN_t   socklen_t

◆ Sokdata_t

#define Sokdata_t   void *

◆ STATFS

#define STATFS   statvfs

◆ STATFS_BUFF

#define STATFS_BUFF   struct statvfs

◆ XRDABS

#define XRDABS (   x)    (x < 0 ? -x : x)

Function Documentation

◆ bswap() [1/3]

static uint16_t bswap ( uint16_t  x)
inlinestatic

Referenced by XrdZip::from_buffer(), and XrdZip::to().

◆ bswap() [2/3]

static uint32_t bswap ( uint32_t  x)
inlinestatic

◆ bswap() [3/3]

static uint64_t bswap ( uint64_t  x)
inlinestatic

◆ strlcpy()

size_t strlcpy ( char *  dst,
const char *  src,
size_t  size 
)
extern