aboutsummaryrefslogtreecommitdiff
path: root/support/next_to_fault.h
diff options
context:
space:
mode:
Diffstat (limited to 'support/next_to_fault.h')
-rw-r--r--support/next_to_fault.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/support/next_to_fault.h b/support/next_to_fault.h
index c16d3d5..cec4b97 100644
--- a/support/next_to_fault.h
+++ b/support/next_to_fault.h
@@ -1,5 +1,5 @@
/* Memory allocation next to an unmapped page.
- Copyright (C) 2017-2024 Free Software Foundation, Inc.
+ Copyright (C) 2017-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -41,6 +41,11 @@ struct support_next_to_fault
fault). */
struct support_next_to_fault support_next_to_fault_allocate (size_t size);
+/* Allocate a buffer of SIZE bytes just *after* a page which is mapped
+ with PROT_NONE (so that under-running the buffer will cause a
+ fault). */
+struct support_next_to_fault support_next_to_fault_allocate_before (size_t size);
+
/* Deallocate the memory region allocated by
next_to_fault_allocate. */
void support_next_to_fault_free (struct support_next_to_fault *);