| 1 |
< |
/* Copyright (c) 1996 Regents of the University of California */ |
| 2 |
< |
|
| 3 |
< |
/* SCCSid "$SunId$ LBL" */ |
| 4 |
< |
|
| 1 |
> |
/* RCSid $Id$ */ |
| 2 |
|
/* |
| 3 |
|
* Header file for network processing routines |
| 4 |
|
*/ |
| 5 |
+ |
#ifndef _RAD_NETPROC_H_ |
| 6 |
+ |
#define _RAD_NETPROC_H_ |
| 7 |
+ |
#ifdef __cplusplus |
| 8 |
+ |
extern "C" { |
| 9 |
+ |
#endif |
| 10 |
|
|
| 11 |
+ |
|
| 12 |
|
typedef struct { |
| 13 |
|
char *com; /* command (stored on client side) */ |
| 14 |
|
int pid; /* process ID */ |
| 31 |
|
|
| 32 |
|
extern PSERVER *pslist; /* global process server list */ |
| 33 |
|
|
| 34 |
< |
extern PSERVER *addpserver(), *findjob(); |
| 34 |
> |
extern PSERVER *addpserver(char *host, char *dir, char *usr, int np); |
| 35 |
> |
extern PSERVER *findjob(int *pnp); |
| 36 |
|
|
| 37 |
< |
extern char *myhostname(); |
| 37 |
> |
extern char *myhostname(void); |
| 38 |
|
|
| 39 |
|
#define LHOSTNAME "localhost" /* accepted name for local host */ |
| 40 |
|
|
| 41 |
|
#define pserverOK(ps) (wait4job(ps, startjob(ps, "true", NULL)) == 0) |
| 42 |
+ |
|
| 43 |
+ |
|
| 44 |
+ |
#ifdef __cplusplus |
| 45 |
+ |
} |
| 46 |
+ |
#endif |
| 47 |
+ |
#endif /* _RAD_NETPROC_H_ */ |
| 48 |
+ |
|