Deleted Added
full compact
_elftc.h (280932) _elftc.h (283616)
1/*-
2 * Copyright (c) 2009 Joseph Koshy
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2009 Joseph Koshy
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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: _elftc.h 3175 2015-03-27 17:21:24Z emaste $
26 * $Id: _elftc.h 3209 2015-05-17 13:40:46Z kaiwang27 $
27 */
28
29/**
30 ** Miscellanous definitions needed by multiple components.
31 **/
32
33#ifndef _ELFTC_H
34#define _ELFTC_H

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

337#include <stdlib.h>
338
339#define ELFTC_GETPROGNAME() getprogname()
340
341#endif /* __DragonFly__ || __FreeBSD__ || __minix || __NetBSD__ */
342
343
344#if defined(__GLIBC__) || defined(__linux__)
27 */
28
29/**
30 ** Miscellanous definitions needed by multiple components.
31 **/
32
33#ifndef _ELFTC_H
34#define _ELFTC_H

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

337#include <stdlib.h>
338
339#define ELFTC_GETPROGNAME() getprogname()
340
341#endif /* __DragonFly__ || __FreeBSD__ || __minix || __NetBSD__ */
342
343
344#if defined(__GLIBC__) || defined(__linux__)
345
345#ifndef _GNU_SOURCE
346/*
347 * GLIBC based systems have a global 'char *' pointer referencing
348 * the executable's name.
349 */
350extern const char *program_invocation_short_name;
346/*
347 * GLIBC based systems have a global 'char *' pointer referencing
348 * the executable's name.
349 */
350extern const char *program_invocation_short_name;
351#endif /* !_GNU_SOURCE */
351
352#define ELFTC_GETPROGNAME() program_invocation_short_name
353
354#endif /* __GLIBC__ || __linux__ */
355
356
357#if defined(__OpenBSD__)
358

--- 123 unchanged lines hidden ---
352
353#define ELFTC_GETPROGNAME() program_invocation_short_name
354
355#endif /* __GLIBC__ || __linux__ */
356
357
358#if defined(__OpenBSD__)
359

--- 123 unchanged lines hidden ---