glibc/sysdeps/mach
Diego Nieto Cid 802b0eba51 hurd: implement RLIMIT_AS against Mach RPCs
Check for VM limit RPCs

  * config.h.in: add #undef for HAVE_MACH_VM_GET_SIZE_LIMIT and
    HAVE_MACH_VM_SET_SIZE_LIMIT.
  * sysdeps/mach/configure.ac: use mach_RPC_CHECK to check for
    vm_set_size_limit and vm_get_size_limit RPCs in gnumach.defs.
  * sysdeps/mach/configure: regenerate file.

Use vm_get_size_limit to initialize RLIMIT_AS

  * hurd/hurdrlimit.c(init_rlimit): use vm_get_size_limit to initialize
    RLIMIT_AS entry of the _hurd_rlimits array.

Notify the kernel of the new VM size limits

  * sysdeps/mach/hurd/setrlimit.c: use the vm_set_size_limit RPC,
    if available, to notify the kernel of the new limits. Retry RPC
    calls if they were interrupted by a signal.
Message-ID: <03fb90a795b354a366ee73f56f73e6ad22a86cda.1755220108.git.dnietoc@gmail.com>
2025-09-22 00:52:37 +02:00
..
htl elf: early conversion of elf p_flags to mprotect flags 2025-08-27 10:45:45 -03:00
hurd hurd: implement RLIMIT_AS against Mach RPCs 2025-09-22 00:52:37 +02:00
i386
include
sys
x86
x86_64
Makefile
Subdirs
_strerror.c
adjtime.c
clock_gettime.c mach: Use the host_get_time64 to replace the deprecated host_get_time for CLOCK_REALTIME when it's available 2025-03-25 01:10:10 +01:00
clock_nanosleep.c hurd: Add CLOCK_MONOTONIC to clock_nanosleep 2025-01-12 22:47:00 +01:00
configure hurd: implement RLIMIT_AS against Mach RPCs 2025-09-22 00:52:37 +02:00
configure.ac hurd: implement RLIMIT_AS against Mach RPCs 2025-09-22 00:52:37 +02:00
getloadavg.c
getpagesize.c
getsysstats.c
libc-lock.h
libmachuser.abilist
mach_rpc.h
mprotect.c
msync.c
munmap.c
pagecopy.h
readonly-area-fallback.c debug: Improve '%n' fortify detection (BZ 30932) 2025-03-21 15:46:48 -03:00
sched_yield.c
sleep.c
strerror_l.c
sysdep.h hurd: Fix redefinition of 'P2ALIGN'. 2025-06-21 14:39:36 +02:00
thread_state.h
usleep.c
xpg-strerror.c