Lines Matching refs:fp
227 i_dladm_flow_fput_grp(FILE *fp, dld_flowinfo_t *attr)
230 FPRINTF_ERR(fprintf(fp, "%s\tlinkid=%d\t",
235 FPRINTF_ERR(fprintf(fp, "%s=%" PRIu64 "\t", BW_LIMIT,
239 FPRINTF_ERR(fprintf(fp, "%s=%d\t", PRIORITY,
244 FPRINTF_ERR(fprintf(fp, "%s=%x:%x\t", DSFIELD,
272 FPRINTF_ERR(fprintf(fp, "%s=%s/%d\t", LOCAL_IP_ADDR,
299 FPRINTF_ERR(fprintf(fp, "%s=%s/%d\t", REMOTE_IP_ADDR,
303 FPRINTF_ERR(fprintf(fp, "%s=%d\t", TRANSPORT,
307 FPRINTF_ERR(fprintf(fp, "%s=%d\t", LOCAL_PORT,
311 FPRINTF_ERR(fprintf(fp, "%s=%d\t", REMOTE_PORT,
314 FPRINTF_ERR(fprintf(fp, "\n"));
325 FILE *fp, *nfp;
349 if ((fp = fopen(db_file, "r")) == NULL) {
356 (void) fclose(fp);
363 (void) fclose(fp);
369 while (fgets(line, MAXLINELEN, fp) != NULL) {
411 (void) fclose(fp);
423 (void) fclose(fp);
486 FILE *fp;
504 if ((fp = fopen(db_file, "r+")) == NULL &&
505 (fp = fopen(db_file, "w")) == NULL) {
511 while (fgets(line, MAXLINELEN, fp) != NULL) {
535 if (i_dladm_flow_fput_grp(fp, attr) != 0)
539 (void) fclose(fp);
810 FILE *fp;
812 if ((fp = fopen(DLADM_FLOW_DB, "r")) == NULL)
815 while (fgets(line, MAXLINELEN, fp) != NULL) {
841 (void) fclose(fp);