Lines Matching defs:rc

194 	ipsec_proto_t *rc = NULL, *new_proto = NULL;
266 new_proto = (ipsec_proto_t *)realloc(rc,
268 rc = new_proto;
308 for (new_proto = rc; new_proto < (rc + new_num);
312 if (new_proto == (rc + new_num)) {
570 return (rc);
580 _clean_trash(rc, rc_num);
594 int rc, trash_num;
616 rc = fstat(fileno(f), &statbuf);
617 if (rc != -1) {
625 new_protos = build_list(f, &rc);
641 num_protos = rc;
658 *alg_nums = rc;
727 struct ipsecalgent *rc;
730 rc = calloc(1, sizeof (struct ipsecalgent));
731 if (rc == NULL)
734 rc->a_proto_num = orig->a_proto_num;
735 rc->a_alg_num = orig->a_alg_num;
736 rc->a_key_increment = orig->a_key_increment;
737 rc->a_mech_name = strdup(orig->a_mech_name);
738 rc->a_alg_flags = orig->a_alg_flags;
739 rc->a_block_sizes = duplicate_intarr(orig->a_block_sizes);
740 rc->a_mech_params = duplicate_intarr(orig->a_mech_params);
741 rc->a_key_sizes = duplicate_intarr(orig->a_key_sizes);
742 rc->a_names = duplicate_strarr(orig->a_names);
744 if (rc->a_mech_name == NULL || rc->a_block_sizes == NULL ||
745 rc->a_key_sizes == NULL || rc->a_names == NULL ||
746 rc->a_mech_params == NULL) {
747 freeipsecalgent(rc);
751 return (rc);
790 int *rc, i;
803 rc = malloc((num_protos == 0) ? 1 : num_protos * sizeof (int));
804 if (rc != NULL) {
806 rc[i] = protos[i].proto_num;
809 return (rc);
815 int *rc = NULL, i;
831 rc = malloc((proto->proto_numalgs == 0) ? 1 :
833 if (rc != NULL) {
835 rc[i] = proto->proto_algs[i]->a_alg_num;
839 return (rc);
846 struct ipsecalgent *rc = NULL;
868 rc = _duplicate_alg(
870 my_errno = (rc == NULL) ? ENOMEM : 0;
884 return (rc);
891 struct ipsecalgent *rc = NULL;
902 rc = _duplicate_alg(proto->proto_algs[i]);
903 my_errno = (rc == NULL) ? ENOMEM : 0;
914 return (rc);
920 int rc = -1;
928 rc = proto->proto_num;
930 return (rc);
937 char *rc = NULL;
944 rc = strdup(proto->proto_name);
947 return (rc);