(Depends-on): Add stdlib.
(Makefile.am): Remove lib_SOURCES.
(Include): Use <stdlib.h> 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 <stdlib.h> 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
/* 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
#define _(msgid) gettext (msgid)
#include "error.h"
-#include "exit.h"
#include "quotearg.h"
#include "quote.h"
/* 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 <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
+#include <stdlib.h>
#include <sys/stat.h>
#include <unistd.h>
#include "full-write.h"
#include "acl.h"
#include "binary-io.h"
-#include "exit.h"
#include "gettext.h"
#define _(str) gettext (str)
#include <unistd.h>
#include "error.h"
-#include "exit.h"
#include "fatal-signal.h"
#include "wait-process.h"
#include "gettext.h"
/* 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
#include <config.h>
#include "exitfail.h"
-#include "exit.h"
+
+#include <stdlib.h>
int volatile exit_failure = EXIT_FAILURE;
/* 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
#endif
#include "error.h"
-#include "exit.h"
#include "getpagesize.h"
#include "xalloc.h"
#include "gettext.h"
#include <unistd.h>
#include "error.h"
-#include "exit.h"
#include "fatal-signal.h"
#include "wait-process.h"
#include "gettext.h"
/* 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
#include <fcntl.h>
#include <signal.h>
#include <stdbool.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
-#include "exit.h"
#include "dirname.h"
#include "fcntl-safer.h"
/* 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 <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify
#endif
#include "error.h"
-#include "exit.h"
#include "fatal-signal.h"
#include "xalloc.h"
#include "gettext.h"
/* 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
/* Specification. */
#include "xsetenv.h"
+#include <stdlib.h>
+
#include "setenv.h"
#include "error.h"
-#include "exit.h"
#include "gettext.h"
#define _(str) gettext (str)