Artifacts Associated With Ticket 771944ffffffffffffffffffffffffffffffffff
Ticket change [abdabb8c0f] (rid 101190) by dgp on 2003-07-15 23:05:10:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
SGI compiler warns: "./../generic/tclIOSock.c", line 97: warning(1164): argument of type "unsigned int *" is incompatible with parameter of type "int *" getsockopt(sock, SOL_SOCKET, SO_SNDBUF, (char *)¤t, &len); ^ "./../generic/tclIOSock.c", line 103: warning(1164): argument of type "unsigned int *" is incompatible with parameter of type "int *" getsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char *)¤t, &len); ^ - foundin initialized to: "obsolete: 8.4.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "27. Channel Types"
- title initialized to: "tclIOSock.c: compiler warning:"
- type initialized to: "Bug"
Ticket change [ab025cd58c] (rid 101022) by dgp on 2003-07-16 06:11:30:
- icomment:
Logged In: YES user_id=80530 similar warnings for unix/tclUnixChan.c
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5da2182314] (rid 115503) by andreas_kupries on 2003-08-09 01:48:18:
- priority changed to: "8"
Ticket change [3cfddd96b8] (rid 121010) by andreas_kupries on 2003-10-22 07:01:18:
- icomment:
Logged In: YES user_id=75003 Don, do you have a patch ? I guess the (char*) casts should be (VOID*) instead. Linux signature is int getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen); No idea about the SGI signature. - login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [63936ec80d] (rid 92600) by dkf on 2003-10-22 15:59:45:
- icomment:
Logged In: YES user_id=79902 IRIX has the following declarations (depending on which #defs are defined; I don't know which it is) in /usr/include/sys/socket.h extern int getsockopt(int, int, int, void *, socklen_t *); extern int getsockopt(int, int, int, void *, size_t *); extern int getsockopt(int, int, int, void *, int *); Hope this helps, but I suspect it doesn't...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [1521a89ae5] (rid 124518) by davygrvy on 2004-05-14 08:36:34:
- icomment:
Logged In: YES user_id=7549 IMO, TclSockMinimumBuffers shouldn't be in the generic layer. It's wrought in type casting for no good reason. The void* trick could probably work for forcing typeless, but isn't this really saying something more about how this should get moved to the socket channel driver implementation instead? No where does the generic layer call this function. Only channel drivers themselves call it. And when it does, the win32 code won't have to cast from SOCKET to int and the socklen_t thing is strange for win32. unix\tclUnixChan.c(2514): TclSockMinimumBuffers(sock, SOCKET_BUFSIZE); win\tclWinSock.c(1134): TclSockMinimumBuffers((int) sock, TCP_BUFFER_SIZE); win\tclWinSock.c(1495): TclSockMinimumBuffers((int) sock, TCP_BUFFER_SIZE);
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [60c5dc6e46] (rid 92125) by andreas_kupries on 2004-07-17 02:40:33:
- icomment:
Logged In: YES user_id=75003 I am not sure about this. This is obviously an abstraction, a (relatively) generic command for all sockets. It could be made into a Tclp function, i.e. generic declaration, platform specific definition. This however will not help us with the warnings we encounter here, as they are differences between different Unices, i.e. variants of the same platform. I see no real solution right now.
- login: "andreas_kupries"
- mimetype: "text/plain"
- title changed to: "tclIOSock.c: compiler warning"
- username: "andreas_kupries"
- icomment:
Ticket change [5c7aa0587d] (rid 115304) by dkf on 2009-05-04 01:12:12:
- closedate changed to: "2009-05-03T18:12:12"
- closer changed to: "dkf"
- icomment:
allow_comments - 1 Problem seems to be due to inconsistent definitions of getsockopt between different OSes. That's at the point where we just give up! (It's only a signed/unsigned warning after all...)
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"
- username: "dkf"