From: Jan-Benedict G. <jb...@us...> - 2005-07-31 18:17:52
|
Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27003 Modified Files: resource.h Log Message: - Use the asm-generic/resource.h. This is needed for [RLIMIT_MSGQUEUE]. - We don't need out own version, since we don't need to be that compatible to other operating systems on VAX. Maybe at some time, Ultrix compatibility would be interesting. - I'm not sure, but I've got a feeling that my KA43 (which boots now to userland) is less stable than with 2.6.11. I *think* this is possibly caused by this, because RLIM_NLIMITS is now 15 (was 13) and thus, userspace memory might be overwritten because kernel writes more than userspace (uClibc) expects? - THIS PATCH NEEDS REVIEW! Index: resource.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/resource.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- resource.h 2 Sep 2004 22:41:50 -0000 1.4 +++ resource.h 31 Jul 2005 18:17:40 -0000 1.5 @@ -1,51 +1,6 @@ #ifndef _ASM_VAX_RESOURCE_H #define _ASM_VAX_RESOURCE_H -/*atp jan 2001 - taken from pa-risc for 2.4 update */ - -/* - * Resource limits - */ - -#define RLIMIT_CPU 0 /* CPU time in ms */ -#define RLIMIT_FSIZE 1 /* Maximum filesize */ -#define RLIMIT_DATA 2 /* max data size */ -#define RLIMIT_STACK 3 /* max stack size */ -#define RLIMIT_CORE 4 /* max core file size */ -#define RLIMIT_RSS 5 /* max resident set size */ -#define RLIMIT_NPROC 6 /* max number of processes */ -#define RLIMIT_NOFILE 7 /* max number of open files */ -#define RLIMIT_MEMLOCK 8 /* max locked-in-memory address space */ -#define RLIMIT_AS 9 /* address space limit */ -#define RLIMIT_LOCKS 10 /* maximum file locks held */ -#define RLIMIT_SIGPENDING 11 /* max number of pending signals */ -#define RLIMIT_MSGQUEUE 12 /* maximum bytes in POSIX mqueues */ - -#define RLIM_NLIMITS 13 - -/* - * SuS says limits have to be unsigned. - * Which makes a ton more sense anyway. - */ -#define RLIM_INFINITY (~0UL) - -#ifdef __KERNEL__ - -#define INIT_RLIMITS \ -{ \ - { RLIM_INFINITY, RLIM_INFINITY }, \ - { RLIM_INFINITY, RLIM_INFINITY }, \ - { RLIM_INFINITY, RLIM_INFINITY }, \ - { _STK_LIM, 10 * _STK_LIM }, \ - { 0, RLIM_INFINITY }, \ - { RLIM_INFINITY, RLIM_INFINITY }, \ - { 0, 0 }, \ - { INR_OPEN, INR_OPEN }, \ - { RLIM_INFINITY, RLIM_INFINITY }, \ - { RLIM_INFINITY, RLIM_INFINITY }, \ - { RLIM_INFINITY, RLIM_INFINITY }, \ -} - -#endif /* __KERNEL__ */ +#include <asm-generic/resource.h> #endif |