Print this page
4023 - Typo in file(1) manpage and various others
*** 1,11 ****
'\" te
.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
.\" 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.
.\" 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.
.\" 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]
! .TH PAPIJOBSUBMIT 3PAPI "Jan 17, 2007"
.SH NAME
papiJobSubmit, papiJobSubmitByReference, papiJobValidate, papiJobStreamOpen,
papiJobStreamWrite, papiJobStreamClose, papiJobQuery, papiJobModify,
papiJobMove, papiJobCancel, papiJobHold, papiJobRelease, papiJobRestart,
papiJobPromote, papiJobGetAttributeList, papiJobGetPrinterName, papiJobGetId,
--- 1,11 ----
'\" te
.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
.\" 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.
.\" 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.
.\" 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]
! .TH PAPIJOBSUBMIT 3PAPI "Sep 10, 2013"
.SH NAME
papiJobSubmit, papiJobSubmitByReference, papiJobValidate, papiJobStreamOpen,
papiJobStreamWrite, papiJobStreamClose, papiJobQuery, papiJobModify,
papiJobMove, papiJobCancel, papiJobHold, papiJobRelease, papiJobRestart,
papiJobPromote, papiJobGetAttributeList, papiJobGetPrinterName, papiJobGetId,
*** 422,440 ****
status = papiServiceCreate(&svc, svc_name, NULL, NULL, authCB,
PAPI_ENCRYPT_NEVER, NULL);
if (status != PAPI_OK) {
! printf("papiServiceCreate(%s): %s\n", svc_name ? svc_name :
"NULL", papiStatusString(status));
papiServiceDestroy(svc);
exit(1);
}
status = papiPrinterListJobs(svc, pname, NULL, 0, 0, &jobs);
if (status != PAPI_OK) {
! printf("papiPrinterListJobs(%s): %s\n", pname,
papiStatusString(status));
papiServiceDestroy(svc);
exit(1);
}
--- 422,440 ----
status = papiServiceCreate(&svc, svc_name, NULL, NULL, authCB,
PAPI_ENCRYPT_NEVER, NULL);
if (status != PAPI_OK) {
! printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name :
"NULL", papiStatusString(status));
papiServiceDestroy(svc);
exit(1);
}
status = papiPrinterListJobs(svc, pname, NULL, 0, 0, &jobs);
if (status != PAPI_OK) {
! printf("papiPrinterListJobs(%s): %s\en", pname,
papiStatusString(status));
papiServiceDestroy(svc);
exit(1);
}
*** 456,466 ****
"job-id", &id);
while (papiAttributeListToString(list, "\n\t", buffer,
size) != PAPI_OK)
buffer = realloc(buffer, size += BUFSIZ);
! printf("%s-%d:\n\t%s\n", name, id, buffer);
free(buffer);
}
}
papiJobListFree(jobs);
}
--- 456,466 ----
"job-id", &id);
while (papiAttributeListToString(list, "\n\t", buffer,
size) != PAPI_OK)
buffer = realloc(buffer, size += BUFSIZ);
! printf("%s-%d:\en\t%s\en", name, id, buffer);
free(buffer);
}
}
papiJobListFree(jobs);
}
*** 546,556 ****
status = papiServiceCreate(&svc, svc_name, NULL, NULL, authCB,
PAPI_ENCRYPT_NEVER, NULL);
if (status != PAPI_OK) {
! printf("papiServiceCreate(%s): %s\n", svc_name ? svc_name :
"NULL", papiStatusString(status));
papiServiceDestroy(svc);
exit(1);
}
--- 546,556 ----
status = papiServiceCreate(&svc, svc_name, NULL, NULL, authCB,
PAPI_ENCRYPT_NEVER, NULL);
if (status != PAPI_OK) {
! printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name :
"NULL", papiStatusString(status));
papiServiceDestroy(svc);
exit(1);
}
*** 566,584 ****
(void) papiAttributeListGetString(list, NULL,
"printer-name", &name);
(void) papiAttributeListGetInteger(list, NULL,
"job-id", &id);
! while (papiAttributeListToString(list, "\n\t", buffer, size)
!= PAPI_OK)
buffer = realloc(buffer, size += BUFSIZ);
! printf("%s-%d:\n\t%s\n", name, id, buffer);
free(buffer);
}
} else
! printf("papiJobQuery(%s-%d): %s\n", pname, id,
papiStatusString(status));
papiJobFree(job);
papiServiceDestroy(svc);
--- 566,584 ----
(void) papiAttributeListGetString(list, NULL,
"printer-name", &name);
(void) papiAttributeListGetInteger(list, NULL,
"job-id", &id);
! while (papiAttributeListToString(list, "\en\et", buffer, size)
!= PAPI_OK)
buffer = realloc(buffer, size += BUFSIZ);
! printf("%s-%d:\en\et%s\n", name, id, buffer);
free(buffer);
}
} else
! printf("papiJobQuery(%s-%d): %s\en", pname, id,
papiStatusString(status));
papiJobFree(job);
papiServiceDestroy(svc);
*** 662,672 ****
status = papiServiceCreate(&svc, svc_name, NULL, NULL, authCB,
PAPI_ENCRYPT_NEVER, NULL);
if (status != PAPI_OK) {
! printf("papiServiceCreate(%s): %s\n", svc_name ? svc_name :
"NULL", papiStatusString(status));
papiServiceDestroy(svc);
exit(1);
}
--- 662,672 ----
status = papiServiceCreate(&svc, svc_name, NULL, NULL, authCB,
PAPI_ENCRYPT_NEVER, NULL);
if (status != PAPI_OK) {
! printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name :
"NULL", papiStatusString(status));
papiServiceDestroy(svc);
exit(1);
}
*** 700,714 ****
"job-id", &id);
while (papiAttributeListToString(list, "\n\t", buffer, size)
!= PAPI_OK)
buffer = realloc(buffer, size += BUFSIZ);
! printf("%s-%d:\n\t%s\n", name, id, buffer);
free(buffer);
}
} else
! printf("papiJobStream*(%s-%d): %s\n", pname, id,
papiStatusString(status));
papiJobFree(job);
papiServiceDestroy(svc);
--- 700,714 ----
"job-id", &id);
while (papiAttributeListToString(list, "\n\t", buffer, size)
!= PAPI_OK)
buffer = realloc(buffer, size += BUFSIZ);
! printf("%s-%d:\en\t%s\en", name, id, buffer);
free(buffer);
}
} else
! printf("papiJobStream*(%s-%d): %s\en", pname, id,
papiStatusString(status));
papiJobFree(job);
papiServiceDestroy(svc);