Thread View: gnu.bash.bug
1 messages
1 total messages
Started by Walter Tuppa
Tue, 28 Jul 1992 09:39
ulimit -c 0 for HP (hack, useful)
Author: Walter Tuppa
Date: Tue, 28 Jul 1992 09:39
Date: Tue, 28 Jul 1992 09:39
43 lines
2143 bytes
2143 bytes
Hello, I just saw in another group, that HP/UX supports all calls for setting all types of BSD like limits, like ulimit -c 0, which is very important if you don't like any COREs. here my patch: please apply in the bash-1.12/builtins directory ====================== cut here ============================================= *** ulimit.def.org Tue Jan 21 06:01:35 1992 --- ulimit.def Tue Jul 28 10:21:10 1992 *************** *** 75,78 **** --- 75,91 ---- # undef HAVE_RESOURCE #endif + #ifdef HPUX_70 + /* don't know HPUX 7.xx but HPUX_8.0 has it */ + #include <sys/resource.h> + /* since this is only included in -D_KERNEL, it's copied to here. */ + #define HAVE_RESOURCE + + #define RLIMIT_CPU 0 /* cpu time in milliseconds */ + #define RLIMIT_FSIZE 1 /* maximum file size */ + #define RLIMIT_DATA 2 /* data size */ + #define RLIMIT_STACK 3 /* stack size */ + #define RLIMIT_CORE 4 /* core file size */ + #define RLIMIT_RSS 5 /* resident set size */ + #endif /* HPUX_70 /* **************************************************************** */ ====================== cut here ============================================= I know it's dirty, but it is very useful to us. -- ============================================================================ Walter Tuppa Inst. for MicroElectronics, Technical University of Vienna Gusshausstrasse 27-29 / 1040 Vienna / AUSTRIA E-Mail: tuppa@iue.tuwien.ac.at Phone: +43/1/58801-3713 Fax: +43/1/5059224 ============================================================================
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads