Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!security!genrad!decvax!harpo!seismo!hao!hplabs!sri-unix!dbj.rice@rand-relay From: dbj.rice%rand-relay@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Re: MAX FILES PER PROCESS PROBLEM Message-ID: <13827@sri-arpa.UUCP> Date: Sat, 19-Nov-83 22:35:49 EST Article-I.D.: sri-arpa.13827 Posted: Sat Nov 19 22:35:49 1983 Date-Received: Tue, 22-Nov-83 03:26:51 EST Lines: 16 From: Dave Johnson Under 4.1bsd, you can not make NOFILE greater than 31 thanks to the vread and vwrite system calls. In the page table entry for a vread page, there is a 5-bit wide field called pg_fileno which is set to the file descriptor number that the page is mapped from. That is the meaning of the comment: #define NOFILE 20 /* max open files per process */ /* NOFILE MUST NOT BE >= 31; SEE pte.h */ from param.h where NOFILE is defined. Dave Johnson Dept. of Math Science Rice University dbj.rice@CSNet-Relay