diff options
author | rmax <rmax@noemail.net> | 2002-07-29 16:54:40 (GMT) |
---|---|---|
committer | rmax <rmax@noemail.net> | 2002-07-29 16:54:40 (GMT) |
commit | 6802720e3f59f77588e6b37639e2122020c4033d (patch) | |
tree | 291a71c2236be89384aa78a70cec35de2ef639e2 /unix/tclUnixChan.c | |
parent | f2e785c5c953761e732e4d9766bbdfe1ba9d8589 (diff) | |
download | tcl-6802720e3f59f77588e6b37639e2122020c4033d.zip tcl-6802720e3f59f77588e6b37639e2122020c4033d.tar.gz tcl-6802720e3f59f77588e6b37639e2122020c4033d.tar.bz2 |
* unix/tcl.m4 (SC_SERIAL_PORT): Fixed detection for cases when
configure's stdin is not a tty.
* unix/tclUnixPort.h:
* generic/tclIOSock.c: Changed size_t to socklen_t in
socket-related function calls.
* unix/configure.in: Added test and fallback definition
for socklen_t.
* unix/configure: generated.
FossilOrigin-Name: 80c49e7297b81e82f637ec2fca76beb148658fcc
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r-- | unix/tclUnixChan.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index d6a6e68..a7725d6 100644 --- a/unix/tclUnixChan.c +++ b/unix/tclUnixChan.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixChan.c,v 1.37 2002/07/08 10:08:58 vincentdarley Exp $ + * RCS: @(#) $Id: tclUnixChan.c,v 1.38 2002/07/29 16:54:41 rmax Exp $ */ #include "tclInt.h" /* Internal definitions for Tcl. */ @@ -1892,7 +1892,7 @@ Tcl_MakeFileChannel(handle, mode) ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); #endif /* DEPRECATED */ int socketType = 0; - size_t argLength = sizeof(int); + socklen_t argLength = sizeof(int); if (mode == 0) { return NULL; @@ -2247,7 +2247,7 @@ TcpGetOptionProc(instanceData, interp, optionName, dsPtr) struct sockaddr_in sockname; struct sockaddr_in peername; struct hostent *hostEntPtr; - size_t size = sizeof(struct sockaddr_in); + socklen_t size = sizeof(struct sockaddr_in); size_t len = 0; char buf[TCL_INTEGER_SPACE]; @@ -2257,7 +2257,7 @@ TcpGetOptionProc(instanceData, interp, optionName, dsPtr) if ((len > 1) && (optionName[1] == 'e') && (strncmp(optionName, "-error", len) == 0)) { - size_t optlen = sizeof(int); + socklen_t optlen = sizeof(int); int err, ret; ret = getsockopt(statePtr->fd, SOL_SOCKET, SO_ERROR, @@ -2871,7 +2871,7 @@ TcpAccept(data, mask) int newsock; /* The new client socket */ TcpState *newSockState; /* State for new socket. */ struct sockaddr_in addr; /* The remote address */ - size_t len; /* For accept interface */ + socklen_t len; /* For accept interface */ char channelName[16 + TCL_INTEGER_SPACE]; sockState = (TcpState *) data; |