Home | History | Annotate | Download | only in rpc.pcnfsd

Lines Matching defs:buff

396 	char    buff[256];
406 while (fgets(buff, 255, p) != NULL) {
407 cp = strtok(buff, delims);
531 char buff[256];
535 snprintf(buff, sizeof(buff), "%s/lpc status", LPCDIR);
536 p = popen(buff, "r");
541 while (fgets(buff, 255, p) != NULL) {
542 if (isspace((unsigned char)buff[0]))
545 if ((cp = strtok(buff, delims)) == NULL)
643 char buff[256];
660 snprintf(buff, sizeof(buff), "/usr/bin/lpstat %s", pn);
661 p = su_popen(user, buff, MAXTIME_FOR_QUEUE);
666 while (fgets(buff, 255, p) != NULL) {
667 job = strtok(buff, delims);
719 char buff[256];
739 snprintf(buff, sizeof(buff), "%s/lpq -P%s", LPRDIR, pn);
741 p = su_popen(user, buff, MAXTIME_FOR_QUEUE);
746 while (fgets(buff, 255, p) != NULL) {
747 i = strlen(buff) - 1;
748 buff[i] = '\0'; /* zap trailing NL */
751 if (!strncasecmp(buff, "rank", 4))
754 totsize = &buff[SIZECOL - 1];
755 files = &buff[FILECOL - 1];
761 buff[FILECOL - 2] = '\0';
763 cp = strtok(buff, delims);
885 char buff[256];
912 while (fgets(buff, 255, p) != NULL) {
913 if (!strncmp(buff, pn, n)) {
914 if (!strstr(buff, "not accepting"))
918 if (!strncmp(buff, "printer ", 8)) {
919 if (!strstr(buff, "disabled"))
921 if (strstr(buff, "printing"))
924 if (strstr(buff, "idle"))
928 if (!strncmp(buff, "UX:", 3)) {
944 char buff[256];
974 while (fgets(buff, 255, p) != NULL) {
975 if (strncmp(buff, pname, n))
990 while (fgets(buff, 255, p) != NULL && isspace((unsigned char)buff[0])) {
991 cp = buff;