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#8254: race condition in dired.c's scmp function Date: Tue, 15 Mar 2011 09:53:47 -0700 Organization: UCLA Computer Science Department Message-ID: <4D7F999B.7080205@cs.ucla.edu> References: <4D7F043A.5070702@cs.ucla.edu> <4D7F15E7.1020407@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300208844 8250 80.91.229.12 (15 Mar 2011 17:07:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Mar 2011 17:07:24 +0000 (UTC) Cc: 8254@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 15 18:07:18 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 1PzXiE-0004TH-NO for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Mar 2011 18:07:16 +0100 Original-Received: from localhost ([127.0.0.1]:55558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzXiD-000383-6f for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Mar 2011 13:07:13 -0400 Original-Received: from [140.186.70.92] (port=57728 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzXi4-00036H-Di for bug-gnu-emacs@gnu.org; Tue, 15 Mar 2011 13:07:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzXi3-0004JF-Gt for bug-gnu-emacs@gnu.org; Tue, 15 Mar 2011 13:07:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzXi3-0004JB-FX for bug-gnu-emacs@gnu.org; Tue, 15 Mar 2011 13:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PzXVS-00066L-1F; Tue, 15 Mar 2011 12:54: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: Tue, 15 Mar 2011 16:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8254 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8254-submit@debbugs.gnu.org id=B8254.130020803423440 (code B ref 8254); Tue, 15 Mar 2011 16:54:01 +0000 Original-Received: (at 8254) by debbugs.gnu.org; 15 Mar 2011 16:53:54 +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 1PzXVK-000661-J5 for submit@debbugs.gnu.org; Tue, 15 Mar 2011 12:53:54 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PzXVJ-00065q-Gi for 8254@debbugs.gnu.org; Tue, 15 Mar 2011 12:53:53 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 1723539E80F7; Tue, 15 Mar 2011 09:53:48 -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 WIpp9jpwtw6l; Tue, 15 Mar 2011 09:53:47 -0700 (PDT) Original-Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 670EE39E80E1; Tue, 15 Mar 2011 09:53:47 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 15 Mar 2011 12:54: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:45039 Archived-At: On 03/15/2011 03:50 AM, Eli Zaretskii wrote: > I wonder if there's a better solution even if we decide to > make these macros functions We could move these macros to a new include file, and have it be included only by .c files that need the macros. That would be easy to do; the only real cost is that of having another include file to worry about. > I don't like to have the same static function in every file that > includes buffer.h, on platforms that don't support inline functions. These days, it's routine for compilers to inline. For old fashioned compilers that don't inline, it's routine to optimize away static functions that are never used. So, from an optimization viewpoint, this problem is relatively unimportant.