Lines Matching refs:buf
596 char *instroot, *buf;
600 if ((buf = (char *)malloc(strlen(instroot) +
604 strlen(instroot) + strlen(GROUP), "buf");
606 (void) sprintf(buf, "%s%s", instroot, GROUP);
607 if ((gr_ptr = fopen(buf, "r")) == NULL) {
608 free(buf);
617 free(buf);
635 char *instroot, *buf;
639 if ((buf = (char *)malloc(strlen(instroot) +
643 strlen(instroot) + strlen(PASSWD), "buf");
645 (void) sprintf(buf, "%s%s", instroot, PASSWD);
646 if ((pw_ptr = fopen(buf, "r")) == NULL) {
647 free(buf);
656 free(buf);
674 char *instroot, *buf;
678 if ((buf = (char *)malloc(strlen(instroot) +
682 strlen(instroot) + strlen(GROUP), "buf");
684 (void) sprintf(buf, "%s%s", instroot, GROUP);
685 if ((gr_ptr = fopen(buf, "r")) == NULL) {
686 free(buf);
695 free(buf);
713 char *instroot, *buf;
717 if ((buf = (char *)malloc(strlen(instroot) +
721 strlen(instroot) + strlen(PASSWD), "buf");
723 (void) sprintf(buf, "%s%s", instroot, PASSWD);
724 if ((pw_ptr = fopen(buf, "r")) == NULL) {
725 free(buf);
734 free(buf);