Deleted Added
full compact
ldconfig.c (76224) ldconfig.c (92806)
1/*
2 * Copyright (c) 1993,1995 Paul Kranenburg
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#ifndef lint
32static const char rcsid[] =
1/*
2 * Copyright (c) 1993,1995 Paul Kranenburg
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#ifndef lint
32static const char rcsid[] =
33 "$FreeBSD: head/sbin/ldconfig/ldconfig.c 76224 2001-05-02 23:56:21Z obrien $";
33 "$FreeBSD: head/sbin/ldconfig/ldconfig.c 92806 2002-03-20 17:55:10Z obrien $";
34#endif /* not lint */
35
36#include <sys/param.h>
37#include <sys/types.h>
38#include <sys/stat.h>
39#include <sys/mman.h>
40#include <a.out.h>
41#include <ctype.h>

--- 227 unchanged lines hidden (view full) ---

269 if ((dd = opendir(dir)) == NULL) {
270 if (silent && errno == ENOENT) /* Ignore the error */
271 return 0;
272 warn("%s", dir);
273 return -1;
274 }
275
276 while ((dp = readdir(dd)) != NULL) {
34#endif /* not lint */
35
36#include <sys/param.h>
37#include <sys/types.h>
38#include <sys/stat.h>
39#include <sys/mman.h>
40#include <a.out.h>
41#include <ctype.h>

--- 227 unchanged lines hidden (view full) ---

269 if ((dd = opendir(dir)) == NULL) {
270 if (silent && errno == ENOENT) /* Ignore the error */
271 return 0;
272 warn("%s", dir);
273 return -1;
274 }
275
276 while ((dp = readdir(dd)) != NULL) {
277 register int n;
278 register char *cp;
277 int n;
278 char *cp;
279
280 /* Check for `lib' prefix */
281 if (dp->d_name[0] != 'l' ||
282 dp->d_name[1] != 'i' ||
283 dp->d_name[2] != 'b')
284 continue;
285
286 /* Copy the entry minus prefix */

--- 334 unchanged lines hidden ---
279
280 /* Check for `lib' prefix */
281 if (dp->d_name[0] != 'l' ||
282 dp->d_name[1] != 'i' ||
283 dp->d_name[2] != 'b')
284 continue;
285
286 /* Copy the entry minus prefix */

--- 334 unchanged lines hidden ---