Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4c637faa
Commit
4c637faa
authored
May 19, 1997
by
Richard M. Stallman
Browse files
(Ffile_attributes): Return inode number as a cons only if necessary.
parent
ecb4dd9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/dired.c
src/dired.c
+8
-8
No files found.
src/dired.c
View file @
4c637faa
...
...
@@ -685,14 +685,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
if
(
s
.
st_ino
&
((
-
1
)
<<
VALBITS
))
/* 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
/* But keep the most common cases as integers. */
values
[
10
]
=
make_number
(
s
.
st_ino
);
values
[
11
]
=
make_number
(
s
.
st_dev
);
return
Flist
(
sizeof
(
values
)
/
sizeof
(
values
[
0
]),
values
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment