Lines Matching refs:err
50 #define RETURN_ERROR(err, msg) \
52 setLastError(err, msg); \
53 return err; \
75 setLastError(jdwpTransportError err, char *newmsg) {
80 if (err == JDWPTRANSPORT_ERROR_IO_ERROR) {
89 if (err == JDWPTRANSPORT_ERROR_IO_ERROR) {
121 int err;
125 err = dbgsysSetSocketOption(fd, SO_REUSEADDR, JNI_TRUE, dontcare);
126 if (err < 0) {
130 err = dbgsysSetSocketOption(fd, TCP_NODELAY, JNI_TRUE, dontcare);
131 if (err < 0) {
270 int err;
280 err = parseAddress(address, &sa, INADDR_ANY);
281 if (err != JDWPTRANSPORT_ERROR_NONE) {
282 return err;
290 err = setOptions(serverSocketFD);
291 if (err) {
292 return err;
295 err = dbgsysBind(serverSocketFD, (struct sockaddr *)&sa, sizeof(sa));
296 if (err < 0) {
300 err = dbgsysListen(serverSocketFD, 1);
301 if (err < 0) {
309 err = dbgsysGetSocketName(serverSocketFD,
327 int socketLen, err;
390 err = handshake(socketFD, handshakeTimeout);
396 if (err) {
433 int err;
439 err = parseAddress(addressString, &sa, 0x7f000001);
440 if (err != JDWPTRANSPORT_ERROR_NONE) {
441 return err;
449 err = setOptions(socketFD);
450 if (err) {
451 return err;
462 err = dbgsysConnect(socketFD, (struct sockaddr *)&sa, sizeof(sa));
463 if (err == DBG_EINPROGRESS && attachTimeout > 0) {
464 err = dbgsysFinishConnect(socketFD, (long)attachTimeout);
466 if (err == DBG_ETIMEOUT) {
472 if (err < 0) {
480 err = handshake(socketFD, handshakeTimeout);
481 if (err) {
484 return err;