Pull up following revision(s) (requested by christos in ticket #222):
	include/stdlib.h: revision 1.98
	lib/libc/compat/stdlib/Makefile.inc: revision 1.3
	lib/libc/compat/include/stdlib.h: revision 1.5
	lib/libc/compat/stdlib/compat_putenv.c: revision 1.1
	lib/libc/compat/stdlib/compat_putenv.c: revision 1.2
PR/46360: YAMAMOTO Takashi: Restore NetBSD-5 compatibility with putenv()
copying the passed string (which is not ToG compliant), instead of using
it directly in the environment arrat as it should. Needs to be pulled up
to NetBSd-6.
use setenv so that we don't leak memory.
Pull up following revision(s) (requested by joerg in ticket #223):
	lib/libc/gen/makecontext.3: revision 1.10
Drop obsolete pthread restriction.
Pull up following revision(s) (requested by jnemeth in ticket #224):
	usr.bin/calendar/calendars/calendar.christian: revision 1.4
	usr.bin/calendar/calendars/calendar.usholiday: revision 1.4
	usr.bin/calendar/calendars/calendar.holiday: revision 1.20
	usr.bin/calendar/calendars/calendar.judaic: revision 1.4
	usr.bin/calendar/calendars/calendar.netbsd: revision 1.21
Update all variable days
- religious holidays taken from Wikipedia where available
- floating days (i.e. X day of Y month) taken from cal(1)
- NetBSD releases taken from http://www.netbsd.org/releases/formal.html#history
  - hopefully somebody will update this for the 6.0 release
Hopefully, these days will be correct for the first year of NetBSD 6.0.
Apply patches (requested by christos in ticket #225):
lib/libossaudio/Makefile			patch
lib/libossaudio/ossaudio.c			patch
lib/libossaudio/soundcard.h			patch

	Fix compilation of ioctls without the 3rd argument in ossaudio.
	[christos, ticket #225]
Pull up following revision(s) (requested by wiz in ticket #228):
	usr.sbin/makemandb/makemandb.c: revision 1.8
The new apropos(1) incorrectly displays hyphens in the first line
of the search results for a few man pages (for man(7) based man
pages).
Use patch from Abhinav Upadhyay in PR 46408 to fix this.
Tickets 220-225, 228.
Pull up following revision(s) (requested by christos in ticket #231):
	usr.bin/passwd/krb5_passwd.c: revision 1.20
- fix non pam build
- merge duplicated error code
- fix opt struct leak
Ticket 231.
Pull up the following revisions(s) (requested by martin in ticket #215):
	usr.bin/login/login_pam.c:	revision 1.22

Fix build.
trimusername (which does not exist) should be trimloginname.
Additional pullup for ticket #215 requested by martin
Pull up following revision(s) (requested by rmind in ticket #202):
	sys/arch/x86/include/cpuvar.h: revision 1.46
	sys/arch/xen/include/xenpmap.h: revision 1.34
	sys/arch/i386/include/param.h: revision 1.77
	sys/arch/x86/x86/pmap_tlb.c: revision 1.5
	sys/arch/x86/x86/pmap_tlb.c: revision 1.6
	sys/arch/i386/i386/genassym.cf: revision 1.92
	sys/arch/xen/x86/cpu.c: revision 1.91
	sys/arch/x86/x86/pmap.c: revision 1.177
	sys/arch/xen/x86/xen_pmap.c: revision 1.21
	sys/arch/x86/acpi/acpi_wakeup.c: revision 1.31
	sys/kern/subr_kcpuset.c: revision 1.5
	sys/arch/amd64/include/param.h: revision 1.18
	sys/sys/kcpuset.h: revision 1.5
	sys/arch/x86/x86/mtrr_i686.c: revision 1.26
	sys/arch/x86/x86/mtrr_i686.c: revision 1.27
	sys/arch/xen/x86/x86_xpmap.c: revision 1.43
	sys/arch/x86/x86/cpu.c: revision 1.98
	sys/arch/amd64/amd64/mptramp.S: revision 1.14
	sys/kern/sys_sched.c: revision 1.42
	sys/arch/amd64/amd64/genassym.cf: revision 1.50
	sys/arch/i386/i386/mptramp.S: revision 1.24
	sys/arch/x86/include/pmap.h: revision 1.52
	sys/arch/x86/include/cpu.h: revision 1.50
- Convert x86 MD code, mainly pmap(9) e.g. TLB shootdown code, to use
  kcpuset(9) and thus replace hardcoded CPU bitmasks.  This removes the
  limitation of maximum CPUs.
- Support up to 256 CPUs on amd64 architecture by default.
Bug fixes, improvements, completion of Xen part and testing on 64-core
AMD Opteron(tm) Processor 6282 SE (also, as Xen HVM domU with 128 CPUs)
by Manuel Bouyer.
- pmap_tlb_shootdown: do not overwrite tp_cpumask with pm_cpus, but merge
  like pm_kernel_cpus.  Remove unecessary intersection with kcpuset_running.
  Do not reset tp_userpmap if pmap_kernel().
- Remove pmap_tlb_mailbox_t wrapping, which is pointless after recent changes.
- pmap_tlb_invalidate, pmap_tlb_intr: constify for packet structure.
i686_mtrr_init_first: handle the case when there are no variable-size MTRR
registers available (i686_mtrr_vcnt == 0).
Ticket 202.
Pull up following revision(s) (requested by wiz in ticket #229):
	usr.sbin/makemandb/makemandb.c: revision 1.9
	usr.sbin/makemandb/DBSCHEMA: revision 1.2
	usr.sbin/makemandb/apropos-utils.c: revision 1.5
	usr.sbin/makemandb/apropos-utils.h: revision 1.3
PR 46419 by Abhinav Upadhyay using his updated patch:
Clean up after removing man page aliases.
Ticket 229.
Pull up following revision(s) (requested by chs in ticket #230):
	bin/rcp/rcp.c: revision 1.49
allocate a separate buffer in each call to sink().
reusing the buffer across recursive calls just doesn't work right.
Pull up following revision(s) (requested by jym in ticket #233):
	sys/arch/amd64/amd64/db_memrw.c: revision 1.10
	sys/arch/amd64/amd64/db_memrw.c: revision 1.11
	sys/arch/i386/i386/db_memrw.c: revision 1.29
Use the current destination address to compute PTE, not the address of
origin.
Harmless, except when db_write_text() passes a page boundary.
 From Bug Hunting.
XXX has to be pulled up to -5 and -6.
invlpg on a non canonical address is a noop, so no chance to invalidate
the TLB and the CPU will not notice the access right change.
This results in write protection faults in supervisor mode when patching
kernel code through ddb(4) (originally mapped as read only).
Bug reported by David Laight on port-amd64@ (thanks!), patch and test by
me.
i386 is unaffected as PG_LGFRAME does not mask the sign bits. For the
sake of correctness, use VA_SIGN_NEG(...) anyway.
XXX this is the patch that will be pulled-up to -5 and -6.
Pull up following revision(s) (requested by tsutsui in ticket #234):
	tools/Makefile.gnuhost: revision 1.38
Replace not only space but also '(' and ')' on generating BUILD_PLATFORM
strings to appease shell's echo.
Cygwin's uname -r returns "1.7.9(0.237/5/3)" etc.
Tickets 230, 232-234.
Pull up following revision(s) (requested by christos in ticket #232):
	distrib/sets/lists/comp/mi: revision 1.1756
	lib/libm/Makefile: revision 1.124
	lib/libm/src/math_private.h: revision 1.17
	lib/libm/src/b_tgamma.c: revision 1.1
	lib/libm/man/lgamma.3: revision 1.22
	lib/libm/src/b_log.c: revision 1.1
	lib/libm/src/b_exp.c: revision 1.1
	include/math.h: revision 1.58
	lib/libm/src/s_tgammaf.c: revision 1.1
add tgamma{,f}
Add tgamma{,f} from FreeBSD via  rudolf, netbsd at eq dot cz
oops, forgot to commit: add tgamma and tgammaf
Pull up following revision(s) (requested by tsutsui in ticket #235):
	distrib/common/bootimage/Makefile.bootimage: revision 1.5
Add two optional variables for liveimage/installimage builds:
---
	MBR_BOOTCODE
		optional MBR bootcode which should be installed by fdisk(8)
		(default: empty)
		- specified MBR_BOOTCODE must exist in ${DESTDIR}/usr/mdec
		- if MBR_BOOTCODE is not specified,
		  MBR_DEFAULT_BOOTCODE (default: mbr) will be used
		  if the target ${MACHINE} has the one in /usr/mdec
	INSTALLBOOTOPTIONS
		options passed to installboot(8), e.g., -o console=com0
		(default: empty)
---
Proposed by Brook Milligan on current-users@:
http://mail-index.NetBSD.org/current-users/2012/04/16/msg019892.html
Also make USE_MBR work on ${MACHINE}s which don't have the default
/usr/mdec/mbr bootcode. (no such port has the liveimage target yet though)
XXX: tools fdisk(8) implicitly uses host's /usr/mdec/mbr for the default
XXX: bootcode even for non-x86 targets if host is x86