freebsd-nq/lib/libc
John Baldwin 8e38aeff17 Add a new file descriptor type for IPC shared memory objects and use it to
implement shm_open(2) and shm_unlink(2) in the kernel:
- Each shared memory file descriptor is associated with a swap-backed vm
  object which provides the backing store.  Each descriptor starts off with
  a size of zero, but the size can be altered via ftruncate(2).  The shared
  memory file descriptors also support fstat(2).  read(2), write(2),
  ioctl(2), select(2), poll(2), and kevent(2) are not supported on shared
  memory file descriptors.
- shm_open(2) and shm_unlink(2) are now implemented as system calls that
  manage shared memory file descriptors.  The virtual namespace that maps
  pathnames to shared memory file descriptors is implemented as a hash
  table where the hash key is generated via the 32-bit Fowler/Noll/Vo hash
  of the pathname.
- As an extension, the constant 'SHM_ANON' may be specified in place of the
  path argument to shm_open(2).  In this case, an unnamed shared memory
  file descriptor will be created similar to the IPC_PRIVATE key for
  shmget(2).  Note that the shared memory object can still be shared among
  processes by sharing the file descriptor via fork(2) or sendmsg(2), but
  it is unnamed.  This effectively serves to implement the getmemfd() idea
  bandied about the lists several times over the years.
- The backing store for shared memory file descriptors are garbage
  collected when they are not referenced by any open file descriptors or
  the shm_open(2) virtual namespace.

Submitted by:	dillon, peter (previous versions)
Submitted by:	rwatson (I based this on his version)
Reviewed by:	alc (suggested converting getmemfd() to shm_open())
2008-01-08 21:58:16 +00:00
..
amd64 Since nan() is supposed to work the same as strtod("nan(...)", NULL), 2007-12-18 23:46:32 +00:00
arm Arrange so that the NaN returned by strtod("nan", NULL) is the same as 2007-12-16 21:15:09 +00:00
compat-43 Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
db The usage of "info" in init_hash() is read-only, so constify 2007-05-25 09:57:48 +00:00
gdtoa Export gdtoa's __ULto{x,Q}_D2A routine in a private namespace so 2007-12-16 21:15:57 +00:00
gen Add a new file descriptor type for IPC shared memory objects and use it to 2008-01-08 21:58:16 +00:00
gmon Remove .mcount from gmon's Symbol map and add it to the appropriate 2007-05-13 14:16:55 +00:00
i386 Since nan() is supposed to work the same as strtod("nan(...)", NULL), 2007-12-18 23:46:32 +00:00
ia64 Since nan() is supposed to work the same as strtod("nan(...)", NULL), 2007-12-18 23:46:32 +00:00
include Change the C wrappers for mmap/lseek/pread/pwrite/truncate/ftruncate to 2007-07-04 23:27:38 +00:00
inet Require users to provide a length information for inet_ntoa_r, 2007-06-14 07:13:28 +00:00
isc Merge BIND 9.4.1 into main chunk. 2007-06-03 17:20:27 +00:00
locale Remove 3rd clause of license 2007-12-12 07:43:23 +00:00
nameser This commit was generated by cvs2svn to compensate for changes in r174223, 2007-12-03 15:07:58 +00:00
net Moved logging out of the nss_method_lookup() in order not to 2007-12-17 16:12:57 +00:00
nls Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
posix1e Some libc symbol map cleanups. 2007-05-31 13:01:34 +00:00
powerpc Fix build from errors exposed with recent version_gen.awk commit. 2007-10-18 07:23:31 +00:00
quad Fix a typo that prevented the quad symbols from being exported 2007-07-06 13:42:24 +00:00
regex Diff reduction against other *BSDs: ANSIfy function 2007-06-11 03:05:54 +00:00
resolv Merge BIND 9.4.2 into main chunk. 2007-12-03 15:13:44 +00:00
rpc Use intermediate pointers to avoid strict alias type check failures 2007-11-20 01:51:20 +00:00
softfloat Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
sparc64 Since nan() is supposed to work the same as strtod("nan(...)", NULL), 2007-12-18 23:46:32 +00:00
stdio Move all the xprintf-related symbols to FBSDprivate_1.0. 2007-12-18 23:49:05 +00:00
stdlib Enable both sbrk(2)- and mmap(2)-based memory acquisition methods by 2008-01-03 23:22:13 +00:00
stdtime Reduce lock contention for simple cases. 2007-12-19 04:30:10 +00:00
string Remove license clause 3 to agree with the now-standard BSD license. 2007-12-12 18:33:06 +00:00
sys Add a new file descriptor type for IPC shared memory objects and use it to 2008-01-08 21:58:16 +00:00
uuid Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
xdr Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
yp Set timeout for all NIS RPC requests to 1 second and not just for 2007-07-24 13:06:08 +00:00
Makefile Fixed "make checkdpadd" (missing library dependencies). 2007-10-01 18:15:11 +00:00
Versions.def Increment the version namespace for 8.0-current. New symbols and 2007-12-14 20:49:06 +00:00