56#define __attribute__(x)
70#define kXR_PROTOCOLVERSION 0x00000520
71#define kXR_PROTXATTVERSION 0x00000500
72#define kXR_PROTTLSVERSION 0x00000500
73#define kXR_PROTPGRWVERSION 0x00000511
74#define kXR_PROTCLONEVERSION 0x00000520
75#define kXR_PROTSIGNVERSION 0x00000310
76#define kXR_PROTOCOLVSTRING "5.2.0"
332 static char*
NVecInsert(
const char *name,
char *buffer );
336 static char*
VVecInsert(
const char *value,
char *buffer );
344 static char*
NVecRead(
char* buffer,
char *&name );
1168#define kXR_secOData 0x01
1169#define kXR_secOFrce 0x02
1173#define kXR_secNone 0
1174#define kXR_secCompatible 1
1175#define kXR_secStandard 2
1176#define kXR_secIntense 3
1177#define kXR_secPedantic 4
1181#define kXR_signIgnore 0
1182#define kXR_signLikely 1
1183#define kXR_signNeeded 2
1188#define kXR_secver_0 0
1192#define kXR_DataServer 1
1193#define kXR_LBalServer 0
1198#define kXR_isManager 0x00000002
1199#define kXR_isServer 0x00000001
1200#define kXR_attrCache 0x00000080
1201#define kXR_attrMeta 0x00000100
1202#define kXR_attrProxy 0x00000200
1203#define kXR_attrSuper 0x00000400
1204#define kXR_attrVirtRdr 0x00000800
1208#define kXR_recoverWrts 0x00001000
1209#define kXR_collapseRedir 0x00002000
1210#define kXR_ecRedir 0x00004000
1214#define kXR_anongpf 0x00800000
1215#define kXR_supgpf 0x00400000
1216#define kXR_suppgrw 0x00200000
1217#define kXR_supposc 0x00100000
1221#define kXR_haveTLS 0x80000000
1222#define kXR_gotoTLS 0x40000000
1223#define kXR_tlsAny 0x1f000000
1224#define kXR_tlsData 0x01000000
1225#define kXR_tlsGPF 0x02000000
1226#define kXR_tlsLogin 0x04000000
1227#define kXR_tlsSess 0x08000000
1228#define kXR_tlsTPC 0x10000000
1229#define kXR_tlsGPFA 0x20000000
1242#define kXR_ShortProtRespLen sizeof(ServerResponseBody_Protocol)-\
1243 sizeof(ServerResponseReqs_Protocol)
1370#if !defined(ENOTBLK)
1373#if !defined(ETXTBSY)
1376#if !defined(ENOBUFS)
1379#if !defined(ENETUNREACH)
1380#define ENETUNREACH 114
1385#define ENOATTR ENODATA
1389#define EBADRQC EBADRPC
1405 {
if (rc < 0) rc = -rc;
1422 case ENOTEMPTY: [[fallthrough]];
1492 default:
return ENOMSG;
1535#define kXR_maxReqRetry 10
static const int kXR_ckpRollback
struct ClientTruncateRequest truncate
ServerResponseBody_Bind bind
struct ClientFattrRequest fattr
static const int kXR_ckpMinMax
struct ClientSigverRequest sigver
ServerResponseStatus status
struct ClientCloseRequest close
struct ClientPgReadRequest pgread
struct ClientRequestHdr header
union ServerResponse::@040373375333017131300127053271011057331004327334 body
struct ClientSetRequest set
struct ClientMkdirRequest mkdir
struct ClientAuthRequest auth
struct ClientDirlistRequest dirlist
static const int kXR_ckpXeq
ServerResponseBody_Attn attn
struct ClientPgWriteRequest pgwrite
ServerResponseBody_Waitresp waitresp
struct ClientReadVRequest readv
ServerResponseBody_Wait wait
struct ClientPingRequest ping
ServerResponseBody_pgWrite pgwrite
struct ClientOpenRequest open
struct ServerResponseBody_Status bdy
struct ClientRequestHdr header
ServerResponseHeader resphdr
struct ClientWriteVRequest writev
ServerResponseSVec_Protocol secvec
union ServerResponseV2::@207342300141235315373173036347114307032363217365 info
struct ClientLoginRequest login
ServerResponseBody_Buffer buffer
struct ClientRmRequest rm
struct ClientChmodRequest chmod
ServerResponseBody_Protocol protocol
ServerResponseBody_Authmore authmore
struct ClientSigverRequest sigver
struct ClientQueryRequest query
struct ClientReadRequest read
struct ClientMvRequest mv
char chkszreq[25-sizeof(ClientRequest)]
struct ClientChkPointRequest chkpoint
struct ClientBindRequest bind
struct ServerResponseHeader hdr
ServerResponseBody_Status status
struct ClientRmdirRequest rmdir
char chkszrsp[9-sizeof(ServerResponseHeader)]
static const int kXR_ckpCommit
struct ClientEndsessRequest endsess
struct ClientSyncRequest sync
ServerResponseHeader resphdr
struct ClientPrepareRequest prepare
static const int kXR_ckpQuery
struct ClientStatRequest stat
ServerResponseBody_pgRead pgread
ServerResponseBody_Error error
struct ClientWriteRequest write
ServerResponseReqs_Protocol secreq
ServerResponseBody_Login login
struct ClientProtocolRequest protocol
struct ClientLocateRequest locate
struct ClientGPfileRequest gpfile
ServerResponseBody_Redirect redirect
struct ClientCloneRequest clone
static const int kXR_ckpBegin
unsigned long long kXR_unt64
static int toErrno(int xerr)
kXR_int32 ServerResponseType
static const char * reqName(kXR_unt16 reqCode)
static const char * errName(kXR_int32 errCode)
static int mapError(int rc)
static const int maxCloneln
static const int kXR_pgUnitSZ
static const int kXR_statusBodyLen
static const int kXR_pgPageSZ
static const int wlItemLen
static const int maxRvecln
static const int maxRVdsz
struct ServerResponseBifs_Protocol bifReqs
static const int maxRvecsz
static const int clItemLen
static const int maxClonesz
static const int minRVbsz
static const kXR_char kXR_AnyPath
static const int kXR_pgMaxEpr
struct ServerResponseReqs_Protocol secReqs
static const int maxWvecsz
static const int maxWvecln
static const int kXR_pgPageBL
static const int kXR_pgMaxEos
static const int rlItemLen
static const int kXR_pgRetry
static char * VVecInsert(const char *value, char *buffer)
static char * NVecRead(char *buffer, kXR_unt16 &rc)
static char * VVecRead(char *buffer, kXR_int32 &len)
static char * NVecInsert(const char *name, char *buffer)
static const kXR_int32 doSync