File: pvmfarchcode.m4

package info (click to toggle)
pvm 3.4beta7-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,256 kB
  • ctags: 5,938
  • sloc: ansic: 66,147; makefile: 1,446; fortran: 631; sh: 424; csh: 70; asm: 37
file content (25 lines) | stat: -rw-r--r-- 458 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
20
21
22
23
24
25

/* $Id: pvmfarchcode.m4,v 1.2 1996/10/04 15:26:54 pvmsrc Exp $ */

#include "pvm3.h"
#include "pvm_consts.h"

void
FUNCTION(pvmfarchcode) ARGS(`STRING_ARG(arch), code')
STRING_ARG_DECL(arch);
int *code;
{
	char tarch[MAX_HOST_NAME + 1];

	/*
	 * Copy the arch name to make sure there's
	 * a NUL at the end.
	 */
	if (ftocstr(tarch, sizeof(tarch), STRING_PTR(arch), STRING_LEN(arch))) {
		*code = PvmBadParam;
		return;
	}

	*code = pvm_archcode(tarch);
}