about summary refs log tree commit diff
path: root/mach/mach
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-04-30 20:09:49 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-01 02:24:04 +0200
commiteb14819c14d190830df673c9a3089d82d6b7b8f7 (patch)
tree2b736efb96b69128eca43b0db577fa483f8b6906 /mach/mach
parent6eb3edeed205766925c66a127b0b7aa40a64ee62 (diff)
downloadglibc-eb14819c14d190830df673c9a3089d82d6b7b8f7.tar.gz
glibc-eb14819c14d190830df673c9a3089d82d6b7b8f7.tar.xz
glibc-eb14819c14d190830df673c9a3089d82d6b7b8f7.zip
Define __mig_strlen to support dynamically sized strings in hurd RPCs
We make lib{mach,hurd}user.so only call __mig_strlen which can be
relocated before libc.so is relocated, similar to what is done with
__mig_memcpy.
Message-Id: <ZE8DTRDpY2hpPZlJ@jupiter.tail36e24.ts.net>
Diffstat (limited to 'mach/mach')
-rw-r--r--mach/mach/mig_support.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mach/mach/mig_support.h b/mach/mach/mig_support.h
index 78d4c4f0e3..c43fa953f8 100644
--- a/mach/mach/mig_support.h
+++ b/mach/mach/mig_support.h
@@ -55,5 +55,6 @@ extern vm_size_t mig_strncpy (char *__dst, const char *__src, vm_size_t __len);
 extern vm_size_t __mig_strncpy (char *__dst, const char *__src, vm_size_t);
 
 extern void *__mig_memcpy (void *__dst, const void *__src, vm_size_t __len);
+extern vm_size_t __mig_strlen (const char *__src);
 
 #endif	/* mach/mig_support.h */