Lines Matching defs:svr

69 static void OutOfMemory ( FSServer *svr );
73 void _FSFreeServerStructure(FSServer *svr)
75 if (svr->server_name)
76 FSfree(svr->server_name);
77 if (svr->vendor)
78 FSfree(svr->vendor);
80 if (svr->buffer)
81 FSfree(svr->buffer);
83 FSfree(svr);
88 FSServer *svr)
90 if (svr->trans_conn)
91 _FSDisconnectServer(svr->trans_conn);
92 _FSFreeServerStructure(svr);
104 FSServer *svr;
125 if ((svr = FScalloc(1, sizeof(FSServer))) == NULL) {
130 if ((svr->server_name = strdup(server)) == NULL) {
134 if ((svr->trans_conn = _FSConnectServer(svr->server_name)) == NULL) {
138 svr->fd = _FSTransGetConnectionNumber (svr->trans_conn);
150 _FSSendClientPrefix(svr, &client);
153 _FSRead(svr, (char *) &prefix, (long) SIZEOF(fsConnSetup));
161 _FSRead(svr, (char *) alt_data, setuplength);
191 svr->alternate_servers = alts;
192 svr->num_alternates = prefix.num_alternates;
200 _FSRead(svr, (char *) auth_data, setuplength);
208 _FSRead(svr, (char *) &conn, (long) SIZEOF(fsConnSetupAccept));
213 _FSReadPad(svr, (char *) vendor_string, conn.vendor_len);
216 svr->next = (FSServer *) NULL;
217 svr->proto_version = prefix.major_version;
218 svr->release = conn.release_number;
219 svr->max_request_size = conn.max_request_len;
221 svr->event_vec[FS_Error] = _FSUnknownWireEvent;
222 svr->event_vec[FS_Reply] = _FSUnknownWireEvent;
223 svr->wire_vec[FS_Error] = _FSUnknownNativeEvent;
224 svr->wire_vec[FS_Reply] = _FSUnknownNativeEvent;
226 svr->event_vec[i] = _FSUnknownWireEvent;
227 svr->wire_vec[i] = _FSUnknownNativeEvent;
229 svr->resource_id = 1;
231 svr->vendor = vendor_string;
232 svr->vendor[conn.vendor_len] = '\0';
234 svr->vnumber = FS_PROTOCOL;
235 svr->request = 0;
236 svr->last_request_read = 0;
237 svr->last_req = (char *) &_dummy_request;
240 if ((svr->bufptr = svr->buffer = FSmalloc(BUFSIZE)) == NULL) {
243 svr->bufmax = svr->buffer + BUFSIZE;
246 svr->head = svr->tail = NULL;
247 svr->qlen = 0;
252 (void) FSSynchronize(svr, _FSdebug);
254 svr->next = _FSHeadOfServerList;
255 _FSHeadOfServerList = svr;
257 return (svr);
263 OutOfMemory(svr);