~persia/lsb-arm-port/tet-harness

« back to all changes in this revision

Viewing changes to src/tet3/tcm/dynlink.c

  • Committer: Emmet Hikory
  • Date: 2010-01-08 04:58:01 UTC
  • Revision ID: persia@ubuntu.com-20100108045801-e6zpplxkui2e9tcp
Upstream tarball for 3.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *      SCCS: @(#)dynlink.c     1.2 (99/09/03)
 
3
 *
 
4
 *      UniSoft Ltd., London, England
 
5
 *
 
6
 * Copyright (c) 1998 The Open Group
 
7
 * All rights reserved.
 
8
 *
 
9
 * No part of this source code may be reproduced, stored in a retrieval
 
10
 * system, or transmitted, in any form or by any means, electronic,
 
11
 * mechanical, photocopying, recording or otherwise, except as stated
 
12
 * in the end-user licence agreement, without the prior permission of
 
13
 * the copyright owners.
 
14
 * A copy of the end-user licence agreement is contained in the file
 
15
 * Licence which accompanies this distribution.
 
16
 * 
 
17
 * Motif, OSF/1, UNIX and the "X" device are registered trademarks and
 
18
 * IT DialTone and The Open Group are trademarks of The Open Group in
 
19
 * the US and other countries.
 
20
 *
 
21
 * X/Open is a trademark of X/Open Company Limited in the UK and other
 
22
 * countries.
 
23
 *
 
24
 */
 
25
 
 
26
#ifndef lint
 
27
static char sccsid_dynlink[] = "@(#)dynlink.c   1.2 (99/09/03) TET3 release 3.7";
 
28
#endif
 
29
 
 
30
/************************************************************************
 
31
 
 
32
SCCS:           @(#)dynlink.c   1.2 99/09/03 TETware release 3.7
 
33
NAME:           dynlink.c
 
34
PRODUCT:        TETware
 
35
AUTHOR:         Andrew Dingwall, UniSoft Ltd.
 
36
DATE CREATED:   July 1998
 
37
 
 
38
DESCRIPTION:
 
39
        this is a simple dynamic linker for use when building a test case
 
40
        to use a shared API library on a Win32 system
 
41
 
 
42
        the dynamic linker is in two parts:
 
43
 
 
44
                tet_w32dynlink() resides in the main program
 
45
                tet_w32dlcheck() resides in the shared API library
 
46
 
 
47
        tet_w32dynlink() performs the dynamic linking
 
48
        tet_w32dlcheck() ensures that none of the pointers have been missed
 
49
 
 
50
        see the comment in dtmac.h for an overview of how this works
 
51
 
 
52
 
 
53
        no calls to TETware library functions are allowed from this file
 
54
 
 
55
MODIFICATIONS:
 
56
 
 
57
        Andrew Dingwall, UniSoft Ltd., July 1999
 
58
        moved TCM code out of the API library
 
59
 
 
60
************************************************************************/
 
61
 
 
62
/*
 
63
** This file is a component of the TCM (tcm.o) and/or one of the child
 
64
** process controllers (tcmchild.o and tcmrem.o).
 
65
** On UNIX systems, these .o files are built using ld -r.
 
66
** There is no equivalent to ld -r in MSVC, so on Win32 systems each .c
 
67
** file is #included in a scratch .c or .cpp file and a single object
 
68
** file built from that.
 
69
**
 
70
** This imposes some restictions on the contents of this file:
 
71
**
 
72
**      + Since this file might be included in a C++ program, all
 
73
**        functions must have both ANSI C and common C definitions.
 
74
**
 
75
**      + The only .h file that may appear in this file is tcmhdrs.h;
 
76
**        all other .h files that are needed must be #included in there.
 
77
**
 
78
**      + The scope of static variables and functions encompasses all
 
79
**        the source files, not just this file.
 
80
**        So all static variables and functions must have unique names.
 
81
*/
 
82
 
 
83
 
 
84
/* TET_SHLIB_SOURCE implies TET_SHLIB */
 
85
#if defined(TET_SHLIB_SOURCE) && !defined(TET_SHLIB)
 
86
#  define TET_SHLIB
 
87
#endif
 
88
 
 
89
 
 
90
int tet_dynlink_c_not_used;
 
91
 
 
92