Lines Matching defs:new
177 char **new, **old;
199 new = (char **) realloc ((char *) e,
203 new = (char **) malloc (2 * sizeof (char *));
205 if (!new) {
210 new[envsize] = newe;
211 new[envsize+1] = 0;
212 return new;
279 struct addrList *new;
283 new = (struct addrList *) malloc (sizeof (struct addrList));
284 if (!new) {
288 if ((new->address_length = address_length) > 0) {
289 new->address = malloc (address_length);
290 if (!new->address) {
292 free ((char *) new);
295 bcopy (address, new->address, (int) address_length);
297 new->address = 0;
298 if ((new->number_length = number_length) > 0) {
299 new->number = malloc (number_length);
300 if (!new->number) {
302 free (new->address);
303 free ((char *) new);
306 bcopy (number, new->number, (int) number_length);
308 new->number = 0;
309 new->family = family;
310 new->next = addrs;
311 addrs = new;
649 Xauth *new;
652 new = (Xauth *) malloc (sizeof (Xauth));
654 if (!new)
656 new->family = FamilyWild;
657 new->address_length = 0;
658 new->address = 0;
659 new->number_length = 0;
660 new->number = 0;
663 new->data = (char *) malloc (AUTH_DATA_LEN);
665 new->data = (char *) malloc (MAXNETNAMELEN);
666 if (!new->data)
668 free ((char *) new);
671 new->name = (char *) malloc (namelen);
672 if (!new->name)
674 free ((char *) new->data);
675 free ((char *) new);
678 bcopy (name, new->name, namelen);
679 new->name_length = namelen;
681 GenerateCryptoKey (new->data, AUTH_DATA_LEN);
682 new->data_length = AUTH_DATA_LEN;
686 new->data_length = strlen(netname);
687 bcopy(netname, new->data, new->data_length);
689 return new;
839 FILE *old, *new;
856 if (openFiles (home_name, new_name, &old, &new)) {
871 if (openFiles (backup_name, new_name, &old, &new)) {
885 writeLocalAuth (new, auth, d->name);
895 writeAuth (new, entry);
902 fclose (new);
944 fprintf(stderr,"new client connections.\n");