1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-21 18:23:59 +00:00

(Ffile_attributes): Represent inode number as a pair of

integers in case inode numbers do not fit in a Lisp integer.
This commit is contained in:
Richard M. Stallman 1996-11-07 05:46:56 +00:00
parent 684f4cb3f2
commit 88b09a1773

View File

@ -684,7 +684,14 @@ If file does not exist, returns nil.")
#ifdef BSD4_3
#undef BSD4_2 /* ok, you can look again without throwing up */
#endif
#if 1
/* To allow inode numbers larger than VALBITS, separate the bottom
16 bits. */
values[10] = Fcons (make_number (s.st_ino >> 16),
make_number (s.st_ino & 0xffff));
#else
values[10] = make_number (s.st_ino);
#endif
values[11] = make_number (s.st_dev);
return Flist (sizeof(values) / sizeof(values[0]), values);
}