/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SGSRTCID_H
#define _SGSRTCID_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* This file defines the Rtc_id structure that is found at the beginning
* of linker configuration files. It resides at this level so that
* it can be accessed by file(1) as well as by crle(1) and the
* runtime linker (ld.so.1). The rest of the data structures for
*
* The use of sizeof(char) data (no byte order issue) and explicit
* padding in the definition of Rtc_id ensures that it will have
* exactly the same layout on all systems, and will have a
* size of 16 bytes. The same layout means all systems can read it.
* the same size means that any data can be safely placed immediately
* following it, without the need for alignment.
*/
/*
* Identification header.
*/
typedef struct {
} Rtc_id;
/*
* Ensure that the largest machine constant will not grow beyond
* maximum value representable by an unsigned byte without our
* being alerted to it.
*/
#if EM_NUM > 256
#error "Maximum machine constant size exceeded. Format requires revision."
#endif
/*
* Check the 4 bytes starting at the given address to see if
* they contain the Rtc_id magic number. The type of the address
* is unimportant as long as it is valid, because RTC_ID_TEST()
* will cast it to (uchar_t *).
*/
#ifdef __cplusplus
}
#endif
#endif /* _SGSRTCID_H */