Mercurial > hg > octave-shane > gnulib-hg
comparison lib/same-inode.h @ 16197:98a6ed2516bf
same-inode: port to OpenVMS
* lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
three st_ino values.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 31 Dec 2011 13:19:53 -0800 |
parents | 97fc9a21a8fb |
children | 8250f2777afc |
comparison
equal
deleted
inserted
replaced
16196:c1c37f0242bc | 16197:98a6ed2516bf |
---|---|
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
17 | 17 |
18 #ifndef SAME_INODE_H | 18 #ifndef SAME_INODE_H |
19 # define SAME_INODE_H 1 | 19 # define SAME_INODE_H 1 |
20 | 20 |
21 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \ | 21 # ifdef __VMS |
22 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \ | 22 # define SAME_INODE(a, b) \ |
23 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev) | 23 ((a).st_ino[0] == (b).st_ino[0] \ |
24 && (a).st_ino[1] == (b).st_ino[1] \ | |
25 && (a).st_ino[2] == (b).st_ino[2] \ | |
26 && (a).st_dev == (b).st_dev) | |
27 # else | |
28 # define SAME_INODE(a, b) \ | |
29 ((a).st_ino == (b).st_ino \ | |
30 && (a).st_dev == (b).st_dev) | |
31 # endif | |
24 | 32 |
25 #endif | 33 #endif |