mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Revert "Add INLINE_SYSCALL_RETURN/INLINE_SYSCALL_ERROR_RETURN"
This reverts commit 0c5b8b5941
.
This commit is contained in:
@ -27,15 +27,11 @@ int
|
||||
__getrlimit64 (enum __rlimit_resource resource, struct rlimit64 *rlimits)
|
||||
{
|
||||
#ifdef __ASSUME_PRLIMIT64
|
||||
return INLINE_SYSCALL_RETURN (prlimit64, 4, int, 0, resource,
|
||||
NULL, rlimits);
|
||||
return INLINE_SYSCALL (prlimit64, 4, 0, resource, NULL, rlimits);
|
||||
#else
|
||||
# ifdef __NR_prlimit64
|
||||
INTERNAL_SYSCALL_DECL (err);
|
||||
int res = INTERNAL_SYSCALL (prlimit64, err, 4, 0, resource, NULL,
|
||||
rlimits);
|
||||
if (!__glibc_unlikely (INTERNAL_SYSCALL_ERROR_P (res, err))
|
||||
|| INTERNAL_SYSCALL_ERRNO (res, err) != ENOSYS)
|
||||
int res = INLINE_SYSCALL (prlimit64, 4, 0, resource, NULL, rlimits);
|
||||
if (res == 0 || errno != ENOSYS)
|
||||
return res;
|
||||
# endif
|
||||
struct rlimit rlimits32;
|
||||
|
Reference in New Issue
Block a user