File: pvmftrecv.m4

package info (click to toggle)
pvm 3.4.6-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,284 kB
  • sloc: ansic: 72,074; makefile: 1,198; fortran: 631; sh: 285; csh: 74; asm: 37
file content (19 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

/* $Id: pvmftrecv.m4,v 1.2 1996/10/04 15:27:44 pvmsrc Exp $ */

#include <sys/types.h>
#include <sys/time.h>
#include "pvm3.h"
#include "pvm_consts.h"

void
FUNCTION(pvmftrecv) ARGS(`tid, msgtag, sec, usec, info')
int *tid, *msgtag, *sec, *usec, *info;
{
	struct timeval t;

	t.tv_sec = *sec;
	t.tv_usec = *usec;
	*info = pvm_trecv(*tid, *msgtag, (*sec == -1 ? (struct timeval *)0 : &t));
}