xrootd
Defines | Functions | Variables

XrdWin32.cc File Reference

#include "XrdSys/XrdWin32.hh"
#include <Windows.h>
#include <errno.h>
#include <malloc.h>
Include dependency graph for XrdWin32.cc:

Defines

#define INET_ADDRSTRLEN   16
#define EAFNOSUPPORT   WSAEAFNOSUPPORT
#define IN6ADDRSZ   16
#define INT16SZ   2
#define IS_SOCKET(fd)   ((fd)>=64)

Functions

int sysconf (int what)
int fcntl (int, int, long)
void gethostbyname_r (const char *inetName, struct hostent *hent, char *buff, int buffsize, struct hostent **hp, int *rc)
void gethostbyaddr_r (char *addr, size_t len, int type, struct hostent *hent, char *buff, size_t buffsize, struct hostent **hp, int *rc)
int getservbyname_r (const char *servname, const char *servtype, struct servent *sent, char *buff, size_t buffsize, struct servent **sp)
int gettimeofday (struct timeval *tp, struct timezone *tzp)
void * dlopen (const char *libPath, int opt)
BOOL dlclose (void *lib)
void * dlsym (void *libHandle, const char *pname)
char * dlerror ()
pid_t fork ()
LARGE_INTEGER LargeIntegerSubtract (LARGE_INTEGER a, LARGE_INTEGER b)
static const char * inet_ntop_v4 (const void *src, char *dst, size_t size)
const char * inet_ntop (int af, const void *src, char *dst, size_t size)
static void myerrcode (int err)
static bool is_socket (SOCKET fd)
int close (int fd)
int writev (int fd, const struct iovec iov[], int nvecs)
char * index (const char *str, int c)
char * getlogin ()
char * cuserid (char *s)
int posix_memalign (void **memptr, size_t alignment, size_t size)

Variables

static const unsigned __int64 epoch = 116444736000000000L

Define Documentation

#define EAFNOSUPPORT   WSAEAFNOSUPPORT

Referenced by inet_ntop().

#define IN6ADDRSZ   16
#define INET_ADDRSTRLEN   16

Referenced by inet_ntop_v4().

#define INT16SZ   2
#define IS_SOCKET (   fd)    ((fd)>=64)

Function Documentation

int close ( int  fd)
char* cuserid ( char *  s)

References getlogin().

Referenced by XrdClientSock::Socks4Handshake().

BOOL dlclose ( void *  lib)
char* dlerror ( )
void* dlopen ( const char *  libPath,
int  opt 
)
void* dlsym ( void *  libHandle,
const char *  pname 
)
int fcntl ( int  ,
int  ,
long   
)
pid_t fork ( )
void gethostbyaddr_r ( char *  addr,
size_t  len,
int  type,
struct hostent *  hent,
char *  buff,
size_t  buffsize,
struct hostent **  hp,
int *  rc 
)
void gethostbyname_r ( const char *  inetName,
struct hostent *  hent,
char *  buff,
int  buffsize,
struct hostent **  hp,
int *  rc 
)

Referenced by XrdNetDNS::getHostAddr().

char* getlogin ( )

Referenced by cuserid().

int getservbyname_r ( const char *  servname,
const char *  servtype,
struct servent *  sent,
char *  buff,
size_t  buffsize,
struct servent **  sp 
)

Referenced by XrdNetDNS::getPort().

int gettimeofday ( struct timeval *  tp,
struct timezone tzp 
)
char* index ( const char *  str,
int  c 
)

Referenced by XrdFrmXfrAgent::Add(), XrdCmsPrepare::Add(), XrdCmsManList::Add(), XrdCnsSsi::AddDel(), XrdCnsSsi::AddFile(), XrdClientVector< T >::BufRealloc(), XrdFrmUtils::chkURL(), XrdFrmConfig::ConfigCmd(), XrdFrmConfig::ConfigOTO(), XrdOssSys::ConfigStageC(), XrdFrmConfig::Configure(), XrdConfig::Configure(), XrdCnsConfig::Configure(), XrdXrootdAdmin::do_Red(), XrdCmsNode::do_Select(), XrdOssPath::Extract(), XrdMpxXml::Format(), XrdOfs::fsctl(), XrdOssPath::genPath(), XrdOssPath::genPFN(), XrdCnsDaemon::getLFN(), XrdSecProtocolsss::getLID(), XrdOucArgs::getopt(), XrdMpxXml::getVars(), getXDate(), XrdNetDNS::Host2Dest(), XrdCmsPrepare::Inform(), XrdCnsLog::isEP(), XrdNetDNS::isMatch(), XrdOucReqID::isMine(), XrdOucStream::isSet(), XrdXrootdPrepare::List(), main(), XrdOucUtils::makePath(), XrdFrmUtils::MapM2O(), XrdCnsLogServer::Massage(), XrdSfsNative::Mkpath(), XrdOssSys::Mkpath(), XrdFrmXfrQueue::Notify(), XrdBwmFile::open(), XrdPssSys::P2URL(), XrdOucMsubs::Parse(), XrdOssCache::Parse(), XrdOfsEvs::Parse(), XrdFrmAdmin::ParseKeep(), XrdFrmAdmin::ParseOwner(), XrdFrmAdmin::ParseSpace(), XrdCmsConfig::PidFile(), XrdOssPath::posCname(), XrdOfsHandle::PoscSet(), XrdCmsReq::Reply_Redirect(), XrdXrootdProtocol::rpCheck(), XrdXrootdPrepare::Scrub(), XrdLinkMatch::Set(), XrdPssSys::T2UID(), XrdLink::Terminate(), XrdFrmTransfer::TrackDC(), XrdOucStream::vSubs(), XrdOfs::xforward(), XrdCmsConfig::xmang(), XrdCmsClientConfig::xmang(), XrdXrootdProtocol::xmon(), XrdFrmConfig::xmon(), XrdPssSys::xorig(), XrdConfig::xprot(), XrdCmsClientMan::XrdCmsClientMan(), XrdCmsNode::XrdCmsNode(), XrdFfsMisc_get_all_urls_real(), XrdFfsMisc_get_current_url(), XrdOucNList::XrdOucNList(), XrdOucStream::XrdOucStream(), XrdPosixXrootPath::XrdPosixXrootPath(), XrdSecProtBind::XrdSecProtBind(), XrdXrootdProtocol::xred(), XrdConfig::xrep(), and XrdCmsConfig::xrmtrt().

const char* inet_ntop ( int  af,
const void *  src,
char *  dst,
size_t  size 
)
static const char* inet_ntop_v4 ( const void *  src,
char *  dst,
size_t  size 
) [static]

References INET_ADDRSTRLEN.

Referenced by inet_ntop().

static bool is_socket ( SOCKET  fd) [static]

References FALSE, and TRUE.

Referenced by close(), and writev().

LARGE_INTEGER LargeIntegerSubtract ( LARGE_INTEGER  a,
LARGE_INTEGER  b 
)
static void myerrcode ( int  err) [static]

Referenced by close().

int posix_memalign ( void **  memptr,
size_t  alignment,
size_t  size 
)
int sysconf ( int  what)
int writev ( int  fd,
const struct iovec  iov[],
int  nvecs 
)

References iovec::iov_len, and is_socket().


Variable Documentation

const unsigned __int64 epoch = 116444736000000000L [static]