zsh-workers
 help / color / mirror / code / Atom feed
From: "Bas V. de Bakker" <bas@astro.uva.nl>
To: zsh-workers@math.gatech.edu
Subject: pre1 on hpux bug
Date: Mon, 1 Jul 1996 15:27:48 +0200	[thread overview]
Message-ID: <199607011328.JAA05138@euclid.skiles.gatech.edu> (raw)

Compiling zsh-3.0-pre1 on HPUX 10.10 crashes with

gcc -c -I.. -I. -I.  -DHAVE_CONFIG_H -Wall -Wno-implicit
-Wmissing-prototypes -O2 -DDEBUG builtin.c
In file included from zsh.h:35,
                 from builtin.c:32:
system.h:366: warning: `RLIM_NLIMITS' redefined
/usr/include/sys/resource.h:134: warning: this is the location of the
previous definition
builtin.c:3590: #error there are some unknown limits.  Fix me!
make[1]: *** [builtin.o] Error 1

This is easiliy fixed by the following patch:

*** system.h.orig	Mon Jul  1 15:17:34 1996
--- system.h	Mon Jul  1 15:17:51 1996
***************
*** 350,371 ****
  
  #ifdef HAVE_SYS_RESOURCE_H
  # include <sys/resource.h>
- # ifdef __hpux
- /* HPUX does have the BSD rlimits in the kernel.  Officially they are *
-  * unsupported but quite a few of them like RLIMIT_CORE seem to work. *
-  * All the following are in the <sys/resource.h> but made visible     *
-  * only for the kernel.                                               */
- #  define	RLIMIT_CPU	0
- #  define	RLIMIT_FSIZE	1
- #  define	RLIMIT_DATA	2
- #  define	RLIMIT_STACK	3
- #  define	RLIMIT_CORE	4
- #  define	RLIMIT_RSS	5
- #  define	RLIMIT_NOFILE   6
- #  define	RLIMIT_OPEN_MAX	RLIMIT_NOFILE
- #  define	RLIM_NLIMITS	7
- #  define	RLIM_INFINITY	0x7fffffff
- # endif
  #endif
  
  /* we use the SVR4 constant instead of the BSD one */
--- 350,355 ----

Note that all these definitions are in <sys/resource.h>, but with
RLIMIT_AS added and RLIM_NLIMITS defined to 8.

The presence of this code suggests that some earlier version of hpux
needs this.  But as we don't have any other versions here, I'm afraid
I'll leave figuring out the details to someone else.

Bas.



             reply	other threads:[~1996-07-01 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-01 13:27 Bas V. de Bakker [this message]
1996-07-01 15:56 ` Zefram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199607011328.JAA05138@euclid.skiles.gatech.edu \
    --to=bas@astro.uva.nl \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).