From 9fbb5dcb459bf25d5e7b89fc209359e1a61a5214 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 18 Feb 2007 21:08:06 +0000 Subject: [PATCH] exit.h is replaced with stdlib.h. --- ChangeLog | 10 ++++++++++ lib/argmatch.c | 3 +-- lib/copy-file.c | 4 ++-- lib/execute.c | 1 - lib/exitfail.c | 5 +++-- lib/pagealign_alloc.c | 3 +-- lib/pipe.c | 1 - lib/savewd.c | 4 ++-- lib/wait-process.c | 3 +-- lib/xsetenv.c | 5 +++-- 10 files changed, 23 insertions(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index aaf8b0ba1..fda473c42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -31,6 +31,16 @@ (Depends-on): Add stdlib. (Makefile.am): Remove lib_SOURCES. (Include): Use instead of exit.h. + * lib/argmatch.c: Don't include exit.h. + * lib/execute.c: Likewise. + * lib/pagealign_alloc.c: Likewise. + * lib/pipe.c: Likewise. + * lib/wait-process.c: Likewise. + * lib/copy-file.c: Include instead of exit.h. + * lib/exitfail.c: Likewise. + * lib/savewd.c: Likewise. + * lib/xsetenv.c: Likewise. + * modules/stdlib: New file. * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h diff --git a/lib/argmatch.c b/lib/argmatch.c index c6cdfcc82..72d92483e 100644 --- a/lib/argmatch.c +++ b/lib/argmatch.c @@ -1,6 +1,6 @@ /* argmatch.c -- find a match for a string in an array - Copyright (C) 1990, 1998, 1999, 2001, 2002, 2003, 2004, 2005, 2006 + Copyright (C) 1990, 1998, 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify @@ -34,7 +34,6 @@ #define _(msgid) gettext (msgid) #include "error.h" -#include "exit.h" #include "quotearg.h" #include "quote.h" diff --git a/lib/copy-file.c b/lib/copy-file.c index 5a5dcf72c..5416c76f0 100644 --- a/lib/copy-file.c +++ b/lib/copy-file.c @@ -1,5 +1,5 @@ /* Copying of files. - Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -41,7 +42,6 @@ #include "full-write.h" #include "acl.h" #include "binary-io.h" -#include "exit.h" #include "gettext.h" #define _(str) gettext (str) diff --git a/lib/execute.c b/lib/execute.c index 57664feac..ca0c89c8b 100644 --- a/lib/execute.c +++ b/lib/execute.c @@ -30,7 +30,6 @@ #include #include "error.h" -#include "exit.h" #include "fatal-signal.h" #include "wait-process.h" #include "gettext.h" diff --git a/lib/exitfail.c b/lib/exitfail.c index 97abc674e..373d325c5 100644 --- a/lib/exitfail.c +++ b/lib/exitfail.c @@ -1,6 +1,6 @@ /* Failure exit status - Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2005, 2006, 2007 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 @@ -20,6 +20,7 @@ #include #include "exitfail.h" -#include "exit.h" + +#include int volatile exit_failure = EXIT_FAILURE; diff --git a/lib/pagealign_alloc.c b/lib/pagealign_alloc.c index c06dd0da4..6c2043ccb 100644 --- a/lib/pagealign_alloc.c +++ b/lib/pagealign_alloc.c @@ -1,6 +1,6 @@ /* Memory allocation aligned to system page boundaries. - Copyright (C) 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007 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 @@ -34,7 +34,6 @@ #endif #include "error.h" -#include "exit.h" #include "getpagesize.h" #include "xalloc.h" #include "gettext.h" diff --git a/lib/pipe.c b/lib/pipe.c index a2f89a758..6d075a692 100644 --- a/lib/pipe.c +++ b/lib/pipe.c @@ -29,7 +29,6 @@ #include #include "error.h" -#include "exit.h" #include "fatal-signal.h" #include "wait-process.h" #include "gettext.h" diff --git a/lib/savewd.c b/lib/savewd.c index 625c3cd44..58e0b613b 100644 --- a/lib/savewd.c +++ b/lib/savewd.c @@ -1,6 +1,6 @@ /* Save and restore the working directory, possibly using a child process. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006, 2007 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 @@ -27,11 +27,11 @@ #include #include #include +#include #include #include #include -#include "exit.h" #include "dirname.h" #include "fcntl-safer.h" diff --git a/lib/wait-process.c b/lib/wait-process.c index f39b41bf0..268be32f6 100644 --- a/lib/wait-process.c +++ b/lib/wait-process.c @@ -1,5 +1,5 @@ /* Waiting for a subprocess to finish. - Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify @@ -89,7 +89,6 @@ #endif #include "error.h" -#include "exit.h" #include "fatal-signal.h" #include "xalloc.h" #include "gettext.h" diff --git a/lib/xsetenv.c b/lib/xsetenv.c index 83ef48e36..01fb6e227 100644 --- a/lib/xsetenv.c +++ b/lib/xsetenv.c @@ -1,5 +1,5 @@ /* Setting environment variables, with out-of-memory checking. - Copyright (C) 2001-2002, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2005-2007 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 @@ -20,9 +20,10 @@ /* Specification. */ #include "xsetenv.h" +#include + #include "setenv.h" #include "error.h" -#include "exit.h" #include "gettext.h" #define _(str) gettext (str) -- 2.11.0