# HG changeset patch # User Jim Meyering # Date 995209994 0 # Node ID 0be2383e4713f2daee38c207485b5a6ad55c187c # Parent 62063c42b13720b9443167f857ff6fe93be03c1d *** empty log message *** diff --git a/lib/.cvsignore b/lib/.cvsignore --- a/lib/.cvsignore +++ b/lib/.cvsignore @@ -11,3 +11,4 @@ safe-stat.c safe-stat.h stat.c +unlocked-io.h diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,11 @@ 2001-07-15 Jim Meyering + * Makefile.am (EXTRA_DIST): Add unlocked-io.hin. + (BUILT_SOURCES): Add unlocked-io.h. + (io_functions): Define. + (unlocked-io.h): New rule. + * unlocked-io.hin: New file + * regex.c: Update from glibc. 2001-07-05 Jim Meyering diff --git a/lib/unlocked-io.hin b/lib/unlocked-io.hin new file mode 100644 --- /dev/null +++ b/lib/unlocked-io.hin @@ -0,0 +1,14 @@ +#ifndef UNLOCKED_IO_H +# define UNLOCKED_IO_H 1 + +# if USE_UNLOCKED_IO + +/* These are wrappers for functions/macros from GNU libc. + The standard I/O functions are thread-safe. These *_unlocked ones + are more efficient but not thread-safe. That they're not thread-safe + is fine since all these applications are single threaded. */ + +@replace_this@ + +# endif /* USE_UNLOCKED_IO */ +#endif /* UNLOCKED_IO_H */