summary refs log tree commit diff
path: root/sysdeps/nacl/nacl-interfaces.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-06-03 13:51:11 -0700
committerRoland McGrath <roland@hack.frob.com>2015-06-03 13:51:11 -0700
commitda7f049cad943629f16cd6e533214955edfd511d (patch)
tree6a27b5a9eb095e7fe208e7bf6f2aef614dfe2e5b /sysdeps/nacl/nacl-interfaces.h
parentcbf377edd318a6f35e5b54573f902299c6da9ed5 (diff)
downloadglibc-da7f049cad943629f16cd6e533214955edfd511d.tar.gz
glibc-da7f049cad943629f16cd6e533214955edfd511d.tar.xz
glibc-da7f049cad943629f16cd6e533214955edfd511d.zip
NaCl: Implement nacl_interface_ext_supply entry point.
Diffstat (limited to 'sysdeps/nacl/nacl-interfaces.h')
-rw-r--r--sysdeps/nacl/nacl-interfaces.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/nacl/nacl-interfaces.h b/sysdeps/nacl/nacl-interfaces.h
index 0c886a5bd7..36f380886c 100644
--- a/sysdeps/nacl/nacl-interfaces.h
+++ b/sysdeps/nacl/nacl-interfaces.h
@@ -20,6 +20,7 @@
 #define _NACL_INTERFACES_H	1
 
 #include <errno.h>
+#include <stdbool.h>
 #include <stddef.h>
 #include <stdint.h>
 #include <sys/types.h>
@@ -73,7 +74,7 @@ next_nacl_interface (const struct nacl_interface *i)
 {
   uintptr_t align = __alignof (*i);
   return (const void *) (((uintptr_t) &i->name[i->namelen] + align - 1)
-                         & -align);
+			 & -align);
 }
 
 #if IS_IN (libpthread)
@@ -94,6 +95,12 @@ next_nacl_interface (const struct nacl_interface *i)
 #undef	NACL_OPTIONAL_INTERFACE
 
 extern void __nacl_initialize_interfaces (void) attribute_hidden;
+extern bool __nacl_supply_interface_libc (const char *ident, size_t ident_len,
+					  const void *table, size_t tablesize)
+  internal_function attribute_hidden;
+extern bool __nacl_supply_interface_rtld (const char *ident, size_t ident_len,
+					  const void *table, size_t tablesize);
+  internal_function;
 
 /* Convenience function for handling IRT call return values.  */
 static inline int