DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

funlockfile(S-osr5)


funlockfile -- relinquish thread ownership of a file

Syntax

cc . . . -lc

#include <stdio.h>

void funlockfile(FILE *file);

Description

This function provide for explicit application-level locking of standard I/O objects. It can be used by a thread to end a sequence of I/O statements that are to be executed as a unit.

funlockfile relinquishes ownership granted to the thread via a previous successful call to flockfile or ftrylockfile.

A thread can nest calls to flockfile or ftrylockfile as long as each successful call has a corresponding funlockfile call to relinquish ownership completely.

The behavior is undefined if funlockfile is called without a matching successful call to flockfile or ftrylockfile.

See also

flock(S-osr5), flockfile(S-osr5), ftrylockfile(S-osr5),
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005