From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: file-attributes returns negative integer for inode value Date: Sun, 2 Mar 2008 14:46:09 -0800 Message-ID: <003e01c87cb7$35d17d00$0600a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204498107 12305 80.91.229.12 (2 Mar 2008 22:48:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Mar 2008 22:48:27 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 02 23:48:54 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JVwzB-0007Aq-H4 for ged-emacs-devel@m.gmane.org; Sun, 02 Mar 2008 23:48:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVwye-000381-Jo for ged-emacs-devel@m.gmane.org; Sun, 02 Mar 2008 17:48:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JVwya-00036h-GY for emacs-devel@gnu.org; Sun, 02 Mar 2008 17:48:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JVwyX-00034Q-T8 for emacs-devel@gnu.org; Sun, 02 Mar 2008 17:48:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVwyX-00034K-Q1 for emacs-devel@gnu.org; Sun, 02 Mar 2008 17:48:09 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JVwyX-0000BF-Ee for emacs-devel@gnu.org; Sun, 02 Mar 2008 17:48:09 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JVwyX-0006dv-5y for emacs-pretest-bug@gnu.org; Sun, 02 Mar 2008 17:48:09 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JVwyT-0000A9-Vs for emacs-pretest-bug@gnu.org; Sun, 02 Mar 2008 17:48:08 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JVwyT-00009W-Et for emacs-pretest-bug@gnu.org; Sun, 02 Mar 2008 17:48:05 -0500 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m22Mm3Z4019690 for ; Sun, 2 Mar 2008 16:48:03 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m229UQSM017529 for ; Sun, 2 Mar 2008 15:48:02 -0700 Original-Received: from inet-141-146-46-1.oracle.com by acsmt351.oracle.com with ESMTP id 3596894981204497967; Sun, 02 Mar 2008 14:46:07 -0800 Original-Received: from dradamslap1 (/141.144.64.82) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 02 Mar 2008 14:46:06 -0800 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: Ach8tzUsaYoDvyPdSnC4Uo/eA06kVw== X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:91117 gmane.emacs.pretest.bugs:21385 Archived-At: emacs -Q No reliable recipe to reproduce, but for me, some directories give a negative inode number for file-attributes. For example: M-x (file-attributes "c:/drews-lisp-20/Screenshots") gives: (t 1 5 5 (18378 24192) (18123 40338) (18123 40337) 0 "drwxrwxrwx" nil -3082 240391127) The inode value here is -3082. The Elisp manual, however says that if the integer is too large, then a cons is used for the inode value. Is this a Windows-specific problem, perhaps? Also, there is a typo in the doc string for `file-attributes': ... If inode number is larger than the Emacs integer, this is a cons cell containing two integers: first the high part, then the low 16 bits. "the Emacs integer" should presumably be "the largest Emacs integer". In GNU Emacs 22.1.90.1 (i386-mingw-nt5.1.2600) of 2008-01-30 on PRETEST Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include'