diff options
author | svn2git <svn2git@FreeBSD.org> | 1994-07-01 00:00:00 -0800 |
---|---|---|
committer | svn2git <svn2git@FreeBSD.org> | 1994-07-01 00:00:00 -0800 |
commit | 5e0e9b99dc3fc0ecd49d929db0d57c784b66f481 (patch) | |
tree | e779b5a6edddbb949b7990751b12d6f25304ba86 /gnu/usr.bin/ld/ldconfig/ldconfig.c | |
parent | a16f65c7d117419bd266c28a1901ef129a337569 (diff) | |
download | src-releng/1.tar.gz src-releng/1.zip |
Release FreeBSD 1.1.5.1release/1.1.5.1_cvsreleng/1
This commit was manufactured to restore the state of the 1.1.5.1-RELEASE image.
Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
Diffstat (limited to 'gnu/usr.bin/ld/ldconfig/ldconfig.c')
-rw-r--r-- | gnu/usr.bin/ld/ldconfig/ldconfig.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/gnu/usr.bin/ld/ldconfig/ldconfig.c b/gnu/usr.bin/ld/ldconfig/ldconfig.c index 4c840ffd3144..cd447bb627c1 100644 --- a/gnu/usr.bin/ld/ldconfig/ldconfig.c +++ b/gnu/usr.bin/ld/ldconfig/ldconfig.c @@ -27,26 +27,27 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: ldconfig.c,v 1.5 1994/02/13 20:42:30 jkh Exp $ + * $Id: ldconfig.c,v 1.7 1994/06/15 22:40:56 rich Exp $ */ #include <sys/param.h> -#include <stdio.h> -#include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/file.h> #include <sys/time.h> #include <sys/mman.h> #include <sys/resource.h> -#include <fcntl.h> +#include <dirent.h> #include <errno.h> +#include <fcntl.h> #include <ar.h> #include <ranlib.h> #include <a.out.h> #include <stab.h> +#include <stdio.h> +#include <stdlib.h> #include <string.h> -#include <dirent.h> +#include <unistd.h> #include "ld.h" @@ -74,6 +75,7 @@ static struct shlib_list *shlib_head = NULL, **shlib_tail = &shlib_head; static void enter __P((char *, char *, char *, int *, int)); static int dodir __P((char *, int)); static int build_hints __P((void)); +static int listhints __P((void)); int main(argc, argv) @@ -101,7 +103,7 @@ char *argv[]; justread = 1; break; default: - fprintf(stderr, "Usage: %s [-v] [dir ...]\n", progname); + fprintf(stderr, "Usage: %s [-r] [-s] [-v] [dir ...]\n", progname); exit(1); break; } @@ -111,7 +113,7 @@ char *argv[]; return listhints(); if (!nostd) - std_search_dirs(NULL); + std_search_path(); for (i = 0; i < n_search_dirs; i++) rval |= dodir(search_dirs[i], 1); @@ -349,7 +351,7 @@ build_hints() return 0; } -int +static int listhints() { int fd; @@ -375,7 +377,8 @@ listhints() hdr = (struct hints_header *)addr; if (HH_BADMAG(*hdr)) { - fprintf(stderr, "%s: Bad magic: %d\n"); + fprintf(stderr, "%s: Bad magic: %o\n", + _PATH_LD_HINTS, hdr->hh_magic); return -1; } |