Changeset 1764
- Timestamp:
- Jan 17, 2005, 2:56:43 AM (21 years ago)
- Location:
- trunk/src/emx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/ChangeLog.LIBC
-
Property cvs2svn:cvs-rev
changed from
1.8
to1.9
r1763 r1764 10 10 o Implemented nl_langinfo(CODESET). 11 11 o Added bunch a of ASCII codeset name conversions. 12 - libsocket: 13 o os2_select: Fixed a couple of filehandle conversion bugs. Thanks to Froloff. 12 14 13 15 2004-12-20: knut st. osmundsen <bird-gccos2-spam@anduin.net> -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/libsocket/os2_select.c
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r1763 r1764 4 4 * os2_select(). 5 5 * 6 * Copyright (c) 2003 knut st. osmundsen <bird-srcspam@anduin.net>6 * Copyright (c) 2003-2005 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * … … 39 39 int os2_select(int *s, int nreads, int nwrites, int nexcepts, long timeout) 40 40 { 41 LIBCLOG_ENTER("s=%p nreads=%d nwrites=%d nexcepts=%d timeout=%ld\n", s, nreads, nwrites, nexcepts, timeout);41 LIBCLOG_ENTER("s=%p nreads=%d nwrites=%d nexcepts=%d timeout=%ld\n", (void *)s, nreads, nwrites, nexcepts, timeout); 42 42 int cSockets; 43 43 int *aSockets; … … 50 50 cSockets = nreads + nwrites + nexcepts; 51 51 aSockets = alloca(cSockets * sizeof(int)); 52 if ( aSockets)52 if (!aSockets) 53 53 { 54 54 __libc_TcpipSetErrno(ENOMEM); … … 71 71 rc = __libsocket_os2_select(aSockets, nreads, nwrites, nexcepts, timeout); 72 72 if (rc >= 0) 73 { 74 /* 75 * Sync back the non-ready indicators (-1) to the passed in table. 76 */ 77 for (i = 0; i < cSockets; i++) 78 if (aSockets[i] == -1) 79 s[i] = -1; 73 80 LIBCLOG_RETURN_INT(rc); 81 } 74 82 __libc_TcpipUpdateErrno(); 75 83 LIBCLOG_RETURN_INT(-1); 76 84 } 77 85 78 79 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.