unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: schwab@suse.de, emacs-pretest-bug@gnu.org
Subject: Re: file-attributes returns negative integer for inode value
Date: Mon, 03 Mar 2008 06:25:42 +0200	[thread overview]
Message-ID: <utzjoigc9.fsf@gnu.org> (raw)
In-Reply-To: <004d01c87cc3$571881f0$0600a8c0@us.oracle.com> (drew.adams@oracle.com)

> From: "Drew Adams" <drew.adams@oracle.com>
> Date: Sun, 2 Mar 2008 16:12:59 -0800
> Cc: emacs-pretest-bug@gnu.org
> 
> > > 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.
> > 
> > And what's the real ino?
> 
> Dunno. How do I tell that on Windows?

One way is to run "ls -i" on that file.  You will need ls.exe from the
GnuWin32 port of Coreutils.  Note that the w32 emulation of `stat' in
the Windows port of Emacs does not use the real inode value verbatim,
it mangles it with bit-shift and XOR operations.  This is because the
inode is a 48-bit value, while sys/stat.h on Windows says the inode is
a 16-bit field.

> But I doubt you need that info to discover the problem, anyway. I suspect it
> is a problem on Windows in the code that detects a too-large integer and
> returns a cons in its place.

The problem is a little bit different: obviously, a 16-bit value
cannot overflow ab EMACS_INT.  The problem is we don't keep the value
positive.  I will work on this soon.




  reply	other threads:[~2008-03-03  4:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-02 22:46 file-attributes returns negative integer for inode value Drew Adams
2008-03-02 23:36 ` Andreas Schwab
2008-03-03  0:12   ` Drew Adams
2008-03-03  4:25     ` Eli Zaretskii [this message]
2008-03-14 17:31       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=utzjoigc9.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).