Skip to content
Tcl Source Code History Of Ticket 771944ffffffffff
Login

History Of Ticket 771944ffffffffff

Artifacts Associated With Ticket 771944ffffffffff

  1. Ticket change [abdabb8c0f] (rid 101190) by dgp on 2003-07-15 23:05:10:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. 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
      *)&current, &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
      *)&current, &len);
                                                            
               ^
      
      
    4. foundin initialized to: "obsolete: 8.4.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "27. Channel Types"
    10. title initialized to: "tclIOSock.c: compiler warning:"
    11. type initialized to: "Bug"
  2. Ticket change [ab025cd58c] (rid 101022) by dgp on 2003-07-16 06:11:30:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      similar warnings for unix/tclUnixChan.c
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [5da2182314] (rid 115503) by andreas_kupries on 2003-08-09 01:48:18:

    1. priority changed to: "8"
  4. Ticket change [3cfddd96b8] (rid 121010) by andreas_kupries on 2003-10-22 07:01:18:

    1. 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.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  5. Ticket change [63936ec80d] (rid 92600) by dkf on 2003-10-22 15:59:45:

    1. 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...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [1521a89ae5] (rid 124518) by davygrvy on 2004-05-14 08:36:34:

    1. 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);
      
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  7. Ticket change [60c5dc6e46] (rid 92125) by andreas_kupries on 2004-07-17 02:40:33:

    1. 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.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. title changed to: "tclIOSock.c: compiler warning"
    5. username: "andreas_kupries"
  8. Ticket change [5c7aa0587d] (rid 115304) by dkf on 2009-05-04 01:12:12:

    1. closedate changed to: "2009-05-03T18:12:12"
    2. closer changed to: "dkf"
    3. 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...)
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Wont Fix"
    7. status changed to: "Closed"
    8. username: "dkf"