extra: Add a testcase for #7256.
librustc: Don't allow enum struct variants to shadow structs.
Add test for duplicate definitions of structs and enum struct variants.
auto merge of #7258 : huonw/rust/7256, r=bstrie
auto merge of #7267 : luqmana/rust/issue-5792, r=cmr

Fixes #5792
libc: support functions from sys/mman.h

Because its part of POSIX. Values are taken from FreeBSD, linux
and OSX header files.
libc: add POSIX-compatible sysconf consts

Because its part of POSIX. Values are taken from FreeBSD, linux
and OSX header files.
libc: (u)int => c_(u)int for consts