This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix sigaction.c without --enable-kernel and brk.c


Hi!

Although ChangeLog entry said use INTERNAL_SYSCALL instead of asm,
brk.c has INLINE_SYSCALL which is not exactly what was intended.
Plus the typo reported on phil-list.

2002-12-20  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Fix
	a typo.
	* sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use INTERNAL_SYSCALL
	instead of INLINE_SYSCALL.

--- libc/sysdeps/unix/sysv/linux/i386/brk.c.jj	2002-12-20 13:37:13.000000000 +0100
+++ libc/sysdeps/unix/sysv/linux/i386/brk.c	2002-12-20 19:43:47.000000000 +0100
@@ -36,7 +36,7 @@ __brk (void *addr)
 {
   void *__unbounded newbrk;
 
-  newbrk = INLINE_SYSCALL (brk, 1, __ptrvalue (addr));
+  newbrk = INTERNAL_SYSCALL (brk, 1, __ptrvalue (addr));
 
   __curbrk = newbrk;
 
--- libc/sysdeps/unix/sysv/linux/i386/sigaction.c.jj	2002-12-20 13:37:14.000000000 +0100
+++ libc/sysdeps/unix/sysv/linux/i386/sigaction.c	2002-12-20 19:44:26.000000000 +0100
@@ -131,9 +131,9 @@ __libc_sigaction (int sig, const struct 
       k_newact.sa_restorer = &restore;
     }
 
-  result = INTERNAL_SYCALL (sigaction, 3, sig,
-			    act ? __ptrvalue (&k_newact) : 0,
-			    oact ? __ptrvalue (&k_oldact) : 0);
+  result = INTERNAL_SYSCALL (sigaction, 3, sig,
+			     act ? __ptrvalue (&k_newact) : 0,
+			     oact ? __ptrvalue (&k_oldact) : 0);
 
   if (result < 0)
     {

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]