* pre1 on hpux bug
@ 1996-07-01 13:27 Bas V. de Bakker
1996-07-01 15:56 ` Zefram
0 siblings, 1 reply; 2+ messages in thread
From: Bas V. de Bakker @ 1996-07-01 13:27 UTC (permalink / raw)
To: zsh-workers
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: pre1 on hpux bug
1996-07-01 13:27 pre1 on hpux bug Bas V. de Bakker
@ 1996-07-01 15:56 ` Zefram
0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 1996-07-01 15:56 UTC (permalink / raw)
To: Bas V. de Bakker; +Cc: zsh-workers
>- # 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. */
>Note that all these definitions are in <sys/resource.h>, but with
>RLIMIT_AS added and RLIM_NLIMITS defined to 8.
Maybe that #ifdef should merely be changed to "#if defined(__hpux) &&
!defined(RLIM_NLIMITS)".
-zefram
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-07-01 16:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-01 13:27 pre1 on hpux bug Bas V. de Bakker
1996-07-01 15:56 ` Zefram
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).