Subject: mmap(2) question
To: None <>
From: None <>
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?

Email:           | Brown University
PGP Key: finger       | Dept of Computer Science