/*
* 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.
*/
#ifndef _MCS_H
#define _MCS_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <libelf.h>
#include <ar.h>
#include <string.h>
#include <signal.h>
#include <fcntl.h>
#include <memory.h>
#include <locale.h>
#include "sgs.h"
#include "gelf.h"
#define SUCCESS 0
/* because mcs was given only -p */
/*
* Structure to hold section information.
*/
typedef struct section_info_table {
/*
* Section information.
*/
char *rel_name;
/*
* Structure to hold action information
*/
typedef struct action {
} action;
/*
* Structure to hold the section names specified.
*/
typedef struct s_name {
char *name;
unsigned char flags;
} S_Name;
/* for section name comparison. */
/*
* Structure to hold command information
*/
typedef struct cmd_info {
int no_of_append;
int no_of_delete;
int no_of_nulled;
int no_of_compressed;
int no_of_moved;
} Cmd_Info;
/*
* Segment Table
*/
typedef struct seg_table {
} Seg_Table;
/*
* Temporary files
*/
typedef struct {
} Tmp_File;
/*
* Function prototypes.
*/
void error_message(int, ...);
void mcs_exit(int);
int sectcmp(char *);
void free_tempfile(Tmp_File *);
/*
* Error messages
*/
#define MALLOC_ERROR 0
#define PLAIN_ERROR 0
#ifdef __cplusplus
}
#endif
#endif /* _MCS_H */