about summary refs log tree commit diff
path: root/sysdeps/nacl/dl-fileid.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-07-14 13:15:26 -0700
committerRoland McGrath <roland@hack.frob.com>2015-07-14 13:15:26 -0700
commitc01ae97eb8986600488332f4db98f4b6d6ebedbc (patch)
treead6174a92b8436b96b3ac1819c2b81fa898cc9c2 /sysdeps/nacl/dl-fileid.h
parent38b759496b0483491e54f3946ae8f0e55d8c079f (diff)
downloadglibc-c01ae97eb8986600488332f4db98f4b6d6ebedbc.tar.gz
glibc-c01ae97eb8986600488332f4db98f4b6d6ebedbc.tar.xz
glibc-c01ae97eb8986600488332f4db98f4b6d6ebedbc.zip
Factor file identity rules out of generic rtld code.
Diffstat (limited to 'sysdeps/nacl/dl-fileid.h')
-rw-r--r--sysdeps/nacl/dl-fileid.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/nacl/dl-fileid.h b/sysdeps/nacl/dl-fileid.h
new file mode 100644
index 0000000000..4c34581701
--- /dev/null
+++ b/sysdeps/nacl/dl-fileid.h
@@ -0,0 +1,8 @@
+/* Bypass sysdeps/posix/dl-fileid.h, which relies on st_dev/st_ino being
+   reliable.  Under NaCl, we cannot always expect them to be useful.
+   Fortunately, in the ways NaCl is used it's far less likely that two
+   different names for the same file would be used in dlopen or the like,
+   so failing to notice re-opening the same file is not so likely to be a
+   problem in practice.  */
+
+#include <sysdeps/generic/dl-fileid.h>