Lines Matching defs:rc

193 	ipsec_proto_t *rc = NULL, *new_proto = NULL;
265 new_proto = (ipsec_proto_t *)realloc(rc,
267 rc = new_proto;
307 for (new_proto = rc; new_proto < (rc + new_num);
311 if (new_proto == (rc + new_num)) {
569 return (rc);
579 _clean_trash(rc, rc_num);
593 int rc, trash_num;
615 rc = fstat(fileno(f), &statbuf);
616 if (rc != -1) {
624 new_protos = build_list(f, &rc);
640 num_protos = rc;
657 *alg_nums = rc;
726 struct ipsecalgent *rc;
729 rc = calloc(1, sizeof (struct ipsecalgent));
730 if (rc == NULL)
733 rc->a_proto_num = orig->a_proto_num;
734 rc->a_alg_num = orig->a_alg_num;
735 rc->a_key_increment = orig->a_key_increment;
736 rc->a_mech_name = strdup(orig->a_mech_name);
737 rc->a_alg_flags = orig->a_alg_flags;
738 rc->a_block_sizes = duplicate_intarr(orig->a_block_sizes);
739 rc->a_mech_params = duplicate_intarr(orig->a_mech_params);
740 rc->a_key_sizes = duplicate_intarr(orig->a_key_sizes);
741 rc->a_names = duplicate_strarr(orig->a_names);
743 if (rc->a_mech_name == NULL || rc->a_block_sizes == NULL ||
744 rc->a_key_sizes == NULL || rc->a_names == NULL ||
745 rc->a_mech_params == NULL) {
746 freeipsecalgent(rc);
750 return (rc);
789 int *rc, i;
802 rc = malloc((num_protos == 0) ? 1 : num_protos * sizeof (int));
803 if (rc != NULL) {
805 rc[i] = protos[i].proto_num;
808 return (rc);
814 int *rc = NULL, i;
830 rc = malloc((proto->proto_numalgs == 0) ? 1 :
832 if (rc != NULL) {
834 rc[i] = proto->proto_algs[i]->a_alg_num;
838 return (rc);
845 struct ipsecalgent *rc = NULL;
867 rc = _duplicate_alg(
869 my_errno = (rc == NULL) ? ENOMEM : 0;
883 return (rc);
890 struct ipsecalgent *rc = NULL;
901 rc = _duplicate_alg(proto->proto_algs[i]);
902 my_errno = (rc == NULL) ? ENOMEM : 0;
913 return (rc);
919 int rc = -1;
927 rc = proto->proto_num;
929 return (rc);
936 char *rc = NULL;
943 rc = strdup(proto->proto_name);
946 return (rc);