*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sun, 15 Jul 2001 15:13:14 +0000 (15:13 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 15 Jul 2001 15:13:14 +0000 (15:13 +0000)
lib/.cvsignore
lib/ChangeLog
lib/unlocked-io.hin [new file with mode: 0644]

index 59acd7a..3d2ec05 100644 (file)
@@ -11,3 +11,4 @@ safe-lstat.h
 safe-stat.c
 safe-stat.h
 stat.c
+unlocked-io.h
index 9f59769..48686a3 100644 (file)
@@ -1,5 +1,11 @@
 2001-07-15  Jim Meyering  <meyering@lucent.com>
 
+       * 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  <meyering@lucent.com>
diff --git a/lib/unlocked-io.hin b/lib/unlocked-io.hin
new file mode 100644 (file)
index 0000000..7c7f87e
--- /dev/null
@@ -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 */