From: Linh Ngo (l1ngo@copper.denver.colorado.edu)
Date: 09/21/92


From: l1ngo@copper.denver.colorado.edu (Linh Ngo)
Subject: Re: PROBLEM COMPILING OLVWM
Date: 21 Sep 1992 22:44:37 GMT

In article <1992Sep21.105129.29375@athena.mit.edu> nmp08@rz.uni-kiel.dbp.de writes:
>Hi again!
>
>I finally managed to compile olvwm from tsx-11. But one problem encountered
>during the compilation: a constant named RLIMIT_NOFILE wasn't defined.
>I wonder to which header file it belongs and what the correct value is.
>I'm using gcc 2.2.2d7 with 4.1 libraries and header files together with
>X11 v1.1. Any ideas?

RLIMIT_NOFILE comes from System V release 4 and it is the
maximum number of open files per process. (BSD uses RLIMIT_OFILE.)

Linux has NR_OPEN defined in <linux/limits.h>, so you should be able
to use that in the place of RLIMIT_NOFILE.

By the way, a great book on general Unix programming that includes
the differences in the way POSIX, SVR4 and BSD does things is
"Advanced Programming in the Unix Environment" by W. Richard Stevens
(the author of Unix Network Programming). I would buy any book
that had his name on it. :)

Linh Ngo