Lines Matching defs:huh

84 attempt_resync (LPCWSTR huh, int s)
86 stub_error (L"lost synchronization with host attempting %s. Error %d", huh, WSAGetLastError ());
91 sockread (LPCWSTR huh, int s, void *str, size_t n)
97 attempt_resync (huh, s);
103 sockwrite (LPCWSTR huh, int s, const void *str, size_t n)
109 attempt_resync (huh, s);
117 getdword (LPCWSTR huh, int s, gdb_wince_id what_this)
126 if (sockread (huh, s, &what, sizeof (what)) != sizeof (what))
127 stub_error (L"error getting record type from host - %s.", huh);
130 if (sockread (huh, s, &n, sizeof (n)) != sizeof (n))
131 stub_error (L"error getting %s from host.", huh);
140 getword (LPCWSTR huh, int s, gdb_wince_id what_this)
149 if (sockread (huh, s, &what, sizeof (what)) != sizeof (what))
150 stub_error (L"error getting record type from host - %s.", huh);
153 if (sockread (huh, s, &n, sizeof (n)) != sizeof (n))
154 stub_error (L"error getting %s from host.", huh);
160 #define gethandle(huh, s, what) (HANDLE) getdword ((huh), (s), (what))
161 #define getpvoid(huh, s, what) (LPVOID) getdword ((huh), (s), (what))
162 #define getlen(huh, s, what) (gdb_wince_len) getword ((huh), (s), (what))
168 getmemory (LPCWSTR huh, int s, gdb_wince_id what, gdb_wince_len *inlen)
176 *inlen = getlen (huh, s, what);
180 if ((gdb_wince_len) sockread (huh, s, p, *inlen) != *inlen)
188 putdword (LPCWSTR huh, int s, gdb_wince_id what, DWORD n)
190 if (sockwrite (huh, s, &what, sizeof (what)) != sizeof (what))
191 stub_error (L"error writing record id for %s to host.", huh);
192 if (sockwrite (huh, s, &n, sizeof (n)) != sizeof (n))
193 stub_error (L"error writing %s to host.", huh);
198 putword (LPCWSTR huh, int s, gdb_wince_id what, WORD n)
200 if (sockwrite (huh, s, &what, sizeof (what)) != sizeof (what))
201 stub_error (L"error writing record id for %s to host.", huh);
202 if (sockwrite (huh, s, &n, sizeof (n)) != sizeof (n))
203 stub_error (L"error writing %s to host.", huh);
207 #define putlen(huh, s, what, n) putword ((huh), (s), (what), (gdb_wince_len) (n))
213 putmemory (LPCWSTR huh, int s, gdb_wince_id what, const void *mem, gdb_wince_len len)
215 putlen (huh, s, what, len);
216 if (((short) len > 0) && (gdb_wince_len) sockwrite (huh, s, mem, len) != len)
224 putresult (LPCWSTR huh, gdb_wince_result res, int s, gdb_wince_id what, const void *mem, gdb_wince_len len)
228 putmemory (huh, s, what, mem, len);