Redmine #6766: Work around bug in system headers on HPUX 11.23 IA64.

The definition using mpinfou inside /usr/include/machine/sys/getppdp.h
is supposed to be protected by an "#ifdef KERNEL", but it's missing.
Since fixing it properly requires changing the system, we instead fix
it by defining a dummy structure. Since it is a kernel structure it
will never actually be used anywhere.
Merge pull request #2030 from kacfengine/broken_hpux_system_headers

Redmine #6766: Work around bug in system headers on HPUX 11.23 IA64.
Suppress failure on Solaris 11 due to process selection failure.
Redmine#6674 Modifying hashing function to add info about index boudaries

When using multi-index arrays hash function is looping through each
character in index without modifying hashed value once moving form one
index to another. That's why entries like a[te][st], a[tes][t], a[t][e][st]
and all other variations are resulting in having exactly the same hash.
While trying to add new array entry to RB tree having the same characters
in indexes previous entry is updated instead of new one being created.
Adjust acceptance test for Redmine#6674
Fix test relying on specific order of getindices.

As getindices returned list is not guaranteed to be in any specific
order we should sort the results before comparing expected and actual
test results.
Merge pull request #2033 from pasinskim/redmine_6674

Redmine#6674 Modifying hashing function for multi-indexed arrays
Fix broken variables tree iteration.

This fixes whole number of problems with iterating through RB tree
containing variables. Especially:
https://dev.cfengine.com/issues/6033
https://dev.cfengine.com/issues/6779

EvalContextVariableTableIteratorNew is calling VariableTableIteratorNew
which is not aware of variable indexes (VarRef->indices). Then while picking
value form tree to be iterator it might or might not contain indexes.
Randomly selecting variable with wrong index (and number of indexes)
is causing wrong behavior while iterating through list of variables.
VariableTableIteratorNext is checking indexes and returning variables
based on VariableTableIterator selected previously by
EvalContextVariableTableIteratorNew which is totally unreliable in case
of arrays.
Fixing arrays hashing.

To avoid having the same hashes for variables like a[10] and a1[0]
array boundary hash moved above index hashing.
Fix relaying on order of keys returned by maparray.
Test case testing multi-index array hashing updated.

Now cases like a[10] and a1[0] covered while checking if hashing is
working accurately.
Disable problematic acceptance test completely on Solaris 11.
Fix test relying on ordering of array elements returning by mergedata.

This one is simple change of expected strings. We can think how to modify
this test in future to sort the merged array elements before comparing.
Fix fakeroot messing up a test by moving it to the unsafe area.

Fakeroot's file magic somehow interferes with the backgrounded
promises which in turn leads to stale processes lingering after the
test has finished.
readfile and textxform functions do not rely on 4k limit anymore
Added text_xform tests for large sizes
CF_INFINITY is not a limit for buffer size, it's just an indication that policy has the parameter 'inf'.
Comment for clarity.
A couple of TODOs.
metadata for story id 5525 and 5526 (user present and absent)

Modified by: Kristian Amlie <kristian.amlie@cfengine.com>