Lines Matching defs:line
289 char line[PATH_MAX+1];
301 /* read the file line by line searching for the specified package */
303 while (fgets(line, sizeof (line), a_fp) != (char *)NULL) {
307 len = strlen(line);
308 while ((len > 0) && (line[len-1] == '\n')) {
309 line[--len] = '\0';
313 if ((line[0] == '#') || (line[0] == '\0')) {
318 if (strcmp(a_pkgInst, line) == 0) {
353 char line[PATH_MAX+1];
446 while (fgets(line, sizeof (line), srcFP) != (char *)NULL) {
450 len = strlen(line);
451 while ((len > 0) && (line[len-1] == '\n')) {
452 line[--len] = '\0';
456 if ((line[0] == '#') || (line[0] == '\0')) {
460 /* add pkg if yet to add and pkg <= line */
461 if ((pkgremoved == B_FALSE) && (strcmp(a_pkgInst, line) == 0)) {
464 (void) fprintf(destFP, "%s\n", line);
542 char line[PATH_MAX+1];
639 while (fgets(line, sizeof (line), srcFP) != (char *)NULL) {
643 len = strlen(line);
644 while ((len > 0) && (line[len-1] == '\n')) {
645 line[--len] = '\0';
649 if ((line[0] == '#') || (line[0] == '\0')) {
653 /* add pkg if yet to add and pkg <= line */
654 if ((pkgadded == B_FALSE) && (strcmp(a_pkgInst, line) <= 0)) {
655 if (strcmp(a_pkgInst, line) != 0) {
661 (void) fprintf(destFP, "%s\n", line);