aboutsummaryrefslogtreecommitdiff
path: root/libtrivfs/trivfs.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-12-30 21:03:55 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-12-30 23:25:13 +0100
commit34c71acbc9ae19575aa11a1b0f79b39ba02ba784 (patch)
treeddfee1da5168fa62170f57c960c693be07175f31 /libtrivfs/trivfs.h
parent0a9e994335f5436c0c1e77c8c79e7b322f5da746 (diff)
downloadhurd-34c71acbc9ae19575aa11a1b0f79b39ba02ba784.tar.gz
hurd-34c71acbc9ae19575aa11a1b0f79b39ba02ba784.tar.bz2
hurd-34c71acbc9ae19575aa11a1b0f79b39ba02ba784.zip
random: Add a trivfs_server_name
glibc uses /dev/urandom for getrandom(), and from version 2.34 malloc initialization uses it. We need to be able to know whether we are running the random translator itself, in which case we can't read ourself.
Diffstat (limited to 'libtrivfs/trivfs.h')
-rw-r--r--libtrivfs/trivfs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libtrivfs/trivfs.h b/libtrivfs/trivfs.h
index c920b678..1295fe17 100644
--- a/libtrivfs/trivfs.h
+++ b/libtrivfs/trivfs.h
@@ -74,6 +74,13 @@ struct trivfs_control
void *hook; /* for user use */
};
+/* The user may define this variable. Set this to the name of the
+ filesystem server. */
+extern char *trivfs_server_name __attribute__((weak));
+
+/* The user may define this variables. Set this to be the server
+ version number. */
+extern char *trivfs_server_version __attribute__((weak));
/* The user must define these variables. */
extern int trivfs_fstype;