From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#8277: Emacs should use socklen_t for socket lengths Date: Sun, 20 Mar 2011 09:38:48 -0700 Organization: UCLA Computer Science Department Message-ID: <4D862D98.1060805@cs.ucla.edu> References: <4D82E23C.3010604@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070102090707010305000202" X-Trace: dough.gmane.org 1300640840 2235 80.91.229.12 (20 Mar 2011 17:07:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2011 17:07:20 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 20 18:07:15 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1M5x-00022a-Vr for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2011 18:07:14 +0100 Original-Received: from localhost ([127.0.0.1]:34524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1M5w-0005oA-SF for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2011 13:07:12 -0400 Original-Received: from [140.186.70.92] (port=47815 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1M5p-0005hU-3X for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 13:07:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1M5o-0002Mo-0n for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 13:07:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1M5n-0002Mj-VQ for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 13:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q1Lfe-0000wC-GS; Sun, 20 Mar 2011 12:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Mar 2011 16:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8277 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.13006391493539 (code B ref -1); Sun, 20 Mar 2011 16:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Mar 2011 16:39:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1Lem-0000v2-PB for submit@debbugs.gnu.org; Sun, 20 Mar 2011 12:39:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1Lej-0000uY-8w for submit@debbugs.gnu.org; Sun, 20 Mar 2011 12:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1Led-00066r-6r for submit@debbugs.gnu.org; Sun, 20 Mar 2011 12:39:00 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:48696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1Led-00066W-36 for submit@debbugs.gnu.org; Sun, 20 Mar 2011 12:38:59 -0400 Original-Received: from [140.186.70.92] (port=45854 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1Lec-0007hH-0y for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 12:38:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1Lea-0005zI-L4 for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 12:38:57 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:56174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1Lea-0005z2-5h; Sun, 20 Mar 2011 12:38:56 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id A596839E8116; Sun, 20 Mar 2011 09:38:54 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DY5YAAqO79ge; Sun, 20 Mar 2011 09:38:53 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id B717B39E810E; Sun, 20 Mar 2011 09:38:53 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: <4D82E23C.3010604@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 20 Mar 2011 12:40:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45195 Archived-At: This is a multi-part message in MIME format. --------------070102090707010305000202 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 03/17/2011 09:40 PM, Paul Eggert wrote: > I plan to install the following patch, which uses the gnulib > socklen module to provide a definition of socklen_t > on platforms that do not already define it, and then > substitutes 'socklen_t' for the relevant occurrences of 'int' in > src/process.c. MS-DOS and MS-Windows ports may be affected by > this, since it adds an "#undef socklen_t" to src/config.in. Comments by Bruno Haible on the gnulib mailing list showed the need for an update to that patch, for the benefit of Cygwin and MingW ports. I've attached it; it consists entirely of autogenerated files from Emacs's point of view. This adds a symbol HAVE_WS2TCPIP_H to src/config.in, which may need to be configured for MS-DOS and MS-Windows. I haven't committed any of this socklen_t stuff to the trunk yet, but plan to do so after a bit more testing. --------------070102090707010305000202 Content-Type: application/x-gzip; name="patch.txt.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch.txt.gz" H4sICMkrhk0CA3BhdGNoLnR4dADtWG1T40YS/hz9ii6gAkSysWwDi3fZWtaYQGUPE2w2m3JR OiGNrSmkGUczxrhS+e/XPSPLL5jLbbL5dlBlyVJ3T788/UyPT09PIZMxH3IWw5CnDHYjKYZ8 NMnZrlOpVKD8+l295vuVWqPiv4Fao9WotepNcGv457iuu0GuXgP/qFV/06rXC7kPH6DiN4+P j70jcO0NCn344ID5dwGAD0EzpWEnjILoKUhYGLM8UDMVKBk9Mh0kcApCvgWdMGE0Nv8NZQ5o wuoDFzBVdR2N+biaOG4soUW6KDAUAS6UsOhxvlYmxShnKWztfLq67lx3t2BroYtfVhybvwno DfnMRZROYqaCmA3DSaq3HHce0tbzzqu6p/A8Y8pGZX2LQg3v31NW0ZKqJvDuXXDW7nQvHHcb n3DB4PLscyf4pVfvt2+uboJL8B13LuK4Q06fsRSMrpQRTkn+HTOrAhYlkvxVQcZ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