sysmgr_sysconf_set()

QNX SDP8.0C Library ReferenceAPIDeveloper

Set the value of a configurable system limit or option

Synopsis:

#include <sys/sysmgr.h>

int sysmgr_sysconf_set( int cmd,
                        int name,
                        long value );

Arguments:

cmd
Set whether the system limit or option value that you specify is removed after the calling process terminates. Valid values are:
  • 0 — the value is removed (the default)
  • _CONF_STICKY — the value outlives the calling process
name
The system limit or option that you want to set. For a list, go to the entry for sysconf().
value
The new value for the limit or option.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The sysmgr_sysconf_set function sets the value of a configurable system limit or option.

Note:
To set a system limit, your process must have the confset ability enabled (for more information, go to Abilities in the QNX OS System Security Guide).

Returns:

0, or -1 if an error occurred (errno is set).

Errors:

EBUSY
A configuration variable with the name value you specified is already defined by another process.
EINVAL
Invalid argument (e.g., cmd is invalid).
ENOMEM
There is not enough memory available to create the configuration variable entry.
EPERM
The calling process doesn't have the required permission; go to Abilities in the QNX OS System Security Guide.
ETIMEDOUT
A kernel timeout unblocked the call. Go to TimerTimeout().

Classification:

QNX OS

Safety:
Cancellation pointNo
Signal handlerYes
ThreadYes
Page updated: