From owner-cvs-ports@FreeBSD.ORG Mon Jul 19 21:59:28 2010 Return-Path: Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73A31106564A; Mon, 19 Jul 2010 21:59:28 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4A1508FC12; Mon, 19 Jul 2010 21:59:28 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o6JLxSiI020044; Mon, 19 Jul 2010 21:59:28 GMT (envelope-from jkim@repoman.freebsd.org) Received: (from jkim@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o6JLxSN2020043; Mon, 19 Jul 2010 21:59:28 GMT (envelope-from jkim) Message-Id: <201007192159.o6JLxSN2020043@repoman.freebsd.org> From: Jung-uk Kim Date: Mon, 19 Jul 2010 21:59:28 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: 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 ... X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 21:59:28 -0000 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)