This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Small fixes/additions for 2.1.3
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: Small fixes/additions for 2.1.3
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Mon, 15 Nov 1999 01:02:08 +0100
Hi,
some small things for 2.1.3:
* sysdeps/unix/sysv/linux/execve.c: Add prototype for __syscall_execve.
* sysdeps/unix/sysv/linux/setrlimit.c: Add prototype for
__syscall_setrlimit.
* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add setrlimit.
* sysdeps/powerpc/stackinfo.h: New file.
Uli, would you please consider the loader patch Geoff posted on libc-hacker for
2.1.3? It solves the mozilla problem for us and seems to have no negative
effects so far. We are still tracking a pthread related bug (__m_kind gets
corrupted) with mozilla, but probably can't finish that before 2.1.3.
Thanks,
Franz.
Index: execve.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/execve.c,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 execve.c
--- execve.c 1999/08/21 04:52:27 1.1.2.2
+++ execve.c 1999/11/14 22:50:03
@@ -22,6 +22,7 @@
#include <sysdep.h>
#include <sys/syscall.h>
+extern int __syscall_execve (const char *file, char **argv, char **envp);
extern void __pthread_kill_other_threads_np __P ((void));
weak_extern (__pthread_kill_other_threads_np)
Index: setrlimit.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/setrlimit.c,v
retrieving revision 1.3.2.2
diff -u -p -r1.3.2.2 setrlimit.c
--- setrlimit.c 1999/11/14 07:07:03 1.3.2.2
+++ setrlimit.c 1999/11/14 22:50:03
@@ -23,6 +23,8 @@
#include <sysdep.h>
#include <sys/syscall.h>
+extern int __syscall_setrlimit (unsigned int resource,
+ const struct rlimit *rlimits);
/* Linux 2.3.25 introduced a new system call since the types used for
the limits are now unsigned. */
Index: powerpc/syscalls.list
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/powerpc/syscalls.list,v
retrieving revision 1.13.2.1
diff -u -p -r1.13.2.1 syscalls.list
--- syscalls.list 1999/08/23 04:09:18 1.13.2.1
+++ syscalls.list 1999/11/14 22:50:03
@@ -22,6 +22,7 @@ s_pread64 pread64 pread 5 __syscall_pre
s_ptrace ptrace ptrace 4 __syscall_ptrace
s_pwrite64 pwrite64 pwrite 5 __syscall_pwrite
s_reboot reboot reboot 3 __syscall_reboot
+s_setrlimit setrlimit setrlimit 3 __syscall_setrlimit
s_sigaction sigaction sigaction 3 __syscall_sigaction
s_sigpending sigpending sigpending 1 __syscall_sigpending
s_sigprocmask sigprocmask sigprocmask 3 __syscall_sigprocmask
--- /dev/null Tue May 5 13:32:27 1998
+++ sysdeps/powerpc/stackinfo.h Sun Nov 14 15:53:17 1999
@@ -0,0 +1,28 @@
+/* Copyright (C) 1999 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
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+/* This file contains a bit of information about the stack allocation
+ of the processor. */
+
+#ifndef _STACKINFO_H
+#define _STACKINFO_H 1
+
+/* On PPC the stack grows down. */
+#define _STACK_GROWS_DOWN 1
+
+#endif /* stackinfo.h */