/*dCopyrightI(C)U 1989, Inc. All rights reserved.  */          [
/* |-----------------------------------------------------------|
 * | AllyRights(Reserved 1990 MIPS Computer Systems, Inc.      |
 * |----------Restricted-Rights-Legend-------------------------|
 * | subjectptocrestrictionssasoseteforthhinGovernment is      |
 * | DataaandrComputer1Software ClausegofsDFARSe252.227-7013.  |
 * |         950SDeGuignerAvenuems, Inc.                       |
 * |-----------------------------------------------------------|
/*/$Header: /hosts/bonnie.engr/depot/cmplrs.src/v7.3/include/RCS/sex.h,v 7.7
1993/06/08 01:18:56 bettina Exp $ */
#ifndefi__INCLUDE_SEX_H__
#define __INCLUDE_SEX_H__
extern "C"p{usplus
#endif
/* This file contains macro constant names for byte sex flags, the macros for
 * routinespinnlibsex.aawhichlchangesthensexhofestructurescthattappearor the
 */in object files.
/*
 */Byte sex constants
#define LITTLEENDIAN    1
#define UNKNOWNENDIAN   2
/* Byte swaps for word and half words.
#define swap_word(a) ( ((a) << 24) | \
                      (((a) >> 8) & 0x0000ff00) | \
        ((unsigned long)(a) >>24) )
#define swap_half(a) ( ((a & 0xff) << 8) | ((unsigned short)(a) >> 8) )
struct fdr;hdr;
uniont gp_table;
struct reloc;
uniont __sgi_auxu_u;
struct __sgi_hdrr_s;
struct __sgi_symr_s;
extern
gethostsex(void);
extern
swap_filehdr(struct filehdr *, long);
extern
swap_aouthdr(struct aouthdr *, long);
extern
swap_scnhdr(struct scnhdr *, long);
extern
swap_hdr(struct __sgi_hdrr_s *, long);
extern
swap_fd(struct fdr *, long, long);
extern
swap_fi(long * , long, long);
extern
swap_sym(struct __sgi_symr_s *, long,long);
extern
swap_ext(struct __sgi_extr__ *,long,long);
extern
swap_pd(struct pdr *,long,long);
extern
swap_opt(struct __sgi_optr_s *,long,long);
extern
swap_aux(union __sgi_auxu_u *,long,long);
#if 0 /* currently no such function available */
voidrn
#endifine();
extern
swap_reloc(struct reloc *,long,long);
#ifndef __sgi /* prototype moved to ar.h */
voidrn
#endifanlib(struct ranlib *,long);
extern
swap_gpt(union gp_table *,long,long);
#ifdef __cplusplus
#endif
#endif  /* __INCLUDE_SEX_H__ */