]> Savannah Git Hosting - gnulib.git/commit
same-inode: don't assume memory objects have ino
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Mar 2025 00:00:20 +0000 (17:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Mar 2025 00:04:40 +0000 (17:04 -0700)
commit16a5aa623106fbab7eacb0dfd081288ae79c16cf
tree547a844102625fe354ecc8ada72e098ee29878fc
parent2579e06675d78314b8a8fa51e104bd0e561aca1e
same-inode: don't assume memory objects have ino

* lib/same-inode.h (psame_inode): Do not assume shared and/or
typed memory objects have reliable st_dev and st_ino when given to
stat-like functions, as POSIX does not guarantee this.
I don’t know of any such platforms (QNX perhaps?) but it’s
easy to be safe.
ChangeLog
lib/same-inode.h