Files
findutils/lib/forcefindlib.c
James Youngman f457e8f05e Update the copyright year in C source files.
* find/defs.h: Update copyright year.
* find/find.c: Update copyright year.
* find/finddata.c: Update copyright year.
* find/ftsfind.c: Update copyright year.
* find/parser.c: Update copyright year.
* find/pred.c: Update copyright year.
* find/sharefile.c: Update copyright year.
* find/sharefile.h: Update copyright year.
* find/tree.c: Update copyright year.
* find/util.c: Update copyright year.
* lib/buildcmd.c: Update copyright year.
* lib/buildcmd.h: Update copyright year.
* lib/dircallback.c: Update copyright year.
* lib/dircallback.h: Update copyright year.
* lib/extendbuf.c: Update copyright year.
* lib/extendbuf.h: Update copyright year.
* lib/fdleak.c: Update copyright year.
* lib/fdleak.h: Update copyright year.
* lib/findutils-version.c: Update copyright year.
* lib/findutils-version.h: Update copyright year.
* lib/forcefindlib.c: Update copyright year.
* lib/listfile.c: Update copyright year.
* lib/listfile.h: Update copyright year.
* lib/nextelem.c: Update copyright year.
* lib/nextelem.h: Update copyright year.
* lib/printquoted.c: Update copyright year.
* lib/printquoted.h: Update copyright year.
* lib/qmark.c: Update copyright year.
* lib/regexprops.c: Update copyright year.
(copying): Update copyright year in the output file, too.
* lib/regextype.c: Update copyright year.
* lib/regextype.h: Update copyright year.
* lib/safe-atoi.c: Update copyright year.
* lib/safe-atoi.h: Update copyright year.
* lib/savedirinfo.c: Update copyright year.
* lib/savedirinfo.h: Update copyright year.
* lib/unused-result.h: Update copyright year.
* lib/waitpid.c: Update copyright year.
* locate/bigram.c: Update copyright year.
* locate/code.c: Update copyright year.
* locate/frcode.c: Update copyright year.
* locate/locate.c: Update copyright year.
* locate/locatedb.h: Update copyright year.
* locate/word_io.c: Update copyright year.
* xargs/xargs.c: Update copyright year.
2011-06-04 13:19:26 +01:00

48 lines
1.7 KiB
C

/* Ensures that the FINDLIB_REPLACE_FUNCS macro in configure.in works
Copyright (C) 2004, 2010, 2011 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
*/
/* Written by James Youngman. */
#include <config.h>
extern void forcefindlib (void); /* prevent GCC warning... */
/* forcefindlib
*
* This function exists only to be pulled into libfind.a by the
* FINDLIB_REPLACE_FUNCS macro in configure.in. We already have
* AC_REPLACE_FUNCS, but that adds to LIBOBJS, and that's a gnulib thing
* in the case of findutils. Hence we have out own library of replacement
* functions which aren't in gnulib (or aren't in it any more). An example
* of this is waitpid(). I develop on a system that doesn't
* lack waitpid, for example. Therefore FINDLIB_REPLACE_FUNCS(waitpid)
* never puts waitpid.o into FINDLIBOBJS. Hence, to ensure that these
* macros are tested every time, we use FINDLIB_REPLACE_FUNCS on a function
* that never exists anywhere, so always needs to be pulled in. That function
* is forcefindlib().
*/
void
forcefindlib (void)
{
/* does nothing, exists only to ensure that FINDLIB_REPLACE_FUNCS works. */
}