Subject: mmap(2) question
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: None <Mark_Weaver@brown.edu>
List: current-users
Date: 12/11/1993 04:33:52
I quote from the mmap(2) man page:

  MAP_ANON    Map anonymous memory not associated with any specific file.
	      The file descriptor used for creating MAP_ANON regions is
	      used only for naming, and may be specified as -1 if no name
	      is associated with the region.

Inspection of the mmap code reveals that if you pass a closed file
descriptor other than -1, it returns EBADF.

So, how do you create a file descriptor suitable for use with
MAP_ANON?  Also, does this all work properly?

	Mark
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu           | Brown University
PGP Key: finger mhw@cs.brown.edu       | Dept of Computer Science

------------------------------------------------------------------------------