ds_flags()

set the flags for a data server variable

Synopsis:

#include <ds.h>

int ds_flags( ds_t dsdes, 
              char *variable_name,
              char flags );

Description:

The ds_flags() function changes the state of the flags belonging to the variable called variable_name on the data server identified by dsdes. The following flag constant is defined:

DS_PERM
Don't delete the variable when the application that created it terminates. The variable is removed when the data server process terminates, or if the flag is turned off after the application that created the variable terminates.

Returns:

0
Success.
-1
An error occurred; errno is set.

Errors:

ESRCH
The variable doesn't exist in the data server.

Classification:

QNX

Safety:
Interrupt handler No
Signal handler Yes, but modifies errno
Thread Yes

See also:

ds_clear(), ds_create(), ds_deregister(), ds_set()