Lines Matching defs:rc

556 	int i, j, rc;
581 if ((rc = cfg_get_section(cfg, &list, section)) <= 0) {
585 return (rc);
587 for (i = 0; i < rc; i++) {
593 for (j = 0; j < rc; j++)
606 for (i = 0; i < rc; i++)
613 if ((rc = cfg_get_section(cfg, &list, section)) <= 0) {
617 return (rc);
629 for (i = 0; i < rc; i++) {
642 for (j = 0; j < rc; j++)
652 for (j = 0; j < rc; j++)
665 for (i = 0; i < rc; i++)
761 int rc;
811 if ((rc = ((*cfp->cf_pp->remcf)
813 return (rc);
857 int rc;
905 rc = cfg_fld_mov(newbuf, buf, 1, fldnum - 1);
906 if (rc < 0)
907 return (rc);
914 rc = cfg_fld_mov(newbuf, buf, fldnum + 1, nflds);
915 if (rc < 0)
916 return (rc);
1154 int rc;
1169 rc = cfg_get_cstring(cfg, basekey, buf, CFG_MAX_BUF);
1172 if (rc < 0)
1173 return (rc);
1398 int enclen, rc;
1431 rc = cfg_put_cstring(cfg, basekey, p + 1, strlen(p + 1));
1433 rc = cfg_put_cstring(cfg, basekey, "-", 1);
1436 return (rc);
1511 int rc;
1534 rc = (*cfp->cf_pp->read)(cfp, (char *)cfp->cf_head, 4);
1535 if (rc < 4) {
1549 rc = (*cfp->cf_pp->read)(cfp, (char *)cfp->cf_head, sizeof (*hd));
1550 if (rc < sizeof (*hd)) {
1572 rc = (*cfp->cf_pp->read)
1574 if (rc < sizeof (*hd)) {
1586 rc = (*cfp->cf_pp->read)
1588 if (rc < 0) {
1597 (cfp, CFG_DEFAULT_SSIZE - rc, SEEK_CUR) < 0) {
1608 rc = (*cfp->cf_pp->read)
1610 if (rc < 0) {
1620 (cfp, CFG_DEFAULT_SSIZE - rc, SEEK_CUR) < 0) {
1630 rc = (*cfp->cf_pp->read)
1632 if (rc < 0) {
1639 rc = (*cfp->cf_pp->read)
1641 if (rc < 0) {
1683 int rc;
1739 if ((rc = cfg_hdrcmp(cfp)) == 0) {
1901 int rc;
1926 rc = FALSE;
1934 rc = TRUE;
1936 rc = FALSE;
1942 if (!rc)
1945 return (rc);
1954 int rc;
1973 rc = FALSE;
1981 rc = TRUE;
1983 rc = FALSE;
1989 if (!rc)
1992 return (rc);
2004 int rc;
2047 rc = FALSE;
2050 rc = FALSE;
2052 rc = TRUE;
2058 return (rc);
2078 int rc;
2133 rc = (*cfp->cf_pp->write)
2136 if (rc < 0) {
2138 "parse commit: rc %d h_parsesize %d\n",
2139 rc, cfp->cf_head->h_parsesize);
2143 rc = (*cfp->cf_pp->write)
2147 if (rc < 0) {
2149 "csection commit 1: rc %d h_csize %d\n",
2150 rc, cfp->cf_head->h_csize);
2154 (cfp, (2 * CFG_DEFAULT_SSIZE) - rc, SEEK_CUR) < 0)
2164 rc = (*cfp->cf_pp->write)(cfp,
2167 if (rc < 0) {
2169 "cfg: write list sizes1 failed rc\n");
2177 rc = (*cfp->cf_pp->write)(cfp,
2180 if (rc < 0) {
2182 "csection commit 2: rc %d h_csize %d\n",
2183 rc, cfp->cf_head->h_csize);
2187 (cfp, (CFG_DEFAULT_SSIZE + CFG_DEFAULT_PSIZE) - rc,
2198 rc = (*cfp->cf_pp->write)(cfp, cfp->cf_head->h_sizes2,
2201 if (rc < 0) {
2220 rc = (*cfp->cf_pp->write)
2222 if (rc < 0) {
2262 int rc;
2322 rc = write(fd, location, strlen(location));
2323 if (rc < 0) {
2335 rc = read(fd, config_file, sizeof (config_file));
2336 if (rc < 0) {
2916 int rc;
2968 rc = (*cfp->cf_pp->read)(cfp, &magic, sizeof (magic));
2969 if (rc < sizeof (magic)) {
3038 int rc = -1;
3055 rc = write(fd, buf, sizeof (buf));
3056 if (rc < 0)
3250 int rc;
3253 rc = (cfp->cf_pp->read)(cfp, &magic, sizeof (magic));
3254 if (rc < sizeof (magic)) {
3548 int rc;
3562 rc = (*cfp->cf_pp->read)(cfp, (char *)dskhdr, sizeof (*dskhdr));
3563 if (rc < 0) {
3574 rc = 0;
3576 rc = 1;
3580 return (rc);