gh1888 Fix ecl run error output

Errors should include line/col/filename information formatted
similarly to the way eclcc outputs errors.

Fixes gh-1888

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
Fix problem with constant folding inline tables

In unusual cicumstances (see associated example file klogermann21.ecl)
selectors were being replaced inside nested operators which were
applied to the same dataset.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #1938 from wangkx/fix_useradd_groupadd_html

Fix useradd.html and groupadd.html

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #1933 from wangkx/fix_useradd_groupadd_html

Fix useradd.html and groupadd.html

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #1892 from rengolin/promote-super

Promote Super-File refactor

Reviewed-By: Jake Smith <jake.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #1923 from RussWhitehead/ldap

Memory leaks in LDAP calls to ldap_search_ext_s()

Reviewed-By: Jake Smith <jake.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #1919 from garonsky/issue1451-cluster-names-are-unique

Modify configmr to prevent dupe Clusters names

Reviewed-By: Sridhar Meda <sridhar.meda@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Roxiemem refactor: optimize fixed and variable rows

- clean up calls to roundup
- Introduced fixed size heaps that can be created on demand
- improve the test cases
  - Test the destructor is being called correctly
  - Add a variable size test
  - Add a simple speed test for the roundup function
- Support for multiple variable size heaps
- Slight optimization of roundup()

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
roxiemem add new atomic operation

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
roxiemem fix regression in fixed allocators

- If a rowallocator outlived the rowmanager the system could crash
  when the fixed heap tried to unregister itself.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
roxiemem change where the row destruct bit is stored

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
roxiemem normal heaps restricted to a single size

- Ensure that each variable size record bin is mapped to a unique
  allocator
- Move the chunkSize information into the heap - each heap (except for
  the huge heap) now only contains heaplets of a single size.
- Consistently use chunkCapacity for amount of space available to the
  user, and chunkSize for the size including any overhead.
- Prepare for packed row allocators.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
roxiemem support for packed fixed size allocators

packed allocators have the following characteristics
- they are unique to the activityid
- the sizes are 4 byte aligned, not rounded up
- the overhead per row is 4 bytes instead of 8

Cleanup/improve code for memstats function

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
roxiemem - improve bitmap processing code

- Clean up various items highlighted by previous code reviews
- Change activityIds to allocatorIds to make distinction clearer
- Use get_cycles_now instead of time, and avoid calling if not
  needed.
- Move the critical section in the bitmap code to reduce scope

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
roxiemem Add heapHWM for large allocations, and test pages>1

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Initial work on roxiemem callbacks etc

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Add support for round robin at different priorities

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
roxiemem Support for largemem shared memory

* Initial (untested) implementation of a callback to allow large memory
  to be shared between processes.

* Improve the row manager to allow callbacks to be called if out of
  global memory - improves the performance of stand alone roxie and
  thor when large hared memory is implements

* Improve roxie sort code so it doesn't spill small numbers of rows if
  it failed to reallocate the row array.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
roxiemem restore missing files

- Also rename get->query and link->get

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Mask the allocator id to remove checking flags

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>