Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 2010 21:59:28 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: ports/lang/python24 Makefile ports/lang/python24/files patch-Modules-fcntlmodule.c ports/lang/python25 Makefile ports/lang/python25/files patch-Lib-test-test_ioctl.py patch-Modules-fcntlmodule.c ports/lang/python26 Makefile ports/lang/python26/files ...
Message-ID:  <201007192159.o6JLxSN2020043@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jkim        2010-07-19 21:59:28 UTC

  FreeBSD ports repository

  Modified files:
    lang/python24        Makefile 
    lang/python25        Makefile 
    lang/python26        Makefile 
    lang/python31        Makefile 
  Added files:
    lang/python24/files  patch-Modules-fcntlmodule.c 
    lang/python25/files  patch-Lib-test-test_ioctl.py 
                         patch-Modules-fcntlmodule.c 
    lang/python26/files  patch-Doc-library-fcntl.rst 
                         patch-Lib-test-test_ioctl.py 
                         patch-Modules-fcntlmodule.c 
    lang/python31/files  patch-Doc-library-fcntl.rst 
                         patch-Lib-test-test_fcntl.py 
                         patch-Lib-test-test_ioctl.py 
                         patch-Lib-test-test_socket.py 
                         patch-Modules-fcntlmodule.c 
  Log:
  Fix fcntl module to accept 'unsigned long' type commands for ioctl(2).
  
  Although POSIX says the type is 'int', all BSD variants (including Mac OS X)
  have been using 'unsigned long' type for very long time and its use predates
  the standard long enough.  For certain commands (e.g., TIOCSWINSZ, FIONBIO),
  the Python value may get sign-extended on 64-bit platforms (by implicit type
  promotion) and it causes annoying warnings from kernel such as this:
  
  WARNING pid 24509 (python2.6): ioctl sign-extension ioctl ffffffff8004667e
  
  Approved by:    python (maintainer timeout)
  
  Revision  Changes    Path
  1.171     +1 -1      ports/lang/python24/Makefile
  1.1       +38 -0     ports/lang/python24/files/patch-Modules-fcntlmodule.c (new)
  1.160     +1 -0      ports/lang/python25/Makefile
  1.1       +27 -0     ports/lang/python25/files/patch-Lib-test-test_ioctl.py (new)
  1.1       +53 -0     ports/lang/python25/files/patch-Modules-fcntlmodule.c (new)
  1.167     +1 -0      ports/lang/python26/Makefile
  1.1       +11 -0     ports/lang/python26/files/patch-Doc-library-fcntl.rst (new)
  1.1       +23 -0     ports/lang/python26/files/patch-Lib-test-test_ioctl.py (new)
  1.1       +53 -0     ports/lang/python26/files/patch-Modules-fcntlmodule.c (new)
  1.167     +1 -0      ports/lang/python31/Makefile
  1.1       +11 -0     ports/lang/python31/files/patch-Doc-library-fcntl.rst (new)
  1.1       +11 -0     ports/lang/python31/files/patch-Lib-test-test_fcntl.py (new)
  1.1       +23 -0     ports/lang/python31/files/patch-Lib-test-test_ioctl.py (new)
  1.3       +11 -0     ports/lang/python31/files/patch-Lib-test-test_socket.py (new)
  1.1       +53 -0     ports/lang/python31/files/patch-Modules-fcntlmodule.c (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007192159.o6JLxSN2020043>