buxtonctl: Fix a bug while handling numerics

The functions strtoll and others of the familly
are using errno to report any conversion error.
But they doen't touch errno in case of success.
Thus errno has to be reset to 0 before calling it.

Change-Id: I7af25d1b30e3f8890fa02a8b859de25bde399990
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
shared: increasing count of parameters sent

For sending list of names, the count of parameter
have to be increased. This is a current limitation
of the model.

Improved comment of the constant BUXTON_MESSAGE_MAX_PARAMS.

Change-Id: I75152134307a4924822fe559906b02253dfe7173
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Data: Setting smack labels on daemon socket

When Smack is enabled, the label must be set to
* to allow the service to be accessed by any
clients. The rules for accessing the socket file
are still applied and used for controlling access
to buxton.

Change-Id: Ic348dd8e7debfbf94ef4f17bac996915857649e3
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
buxtonctl: Improving output

To allow type checking, the output is now
typing the type of the key.

Change-Id: Icfb4bea497502d2a365d2df0bfdb0c544ae8b636
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
memory: Fix bug of labelling groups

The label of the groups wasn't copied.
This patch fixes it.

Change-Id: Iedd2f2c62e434ef582bd93d476547393a6bea3e3
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
gdbm: Fix a wrong assertion

The assertion was wrong because the goto end
was missing.

Change-Id: I4d5eedf1561807378a154c05e41414f0d07438ea
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
libbuxton: improved management of group types

Change-Id: If4cbd77be8ca102303b710f43ad3ef69cb9127c0
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
shared: Fix of warnings (explicit conversion)

Change-Id: I8643e26559a5b3fa111b381b6ff72d788e255ac3
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
shared: Fix of warnings (explicit conversion)

Change-Id: Ibfa5f4a8564f7b7140c3ae1fd34d30ac1da50dcb
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
shared: Fix of warnings

Change-Id: If2b140b81d84c7e854b48685616591631eead329
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Adding functionnality of getting labels

Change-Id: Ie6151301cc6cab4e10fd0c9a14ffed1f04d4151f
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
buxtonctl: adding server only behaviour

The new option -s or --server enforce to use the
the server buxtond and to not use direct access.

Added also the command 'check' that only check
buxton is available.

Change-Id: Ic75dc055bf9f0c9fec3825e7e61431ab538583f3
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
buxtonctl: sorting the output of lists

Sorting the output of the command list is ergonomic
for users.

Change-Id: I9c8ad4f24a81bd08c18657e5b125c24a88461a66
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>