/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
* Copyright 2014 PALO, Richard. All rights reserved.
*/
#ifndef _LIBELF_H
#define _LIBELF_H
#ifdef __cplusplus
extern "C" {
#endif
#error "large files are not supported by libelf"
#endif
typedef void Elf_Void;
/*
* Commands
*/
typedef enum {
} Elf_Cmd;
/*
* Flags
*/
/*
* File types
*/
typedef enum {
} Elf_Kind;
/*
* Translation types
*/
typedef enum {
} Elf_Type;
/*
* Archive member header
*/
typedef struct {
char *ar_name;
char *ar_rawname;
} Elf_Arhdr;
/*
* Archive symbol table
*/
typedef struct {
char *as_name;
unsigned long as_hash;
} Elf_Arsym;
/*
* Data descriptor
*/
typedef struct {
} Elf_Data;
/*
* Function declarations
*/
const char *elf_errmsg(int);
int elf_errno(void);
void elf_fill(int);
unsigned long elf_hash(const char *);
uint_t elf_sys_encoding(void);
long elf32_checksum(Elf *);
unsigned elf_version(unsigned);
#if defined(_LP64) || defined(_LONGLONG_TYPE)
long elf64_checksum(Elf *);
#endif /* (defined(_LP64) || defined(_LONGLONG_TYPE) */
#ifdef __cplusplus
}
#endif
#endif /* _LIBELF_H */