scripting: fix parsing of alias values.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
rtt : remove "using namespace std" from headers to avoid name clash while using third party libraries
types: fixing std::string syntax in EnumTypeInfo

Signed-off-by: Steven Bellens <steven.bellens@mech.kuleuven.be>
StructTypeInfo: commenting out debug output

Signed-off-by: Steven Bellens <steven.bellens@mech.kuleuven.be>
activity: initialize default thread with lowest priority instead of '0'

Otherwise, a warning may be issued because of the hardcoded '0' value
not matching a priority value.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
cmake: fix linking order of Xenomai libraries

The order was wrong and newer linkers (Ubuntu 11.10) use --as-needed,
skipping the symbols of one of the libraries.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
fosi: don't set cpu affinity if 'all' is specified.

Signed-off-by: Eli Reekmans <eli.reekmans@intermodalics.eu>
xenomai: minor affinity changes + code formatting

- exit -1 if mlockall fails
- use T_CPUMASK to be sure we don't pass too much flags to the xeno threads
- Return 0 instead of ~0 for getting the cpu affinity
  todo: cache affinity and return that number to user
- removed plenty of tabs and put in spaces

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
rtt_cheat_sheet: fix typo in addOperation for class member functions

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
doc: fixup figure display in pdf version.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
doc: update copyright statement.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
doc: updated some doc images.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
mqueue: fix serious bug where slow serialization was used on arrays.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
mqueue: provide compatibility with boost 1.46 or newer

For some reason, we do save the item_version_type, but we never load it,
making the read data corrupt (extra int in input stream). Somehow
we don't play nice with the boost::serialization functions. Can't find
out why, so we just catch the item_version_type and then don't save it.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
fix bug #941: FindXenomaiPosix.cmake disregards XENOMAI_POSIX_ROOT_DIR env variable

The attached patch was corrupt, but the idea was correct.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
gnulinux capabilities(7) support

Hi,

I just noticed that using capabilities(7) to configure SCHED_RT
permissions did not work, because in os/gnulinux/fost_internal.cpp
SCHED_RT is squelched to SCHED_OTHER if no rlimits are configured and
we are not root (although spawning a RT thread would work because of
the configured capabilities)

Below an experimental patch that extends gnulinux/fosi_internal to
check for possible capabilities. With this the deployers
(deployer-gnulinux, rttlua-gnulinux) can be configured with
CAP_SYS_NICE to permit spawning threads with RT priorities, ie:

$ sudo setcap cap_sys_nice=ep rttlua-gnulinux

The patch uses libcap-ng, and Works Fine Here (TM). What makes it
experimental is the integration into the build system :-) (maybe sb
can take a look?)

Regards
Markus

From 0a861cbdf6c2807dde3b436fc6bc35b1d6764aad Mon Sep 17 00:00:00 2001
From: Markus Klotzbuecher <markus.klotzbuecher@mech.kuleuven.be>
Date: Mon, 2 Apr 2012 15:05:59 +0200
Subject: [PATCH] add basic capabilities support on gnulinux
os: cleanup mk's patch for cap-ng.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
internal: fix incomplete type error when compiling with clang

Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>
fixed: collecting status of async operation with 5 arguments
config: fix cmake logic for cmake 2.8.8

Signed-off-by: Steven Bellens <steven.bellens@mech.kuleuven.be>