File: test.c

package info (click to toggle)
dqs 3.1.8-9
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 8,908 kB
  • ctags: 9,887
  • sloc: ansic: 87,447; sh: 2,952; makefile: 442; yacc: 247; lex: 94; perl: 83; csh: 51; fortran: 24; awk: 16
file content (107 lines) | stat: -rwxr-xr-x 2,834 bytes parent folder | download | duplicates (2)
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
static char test_rcsid[]="$Id: test.c,v 1.1.1.1 1997/04/10 15:10:35 green Exp $";

/*----------------------------------------------------
 * test.c Tom Green Mon Jan 31 10:43:12 1994
 *
 * Copyright 1993
 *
 * SUPER COMPUTER COMPUTATIONS RESEARCH INSTITUTE
 *            FLORIDA STATE UNIVERSITY
 *
 *
 * SCRI representatives make no claims about the
 * suitability of this software for any purpose.
 * It is provided "as is" without express or
 * implied warranty.
 *
 * $Log: test.c,v $
 * Revision 1.1.1.1  1997/04/10 15:10:35  green
 * DQS 3.1.3.4.1 Distribution
 *
 * Revision 3.1  1996/11/20 23:05:24  nrl
 * Several fixes submitted by or as a result of investigations by
 * Ron Lee, Bodo Bechenback, Guntram Wolski and Frank Dwyyer.
 *
 * Revision 3.0  1994/03/07  04:15:29  green
 * 3.0 freeze
 *
 * Revision 1.5  1994/03/01  19:23:47  green
 * removed "test" from the default dependancy list in Makefile.proto.
 *
 * changed dqs_show_all_cofigurations() to dqs_show_all_configurations()
 * in dqs_execd.c, qmaster.c and dqs_utility.c.
 *
 * fixed the broken comment exclusion feature in dqs_resolve.c.
 *
 * fixed bug in me.default_cell in dqs_setup.c where conf_file
 * default_cell was not updating me.default_cell.
 *
 * getenv(DQS_CELL) mved out of dqs_getme() into dqs_setup()
 * to allow dqs_getme() to be called on forks.
 *
 * remade func.h.
 *
 * pulled garbage out of test.c.
 *
 * added syntax instructions to resolve_file
 *
 * Revision 1.4  1994/02/27  14:25:58  green
 * relaxed restrictions for resolving hosts for ancillaries.
 *
 * only qmaster hashes aliases now.
 *
 * Revision 1.3  1994/02/25  02:54:37  green
 * modified dqs_add_del.c to correct job ordering problem
 *
 * modified dqs_list.c to support ASCENDING on DQS_INT2 DQS_INT3
 *
 * modified dqs_load_avg.c in an attempt to fix CDs on VAX Ultrix -
 * by commenting out the offending code - this needs to be fixed...
 *
 * Revision 1.2  1994/02/25  00:08:53  green
 * added some debugging to dqs_resolve.c
 * this routine needs beefing up - BAD
 *
 * forgot to "nullify" a pointer in dqs_get_ack() causing SEGVs
 * in dqs_free_list();
 *
 * Revision 1.1.1.1  1994/02/01  17:57:52  green
 * DQS 3.0 ALPHA
 *
 *--------------------------------------------------*/

 
#define MAINPROGRAM
#include "h.h"
#include "def.h"
#include "dqs.h"
#include "struct.h"
#include "func.h"
#include "globals.h"
#include "dqs_errno.h"

dqs_list_type *reply_head=NULL;

/************************************************************************/

main(argc,argv,envp)
int argc;
char **argv;
char **envp;

{
     
     int i,j;
     char *cp;
     u_long32 ul=0;
     string str;
     dqs_list_type  *argv_list=(dqs_list_type *) NULL;
     struct hostent *hp;
     
     DENTER_MAIN((DQS_EVENT,"test"));
     dqs_setup(QSUB,argv[0]);

     DEXIT;
     exit(0);
     
}