| | 125 | | | | gs_struct_init(groupname) |
| | 126 | | | | char *groupname; |
| | 127 | | | | { |
| | 128 | | | | |
| | 129 | | | | GROUP_STRUCT_PTR rvalue; |
| | 130 | | | | |
| | 131 | | | | if ( (rvalue = (GROUP_STRUCT_PTR)PVM_ALLOC(sizeof(GROUP_STRUCT), GSNAME))
|
| | 132 | | | | == (GROUP_STRUCT_PTR) NULL)
|
| | 133 | | | | return (rvalue); |
| | 134 | | | | |
| referenced by rvalue->name | 135 | | | | if ( (rvalue->name = |
| referenced by returned value | 136 | | | | (char *) PVM_ALLOC(sizeof(char)*(strlen(groupname)+1), GSNAME)) | Problem | | referenced by returned value |
|
| referenced by rvalue->name | 137 | | | | == (char *) NULL)
|
| | 138 | | | | { |
| | 139 | | | | PVM_FREE(rvalue);
|
| | 140 | | | | |
| | 141 | | | | fprintf(stderr, "gs_struct_init(), couldn't allocate memory\n"); |
| | 142 | | | | |
| | 143 | | | | return (GROUP_STRUCT_PTR) NULL;
|
| | 144 | | | | } |
| | 145 | | | | |
| | 146 | | | | rvalue->len = strlen(groupname); |
| | 147 | | | | strcpy(rvalue->name,groupname); |
| | 148 | | | | rvalue->ntids = 0; |
| | 149 | | | | rvalue->tids = (int *) NULL;
|
| | 150 | | | | rvalue->maxntids = 0; |
| | 151 | | | | rvalue->barrier_count = -1; |
| | 152 | | | | rvalue->barrier_reached = 0; |
| | 153 | | | | rvalue->barrier_index = 0; |
| | 154 | | | | rvalue->btids = (int *) NULL;
|
| | 155 | | | | rvalue->maxbtids = 0; |
| | 156 | | | | rvalue->staticgroup = DYNAMIC;
|
| | 157 | | | | rvalue->sgroup_count = -1; |
| | 158 | | | | rvalue->sgroup_reached = 0; |
| | 159 | | | | rvalue->stids = (int *) NULL;
|
| | 160 | | | | rvalue->maxstids = 0; |
| | 161 | | | | rvalue->ninfotids = 0; |
| | 162 | | | | rvalue->infotids = (int *) NULL;
|
| | 163 | | | | rvalue->maxinfotids = 0; |
| | 164 | | | | rvalue->nhosts = 0; |
| | 165 | | | | rvalue->np_onhost = (int *) NULL;
|
| | 166 | | | | rvalue->pcoord = (int *) NULL;
|
| | 167 | | | | rvalue->maxhosts = 0; |
| | 168 | | | | |
| | 169 | | | | return rvalue; |
| referenced by gs_struct_init$return->name | 170 | | | | } | Problem | | referenced by gs_struct_init$return->name |
|