aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-01-09 04:06:05 +0000
committerUlrich Drepper <drepper@redhat.com>2003-01-09 04:06:05 +0000
commit51c050b0f7f8ec865e155cf34e2ace52a175d060 (patch)
treebe8a9909fb809ed394621eb2f445314d0fe1302d
parentc05bc2ca7b996f868046627cb81c8b446c140900 (diff)
downloadglibc-51c050b0f7f8ec865e155cf34e2ace52a175d060.tar
glibc-51c050b0f7f8ec865e155cf34e2ace52a175d060.tar.gz
glibc-51c050b0f7f8ec865e155cf34e2ace52a175d060.tar.bz2
glibc-51c050b0f7f8ec865e155cf34e2ace52a175d060.zip
Add INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.
-rw-r--r--sysdeps/unix/sysv/linux/m68k/brk.c5
-rw-r--r--sysdeps/unix/sysv/linux/m68k/getpagesize.c7
2 files changed, 7 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/m68k/brk.c b/sysdeps/unix/sysv/linux/m68k/brk.c
index 396b97d945..6b2c92852d 100644
--- a/sysdeps/unix/sysv/linux/m68k/brk.c
+++ b/sysdeps/unix/sysv/linux/m68k/brk.c
@@ -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)
diff --git a/sysdeps/unix/sysv/linux/m68k/getpagesize.c b/sysdeps/unix/sysv/linux/m68k/getpagesize.c
index 266d81daed..10a437b06e 100644
--- a/sysdeps/unix/sysv/linux/m68k/getpagesize.c
+++ b/sysdeps/unix/sysv/linux/m68k/getpagesize.c
@@ -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