From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.devel Subject: Re: machine specific patch (OpenBSD) Date: Wed, 13 Jul 2011 17:22:33 +0200 Message-ID: <87wrfmb3ye.fsf@univ-nantes.fr> References: <871uxucls5.fsf@univ-nantes.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310578233 24339 80.91.229.12 (13 Jul 2011 17:30:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2011 17:30:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 13 19:30:29 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh3GW-0008RM-Ud for ged-emacs-devel@m.gmane.org; Wed, 13 Jul 2011 19:30:29 +0200 Original-Received: from localhost ([::1]:48580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh3GV-0001H9-Mc for ged-emacs-devel@m.gmane.org; Wed, 13 Jul 2011 13:30:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh1Gv-0007kV-0p for emacs-devel@gnu.org; Wed, 13 Jul 2011 11:22:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qh1Gq-0004xy-IZ for emacs-devel@gnu.org; Wed, 13 Jul 2011 11:22:44 -0400 Original-Received: from smtp-tls1.univ-nantes.fr ([193.52.101.145]:38782 helo=smtp-tls.univ-nantes.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh1Gl-0004wx-7W; Wed, 13 Jul 2011 11:22:35 -0400 Original-Received: from localhost (debian [127.0.0.1]) by smtp-tls.univ-nantes.fr (Postfix) with ESMTP id 94E9594DB2; Wed, 13 Jul 2011 17:22:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at univ-nantes.fr Original-Received: from smtp-tls.univ-nantes.fr ([127.0.0.1]) by localhost (smtp-tls1.d101.univ-nantes.fr [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hKY27G5r33JW; Wed, 13 Jul 2011 17:22:33 +0200 (CEST) Original-Received: from K (unknown [172.16.13.134]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-tls.univ-nantes.fr (Postfix) with ESMTPSA id 7983D94DB1; Wed, 13 Jul 2011 17:22:33 +0200 (CEST) In-Reply-To: (Dan Nicolaescu's message of "Wed, 13 Jul 2011 10:40:06 -0400") User-Agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/23.3 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 193.52.101.145 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:142002 Archived-At: Dan Nicolaescu writes: > How about showing the patches and not a link to them ? But before > doing that please update the patches. A quick look at one of them > showed that it defining macros that are no longer in use in the tree. Ok, so far I've updated those: --8<---------------cut here---------------start------------->8--- === modified file 'src/minibuf.c' --- src/minibuf.c 2011-06-24 21:25:22 +0000 +++ src/minibuf.c 2011-07-13 13:50:55 +0000 @@ -19,6 +19,7 @@ #include +#include #include #include @@ -246,15 +247,19 @@ size = 100; len = 0; line = (char *) xmalloc (size); - while ((s = fgets (line + len, size - len, stdin)) != NULL - && (len = strlen (line), - len == size - 1 && line[len - 1] != '\n')) - { + again: + if ((s = fgets (line + len, size - len, stdin)) != NULL) { + len = strlen (line); + if (len > 0 && line[len - 1] != '\n') { if (STRING_BYTES_BOUND / 2 < size) memory_full (SIZE_MAX); size *= 2; line = (char *) xrealloc (line, size); + goto again; } + } else if (errno == EINTR) { + goto again; + } if (s) { === modified file 'src/s/openbsd.h' --- src/s/openbsd.h 2011-01-15 23:16:57 +0000 +++ src/s/openbsd.h 2011-07-13 13:28:30 +0000 @@ -3,3 +3,4 @@ /* The same as NetBSD. Note there are differences in configure. */ #include "netbsd.h" +#define BROKEN_SIGIO --8<---------------cut here---------------end--------------->8--- I didn't include others because they are related to mips64 and alpha arch and i cannot test it. -- Manuel Giraud