use unlocked I/O in getdelim
authorPaolo Bonzini <bonzini@gnu.org>
Wed, 27 Aug 2008 12:44:58 +0000 (14:44 +0200)
committerPaolo Bonzini <bonzini@gnu.org>
Wed, 27 Aug 2008 14:58:26 +0000 (16:58 +0200)
commitfcdfb4b5916a2a1605e02e3f801262d72c2cf453
treefe6a012ff8698dd676af69797faeb42757ce0d37
parent0a29fc2d832c86d69e98b32bbdbc4e746ca2d16c
use unlocked I/O in getdelim

2008-08-27  Paolo Bonzini  <bonzini@gnu.org>

* lib/getdelim.c (flockfile, funlockfile): Make all of them
dummy if one is not available.  Do not touch them if
USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
(getc_maybe_unlocked): New.
* m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
ChangeLog
lib/getdelim.c
m4/getdelim.m4