Linux: Define MMAP_CALL_INTERNAL
commitc1b68685d438373efe64e5f076f4215723004dfb
authorFlorian Weimer <fweimer@redhat.com>
Wed, 4 May 2022 13:37:21 +0000 (4 15:37 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 4 May 2022 13:37:21 +0000 (4 15:37 +0200)
tree6c7c71e7d65e4f200a889b396ffc150e3bbb64fc
parent60f0f2130d30cfd008ca39743027f1e200592dff
Linux: Define MMAP_CALL_INTERNAL

Unlike MMAP_CALL, this avoids a TCB dependency for an errno update
on failure.

<mmap_internal.h> cannot be included as is on several architectures
due to the definition of page_unit, so introduce a separate header
file for the definition of MMAP_CALL and MMAP_CALL_INTERNAL,
<mmap_call.h>.

Reviewed-by: Stefan Liebler <stli@linux.ibm.com>
sysdeps/unix/sysv/linux/mmap_call.h [copied from sysdeps/unix/sysv/linux/s390/mmap_internal.h with 67% similarity]
sysdeps/unix/sysv/linux/mmap_internal.h
sysdeps/unix/sysv/linux/s390/mmap_call.h [moved from sysdeps/unix/sysv/linux/s390/mmap_internal.h with 78% similarity]