mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
Use INTERNAL_SYSCALL.
This commit is contained in:
parent
efe0cd0fdc
commit
1332e84802
@ -33,16 +33,7 @@ __brk (void *addr)
|
|||||||
{
|
{
|
||||||
void *newbrk;
|
void *newbrk;
|
||||||
|
|
||||||
{
|
newbrk = INTERNAL_SYSCALL (brk, 1, addr);
|
||||||
register long d0 __asm__ ("%d0");
|
|
||||||
|
|
||||||
asm ("move%.l %2, %%d1\n"
|
|
||||||
"trap #0" /* Perform the system call. */
|
|
||||||
: "=d" (d0)
|
|
||||||
: "0" (SYS_ify (brk)), "g" (addr)
|
|
||||||
: "%d1");
|
|
||||||
newbrk = (void *) d0;
|
|
||||||
}
|
|
||||||
__curbrk = newbrk;
|
__curbrk = newbrk;
|
||||||
|
|
||||||
if (newbrk < addr)
|
if (newbrk < addr)
|
||||||
|
@ -37,9 +37,9 @@ __getpagesize ()
|
|||||||
return GL(dl_pagesize);
|
return GL(dl_pagesize);
|
||||||
|
|
||||||
#ifdef __NR_getpagesize
|
#ifdef __NR_getpagesize
|
||||||
result = INLINE_SYSCALL (getpagesize, 0);
|
result = INTERNAL_SYSCALL (getpagesize, 0);
|
||||||
/* The only possible error is ENOSYS. */
|
/* The only possible error is ENOSYS. */
|
||||||
if (result != -1)
|
if (!INTERNAL_SYSCALL_ERROR_P (result))
|
||||||
return result;
|
return result;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user