Print this page
4023 - Typo in file(1) manpage and various others

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3papi/papiJobSubmit.3papi
          +++ new/usr/src/man/man3papi/papiJobSubmit.3papi
   1    1  '\" te
   2    2  .\" Copyright (c) 2007, Sun Microsystems, Inc.  All Rights Reserved.
   3    3  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4    4  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5    5  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6      -.TH PAPIJOBSUBMIT 3PAPI "Jan 17, 2007"
        6 +.TH PAPIJOBSUBMIT 3PAPI "Sep 10, 2013"
   7    7  .SH NAME
   8    8  papiJobSubmit, papiJobSubmitByReference, papiJobValidate, papiJobStreamOpen,
   9    9  papiJobStreamWrite, papiJobStreamClose, papiJobQuery, papiJobModify,
  10   10  papiJobMove, papiJobCancel, papiJobHold, papiJobRelease, papiJobRestart,
  11   11  papiJobPromote, papiJobGetAttributeList, papiJobGetPrinterName, papiJobGetId,
  12   12  papiJobGetJobTicket, papiJobFree, papiJobListFree \- job object manipulation
  13   13  .SH SYNOPSIS
  14   14  .LP
  15   15  .nf
  16   16  cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lpapi\fR [ \fIlibrary\fR\&.\|.\|. ]
↓ open down ↓ 400 lines elided ↑ open up ↑
 417  417              break;
 418  418          case 'p':
 419  419              pname = optarg;
 420  420              break;
 421  421          }
 422  422  
 423  423      status = papiServiceCreate(&svc, svc_name, NULL, NULL, authCB,
 424  424                              PAPI_ENCRYPT_NEVER, NULL);
 425  425  
 426  426      if (status != PAPI_OK) {
 427      -        printf("papiServiceCreate(%s): %s\n", svc_name ? svc_name :
      427 +        printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name :
 428  428                       "NULL", papiStatusString(status));
 429  429          papiServiceDestroy(svc);
 430  430          exit(1);
 431  431      }
 432  432  
 433  433      status = papiPrinterListJobs(svc, pname, NULL, 0, 0, &jobs);
 434  434      if (status != PAPI_OK) {
 435      -        printf("papiPrinterListJobs(%s): %s\n", pname,
      435 +        printf("papiPrinterListJobs(%s): %s\en", pname,
 436  436                      papiStatusString(status));
 437  437          papiServiceDestroy(svc);
 438  438          exit(1);
 439  439      }
 440  440  
 441  441      if (jobs != NULL) {
 442  442          int i;
 443  443  
 444  444          for (i = 0; jobs[i] != NULL; i++) {
 445  445              papi_attribute_t **list = papiJobGetAttributeList(jobs[i]);
↓ open down ↓ 5 lines elided ↑ open up ↑
 451  451                  size_t size = 0;
 452  452  
 453  453                 (void) papiAttributeListGetString(list, NULL,
 454  454                                      "printer-name", &name);
 455  455                 (void) papiAttributeListGetInteger(list, NULL,
 456  456                                      "job-id", &id);
 457  457                  while (papiAttributeListToString(list, "\n\t", buffer,
 458  458                              size) != PAPI_OK)
 459  459                      buffer = realloc(buffer, size += BUFSIZ);
 460  460  
 461      -                printf("%s-%d:\n\t%s\n", name, id, buffer);
      461 +                printf("%s-%d:\en\t%s\en", name, id, buffer);
 462  462                  free(buffer);
 463  463              }
 464  464          }
 465  465          papiJobListFree(jobs);
 466  466      }
 467  467  
 468  468      papiServiceDestroy(svc);
 469  469  
 470  470      exit(0);
 471  471  }
↓ open down ↓ 69 lines elided ↑ open up ↑
 541  541              break;
 542  542          case 'j':
 543  543              id = atoi(optarg);
 544  544              break;
 545  545          }
 546  546  
 547  547      status = papiServiceCreate(&svc, svc_name, NULL, NULL, authCB,
 548  548                              PAPI_ENCRYPT_NEVER, NULL);
 549  549  
 550  550      if (status != PAPI_OK) {
 551      -        printf("papiServiceCreate(%s): %s\n", svc_name ? svc_name :
      551 +        printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name :
 552  552                       "NULL", papiStatusString(status));
 553  553          papiServiceDestroy(svc);
 554  554          exit(1);
 555  555      }
 556  556  
 557  557      status = papiJobQuery(svc, pname, id, NULL, &job);
 558  558      if ((status == PAPI_OK) && (job != NULL)) {
 559  559          papi_attribute_t **list = papiJobGetAttributeList(job);
 560  560  
 561  561          if (list != NULL) {
 562  562              char *name = "unknown";
 563  563              int32_t id = 0;
 564  564              char *buffer = NULL;
 565  565              size_t size = 0;
 566  566  
 567  567              (void) papiAttributeListGetString(list, NULL,
 568  568                                      "printer-name", &name);
 569  569              (void) papiAttributeListGetInteger(list, NULL,
 570  570                                      "job-id", &id);
 571      -            while (papiAttributeListToString(list, "\n\t", buffer, size)
      571 +            while (papiAttributeListToString(list, "\en\et", buffer, size)
 572  572                              != PAPI_OK)
 573  573                  buffer = realloc(buffer, size += BUFSIZ);
 574  574  
 575      -            printf("%s-%d:\n\t%s\n", name, id, buffer);
      575 +            printf("%s-%d:\en\et%s\n", name, id, buffer);
 576  576              free(buffer);
 577  577          }
 578  578      } else
 579      -        printf("papiJobQuery(%s-%d): %s\n", pname, id,
      579 +        printf("papiJobQuery(%s-%d): %s\en", pname, id,
 580  580                      papiStatusString(status));
 581  581  
 582  582      papiJobFree(job);
 583  583      papiServiceDestroy(svc);
 584  584  
 585  585      exit(0);
 586  586  }
 587  587  .fi
 588  588  .in -2
 589  589  
↓ open down ↓ 67 lines elided ↑ open up ↑
 657  657              break;
 658  658          case 'p':
 659  659              pname = optarg;
 660  660              break;
 661  661          }
 662  662  
 663  663      status = papiServiceCreate(&svc, svc_name, NULL, NULL, authCB,
 664  664                              PAPI_ENCRYPT_NEVER, NULL);
 665  665  
 666  666      if (status != PAPI_OK) {
 667      -        printf("papiServiceCreate(%s): %s\n", svc_name ? svc_name :
      667 +        printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name :
 668  668                      "NULL", papiStatusString(status));
 669  669          papiServiceDestroy(svc);
 670  670          exit(1);
 671  671      }
 672  672  
 673  673      papiAttributeListAddInteger(&attrs, PAPI_ATTR_EXCL, "copies", 1);
 674  674      papiAttributeListAddString(&attrs, PAPI_ATTR_EXCL,
 675  675                  "document-format", "application/octet-stream");
 676  676      papiAttributeListAddString(&attrs, PAPI_ATTR_EXCL,
 677  677                  "job-title", "Standard Input");
↓ open down ↓ 17 lines elided ↑ open up ↑
 695  695              size_t size = 0;
 696  696  
 697  697              (void) papiAttributeListGetString(list, NULL,
 698  698                                      "printer-name", &name);
 699  699              (void) papiAttributeListGetInteger(list, NULL,
 700  700                                      "job-id", &id);
 701  701              while (papiAttributeListToString(list, "\n\t", buffer, size)
 702  702                              != PAPI_OK)
 703  703                  buffer = realloc(buffer, size += BUFSIZ);
 704  704  
 705      -            printf("%s-%d:\n\t%s\n", name, id, buffer);
      705 +            printf("%s-%d:\en\t%s\en", name, id, buffer);
 706  706              free(buffer);
 707  707          }
 708  708      } else
 709      -        printf("papiJobStream*(%s-%d): %s\n", pname, id,
      709 +        printf("papiJobStream*(%s-%d): %s\en", pname, id,
 710  710                      papiStatusString(status));
 711  711  
 712  712      papiJobFree(job);
 713  713      papiServiceDestroy(svc);
 714  714  
 715  715      exit(0);
 716  716  }
 717  717  .fi
 718  718  .in -2
 719  719  
↓ open down ↓ 23 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX