mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 15:30:07 +00:00
Add INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
This commit is contained in:
parent
c05bc2ca7b
commit
51c050b0f7
@ -1,5 +1,5 @@
|
||||
/* brk system call for Linux/m68k.
|
||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996, 1997, 2003 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
|
||||
@ -33,7 +33,8 @@ __brk (void *addr)
|
||||
{
|
||||
void *newbrk;
|
||||
|
||||
newbrk = (void *) INTERNAL_SYSCALL (brk, 1, addr);
|
||||
INTERNAL_SYSCALL_DECL (err);
|
||||
newbrk = (void *) INTERNAL_SYSCALL (brk, err, 1, addr);
|
||||
__curbrk = newbrk;
|
||||
|
||||
if (newbrk < addr)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Andreas Schwab <schwab@suse.de>.
|
||||
|
||||
@ -37,9 +37,10 @@ __getpagesize ()
|
||||
return GL(dl_pagesize);
|
||||
|
||||
#ifdef __NR_getpagesize
|
||||
result = INTERNAL_SYSCALL (getpagesize, 0);
|
||||
INTERNAL_SYSCALL_DECL (err);
|
||||
result = INTERNAL_SYSCALL (getpagesize, err, 0);
|
||||
/* The only possible error is ENOSYS. */
|
||||
if (!INTERNAL_SYSCALL_ERROR_P (result))
|
||||
if (!INTERNAL_SYSCALL_ERROR_P (result, err))
|
||||
return result;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user