This commit is contained in:
Kelvin Sherlock 2012-05-12 01:25:36 -04:00
parent 5048a815ea
commit 046bbd6a16
3 changed files with 4 additions and 4 deletions

View File

@ -27,8 +27,6 @@ typedef struct Entry {
LongWord cookie; LongWord cookie;
LongWord timeout; LongWord timeout;
Word socket_type;
// select magic. // select magic.
selwakeupfx select_fx; selwakeupfx select_fx;
int select_rd_pid; int select_rd_pid;
@ -54,6 +52,8 @@ typedef struct Entry {
unsigned _LINGER:1; unsigned _LINGER:1;
unsigned _NOSIGPIPE:1; unsigned _NOSIGPIPE:1;
Word _TYPE;
LongWord _SNDLOWAT; LongWord _SNDLOWAT;
LongWord _RCVLOWAT; LongWord _RCVLOWAT;
LongWord _RCVTIMEO; LongWord _RCVTIMEO;

View File

@ -44,7 +44,7 @@ int mattach(int type, void *p1, void *p2, void *p3, void *p4, void *p5)
return ENOMEM; return ENOMEM;
} }
e->select_fx = fx; e->select_fx = fx;
e->socket_type = type; e->_TYPE = type;
*(Word *)p1 = ipid; *(Word *)p1 = ipid;

View File

@ -84,7 +84,7 @@ int mgetsockopt(Entry *e, void *p1, void *p2, void *p3, void *p4, void *p5)
case SO_TYPE: case SO_TYPE:
// todo... non-stream // todo... non-stream
return set_flag(optval, optlen, SOCK_STREAM); return set_flag(optval, optlen, e->_TYPE);
break; break;
case SO_DEBUG: case SO_DEBUG: