xref: /openbsd/lib/libpthread/man/putc_unlocked.3 (revision 86f9d4cd)
1*86f9d4cdStedu.\" $OpenBSD: putc_unlocked.3,v 1.4 2013/06/05 03:44:50 tedu Exp $
20dce2936Sd.\" David Leonard <d@openbsd.org>, 1998. Public domain.
3*86f9d4cdStedu.Dd $Mdocdate: June 5 2013 $
40dce2936Sd.Dt PUTC_UNLOCKED 3
57f3168a2Saaron.Os
60dce2936Sd.Sh NAME
70dce2936Sd.Nm putc_unlocked ,
80dce2936Sd.Nm putchar_unlocked
90dce2936Sd.Nd put next character from stream, efficiently
100dce2936Sd.Sh SYNOPSIS
11*86f9d4cdStedu.In stdio.h
120dce2936Sd.Ft int
130dce2936Sd.Fn putc_unlocked "int c" "FILE *stream"
140dce2936Sd.Ft int
150dce2936Sd.Fn putchar_unlocked "int c"
160dce2936Sd.Sh DESCRIPTION
170dce2936SdThe
180dce2936Sd.Fn putc_unlocked
190dce2936Sdand
200dce2936Sd.Fn putchar_unlocked
210dce2936Sdfunctions are equivalent to their locked counterparts,
220dce2936Sd.Xr putc 3
230dce2936Sdand
240dce2936Sd.Xr putchar 3 .
250dce2936SdHowever,
260dce2936Sd.Fn putc_unlocked
270dce2936Sdand
280dce2936Sd.Fn putchar_unlocked
290dce2936Sdassume that the relevant stream has either been previous locked
300dce2936Sdwith
310dce2936Sd.Xr flockfile 3 ,
320dce2936Sdor that it will not be accessed by any other thread.
330dce2936Sd.Sh RETURN VALUES
340dce2936SdThe return values are as described for
350dce2936Sd.Xr putc 3
360dce2936Sdand
370dce2936Sd.Xr putchar 3 .
380dce2936Sd.Sh SEE ALSO
390dce2936Sd.Xr putc 3 ,
400dce2936Sd.Xr putchar 3
410dce2936Sd.Sh STANDARDS
420dce2936Sd.Fn putc_unlocked
430dce2936Sdand
440dce2936Sd.Fn putchar_unlocked
450dce2936Sdconform to ISO/IEC 9945-1 ANSI/IEEE
460dce2936Sd.Pq Dq Tn POSIX
470dce2936SdStd 1003.1 Second Edition 1996-07-12.
48