rtld.h (7b73593acd1182f8cef4609a1124de5c06cf6fd6) rtld.h (c905e45dc0e7ad2da0748371ba8921ca48134a01)
1/*-
2 * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra.
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

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

34
35#include <elf-hints.h>
36#include <link.h>
37#include <stddef.h>
38
39#include "rtld_lock.h"
40#include "rtld_machdep.h"
41
1/*-
2 * Copyright 1996, 1997, 1998, 1999, 2000 John D. Polstra.
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

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

34
35#include <elf-hints.h>
36#include <link.h>
37#include <stddef.h>
38
39#include "rtld_lock.h"
40#include "rtld_machdep.h"
41
42#ifdef COMPAT_32BIT
43#undef STANDARD_LIBRARY_PATH
44#undef _PATH_ELF_HINTS
45#define _PATH_ELF_HINTS "/var/run/ld-elf32.so.hints"
46/* For running 32 bit binaries */
47#define STANDARD_LIBRARY_PATH "/lib32:/usr/lib32"
48#define LD_ "LD_32_"
49#endif
50
42#ifndef STANDARD_LIBRARY_PATH
43#define STANDARD_LIBRARY_PATH "/lib:/usr/lib"
44#endif
51#ifndef STANDARD_LIBRARY_PATH
52#define STANDARD_LIBRARY_PATH "/lib:/usr/lib"
53#endif
54#ifndef LD_
55#define LD_ "LD_"
56#endif
45
46#define NEW(type) ((type *) xmalloc(sizeof(type)))
47#define CNEW(type) ((type *) xcalloc(sizeof(type)))
48
49/* We might as well do booleans like C++. */
50typedef unsigned char bool;
51#define false 0
52#define true 1

--- 164 unchanged lines hidden ---
57
58#define NEW(type) ((type *) xmalloc(sizeof(type)))
59#define CNEW(type) ((type *) xcalloc(sizeof(type)))
60
61/* We might as well do booleans like C++. */
62typedef unsigned char bool;
63#define false 0
64#define true 1

--- 164 unchanged lines hidden ---