XrdWin32.cc File Reference

#include "XrdSys/XrdWin32.hh"
#include <Windows.h>
#include <errno.h>
#include <malloc.h>

Go to the source code of this file.

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

Definition at line 222 of file XrdWin32.cc.

Referenced by inet_ntop().

#define IN6ADDRSZ   16

Definition at line 225 of file XrdWin32.cc.

#define INET_ADDRSTRLEN   16

Definition at line 221 of file XrdWin32.cc.

Referenced by inet_ntop_v4().

#define INT16SZ   2

Definition at line 229 of file XrdWin32.cc.

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

Definition at line 391 of file XrdWin32.cc.


Function Documentation

int close ( int  fd  ) 

Definition at line 414 of file XrdWin32.cc.

References Init(), is_socket(), myerrcode(), XrdPosix_Close(), and Xunix.

char* cuserid ( char *  s  ) 

Definition at line 478 of file XrdWin32.cc.

References getlogin(), name, and strcpy().

Referenced by XrdClientSock::Socks4Handshake().

BOOL dlclose ( void *  lib  ) 

Definition at line 136 of file XrdWin32.cc.

Referenced by main(), Reflex::SharedLibrary::Unload(), and XrdSysPlugin::~XrdSysPlugin().

char* dlerror (  ) 

Definition at line 146 of file XrdWin32.cc.

References LPVOID, and NULL.

Referenced by XrdCmsSecurity::Configure(), Reflex::SharedLibrary::Error(), XrdCryptoFactory::GetCryptoFactory(), XrdSysPlugin::getPlugin(), XrdSecPManager::ldPO(), XrdProofdClientMgr::LoadSecurity(), main(), XrdXrootdloadFileSystem(), and XrdXrootdloadSecurity().

void* dlopen ( const char *  libPath,
int  opt 
)

Definition at line 131 of file XrdWin32.cc.

Referenced by XrdCmsSecurity::Configure(), XrdClientConn::DoAuthentication(), XrdCryptoFactory::GetCryptoFactory(), XrdSysPlugin::getPlugin(), Init_libRuby(), XrdSecPManager::ldPO(), Reflex::SharedLibrary::Load(), XrdProofdClientMgr::LoadSecurity(), main(), XrdXrootdloadFileSystem(), and XrdXrootdloadSecurity().

void* dlsym ( void *  libHandle,
const char *  pname 
)

Definition at line 141 of file XrdWin32.cc.

Referenced by XrdCmsSecurity::Configure(), XrdClientConn::DoAuthentication(), XrdCryptoFactory::GetCryptoFactory(), XrdSysPlugin::getPlugin(), XrdSecPManager::ldPO(), XrdProofdClientMgr::LoadSecurity(), main(), Reflex::SharedLibrary::Symbol(), XrdXrootdloadFileSystem(), and XrdXrootdloadSecurity().

int fcntl ( int  ,
int  ,
long   
)

Definition at line 29 of file XrdWin32.cc.

pid_t fork (  ) 

Definition at line 159 of file XrdWin32.cc.

References NULL, retval, and TRUE.

Referenced by ROOT::DaemonStart(), do_test(), XrdOucStream::Exec(), XrdScheduler::Fork(), TProofServ::Fork(), RooRealMPFE::initialize(), main(), ROOT::NetOpen(), and XrdOucUtils::Undercover().

void gethostbyaddr_r ( char *  addr,
size_t  len,
int  type,
struct hostent *  hent,
char *  buff,
size_t  buffsize,
struct hostent **  hp,
int *  rc 
)

Definition at line 69 of file XrdWin32.cc.

References hentry.

Referenced by XrdNetDNS::getHostAddr(), XrdNetDNS::getHostName(), and main().

void gethostbyname_r ( const char *  inetName,
struct hostent *  hent,
char *  buff,
int  buffsize,
struct hostent **  hp,
int *  rc 
)

Definition at line 36 of file XrdWin32.cc.

References hentry.

Referenced by XrdNetDNS::getHostAddr().

char* getlogin (  ) 

Definition at line 469 of file XrdWin32.cc.

References DWORD, length, and NULL.

Referenced by cuserid().

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

Definition at line 102 of file XrdWin32.cc.

References NULL.

Referenced by XrdNetDNS::getPort().

int gettimeofday ( struct timeval *  tp,
struct timezone tzp 
)

Definition at line 114 of file XrdWin32.cc.

References RooFitShortHand::L(), and long.

Referenced by aux_rand(), blur_asimage_gauss(), XrdMonCtrArchiver::check4InactiveSenders(), ClassImp(), XrdSysTimer::Delta_Time(), doCp_loc2xrd(), doCp_xrd2loc(), doCp_xrd2xrd(), generateTimestamp(), XrdSecsssKT::genKey(), TGLStopwatch::GetClock(), TUUID::GetRandomInfo(), TUUID::GetSystemTime(), main(), XrdMonSndDummyXrootd::newXrdMonSndStageEntry(), pcregrep(), picture_ximage2asimage(), PopupLogo(), print_summary(), XrdSysTimer::Report(), XrdSysTimer::Reset(), RootdGetFile(), RootdPutFile(), ROOT::rpd_rand(), XrdSecProtocolssl::secServer(), TTimeStamp::Set(), StayUp(), Think(), TUnixSystem::UnixNow(), XrdSysCondVar::WaitMS(), XrdMonDecUserInfo::writeRT2Buffer(), and XrdMonSndCoder::XrdMonSndCoder().

char* index ( const char *  str,
int  c 
)

Definition at line 464 of file XrdWin32.cc.

const char* inet_ntop ( int  af,
const void *  src,
char *  dst,
size_t  size 
)

Definition at line 365 of file XrdWin32.cc.

References EAFNOSUPPORT, inet_ntop_v4(), and NULL.

Referenced by XrdNetSecurity::Authorize(), XrdNetDNS::getAddrName(), XrdNetDNS::getHostID(), XrdNetDNS::getHostName(), and XrdClientUrlInfo::SetAddrFromHost().

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

Definition at line 233 of file XrdWin32.cc.

References a, i, INET_ADDRSTRLEN, n, and NULL.

Referenced by inet_ntop().

static bool is_socket ( SOCKET  fd  )  [static]

Definition at line 394 of file XrdWin32.cc.

References FALSE, retval, and TRUE.

Referenced by close(), and writev().

LARGE_INTEGER LargeIntegerSubtract ( LARGE_INTEGER  a,
LARGE_INTEGER  b 
)

Definition at line 176 of file XrdWin32.cc.

static void myerrcode ( int  err  )  [static]

Definition at line 380 of file XrdWin32.cc.

Referenced by close().

int posix_memalign ( void **  memptr,
size_t  alignment,
size_t  size 
)

Definition at line 486 of file XrdWin32.cc.

References malloc(), and NULL.

Referenced by XrdClientMessage::CreateData(), and XrdCmsRRData::getBuff().

int sysconf ( int  what  ) 

Definition at line 10 of file XrdWin32.cc.

References info.

Referenced by ClassImp(), XrdClientMessage::CreateData(), XrdCmsRRData::getBuff(), mvalloc(), XrdBuffManager::XrdBuffManager(), and XrdNetBufferQ::XrdNetBufferQ().

int writev ( int  fd,
const struct iovec  iov[],
int  nvecs 
)

Definition at line 428 of file XrdWin32.cc.

References alloca(), buffer, DWORD, iovec::iov_len, is_socket(), NULL, and size_t.


Variable Documentation

const unsigned __int64 epoch = 116444736000000000L [static]

Definition at line 112 of file XrdWin32.cc.

Referenced by draw_network(), and DrawMLPoutputMovie().


Generated on Tue Jul 5 16:08:14 2011 for ROOT_528-00b_version by  doxygen 1.5.1