home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.bash.bug
- Path: sparky!uunet!cis.ohio-state.edu!eued50.tuwien.ac.at!tuppa
- From: tuppa@eued50.tuwien.ac.at (Walter Tuppa)
- Subject: ulimit -c 0 for HP (hack, useful)
- Message-ID: <TUPPA.92Jul28103902@eued50.tuwien.ac.at>
- Sender: gnulists@ai.mit.edu
- Organization: Technical University of Vienna
- Distribution: gnu
- Date: Tue, 28 Jul 1992 09:39:02 GMT
- Approved: bug-bash@prep.ai.mit.edu
- Lines: 44
-
- 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
- ============================================================================
-
-