diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-11-07 20:46:49 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-11-07 20:46:49 (GMT) |
commit | 82a4bb8618f4a8672fd62a895fa355c1a0628b88 (patch) | |
tree | 684364d0978f635d9482f70290bddacd19db3933 /unix | |
parent | d9033672db616bb406894a480e90410666ff4545 (diff) | |
download | tcl-82a4bb8618f4a8672fd62a895fa355c1a0628b88.zip tcl-82a4bb8618f4a8672fd62a895fa355c1a0628b88.tar.gz tcl-82a4bb8618f4a8672fd62a895fa355c1a0628b88.tar.bz2 |
Deprecate TclpHasSockets(): Every system nowadays has sockets
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixSock.c | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c index 4e34af5..70dfc61 100644 --- a/unix/tclUnixSock.c +++ b/unix/tclUnixSock.c @@ -322,29 +322,6 @@ Tcl_GetHostName(void) /* * ---------------------------------------------------------------------- * - * TclpHasSockets -- - * - * Detect if sockets are available on this platform. - * - * Results: - * Returns TCL_OK. - * - * Side effects: - * None. - * - * ---------------------------------------------------------------------- - */ - -int -TclpHasSockets( - TCL_UNUSED(Tcl_Interp *)) -{ - return TCL_OK; -} - -/* - * ---------------------------------------------------------------------- - * * TclpFinalizeSockets -- * * Performs per-thread socket subsystem finalization. @@ -541,7 +518,7 @@ TcpInputProc( if (WaitForConnect(statePtr, errorCodePtr) != 0) { return -1; } - bytesRead = recv(statePtr->fds.fd, buf, (size_t) bufSize, 0); + bytesRead = recv(statePtr->fds.fd, buf, bufSize, 0); if (bytesRead >= 0) { return bytesRead; } @@ -591,7 +568,7 @@ TcpOutputProc( if (WaitForConnect(statePtr, errorCodePtr) != 0) { return -1; } - written = send(statePtr->fds.fd, buf, (size_t) toWrite, 0); + written = send(statePtr->fds.fd, buf, toWrite, 0); if (written >= 0) { return written; |