From f4972c1a7d3cf33e2a50177b1b81bf2b8f559aab Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 27 Aug 2005 20:12:02 +0000 Subject: [PATCH] Merge from coreutils: New file. --- lib/stdio--.h | 25 +++++++++++++++++++++++++ lib/stdlib--.h | 25 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 lib/stdio--.h create mode 100644 lib/stdlib--.h diff --git a/lib/stdio--.h b/lib/stdio--.h new file mode 100644 index 000000000..b2765fd52 --- /dev/null +++ b/lib/stdio--.h @@ -0,0 +1,25 @@ +/* Like stdio.h, but redefine some names to avoid glitches. + + Copyright (C) 2005 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 + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Paul Eggert. */ + +#include +#include "stdio-safer.h" + +#undef fopen +#define fopen fopen_safer diff --git a/lib/stdlib--.h b/lib/stdlib--.h new file mode 100644 index 000000000..c12d11de6 --- /dev/null +++ b/lib/stdlib--.h @@ -0,0 +1,25 @@ +/* Like stdlib.h, but redefine some names to avoid glitches. + + Copyright (C) 2005 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 + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Paul Eggert. */ + +#include +#include "stdlib-safer.h" + +#undef mkstemp +#define mkstemp mkstemp_safer -- 2.11.0