/usr/include/pvm3.h is in pvm-dev 3.4.5-12.6ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 | /* $Id: pvm3.h,v 1.52 2004/09/08 19:52:43 pvmsrc Exp $ */
/*
* PVM version 3.4: Parallel Virtual Machine System
* University of Tennessee, Knoxville TN.
* Oak Ridge National Laboratory, Oak Ridge TN.
* Emory University, Atlanta GA.
* Authors: J. J. Dongarra, G. E. Fagg, M. Fischer
* G. A. Geist, J. A. Kohl, R. J. Manchek, P. Mucci,
* P. M. Papadopoulos, S. L. Scott, and V. S. Sunderam
* (C) 1997 All Rights Reserved
*
* NOTICE
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby granted
* provided that the above copyright notice appear in all copies and
* that both the copyright notice and this permission notice appear in
* supporting documentation.
*
* Neither the Institutions (Emory University, Oak Ridge National
* Laboratory, and University of Tennessee) nor the Authors make any
* representations about the suitability of this software for any
* purpose. This software is provided ``as is'' without express or
* implied warranty.
*
* PVM version 3 was funded in part by the U.S. Department of Energy,
* the National Science Foundation and the State of Tennessee.
*/
/*
* pvm3.h
*
* Libpvm3 includes.
*
* $Log: pvm3.h,v $
* Revision 1.52 2004/09/08 19:52:43 pvmsrc
* Upped to PVM version 3.4.5 (how sequential... :)
* (Spanker=kohl)
*
* Revision 1.51 2001/09/27 21:24:18 pvmsrc
* Increased default PVMTMPNAMLEN to 64...
* - suggested by BEOSCYLD / Joe Vitale <vitale@scyld.com>
* - seems like a good idea. :-)
* (Spanker=kohl)
*
* Revision 1.50 2001/09/27 18:24:39 pvmsrc
* Upped version to 3.4.4.
* (Spanker=kohl)
*
* Revision 1.49 2001/09/26 21:55:51 pvmsrc
* Oops... fixed function proto for pvmtmpnam()...
* - leftover bogus cruft...
* (Spanker=kohl)
*
* Revision 1.48 2001/09/25 21:17:49 pvmsrc
* Minor TMPNAMFUN()/tmpnam() cleanup.
* - moved macro def to pvm3.h, renamed PVMTNPMAN().
* - same for LEN_OF_TMP_NAM -> PVMTMPNAMLEN.
* - mostly a huge waste of time, since *both* tmpnam() & mktemp()
* produce the same "dangerous" warning message in Linux/gcc...
* - damn.
* (Spanker=kohl)
*
* Revision 1.47 2001/06/18 18:38:23 pvmsrc
* Added missing function prototype for pvm_freezegroup()...
* (Spanker=kohl)
*
* Revision 1.46 2000/02/16 22:50:01 pvmsrc
* Upped version to 3.4.3 so I don't forget later.
* (Spanker=kohl)
*
* Revision 1.45 2000/02/10 23:53:09 pvmsrc
* Added new PvmIPLoopback error code.
* - Master Host IP Address tied to Loopback.
* (Spanker=kohl)
*
* Revision 1.44 1999/11/08 17:21:32 pvmsrc
* Added PvmMboxDirectIndex stuff:
* - PvmMboxMaxFlag: capped regular flags to squeeze in direct index...
* - PvmMboxDirectIndexShift: # of bits to shift index in flags
* - PvmMboxMaxDirectIndex: max direct index value, for error checking
* - PvmMboxDirectIndex(): macro to convert direct index into flag bits
* - PvmMboxDirectIndexOf(): macro to decode direct index from flags
* (Spanker=kohl)
*
* Revision 1.43 1999/10/27 18:48:40 pvmsrc
* Fixed (yet again) the prototype for pvm_recvf().
* - hopefully got it right this time... :-Q
* (Spanker=kohl)
*
* Revision 1.42 1999/10/22 13:34:55 pvmsrc
* Fixed prototype for pvm_recvf().
* - reported by "Ed D'Azevedo" <efdazedo@alcor.epm.ornl.gov>.
* (Spanker=kohl)
*
* Revision 1.41 1999/10/18 21:22:00 pvmsrc
* Added function prototypes for:
* - pvm_pkmesg(), pvm_pkmesgbody(), pvm_upkmesg().
* (Spanker=kohl)
*
* Revision 1.40 1999/08/19 16:07:14 pvmsrc
* Upped version to 3.4.2.
* (Spanker=kohl)
*
* Revision 1.39 1999/07/08 18:59:47 kohl
* Fixed "Log" keyword placement.
* - indent with " * " for new CVS.
*
* Revision 1.38 1999/06/07 20:06:53 pvmsrc
* Upped version to 3.4.1.
* (Spanker=kohl)
*
* Revision 1.37 1999/03/03 19:00:36 pvmsrc
* Added new define PVM_PATCH_VERSION.
* - the "0" in "3.4.0".
* - to go along with PVM_MAJOR_VERSION & PVM_MINOR_VERSION.
* (Spanker=kohl)
*
* Revision 1.36 1999/01/19 18:02:17 pvmsrc
* Bumped PVM_VER to 3.4.0.
* (Spanker=kohl)
*
* Revision 1.35 1999/01/13 00:03:19 pvmsrc
* Fixed backwards compat.
* - redefine old pvm_insert/lookup/delete() consts:
* * PvmNoEntry -> PvmNotFound
* * PvmDupEntry -> PvmDenied
* - remove #ifdef PVM33COMPAT... O.K. in general.
* (Spanker=kohl)
*
* Revision 1.34 1998/08/27 15:17:14 pvmsrc
* Time to bump up to beta 7...
* (Spanker=kohl)
*
* Revision 1.33 1997/12/30 18:15:32 pvmsrc
* Oops... better skip directly to beta 6 instead of beta 5...
* - separate WIN32 release is beta 5...
* (Spanker=kohl)
*
* Revision 1.32 1997/12/29 19:53:51 pvmsrc
* Upgraded from beta4 to beta5.
* (Spanker=kohl)
*
* Revision 1.31 1997/09/15 20:54:29 pvmsrc
* Fixed PVM_MAJOR_VERSION and PVM_MINOR_VERSION defines.
* - VER -> VERSION.
* - MAJOR = 3, MINOR = 4 (3.4.*).
* (Spanker=kohl)
*
* Revision 1.30 1997/09/02 13:05:37 pvmsrc
* Upgraded PVM_VER to 3.4 beta 4.
* (Spanker=kohl)
*
* Revision 1.29 1997/07/09 13:29:36 pvmsrc
* Fixed Author Header.
*
* Revision 1.28 1997/07/01 17:19:03 pvmsrc
* The real real beta version number according to Garp.
*
* Revision 1.27 1997/07/01 15:54:35 pvmsrc
* Trying again on the version.
* - just straight 3.4.0.
*
* Revision 1.26 1997/07/01 14:17:26 pvmsrc
* Set version for beta release to 3.4.1.0.
*
* Revision 1.25 1997/06/26 19:36:22 pvmsrc
* Added error constant "PvmParentNotSet" so that
* tc_siblings can get sibling tids even if the spawn flags
* had parent as PvmNoParent.
*
* Revision 1.24 1997/06/25 19:41:02 pvmsrc
* WIN32 fixes from Markus.
*
* Revision 1.23 1997/06/23 21:08:42 pvmsrc
* Added new error code "PvmHostrNMstr" / -34.
* - Hoster run on non-master host.
*
* Revision 1.22 1997/06/10 16:38:53 pvmsrc
* Minor text cleanup.
*
* Revision 1.21 1997/05/06 18:58:56 pvmsrc
* Upped version to 3.4.0.16.
*
* Revision 1.20 1997/04/17 12:52:28 pvmsrc
* rename of pvm_mboxinfo() to include word "get"
*
* Revision 1.19 1997/04/10 20:09:57 pvmsrc
* Fixed prototype for pvm_mboxinfo().
* - pvm_getnames() is history.
*
* Revision 1.18 1997/04/10 19:34:57 pvmsrc
* Added new pvmmboxinfo structure.
* - for pvm_mboxinfo().
*
* Revision 1.17 1997/04/09 20:21:51 pvmsrc
* Added PvmMboxWaitForInfo/PVMMBOXWAITFORINFO constants.
*
* Revision 1.16 1997/04/07 20:50:48 pvmsrc
* pvm_addmhf() protoglarp set to new parameter interface
*
* Revision 1.15 1997/04/03 18:19:02 pvmsrc
* Added a define for PvmBaseContext - this is 3.3 compatible context.
* codes that don't ever set their context should operate in this context.
*
* Revision 1.14 1997/04/01 16:46:09 pvmsrc
* Fixed protos for pvm_putinfo(), pvm_recvinfo() (formerly pvm_getinfo()).
*
* Revision 1.13 1997/03/31 21:38:05 pvmsrc
* Replaced original mbox constants with new syntax:
* - gone: PvmExclusive, PvmFirstAvail, PvmLock, PvmSticky.
* - new: PvmMboxDefault, PvmMboxPersistent, PvmMboxMultiInstance,
* PvmMboxOverWritable, PvmMboxFirstAvail, PvmMboxReadAndDelete.
* - fortran equivalents.
* - checked in for sscott.
*
* Revision 1.12 1997/03/26 21:51:55 pvmsrc
* Added "PvmNoSpawnParent" spawn option constant.
* - PVMNOSPAWNPARENT for Fortran.
*
* Revision 1.11 1997/03/07 14:41:10 pvmsrc
* PVM patches from the base 3.3.10 to 3.3.11 versions where applicable.
* Originals by Bob Manchek. Altered by Graham Fagg where required.
*
* added pvm_export / pvm_unexport to user API.
*
* Revision 1.10 1997/03/04 19:44:11 pvmsrc
* Added system message mailbox class name #defines:
* - PVMHOSTERCLASS, PVMTASKERCLASS, PVMTRACERCLASS, PVMRMCLASS.
*
* Revision 1.9 1997/02/17 18:47:51 pvmsrc
* Oops... must pass ptr to tids array for pvm_getnoresets().
*
* Revision 1.8 1997/02/17 16:30:11 pvmsrc
* Added proto for new pvm_getnoresets() routine.
* - note: not an official interface routine...
*
* Revision 1.7 1997/02/13 23:12:41 pvmsrc
* Added PVMNORESETCLASS class name for PvmNoReset.
*
* Revision 1.6 1997/02/13 23:05:22 pvmsrc
* Added new PvmNoReset setopt/getopt constant.
*
* Revision 1.5 1997/01/28 19:14:20 pvmsrc
* New Copyright Notice & Authors.
*
* Revision 1.4 1996/10/24 19:33:48 pvmsrc
* Modified for New Tracing Facility:
* - added user-defined message encoding, PvmDataTrace.
* - added new option constants:
* PvmTraceBuffer, PvmTraceOptions,
* PvmSelfTraceBuffer & PvmSelfTraceOptions,
* - added PvmTraceFull, PvmTraceTime & PvmTraceCount for trace opts.
* - added function prototype for new pvm_reg_tracer() routine.
*
* Revision 1.3 1996/10/11 17:01:52 pvmsrc
* Replaced references to pvm_remove() with pvm_delinfo(): renamed.
*
* Revision 1.2 1996/10/08 18:30:30 pvmsrc
* Renamed routines:
* - pvm_put() -> pvm_putinfo().
* - pvm_get() -> pvm_getinfo().
*
* Revision 1.1 1996/09/23 21:06:31 pvmsrc
* Initial revision
*
*/
#ifndef _PVM3_H_
#define _PVM3_H_
/*
* Release version
*/
#define PVM_VER "3.4.5"
#define PVM_MAJOR_VERSION 3
#define PVM_MINOR_VERSION 4
#define PVM_PATCH_VERSION 5
#ifndef WIN32
#include <sys/time.h>
#else
#include "pvmwin.h"
#include <sys/timeb.h>
#include <time.h>
#endif
/*
* Data packing styles for pvm_initsend()
*/
#define PvmDataDefault 0 /* XDR encoding */
#define PvmDataRaw 1 /* Raw data copy */
#define PvmDataInPlace 2 /* Raw data, left in place */
#define PvmDataFoo PvmDataDefault /* Internal use */
#define PvmDataTrace 4 /* User-Defined Trace Encoding */
/*
* pvm_spawn options
*/
#define PvmTaskDefault 0
#define PvmTaskHost 1 /* specify host */
#define PvmTaskArch 2 /* specify architecture */
#define PvmTaskDebug 4 /* start task in debugger */
#define PvmTaskTrace 8 /* process generates trace data */
/* for MPP ports */
#define PvmMppFront 16 /* spawn task on service node */
#define PvmHostCompl 32 /* complement host set */
/* for parent-less spawning */
#define PvmNoSpawnParent 64
/*
* pvm_notify kinds
*/
#define PvmTaskExit 1 /* on task exit */
#define PvmHostDelete 2 /* on host fail/delete */
#define PvmHostAdd 3 /* on host startup */
#define PvmRouteAdd 4 /* new task-task route opened */
#define PvmRouteDelete 5 /* task-task route closed */
/* flags combined with notify kind */
#define PvmNotifyCancel 256 /* cancel (complete immediately) notifies */
/*
* for pvm_setopt and pvm_getopt
*/
#define PvmRoute 1 /* routing policy */
#define PvmDontRoute 1 /* don't allow direct task-task links */
#define PvmAllowDirect 2 /* allow direct links, but don't request */
#define PvmRouteDirect 3 /* request direct links */
#define PvmDebugMask 2 /* debugmask */
#define PvmAutoErr 3 /* auto error reporting */
#define PvmOutputTid 4 /* stdout destination for children */
#define PvmOutputCode 5 /* stdout message tag */
#define PvmTraceTid 6 /* trace destination for children */
#define PvmTraceCode 7 /* trace message tag */
#define PvmTraceBuffer 8 /* trace buffering for children */
#define PvmTraceOptions 9 /* trace options for children */
#define PvmTraceFull 1 /* do full trace events */
#define PvmTraceTime 2 /* only do PVM routine timings */
#define PvmTraceCount 3 /* only do PVM routine profiling */
#define PvmFragSize 10 /* message fragment size */
#define PvmResvTids 11 /* allow reserved message tids and codes */
#define PvmSelfOutputTid 12 /* stdout destination for task */
#define PvmSelfOutputCode 13 /* stdout message tag */
#define PvmSelfTraceTid 14 /* trace destination for task */
#define PvmSelfTraceCode 15 /* trace message tag */
#define PvmSelfTraceBuffer 16 /* trace buffering for task */
#define PvmSelfTraceOptions 17 /* trace options for task */
#define PvmShowTids 18 /* pvm_catchout prints task ids with output */
#define PvmPollType 19 /* shared memory wait method */
#define PvmPollConstant 1
#define PvmPollSleep 2
#define PvmPollTime 20 /* time before sleep if PvmPollSleep */
#define PvmOutputContext 21 /* stdout message context */
#define PvmTraceContext 22 /* trace message context */
#define PvmSelfOutputContext 23 /* stdout message context */
#define PvmSelfTraceContext 24 /* trace message context */
#define PvmNoReset 25 /* do not kill task on reset */
/*
* for pvm_[sg]ettmask
*/
#define PvmTaskSelf 0 /* this task */
#define PvmTaskChild 1 /* (future) child tasks */
/*
* Need to have PvmBaseContext defined
*/
#define PvmBaseContext 0
/*
* for message mailbox operations: pvm_putinfo and pvm_recvinfo
*/
#define PvmMboxDefault 0 /* put: single locked instance */
/* recv: 1st entry */
/* start w/index=0 */
#define PvmMboxPersistent 1 /* entry remains after owner exit */
#define PvmMboxMultiInstance 2 /* multiple entries in class */
#define PvmMboxOverWritable 4 /* can write over this entry */
#define PvmMboxFirstAvail 8 /* select 1st index >= specified */
#define PvmMboxReadAndDelete 16 /* atomic read / delete */
/* requires read & delete rights */
#define PvmMboxWaitForInfo 32 /* for blocking recvinfo */
#define PvmMboxMaxFlag 512 /* maximum mbox flag bit value */
#define PvmMboxDirectIndexShift 10 /* log2(PvmMboxMaxFlag) + 1 */
#define PvmMboxMaxDirectIndex \
( (unsigned) 1 << ( 31 - PvmMboxDirectIndexShift ) )
#define PvmMboxDirectIndexOf( _flags ) \
( ( (_flags) & \
( ( PvmMboxMaxDirectIndex - 1 ) << PvmMboxDirectIndexShift ) ) \
>> PvmMboxDirectIndexShift )
#define PvmMboxDirectIndex( _index ) \
( ( (_index) >= PvmMboxMaxDirectIndex ) ? \
( fprintf( stderr, "Mbox Direct Index Too Large: %d >= %d\n", \
(_index), PvmMboxMaxDirectIndex ), 0 ) \
: ( (_index) << PvmMboxDirectIndexShift ) )
/*
* pre-defined system message mailbox classes
*/
#define PVMNORESETCLASS "###_PVM_NO_RESET_###"
#define PVMHOSTERCLASS "###_PVM_HOSTER_###"
#define PVMTASKERCLASS "###_PVM_TASKER_###"
#define PVMTRACERCLASS "###_PVM_TRACER_###"
#define PVMRMCLASS "###_PVM_RM_###"
/*
* Libpvm error codes
*/
#define PvmOk 0 /* Success */
#define PvmBadParam -2 /* Bad parameter */
#define PvmMismatch -3 /* Parameter mismatch */
#define PvmOverflow -4 /* Value too large */
#define PvmNoData -5 /* End of buffer */
#define PvmNoHost -6 /* No such host */
#define PvmNoFile -7 /* No such file */
#define PvmDenied -8 /* Permission denied */
#define PvmNoMem -10 /* Malloc failed */
#define PvmBadMsg -12 /* Can't decode message */
#define PvmSysErr -14 /* Can't contact local daemon */
#define PvmNoBuf -15 /* No current buffer */
#define PvmNoSuchBuf -16 /* No such buffer */
#define PvmNullGroup -17 /* Null group name */
#define PvmDupGroup -18 /* Already in group */
#define PvmNoGroup -19 /* No such group */
#define PvmNotInGroup -20 /* Not in group */
#define PvmNoInst -21 /* No such instance */
#define PvmHostFail -22 /* Host failed */
#define PvmNoParent -23 /* No parent task */
#define PvmNotImpl -24 /* Not implemented */
#define PvmDSysErr -25 /* Pvmd system error */
#define PvmBadVersion -26 /* Version mismatch */
#define PvmOutOfRes -27 /* Out of resources */
#define PvmDupHost -28 /* Duplicate host */
#define PvmCantStart -29 /* Can't start pvmd */
#define PvmAlready -30 /* Already in progress */
#define PvmNoTask -31 /* No such task */
#define PvmNotFound -32 /* Not Found */
#define PvmExists -33 /* Already exists */
#define PvmHostrNMstr -34 /* Hoster run on non-master host */
#define PvmParentNotSet -35 /* Spawning parent set PvmNoSpawnParent */
#define PvmIPLoopback -36 /* Master Host's IP is Loopback */
/*
* crusty error constants from 3.3, now redefined...
*/
#define PvmNoEntry PvmNotFound /* No such entry */
#define PvmDupEntry PvmDenied /* Duplicate entry */
/*
* Data types for pvm_reduce(), pvm_psend(), pvm_precv()
*/
#define PVM_STR 0 /* string */
#define PVM_BYTE 1 /* byte */
#define PVM_SHORT 2 /* short */
#define PVM_INT 3 /* int */
#define PVM_FLOAT 4 /* real */
#define PVM_CPLX 5 /* complex */
#define PVM_DOUBLE 6 /* double */
#define PVM_DCPLX 7 /* double complex */
#define PVM_LONG 8 /* long integer */
#define PVM_USHORT 9 /* unsigned short int */
#define PVM_UINT 10 /* unsigned int */
#define PVM_ULONG 11 /* unsigned long int */
/*
* returned by pvm_config()
*/
struct pvmhostinfo {
int hi_tid; /* pvmd tid */
char *hi_name; /* host name */
char *hi_arch; /* host arch */
int hi_speed; /* cpu relative speed */
int hi_dsig; /* data signature */
};
/*
* returned by pvm_tasks()
*/
struct pvmtaskinfo {
int ti_tid; /* task id */
int ti_ptid; /* parent tid */
int ti_host; /* pvmd tid */
int ti_flag; /* status flags */
char *ti_a_out; /* a.out name */
int ti_pid; /* task (O/S dependent) process id */
};
/*
* for pvm_getminfo(), pvm_setminfo()
*/
struct pvmminfo {
int len; /* message length */
int ctx; /* context */
int tag; /* tag */
int wid; /* wait id */
int enc; /* encoding */
int crc; /* crc checksum */
int src; /* source tid */
int dst; /* destination tid */
};
/*
* returned by pvm_getmboxinfo()
*/
struct pvmmboxinfo {
char *mi_name; /* class name */
int mi_nentries; /* # of entries for this class */
int *mi_indices; /* mbox entry indices */
int *mi_owners; /* mbox entry owner tids */
int *mi_flags; /* mbox entry flags */
};
/*
* temporary file name function / macro
* (since there are so many choices, but so little time,
* and since gcc now complains about tmpnam()... :-Q)
*/
#ifdef NOTMPNAM
#define PVMTMPNAMFUN(x) pvmtmpnam(x)
#define PVMTMPNAMLEN 64
#else
#define PVMTMPNAMFUN(x) tmpnam(x)
#ifdef L_tmpnam
#define PVMTMPNAMLEN L_tmpnam
#else
#define PVMTMPNAMLEN 64
#endif
#endif
/*
* function prototypes
*/
#ifdef __ProtoGlarp__
#undef __ProtoGlarp__
#endif
#if defined(__STDC__) || defined(__cplusplus)
#define __ProtoGlarp__(x) x
#else
#define __ProtoGlarp__(x) ()
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef NOTMPNAM
char *pvmtmpnam __ProtoGlarp__(( char * ));
#endif
char *pvmgetrsh __ProtoGlarp__(( void ));
char *pvmgettmp __ProtoGlarp__(( void ));
int pvm_addhosts __ProtoGlarp__(( char **, int, int * ));
int pvm_addmhf __ProtoGlarp__(( int, int, int, int (*) (int) ));
int pvm_archcode __ProtoGlarp__(( char * ));
int pvm_barrier __ProtoGlarp__(( char *, int ));
int pvm_bcast __ProtoGlarp__(( char *, int ));
int pvm_bufinfo __ProtoGlarp__(( int, int *, int *, int * ));
#if defined(EOF)
int pvm_catchout __ProtoGlarp__(( FILE * ));
#endif
int pvm_config __ProtoGlarp__(( int *, int *,
struct pvmhostinfo ** ));
int pvm_delhosts __ProtoGlarp__(( char **, int, int * ));
int pvm_delinfo __ProtoGlarp__(( char *, int, int ));
int pvm_delmhf __ProtoGlarp__(( int ));
int pvm_exit __ProtoGlarp__(( void ));
int pvm_export __ProtoGlarp__(( char * ));
int pvm_freebuf __ProtoGlarp__(( int ));
int pvm_freecontext __ProtoGlarp__(( int ));
int pvm_freezegroup __ProtoGlarp__(( char *, int ));
int pvm_gather __ProtoGlarp__(( void*, void*,
int, int, int, char*, int));
int pvm_getcontext __ProtoGlarp__(( void ));
int pvm_getfds __ProtoGlarp__(( int ** ));
int pvm_getinst __ProtoGlarp__(( char *, int ));
int pvm_getminfo __ProtoGlarp__(( int, struct pvmminfo * ));
int pvm_getnoresets __ProtoGlarp__(( int **, int * ));
int pvm_getopt __ProtoGlarp__(( int ));
int pvm_getrbuf __ProtoGlarp__(( void ));
int pvm_getsbuf __ProtoGlarp__(( void ));
int pvm_gettid __ProtoGlarp__(( char *, int ));
int pvm_gsize __ProtoGlarp__(( char * ));
int pvm_halt __ProtoGlarp__(( void ));
int pvm_hostsync __ProtoGlarp__(( int, struct timeval *,
struct timeval * ));
int pvm_initsend __ProtoGlarp__(( int ));
int pvm_joingroup __ProtoGlarp__(( char * ));
int pvm_kill __ProtoGlarp__(( int ));
int pvm_lvgroup __ProtoGlarp__(( char * ));
int pvm_getmboxinfo __ProtoGlarp__(( char *, int *,
struct pvmmboxinfo ** ));
int pvm_mcast __ProtoGlarp__(( int *, int, int ));
int pvm_mkbuf __ProtoGlarp__(( int ));
int pvm_mstat __ProtoGlarp__(( char * ));
int pvm_mytid __ProtoGlarp__(( void ));
int pvm_newcontext __ProtoGlarp__(( void ));
int pvm_notify __ProtoGlarp__(( int, int,
int, int * ));
int pvm_nrecv __ProtoGlarp__(( int, int ));
int pvm_packf __ProtoGlarp__(( const char *, ... ));
int pvm_parent __ProtoGlarp__(( void ));
int pvm_perror __ProtoGlarp__(( char * ));
int pvm_pkbyte __ProtoGlarp__(( char *, int, int ));
int pvm_pkcplx __ProtoGlarp__(( float *, int, int ));
int pvm_pkdcplx __ProtoGlarp__(( double *, int, int ));
int pvm_pkdouble __ProtoGlarp__(( double *, int, int ));
int pvm_pkfloat __ProtoGlarp__(( float *, int, int ));
int pvm_pkint __ProtoGlarp__(( int *, int, int ));
int pvm_pklong __ProtoGlarp__(( long *, int, int ));
int pvm_pkshort __ProtoGlarp__(( short *, int, int ));
int pvm_pkstr __ProtoGlarp__(( char * ));
int pvm_pkuint __ProtoGlarp__(( unsigned int *, int, int ));
int pvm_pkulong __ProtoGlarp__(( unsigned long *, int, int ));
int pvm_pkushort __ProtoGlarp__(( unsigned short *, int, int ));
int pvm_pkmesg __ProtoGlarp__(( int ));
int pvm_pkmesgbody __ProtoGlarp__(( int ));
int pvm_precv __ProtoGlarp__(( int, int,
void *, int, int,
int *, int *, int * ));
int pvm_probe __ProtoGlarp__(( int, int ));
int pvm_psend __ProtoGlarp__(( int, int,
void *, int, int ));
int pvm_pstat __ProtoGlarp__(( int ));
int pvm_putinfo __ProtoGlarp__(( char *, int, int ));
int pvm_recv __ProtoGlarp__(( int, int ));
int (*pvm_recvf __ProtoGlarp__(( int (*)(int, int, int) )) )
__ProtoGlarp__(( int (*)(int, int, int) ));
int pvm_recvinfo __ProtoGlarp__(( char *, int, int ));
int pvm_reduce __ProtoGlarp__(( void (*)(int*, void*, void*, int*, int*),
void *, int,
int, int, char *,
int ));
/*
* Predefined pvm_reduce functions
*/
void PvmMax __ProtoGlarp__(( int *, void *, void *,
int *, int * ));
void PvmMin __ProtoGlarp__(( int *, void *, void *,
int *, int * ));
void PvmSum __ProtoGlarp__(( int *, void *, void *,
int *, int * ));
void PvmProduct __ProtoGlarp__(( int *, void *, void *,
int *, int * ));
int pvm_reg_hoster __ProtoGlarp__(( void ));
int pvm_reg_rm __ProtoGlarp__(( struct pvmhostinfo ** ));
int pvm_reg_tasker __ProtoGlarp__(( void ));
int pvm_reg_tracer __ProtoGlarp__(( int, int, int, int, char*,
int, int ));
int pvm_scatter __ProtoGlarp__(( void*, void*,
int, int, int, char*, int));
int pvm_send __ProtoGlarp__(( int, int ));
int pvm_sendsig __ProtoGlarp__(( int, int ));
int pvm_setcontext __ProtoGlarp__(( int ));
int pvm_setminfo __ProtoGlarp__(( int, struct pvmminfo * ));
int pvm_setopt __ProtoGlarp__(( int, int ));
int pvm_setrbuf __ProtoGlarp__(( int ));
int pvm_setsbuf __ProtoGlarp__(( int ));
int pvm_siblings __ProtoGlarp__(( int ** ));
int pvm_spawn __ProtoGlarp__(( char *, char **, int,
char *, int, int * ));
int pvm_start_pvmd __ProtoGlarp__(( int, char **, int ));
int pvm_tasks __ProtoGlarp__(( int, int *,
struct pvmtaskinfo ** ));
int pvm_tickle __ProtoGlarp__(( int, int *,
int *, int * ));
int pvm_tidtohost __ProtoGlarp__(( int ));
int pvm_trecv __ProtoGlarp__(( int, int, struct timeval * ));
int pvm_unexport __ProtoGlarp__(( char * ));
int pvm_unpackf __ProtoGlarp__(( const char *, ... ));
int pvm_upkbyte __ProtoGlarp__(( char *, int, int ));
int pvm_upkcplx __ProtoGlarp__(( float *, int, int ));
int pvm_upkdcplx __ProtoGlarp__(( double *, int, int ));
int pvm_upkdouble __ProtoGlarp__(( double *, int, int ));
int pvm_upkfloat __ProtoGlarp__(( float *, int, int ));
int pvm_upkint __ProtoGlarp__(( int *, int, int ));
int pvm_upklong __ProtoGlarp__(( long *, int, int ));
int pvm_upkshort __ProtoGlarp__(( short *, int, int ));
int pvm_upkstr __ProtoGlarp__(( char * ));
int pvm_upkuint __ProtoGlarp__(( unsigned int *, int, int ));
int pvm_upkulong __ProtoGlarp__(( unsigned long *, int, int ));
int pvm_upkushort __ProtoGlarp__(( unsigned short *, int, int ));
int pvm_upkmesg __ProtoGlarp__(( void ));
char *pvm_version __ProtoGlarp__(( void ));
/*
* these are going away in the next version.
* use the replacements
*/
#ifdef PVM33COMPAT
int pvm_getmwid __ProtoGlarp__(( int ));
int pvm_setmwid __ProtoGlarp__(( int, int ));
#endif
/* these are now backwards compatible -> they use mbox interface... */
int pvm_delete __ProtoGlarp__(( char *, int ));
int pvm_insert __ProtoGlarp__(( char *, int, int ));
int pvm_lookup __ProtoGlarp__(( char *, int, int * ));
#ifdef __cplusplus
}
#endif
#endif /*_PVM3_H_*/
|