about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-15 00:13:42 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-15 00:13:42 +0000
commit8ba4e594c5ef2b1d0c4e74354413d9f61c799a3c (patch)
tree8db8a1ed14712dc61ee96a35c2c97cd7494db7c3 /sysdeps
parent589e57a9df78a06a9fb55009ee90d9f26d76c9b4 (diff)
downloadglibc-8ba4e594c5ef2b1d0c4e74354413d9f61c799a3c.tar.gz
glibc-8ba4e594c5ef2b1d0c4e74354413d9f61c799a3c.tar.xz
glibc-8ba4e594c5ef2b1d0c4e74354413d9f61c799a3c.zip
Update.
1999-11-14  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/execve.c: Add __syscall_execve prototype.
	* sysdeps/unix/sysv/linux/setrlimit.c: Add __syscall_setrlimit
	prototype.
	* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add setrlimit.
	* sysdeps/powerpc/stackinfo.h: New file.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/powerpc/stackinfo.h28
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/syscalls.list1
-rw-r--r--sysdeps/unix/sysv/linux/setrlimit.c2
3 files changed, 31 insertions, 0 deletions
diff --git a/sysdeps/powerpc/stackinfo.h b/sysdeps/powerpc/stackinfo.h
new file mode 100644
index 0000000000..c631e8425f
--- /dev/null
+++ b/sysdeps/powerpc/stackinfo.h
@@ -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 */
diff --git a/sysdeps/unix/sysv/linux/powerpc/syscalls.list b/sysdeps/unix/sysv/linux/powerpc/syscalls.list
index c007f26dea..1d8df00505 100644
--- a/sysdeps/unix/sysv/linux/powerpc/syscalls.list
+++ b/sysdeps/unix/sysv/linux/powerpc/syscalls.list
@@ -22,6 +22,7 @@ s_pread64	pread64	pread		5	__syscall_pread
 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
diff --git a/sysdeps/unix/sysv/linux/setrlimit.c b/sysdeps/unix/sysv/linux/setrlimit.c
index 50506c3ad0..9df977447a 100644
--- a/sysdeps/unix/sysv/linux/setrlimit.c
+++ b/sysdeps/unix/sysv/linux/setrlimit.c
@@ -25,6 +25,8 @@
 
 #include "kernel-features.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.  */