Include unlocked-io.h.
authorJim Meyering <jim@meyering.net>
Sat, 17 Nov 2001 13:29:42 +0000 (13:29 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 17 Nov 2001 13:29:42 +0000 (13:29 +0000)
19 files changed:
lib/argmatch.c
lib/closeout.c
lib/error.c
lib/exclude.c
lib/fatal.c
lib/getdate.y
lib/getpass.c
lib/getstr.c
lib/getusershell.c
lib/linebuffer.c
lib/md5.c
lib/mountlist.c
lib/posixtm.c
lib/readtokens.c
lib/readutmp.c
lib/regex.c
lib/sha.c
lib/version-etc.c
lib/yesno.c

index c86ba71b4634272b81f4d73c03dbaa9c7830bdc6..005be881f21b4c0aa67c958b9bd82e2a2c28ec70 100644 (file)
@@ -39,6 +39,7 @@
 #include "error.h"
 #include "quotearg.h"
 #include "quote.h"
+#include "unlocked-io.h"
 
 /* When reporting an invalid argument, show nonprinting characters
    by using the quoting style ARGMATCH_QUOTING_STYLE.  Do not use
index bdda59feeb019a1aa38237802acaecb3d8248e2b..aee1fcbbafb5c7ce0a24c94c981633b046d7146a 100644 (file)
@@ -1,5 +1,5 @@
 /* closeout.c - close standard output
-   Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -43,6 +43,7 @@ extern int errno;
 #include "closeout.h"
 #include "error.h"
 #include "quotearg.h"
+#include "unlocked-io.h"
 #include "__fpending.h"
 
 static int default_exit_status = EXIT_FAILURE;
index 9c0700c2e38cbe59ca23c1d98bb9da6bcd47796e..c02abcee8a65752fb4de153accd9d08a0c063418 100644 (file)
@@ -54,6 +54,7 @@ void exit ();
 #endif
 
 #include "error.h"
+#include "unlocked-io.h"
 
 #ifndef _
 # define _(String) String
index e3f2225676472c509fe71a76eb56bfbf6973e4bf..35f9f0d194d80797db08d904ea47c913b027f6cf 100644 (file)
@@ -57,6 +57,7 @@ extern int errno;
 
 #include "exclude.h"
 #include "fnmatch.h"
+#include "unlocked-io.h"
 #include "xalloc.h"
 
 #ifndef SIZE_MAX
index 66362b8fe5efc17b39e656e361f107a05a6feaaa..e6f46ec94ca8f639abdffe37886656fab70eda34 100644 (file)
@@ -2,6 +2,8 @@
 # include <config.h>
 #endif
 
+/* FIXME: define EXIT_FAILURE */
+
 #include <stdio.h>
 
 #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
@@ -33,6 +35,7 @@ extern char *program_name;
 #endif
 
 #include "fatal.h"
+#include "unlocked-io.h"
 
 /* Like error, but always exit with EXIT_FAILURE.  */
 
index 3525295bb39854409c3dd3f4e5db46bd823f5711..f16a28e3daa5e3df1c2c07657a6621f2eb61f264 100644 (file)
@@ -448,6 +448,7 @@ o_merid:
    may define-away `const'.  We want the prototype for get_date to have
    the same signature as the function definition.  */
 #include "getdate.h"
+#include "unlocked-io.h"
 
 #ifndef gmtime
 struct tm *gmtime ();
index a5e87e8cd5bf76fbf1f0388119d3742f340ab5de..9423eeec07e383b9521d1a951418f8c9f3b7d8bb 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992,93,94,95,96,97,98,99,2000 Free Software Foundation, Inc.
+/* Copyright (C) 1992,93,94,95,96,97,98,99,2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -24,6 +24,7 @@
 #include <termios.h>
 #include <unistd.h>
 #include "getline.h"
+#include "unlocked-io.h"
 
 /* It is desirable to use this bit on systems that have it.
    The only bit of terminal state we want to twiddle is echoing, which is
index 66e44fe6f7685ca057fe314e25914ab659d6a37a..98c4ac86556d6448c727d942dac6b3a864ced3f0 100644 (file)
@@ -1,6 +1,6 @@
 /* getstr.c -- core function for GNU C library getline replacement function
 
-   Copyright (C) 1993, 1996-2000 Free Software Foundation, Inc.
+   Copyright (C) 1993, 1996-2001 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License as
@@ -33,6 +33,8 @@
 char *malloc (), *realloc ();
 #endif
 
+#include "unlocked-io.h"
+
 /* Always add at least this many bytes when extending the buffer.  */
 #define MIN_CHUNK 64
 
index 4816f968bf438a4340671711db3f6d0d74aa57da..019ec55cf911aa415993a846e29433fb3aed8a24 100644 (file)
@@ -1,5 +1,5 @@
 /* getusershell.c -- Return names of valid user shells.
-   Copyright (C) 1991, 1997, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1997, 2000, 2001 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -36,6 +36,7 @@
 # include <stdlib.h>
 #endif
 #include <ctype.h>
+#include "unlocked-io.h"
 #include "xalloc.h"
 
 #if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))
index 3b15d1fb3066511357a4fc83aaba085515b88f9b..5266dc1189fa1d6fe3701cd9b5634edc6c93fbc4 100644 (file)
@@ -1,5 +1,5 @@
 /* linebuffer.c -- read arbitrarily long lines
-   Copyright (C) 1986, 1991, 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1986, 1991, 1998, 1999, 2001 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include "linebuffer.h"
+#include "unlocked-io.h"
 
 char *xmalloc ();
 char *xrealloc ();
index 1908fa820e7513fab8e9ac9a2ea54f64f4fa8042..2f249521cbeab2386b10a5379dda9a3635436eb7 100644 (file)
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -1,6 +1,6 @@
 /* md5.c - Functions to compute MD5 message digest of files or memory blocks
    according to the definition of MD5 in RFC 1321 from April 1992.
-   Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 2001 Free Software Foundation, Inc.
    NOTE: The canonical source of this file is maintained with the GNU C
    Library.  Bugs can be reported to bug-glibc@prep.ai.mit.edu.
 
@@ -36,6 +36,7 @@
 #endif
 
 #include "md5.h"
+#include "unlocked-io.h"
 
 #ifdef _LIBC
 # include <endian.h>
index 75a40a223958b5ebe82f8e74e870c8478b110a02..79f0d535ed43274c9e23c2c30fc8629e6d65e0cd 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include "mountlist.h"
+#include "unlocked-io.h"
 
 #ifdef STDC_HEADERS
 # include <stdlib.h>
index 2c392e40124dda4fb2de2fc740b1babe45494b85..d8ac99bf290d7a1b986de994c2e4607646c1da4c 100644 (file)
@@ -1,5 +1,5 @@
 /* Parse dates for touch and date.
-   Copyright (C) 1989, 1990, 1991, 1998, 2000 Free Software Foundation Inc.
+   Copyright (C) 1989, 1990, 1991, 1998, 2000, 2001 Free Software Foundation Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -40,6 +40,7 @@
 #endif
 
 #include "posixtm.h"
+#include "unlocked-io.h"
 
 /* ISDIGIT differs from isdigit, as follows:
    - Its arg may be any int or unsigned int; it need not be an unsigned char.
index f66bd21c5df9f7001aa62917fd4f68325f2f73a1..8830ed771308b78059f8f0484ac4bff82cb925b1 100644 (file)
@@ -1,5 +1,5 @@
 /* readtokens.c  -- Functions for reading tokens from an input stream.
-   Copyright (C) 1990-1991, 1999 Jim Meyering.
+   Copyright (C) 1990-1991, 1999, 2001 Jim Meyering.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -49,6 +49,7 @@
 #endif /* not STDC_HEADERS and not HAVE_STRING_H */
 
 #include "readtokens.h"
+#include "unlocked-io.h"
 void *xmalloc ();
 void *xrealloc ();
 
index 29b24a550796005a8b058c2c06933a4d27bd04b2..2fa8c9295fa8c12e05202b2b11967c77be49c1ff 100644 (file)
@@ -1,5 +1,5 @@
 /* GNU's read utmp module.
-   Copyright (C) 1992-2000 Free Software Foundation, Inc.
+   Copyright (C) 1992-2001 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -30,6 +30,7 @@
 #endif /* STDC_HEADERS || HAVE_STRING_H */
 
 #include "readutmp.h"
+#include "unlocked-io.h"
 
 char *xmalloc ();
 char *realloc ();
index 753c2610db893390de89f789e42036bde5d23f3e..040a39061383fef360bfaa2b1f993001d8091672 100644 (file)
@@ -631,6 +631,7 @@ typedef enum
 #  undef INSIDE_RECURSION
 # endif
 #endif
+#include "unlocked-io.h"
 
 #ifdef INSIDE_RECURSION
 /* Common operations on the compiled pattern.  */
index fe3708c1adbc0ffe63a04d98ff51706967cd307d..a75b8cf8977e6ce60f9cad21feed2fd17b0d68f7 100644 (file)
--- a/lib/sha.c
+++ b/lib/sha.c
@@ -1,7 +1,7 @@
 /* sha.c - Functions to compute the SHA1 hash (message-digest) of files
    or blocks of memory.  Complies to the NIST specification FIPS-180-1.
 
-   Copyright (C) 2000 Scott G. Miller
+   Copyright (C) 2000, 2001 Scott G. Miller
 
    Credits:
       Robert Klep <robert@ilse.nl>  -- Expansion function fix
@@ -24,6 +24,7 @@
 
 #include "md5.h"
 #include "sha.h"
+#include "unlocked-io.h"
 
 /*
   Not-swap is a macro that does an endian swap on architectures that are
index b20a32f57d6d81fe9673ffb867ef8837577960cb..5b70616a1c201bb075c22094cd422b7b66a7c0c5 100644 (file)
@@ -22,6 +22,7 @@
 #endif
 
 #include <stdio.h>
+#include "unlocked-io.h"
 #include "version-etc.h"
 
 #if ENABLE_NLS
index 8aaaf3d4b63a1d7c8bc0749e0f7306d870c598d9..7b928bc3ed0a282d5b59c7fd9c7c530df66f9742 100644 (file)
@@ -1,5 +1,5 @@
 /* yesno.c -- read a yes/no response from stdin
-   Copyright (C) 1990, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1990, 1998, 2001 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@
 # include <stdlib.h>
 #endif
 #include <stdio.h>
+#include "unlocked-io.h"
 
 /* Read one line from standard input
    and return nonzero if that line begins with y or Y,