aboutsummaryrefslogtreecommitdiff
path: root/misc/sys/mman.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc/sys/mman.h')
-rw-r--r--misc/sys/mman.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/misc/sys/mman.h b/misc/sys/mman.h
index c68a85d..de5cb89 100644
--- a/misc/sys/mman.h
+++ b/misc/sys/mman.h
@@ -1,5 +1,5 @@
/* Definitions for BSD-style memory management.
- Copyright (C) 1994-2024 Free Software Foundation, Inc.
+ Copyright (C) 1994-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
@@ -100,10 +100,12 @@ extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW;
/* Guarantee all whole pages mapped by the range [ADDR,ADDR+LEN) to
be memory resident. */
-extern int mlock (const void *__addr, size_t __len) __THROW;
+extern int mlock (const void *__addr, size_t __len) __THROW
+ __attr_access_none (1);
/* Unlock whole pages previously mapped by the range [ADDR,ADDR+LEN). */
-extern int munlock (const void *__addr, size_t __len) __THROW;
+extern int munlock (const void *__addr, size_t __len) __THROW
+ __attr_access_none (1);
/* Cause all currently mapped pages of the process to be memory resident
until unlocked by a call to the `munlockall', until the process exits,