Lines Matching refs:policy_fp

3145 	FILE *policy_fp;  in nuke_adds()  local
3147 policy_fp = fopen(POLICY_CONF_FILE, "a"); in nuke_adds()
3148 if (policy_fp == NULL) { in nuke_adds()
3151 (void) fprintf(policy_fp, "\n\n"); in nuke_adds()
3152 (void) fflush(policy_fp); in nuke_adds()
5224 FILE *fp, *policy_fp; in ipsec_conf_add() local
5273 policy_fp = fopen(POLICY_CONF_FILE, "a"); in ipsec_conf_add()
5274 if (policy_fp == NULL) { in ipsec_conf_add()
5422 if (fprintf(policy_fp, "%s %lld \n", INDEX_TAG, in ipsec_conf_add()
5431 if (print_cmd_buf(policy_fp, NOERROR) == -1) { in ipsec_conf_add()
5445 if (fprintf(policy_fp, "\n") == -1) { in ipsec_conf_add()
5455 if (fprintf(policy_fp, "\n\n") == -1) { in ipsec_conf_add()
5470 (void) fflush(policy_fp); in ipsec_conf_add()
5539 FILE *remove_fp, *policy_fp; in ipsec_conf_sub() local
5575 policy_fp = fopen(POLICY_CONF_FILE, "r+"); in ipsec_conf_sub()
5576 if (policy_fp == NULL) { in ipsec_conf_sub()
5622 fgets(pbuf, MAXLEN, policy_fp) != NULL; in ipsec_conf_sub()
5640 (void) fclose(policy_fp); in ipsec_conf_sub()
5646 if (fgetpos(policy_fp, &ipos) != 0) { in ipsec_conf_sub()
5648 (void) fclose(policy_fp); in ipsec_conf_sub()
5661 (void) fclose(policy_fp); in ipsec_conf_sub()
5667 if (fsetpos(policy_fp, &ipos) != 0) { in ipsec_conf_sub()
5669 (void) fclose(policy_fp); in ipsec_conf_sub()
5675 if (parse_one(policy_fp, act_props) == -1) { in ipsec_conf_sub()
5679 (void) fclose(policy_fp); in ipsec_conf_sub()
5697 (void) fclose(policy_fp); in ipsec_conf_sub()
5725 policy_fp = fopen(POLICY_CONF_FILE, "r"); in ipsec_conf_sub()
5726 if (policy_fp == NULL) { in ipsec_conf_sub()