Add INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.

This commit is contained in:
Ulrich Drepper 2003-01-09 04:06:05 +00:00
parent c05bc2ca7b
commit 51c050b0f7
2 changed files with 7 additions and 5 deletions

View File

@ -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)

View File

@ -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