Index: ossp-pkg/rc/rc_anal.c RCS File: /v/ossp/cvs/ossp-pkg/rc/Attic/rc_anal.c,v rcsdiff -q -kk '-r1.18' '-r1.19' -u '/v/ossp/cvs/ossp-pkg/rc/Attic/rc_anal.c,v' 2>/dev/null --- rc_anal.c 2003/05/28 15:09:29 1.18 +++ rc_anal.c 2003/05/28 19:03:25 1.19 @@ -29,11 +29,11 @@ #include #include +#include #include "rc.h" /* Public interfaces */ #include "rc_const.h" /* String constants */ #include "rc_config.h" /* Configuration interface */ -#include "rc_anal.h" /* Anal specific headers */ /************************************************ @@ -163,20 +163,6 @@ return(RC_THROW(RC_OK)); } -/*************************************************************** -* int analFileselect(struct dirent *Direntry) * -* Calculate whether a directory entry belongs to a defined set * -***************************************************************/ -int analFileselect(struct dirent *Direntry) -{ - if ((Direntry->d_name != NULL) && (strncmp(Direntry->d_name, "rc.", 3) == 0)) - return (TRUE); - else if ((strcmp(Direntry->d_name, ".") == 0) || (strcmp(Direntry->d_name, "..") == 0)) - return (FALSE); - else /* Catchall returns false for all not met set conditions */ - return (FALSE); -} - /************************************************ * analGloblocs(rc_anal_t **ppInst) * * Glob all files of the location directories * Index: ossp-pkg/rc/rc_anal.h RCS File: /v/ossp/cvs/ossp-pkg/rc/Attic/rc_anal.h,v co -q -kk -p'1.2' '/v/ossp/cvs/ossp-pkg/rc/Attic/rc_anal.h,v' | diff -u - /dev/null -L'ossp-pkg/rc/rc_anal.h' 2>/dev/null --- ossp-pkg/rc/rc_anal.h +++ /dev/null 2024-05-05 09:15:27.000000000 +0200 @@ -1,37 +0,0 @@ -/* OSSP rc - Run-command processor -** Copyright (c) 2002 Ralf S. Engelschall -** Copyright (c) 2002 Cable & Wireless Deutschland GmbH -** Copyright (c) 2002 The OSSP Project -** -** This file is part of OSSP rc, a portable Run-command processor -** which can be found at http://www.ossp.org/pkg/lib/rc/ -** -** Permission to use, copy, modify, and distribute this software for -** any purpose with or without fee is hereby granted, provided that -** the above copyright notice and this permission notice appear in all -** copies. -** -** THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED -** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -** IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR -** CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF -** USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -** OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -** SUCH DAMAGE. -** -** rc_anal.h: Run-command processor ISO C public API header file -*/ - -#include - -/* Global needed for use by scandir function in analGloblocs */ -extern int alphasort(const void *, const void *); - -/* Include function prototype here for abstraction of file and directories */ -int analFileselect(struct dirent *); -