~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to pvm3/tracer/tracer.h

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* $Id: tracer.h,v 1.1 2002/10/14 15:00:15 chanceli Exp $ */
 
3
 
 
4
/*
 
5
 *         Tracer version 1.0:  A Trace File Generator for PVM
 
6
 *           Oak Ridge National Laboratory, Oak Ridge TN.
 
7
 *           Authors:  James Arthur Kohl and G. A. Geist
 
8
 *                   (C) 1994 All Rights Reserved
 
9
 *
 
10
 *                              NOTICE
 
11
 *
 
12
 * Permission to use, copy, modify, and distribute this software and
 
13
 * its documentation for any purpose and without fee is hereby granted
 
14
 * provided that the above copyright notice appear in all copies and
 
15
 * that both the copyright notice and this permission notice appear
 
16
 * in supporting documentation.
 
17
 *
 
18
 * Neither the Institution, Oak Ridge National Laboratory, nor the
 
19
 * Authors make any representations about the suitability of this
 
20
 * software for any purpose.  This software is provided ``as is''
 
21
 * without express or implied warranty.
 
22
 *
 
23
 * Tracer was funded by the U.S. Department of Energy.
 
24
 */
 
25
 
 
26
 
 
27
/* System Header Files */
 
28
 
 
29
#include <stdio.h>
 
30
#ifdef  SYSVSTR
 
31
#include <string.h>
 
32
#else
 
33
#include <strings.h>
 
34
#endif
 
35
#include <sys/types.h>
 
36
#ifndef WIN32
 
37
#include <sys/time.h>
 
38
#include <pwd.h>
 
39
#else
 
40
#include "pvmwin.h"
 
41
#include <time.h>
 
42
#endif
 
43
#ifndef IMA_MACOSX
 
44
#include <malloc.h>
 
45
#endif
 
46
#include <signal.h>
 
47
#include <ctype.h>
 
48
 
 
49
 
 
50
/* Header Files */
 
51
 
 
52
#include <pvm3.h>
 
53
 
 
54
#ifdef USE_PVM_33
 
55
#include "../src/tdpro.h"
 
56
#else
 
57
#include <pvmproto.h>
 
58
#endif
 
59
 
 
60
#include <pvmtev.h>
 
61
 
 
62
#include "trcdef.h"
 
63
 
 
64
typedef void (*vfp)();
 
65
typedef int (*ifp)();
 
66
 
 
67
 
 
68
/* Defined Constants & Macros */
 
69
 
 
70
 
 
71
/* This Tracer's Version */
 
72
 
 
73
#define MYVERSION "1.0.0"
 
74
 
 
75
 
 
76
/* Select Macro (based on FDSETISINT) */
 
77
 
 
78
#ifdef FDSETISINT
 
79
 
 
80
#define SELECT( _nfds, _rfdsp, _wfdsp, _efdsp, _tvalp ) \
 
81
        select( (_nfds), \
 
82
                (int *) (_rfdsp), (int *) (_wfdsp), (int *) (_efdsp), \
 
83
                (struct timeval *) (_tvalp) )
 
84
 
 
85
#else
 
86
 
 
87
#define SELECT( _nfds, _rfdsp, _wfdsp, _efdsp, _tvalp ) \
 
88
        select( (_nfds), \
 
89
                (fd_set *) (_rfdsp), (fd_set *) (_wfdsp), (fd_set *) (_efdsp), \
 
90
                (struct timeval *) (_tvalp) )
 
91
 
 
92
#endif
 
93
 
 
94
 
 
95
/* Routines */
 
96
 
 
97
FILE    *fopen();
 
98
 
 
99
void    re_register_tracer();
 
100
 
 
101
 
 
102
/* Externals */
 
103
 
 
104
extern  struct Pvmtevinfo       pvmtevinfo[];
 
105
 
 
106
extern  int     errno;
 
107