Lines Matching refs:cf

456 	for (cfp = &cfg->cf[0]; cfp <= &cfg->cf[1]; cfp++) {
484 if (cfp >= &cfg->cf[2]) {
768 for (cfp = &cfg->cf[0]; cfp <= &cfg->cf[1]; cfp++) {
799 if (cfp >= &cfg->cf[2]) {
861 for (cfp = &cfg->cf[0]; cfp <= &cfg->cf[1]; cfp++) {
892 if (cfp >= &cfg->cf[2]) {
974 cfg->cf[1].cf_fd)
975 cfp = &cfg->cf[1];
977 cfp = &cfg->cf[0];
1695 if (mode == CFG_WRLOCK && (cfg->cf[0].cf_flag & CFG_RDONLY)) {
1718 cfg->cf[1].cf_lock = cfg->cf[0].cf_lock = cfg->cf[0].cf_fd;
1720 if (!((cfg->cf[0].cf_flag & CFG_RDONLY) &&
1729 if (fcntl(cfg->cf[0].cf_lock, F_SETLKW, &lk) < 0)
1735 for (cfp = &cfg->cf[0]; cfp <= &cfg->cf[1]; cfp++) {
1891 cfp_unlock(&cfg->cf[0]);
1892 cfp_unlock(&cfg->cf[1]);
1911 for (cfp = &cfg->cf[0]; cfp <= &cfg->cf[1]; cfp++) {
1964 for (cfp = &cfg->cf[0]; cfp <= &cfg->cf[1]; cfp++) {
2038 cfg->cf[1].cf_lock = cfg->cf[0].cf_lock = cfg->cf[0].cf_fd;
2046 if (fcntl(cfg->cf[0].cf_lock, F_GETLK, &lk) < 0)
2093 for (cfp = &cfg->cf[0]; cfp <= &cfg->cf[1]; cfp++) {
2668 cfgheader_t *cf;
2671 cf = cfp->cf_head;
2680 if (cf->h_cparse == cf->h_ccopy1)
2689 cf->h_ccopy1 = (char *)
2690 realloc(cf->h_ccopy1, cf->h_csize * sizeof (char));
2691 cf->h_ccopy2 = (char *)
2692 realloc(cf->h_ccopy2, cf->h_csize * sizeof (char));
2695 cf->h_cparse = cf->h_ccopy1;
2697 cf->h_cparse = cf->h_ccopy2;
2703 cf->h_csize = cf->h_sizes[0] = 0;
2713 i, cf->h_cparse + offset,
2716 memcpy((cf->h_cparse + offset),
2733 cf->h_sizes[size_offset++] = cfl[i].l_nentry;
2734 memcpy((cf->h_sizes + size_offset), cfl[i].l_esiz,
2737 cf->h_sizes[size_offset] = 0;
2739 cf->h_csize += cfl[i].l_size;
2808 for (cfp = &cfg->cf[0]; cfp <= &cfg->cf[1]; cfp++) {
2825 "freeing copy1, copy2, h_sizes and cf\n");
2930 cfp = &cfg->cf[0];
2947 cfp = &cfg->cf[1];
2959 for (cfp = &cfg->cf[0]; cfp->cf_name && (cfp <= &cfg->cf[1]); cfp++) {
3015 if (cfg_severity && (cfp <= &cfg->cf[1])) {
3016 cfp = &cfg->cf[0];
3019 cfp = &cfg->cf[1];
3113 for (cfp = &cfg->cf[0]; cfp->cf_fd && (cfp <= &cfg->cf[1]); cfp++)
3150 for (cfp = &cfg->cf[0]; cfp <= &cfg->cf[1]; cfp++) {
3360 for (cfp = &cfg->cf[0]; cfp <= &cfg->cf[1]; cfp++) {