summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-11-17 13:29:42 +0000
committerJim Meyering <jim@meyering.net>2001-11-17 13:29:42 +0000
commit3eb2a22131f0a0680ad09637290bafdead77eda5 (patch)
tree2b359ac377d4b8b0558378c8a24bf739e8bcf257
parent1edeae648d12874bdc600fedcb04558e6a281f9a (diff)
downloadcoreutils-3eb2a22131f0a0680ad09637290bafdead77eda5.tar.xz
Include unlocked-io.h.
-rw-r--r--lib/argmatch.c1
-rw-r--r--lib/closeout.c3
-rw-r--r--lib/error.c1
-rw-r--r--lib/exclude.c1
-rw-r--r--lib/fatal.c1
-rw-r--r--lib/getdate.y1
-rw-r--r--lib/getpass.c3
-rw-r--r--lib/getstr.c4
-rw-r--r--lib/getusershell.c3
-rw-r--r--lib/linebuffer.c3
-rw-r--r--lib/md5.c3
-rw-r--r--lib/mountlist.c1
-rw-r--r--lib/posixtm.c3
-rw-r--r--lib/readtokens.c3
-rw-r--r--lib/readutmp.c3
-rw-r--r--lib/regex.c1
-rw-r--r--lib/sha.c3
-rw-r--r--lib/version-etc.c1
-rw-r--r--lib/yesno.c3
19 files changed, 31 insertions, 11 deletions
diff --git a/lib/argmatch.c b/lib/argmatch.c
index c86ba71b4..005be881f 100644
--- a/lib/argmatch.c
+++ b/lib/argmatch.c
@@ -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
diff --git a/lib/closeout.c b/lib/closeout.c
index bdda59fee..aee1fcbba 100644
--- a/lib/closeout.c
+++ b/lib/closeout.c
@@ -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;
diff --git a/lib/error.c b/lib/error.c
index 9c0700c2e..c02abcee8 100644
--- a/lib/error.c
+++ b/lib/error.c
@@ -54,6 +54,7 @@ void exit ();
#endif
#include "error.h"
+#include "unlocked-io.h"
#ifndef _
# define _(String) String
diff --git a/lib/exclude.c b/lib/exclude.c
index e3f222567..35f9f0d19 100644
--- a/lib/exclude.c
+++ b/lib/exclude.c
@@ -57,6 +57,7 @@ extern int errno;
#include "exclude.h"
#include "fnmatch.h"
+#include "unlocked-io.h"
#include "xalloc.h"
#ifndef SIZE_MAX
diff --git a/lib/fatal.c b/lib/fatal.c
index b5c8b57fa..e6f46ec94 100644
--- a/lib/fatal.c
+++ b/lib/fatal.c
@@ -35,6 +35,7 @@ extern char *program_name;
#endif
#include "fatal.h"
+#include "unlocked-io.h"
/* Like error, but always exit with EXIT_FAILURE. */
diff --git a/lib/getdate.y b/lib/getdate.y
index 3525295bb..f16a28e3d 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -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 ();
diff --git a/lib/getpass.c b/lib/getpass.c
index a5e87e8cd..9423eeec0 100644
--- a/lib/getpass.c
+++ b/lib/getpass.c
@@ -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
diff --git a/lib/getstr.c b/lib/getstr.c
index 66e44fe6f..98c4ac865 100644
--- a/lib/getstr.c
+++ b/lib/getstr.c
@@ -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
diff --git a/lib/getusershell.c b/lib/getusershell.c
index 4816f968b..019ec55cf 100644
--- a/lib/getusershell.c
+++ b/lib/getusershell.c
@@ -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))
diff --git a/lib/linebuffer.c b/lib/linebuffer.c
index 3b15d1fb3..5266dc118 100644
--- a/lib/linebuffer.c
+++ b/lib/linebuffer.c
@@ -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 ();
diff --git a/lib/md5.c b/lib/md5.c
index 1908fa820..2f249521c 100644
--- 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>
diff --git a/lib/mountlist.c b/lib/mountlist.c
index 75a40a223..79f0d535e 100644
--- a/lib/mountlist.c
+++ b/lib/mountlist.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <sys/types.h>
#include "mountlist.h"
+#include "unlocked-io.h"
#ifdef STDC_HEADERS
# include <stdlib.h>
diff --git a/lib/posixtm.c b/lib/posixtm.c
index 2c392e401..d8ac99bf2 100644
--- a/lib/posixtm.c
+++ b/lib/posixtm.c
@@ -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.
diff --git a/lib/readtokens.c b/lib/readtokens.c
index f66bd21c5..8830ed771 100644
--- a/lib/readtokens.c
+++ b/lib/readtokens.c
@@ -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 ();
diff --git a/lib/readutmp.c b/lib/readutmp.c
index 29b24a550..2fa8c9295 100644
--- a/lib/readutmp.c
+++ b/lib/readutmp.c
@@ -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 ();
diff --git a/lib/regex.c b/lib/regex.c
index 753c2610d..040a39061 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -631,6 +631,7 @@ typedef enum
# undef INSIDE_RECURSION
# endif
#endif
+#include "unlocked-io.h"
#ifdef INSIDE_RECURSION
/* Common operations on the compiled pattern. */
diff --git a/lib/sha.c b/lib/sha.c
index fe3708c1a..a75b8cf89 100644
--- 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
diff --git a/lib/version-etc.c b/lib/version-etc.c
index b20a32f57..5b70616a1 100644
--- a/lib/version-etc.c
+++ b/lib/version-etc.c
@@ -22,6 +22,7 @@
#endif
#include <stdio.h>
+#include "unlocked-io.h"
#include "version-etc.h"
#if ENABLE_NLS
diff --git a/lib/yesno.c b/lib/yesno.c
index 8aaaf3d4b..7b928bc3e 100644
--- a/lib/yesno.c
+++ b/lib/yesno.c
@@ -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,