clearsockprefix() (io-pkt)

Updated: April 19, 2023

Set to NULL the prefix for the networking stack path for the current thread

Synopsis:

#include <sys/socket.h>

int clearsockprefix(void);

Library:

libsocket

Use the -l socket option to qcc to link against this library.

Description:

The clearsockprefix() function clears any prefix for the networking stack path set by setsockprefix(). The prefix used reverts to the one specified by the SOCK environment variable.

Returns:

EOK
Success.
ENOMEM
Insufficient memory to store thread-specific path prefix value.
EINVAL
Socket path prefix has not been set on this thread.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes