Konstantin Belousov 0555fb3523 Somewhat modernize the SysV shm code:
- Use real locking, replace Giant with global sx protecting the
  subsystem.  Since the subsystem' lock is no longer dropped during
  the sleepsk, remove not needed SHMSEG_WANTED segment flag, and
  revert r278963.
- To do proper code simplification possible after the change of the
  lock, restructure several functions into _locked body and
  originally-named wrapper which calls into _locked variant.  This
  allows to eliminate the 'goto done2' spread over the code.
- Merge shm_find_segment_by_shmid() and shm_find_segment_by_shmidx().
- Consistently change all function prototypes to ANSI C.

Reviewed by:	mjg (who has earlier version of the similar patch to
	 introduce real locking)
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2015-03-21 15:01:19 +00:00
..
2015-03-16 00:10:03 +00:00
2015-01-23 21:08:24 +00:00
2015-01-22 11:12:42 +00:00
2015-03-16 00:10:03 +00:00
2015-03-16 00:10:03 +00:00
2015-03-16 00:10:03 +00:00
2015-01-22 11:12:42 +00:00
2015-03-16 00:10:03 +00:00
2015-01-22 11:12:42 +00:00
2015-01-22 11:12:42 +00:00
2014-03-14 06:29:43 +00:00
2014-06-26 13:57:44 +00:00
2014-08-11 15:06:07 +00:00
2015-01-22 11:12:42 +00:00
2015-01-23 21:08:24 +00:00
2015-01-23 21:08:24 +00:00
2014-10-15 12:38:26 +00:00
2014-11-30 12:52:33 +00:00
2015-03-17 14:16:50 +00:00
2014-11-23 12:01:52 +00:00