Changeset 1768
- Timestamp:
- Jan 17, 2005, 3:40:14 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/sys/tcpipver.c
-
Property cvs2svn:cvs-rev
changed from
1.9
to1.10
r1767 r1768 231 231 else if (rc > 0) 232 232 { 233 /** @todo socket duplication within the same process! A per process reference counting is required too! */ 234 233 235 /* 234 236 * Someone is using the socket, we'll remove it from the list of … … 336 338 LIBCLOG_ENTER("pFH=%p:{iSocket=%d} fh=%d pfhNew=%p\n", (void *)pFH, ((PLIBCSOCKETFH)pFH)->iSocket, fh, (void *)pfhNew); 337 339 LIBC_ASSERTM_FAILED("Duplication of sockets aren't supported yet.\n"); 340 /** @todo In order to properly support this we need to have per process reference counting 341 * of the sockets too. This should be done in a high heap block and done on allocation to 342 * get the exec/spaw inheritance right. */ 338 343 LIBCLOG_RETURN_INT(-ENOSYS); 339 344 } … … 1196 1201 static int TCPNAME(imp_soclose)(int s) 1197 1202 { 1203 LIBCLOG_ENTER("iSocket=%d\n", s); 1198 1204 static int (*TCPCALL pfn)(int s); 1199 1205 if (!pfn && TCPNAME(get_imp)(ORD_SOCLOSE, (void **)(void *)&pfn)) 1200 return -1; 1201 return pfn(s); 1206 LIBCLOG_RETURN_INT(-1); 1207 int rc = pfn(s); 1208 LIBCLOG_RETURN_INT(rc); 1202 1209 } 1203 1210 … … 1238 1245 static int TCPNAME(imp_addsockettolist)(int s) 1239 1246 { 1247 LIBCLOG_ENTER("iSocket=%d\n", s); 1240 1248 static int (*TCPCALL pfn)(int s); 1241 1249 if (!pfn && TCPNAME(get_imp)(ORD_ADDSOCKETTOLIST, (void **)(void *)&pfn)) 1242 return -1; 1243 return pfn(s); 1250 LIBCLOG_RETURN_INT(-1); 1251 int rc = pfn(s); 1252 LIBCLOG_RETURN_INT(rc); 1244 1253 } 1245 1254 1246 1255 static int TCPNAME(imp_removesocketfromlist)(int s) 1247 1256 { 1257 LIBCLOG_ENTER("iSocket=%d\n", s); 1248 1258 static int (*TCPCALL pfn)(int s); 1249 1259 if (!pfn && TCPNAME(get_imp)(ORD_REMOVESOCKETFROMLIST, (void **)(void *)&pfn)) 1250 return -1; 1251 return pfn(s); 1260 LIBCLOG_RETURN_INT(-1); 1261 int rc = pfn(s); 1262 LIBCLOG_RETURN_INT(rc); 1252 1263 } 1253 1264 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.