rtld.h (082f959ac8281d323f9289c45b769275e172c917) | rtld.h (758ffbfa3bd27cb793750d90c47ed8a0dc537823) |
---|---|
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 --- 44 unchanged lines hidden (view full) --- 53#ifndef STANDARD_LIBRARY_PATH 54#define STANDARD_LIBRARY_PATH "/lib:/usr/lib" 55#endif 56#ifndef LD_ 57#define LD_ "LD_" 58#endif 59 60#define NEW(type) ((type *) xmalloc(sizeof(type))) | 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 --- 44 unchanged lines hidden (view full) --- 53#ifndef STANDARD_LIBRARY_PATH 54#define STANDARD_LIBRARY_PATH "/lib:/usr/lib" 55#endif 56#ifndef LD_ 57#define LD_ "LD_" 58#endif 59 60#define NEW(type) ((type *) xmalloc(sizeof(type))) |
61#define CNEW(type) ((type *) xcalloc(sizeof(type))) | 61#define CNEW(type) ((type *) xcalloc(1, sizeof(type))) |
62 63/* We might as well do booleans like C++. */ 64typedef unsigned char bool; 65#define false 0 66#define true 1 67 68extern size_t tls_last_offset; 69extern size_t tls_last_size; --- 244 unchanged lines hidden (view full) --- 314 const Obj_Entry *defobj_out; 315 const Elf_Sym *sym_out; 316 struct Struct_RtldLockState *lockstate; 317} SymLook; 318 319extern void _rtld_error(const char *, ...) __printflike(1, 2); 320extern const char *rtld_strerror(int); 321extern Obj_Entry *map_object(int, const char *, const struct stat *); | 62 63/* We might as well do booleans like C++. */ 64typedef unsigned char bool; 65#define false 0 66#define true 1 67 68extern size_t tls_last_offset; 69extern size_t tls_last_size; --- 244 unchanged lines hidden (view full) --- 314 const Obj_Entry *defobj_out; 315 const Elf_Sym *sym_out; 316 struct Struct_RtldLockState *lockstate; 317} SymLook; 318 319extern void _rtld_error(const char *, ...) __printflike(1, 2); 320extern const char *rtld_strerror(int); 321extern Obj_Entry *map_object(int, const char *, const struct stat *); |
322extern void *xcalloc(size_t); | 322extern void *xcalloc(size_t, size_t); |
323extern void *xmalloc(size_t); 324extern char *xstrdup(const char *); 325extern Elf_Addr _GLOBAL_OFFSET_TABLE_[]; 326extern Elf_Sym sym_zero; /* For resolving undefined weak refs. */ 327 328extern void dump_relocations (Obj_Entry *); 329extern void dump_obj_relocations (Obj_Entry *); 330extern void dump_Elf_Rel (Obj_Entry *, const Elf_Rel *, u_long); --- 38 unchanged lines hidden --- | 323extern void *xmalloc(size_t); 324extern char *xstrdup(const char *); 325extern Elf_Addr _GLOBAL_OFFSET_TABLE_[]; 326extern Elf_Sym sym_zero; /* For resolving undefined weak refs. */ 327 328extern void dump_relocations (Obj_Entry *); 329extern void dump_obj_relocations (Obj_Entry *); 330extern void dump_Elf_Rel (Obj_Entry *, const Elf_Rel *, u_long); --- 38 unchanged lines hidden --- |