xrootd
|
#include "XrdClient/XrdClientAdmin.hh"
#include "XrdClient/XrdClientDebug.hh"
#include "XrdClient/XrdClientVector.hh"
#include "XrdOuc/XrdOucString.hh"
#include <rpc/types.h>
#include <stdlib.h>
#include <stdio.h>
Functions | |
void | SharedBufRealloc (long size) |
void | SharedBufFree () |
vecString * | Tokenize (const char *str, char sep) |
void | BuildBoolAnswer (vecBool &vb) |
bool | XrdInitialize (const char *url, const char *EnvValues) |
bool | XrdTerminate () |
char * | XrdSysStatX (const char *paths_list) |
char * | XrdExistFiles (const char *filepaths) |
char * | XrdExistDirs (const char *filepaths) |
char * | XrdIsFileOnline (const char *filepaths) |
bool | XrdMv (const char *fileSrc, const char *fileDest) |
bool | XrdMkdir (const char *dir, int user, int group, int other) |
bool | XrdChmod (const char *file, int user, int group, int other) |
bool | XrdRm (const char *file) |
bool | XrdRmdir (const char *path) |
bool | XrdPrepare (const char *filepaths, unsigned char opts, unsigned char prty) |
char * | XrdDirList (const char *dir) |
char * | XrdGetChecksum (const char *path) |
char * | XrdGetCurrentHost () |
bool | XrdStat (const char *fname, long *id, long long *size, long *flags, long *modtime) |
Variables | |
const char * | XrdClientAdmin_cCVSID = "$Id$" |
char * | sharedbuf |
XrdClientAdmin * | adminst = NULL |
void BuildBoolAnswer | ( | vecBool & | vb | ) |
References XrdClientVector< T >::GetSize(), sharedbuf, and SharedBufRealloc().
Referenced by XrdExistDirs(), XrdExistFiles(), and XrdIsFileOnline().
void SharedBufFree | ( | ) |
References sharedbuf.
Referenced by XrdTerminate().
void SharedBufRealloc | ( | long | size | ) |
References sharedbuf.
Referenced by BuildBoolAnswer(), XrdDirList(), XrdExistDirs(), XrdExistFiles(), XrdGetChecksum(), XrdGetCurrentHost(), XrdIsFileOnline(), and XrdSysStatX().
vecString* Tokenize | ( | const char * | str, |
char | sep | ||
) |
References XrdOucString::length(), XrdClientVector< T >::Push_back(), STR_NPOS, and XrdOucString::tokenize().
Referenced by XrdTokenAuthzOfsFile::open(), XrdTokenAuthzOfs::rem(), XrdTokenAuthzOfs::stat(), XrdExistDirs(), XrdExistFiles(), XrdInitialize(), XrdIsFileOnline(), XrdPrepare(), and XrdSysStatX().
bool XrdChmod | ( | const char * | file, |
int | user, | ||
int | group, | ||
int | other | ||
) |
References adminst, and XrdClientAdmin::Chmod().
Referenced by XS().
char* XrdDirList | ( | const char * | dir | ) |
References XrdOucString::c_str(), XrdClientAdmin::DirList(), joinStrings(), XrdOucString::length(), sharedbuf, and SharedBufRealloc().
Referenced by XS().
char* XrdExistDirs | ( | const char * | filepaths | ) |
References BuildBoolAnswer(), XrdClientAdmin::ExistDirs(), FALSE, sharedbuf, SharedBufRealloc(), and Tokenize().
Referenced by XS().
char* XrdExistFiles | ( | const char * | filepaths | ) |
References BuildBoolAnswer(), XrdClientAdmin::ExistFiles(), FALSE, sharedbuf, SharedBufRealloc(), and Tokenize().
Referenced by XS().
char* XrdGetChecksum | ( | const char * | path | ) |
References XrdClientAdmin::GetChecksum(), sharedbuf, and SharedBufRealloc().
Referenced by XS().
char* XrdGetCurrentHost | ( | ) |
References XrdOucString::c_str(), XrdClientAbs::GetCurrentUrl(), XrdClientUrlInfo::Host, XrdOucString::length(), sharedbuf, and SharedBufRealloc().
Referenced by XS().
bool XrdInitialize | ( | const char * | url, |
const char * | EnvValues | ||
) |
References adminst, XrdClientAdmin::Connect(), DebugSetLevel, EnvGetLong, EnvPutInt, EnvPutString, XrdClientVector< T >::GetSize(), NAME_DEBUG, sharedbuf, and Tokenize().
Referenced by XS().
char* XrdIsFileOnline | ( | const char * | filepaths | ) |
References BuildBoolAnswer(), FALSE, XrdClientAdmin::IsFileOnline(), sharedbuf, SharedBufRealloc(), and Tokenize().
Referenced by XS().
bool XrdMkdir | ( | const char * | dir, |
int | user, | ||
int | group, | ||
int | other | ||
) |
References adminst, and XrdClientAdmin::Mkdir().
Referenced by XS().
bool XrdMv | ( | const char * | fileSrc, |
const char * | fileDest | ||
) |
References adminst, and XrdClientAdmin::Mv().
Referenced by XS().
bool XrdPrepare | ( | const char * | filepaths, |
unsigned char | opts, | ||
unsigned char | prty | ||
) |
References adminst, XrdClientAdmin::Prepare(), and Tokenize().
Referenced by XS().
bool XrdRm | ( | const char * | file | ) |
References adminst, and XrdClientAdmin::Rm().
Referenced by XS().
bool XrdRmdir | ( | const char * | path | ) |
References adminst, and XrdClientAdmin::Rmdir().
Referenced by XS().
bool XrdStat | ( | const char * | fname, |
long * | id, | ||
long long * | size, | ||
long * | flags, | ||
long * | modtime | ||
) |
References XrdClientAdmin::Stat().
Referenced by XS().
char* XrdSysStatX | ( | const char * | paths_list | ) |
References XrdClientVector< T >::GetSize(), sharedbuf, SharedBufRealloc(), XrdClientAdmin::SysStatX(), and Tokenize().
Referenced by XS().
bool XrdTerminate | ( | ) |
References adminst, SharedBufFree(), and TRUE.
Referenced by XS().
XrdClientAdmin* adminst = NULL |
Referenced by XrdChmod(), XrdInitialize(), XrdMkdir(), XrdMv(), XrdPrepare(), XrdRm(), XrdRmdir(), and XrdTerminate().
char* sharedbuf |
const char* XrdClientAdmin_cCVSID = "$Id$" |