Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (s and S) spt_putwchar(2)
NAME
spt_putwchar - Initiates thread-aware fputwchar( ) function
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
wint_t spt_putwchar(
wint_t c);
PARAMETERS
See the putwchar(3) reference page either online or in the Open System Services Library Calls
Reference Manual.
DESCRIPTION
This is a thread-aware version of the putwchar() function. The le descriptor underlying stan-
dard output must be non-locking for this function to be thread-aware.
The following macro maps spt_putwchar() to putwchar( ) and has been dened in spthread.h:
#dene putwchar(c) spt_putwchar(c)
This macro is available only when SPT_THREAD_AWARE has been dened before including
spthread.h, as follows:
#dene SPT_THREAD_AWARE
RETURN VALUES
See the putwchar(3) reference page. The following also applies:
The value of errno is never set to [EAGAIN] or [EWOULDBLOCK].
If the le descriptor underlying standard output becomes invalid (is closed by another
thread), WEOF is returned with an errno of [EBADF].
If a signal is received via the pthread_kill() function and is not blocked, ignored, or
handled, WEOF is returned with an errno of [EINTR].
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specication. Interfaces documented on this
reference page conform to the following industry standards:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header le spthread.h is an HP exception to the POSIX standard.
527186-003 Hewlett-Packard Company 7121