[Previous] [Contents] [Index] [Next]

ds_flags()

Set the flags for a data server variable

Synopsis:

#include <ds.h>

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

Library:

ds3r.lib, ds3s.lib

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:

EBADF
Invalid file descriptor dsdes.
ESRCH
The variable doesn't exist in the data server.

Classification:

QNX 4

Safety:
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

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


[Previous] [Contents] [Index] [Next]