Commit 6fdcfb3c authored by David Byers's avatar David Byers

Changed errno to isc_errno

parent 33dfec50
......@@ -262,7 +262,7 @@ IscSession
IscSessionState state;
int fd;
int mode;
int errno;
int isc_errno;
IscMsgQueue * rd_msg_q;
IscMsgQueue * wr_msg_q;
......
......@@ -205,7 +205,7 @@ RETRY:
* Connect request failed
*/
scb->state = ISC_STATE_CLOSING;
scb->errno = errno;
scb->isc_errno = errno;
event->event = ISC_EVENT_REJECTED;
event->session = scb;
}
......@@ -273,7 +273,7 @@ RETRY:
else
{
scb->state = ISC_STATE_CLOSING;
scb->errno = errno;
scb->isc_errno = errno;
}
}
......
......@@ -77,7 +77,7 @@ void isc_oflush(IscSession *scb)
if (isc_sizequeue(scb->wr_msg_q) >= scb->cfg->max.queuedsize)
{
scb->state = ISC_STATE_CLOSING;
scb->errno = E2BIG;
scb->isc_errno = E2BIG;
scb->sendindex = 0; /* And lets fake a write */
return;
}
......@@ -112,12 +112,12 @@ void isc_oflush(IscSession *scb)
case EPIPE:
scb->state = ISC_STATE_CLOSING;
scb->errno = errno;
scb->isc_errno = errno;
return;
default:
scb->state = ISC_STATE_CLOSING;
scb->errno = errno;
scb->isc_errno = errno;
scb->sendindex = 0;
return;
}
......
......@@ -225,7 +225,7 @@ isc_create(IscSessionConfig *cfg, IscHandler *fun)
scb->fd = -1;
scb->type = ISC_TYPE_UNKNOWN;
scb->state = ISC_STATE_UNKNOWN;
scb->errno = 0;
scb->isc_errno = 0;
scb->rd_msg_q = NULL;
scb->wr_msg_q = NULL;
scb->handlers = NULL;
......
......@@ -46,7 +46,7 @@
/*extern void *memcpy(void *, const void *, int);*/
extern int socket(int, int, int);
/*extern int setsockopt(int, int, int, char *, int);*/
extern int listen(int, int);
/* extern int listen(int, int); */
/*extern int connect(int, struct sockaddr *, int);*/
/*extern int bind(int, struct sockaddr *, int);*/
extern int close(int);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment