set the flags for a data server variable
#include <ds.h>
int ds_flags( ds_t dsdes,
char *variable_name,
char flags );
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.
- 0
- Success.
- -1
- An error occurred; errno is set.
- EBADF
- The dsdes argument isn't a valid file descriptor.
- ESRCH
- The variable doesn't exist in the data server.
QNX
Safety: | |
Interrupt handler |
No |
Signal handler |
Yes, but modifies errno |
Thread |
Yes |
ds_clear(),
ds_create(),
ds_deregister(),
ds_set()