dt_program.c revision 2
2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 2N/A * By default, programs start with DOF version 1 so that output files 2N/A * containing DOF are backward compatible. If a program requires new 2N/A * DOF features, the version is increased as needed. 2N/A * If there aren't any actions, account for the fact that 2N/A * recording the epid will generate a record. 2N/A return (-
1);
/* errno is set for us */ 2N/A * We need to remove any actions that we have on this ECB, and 2N/A * remove our hold on the ECB itself. 2N/A * We have now removed our action list from its ECB; we can 2N/A * safely destroy the list. 2N/A "#ifndef\t__sparc\n" 2N/A "extern int __dtraceenabled_%s___%s(void);\n" 2N/A "extern int __dtraceenabled_%s___%s(long);\n" 2N/A "#ifndef\t__sparc\n" 2N/A "#define\t%s_%s_ENABLED() \\\n" 2N/A "\t__dtraceenabled_%s___%s()\n" 2N/A "#define\t%s_%s_ENABLED() \\\n" 2N/A "\t__dtraceenabled_%s___%s(0)\n" 2N/A * Count the instances of the '-' character since we'll need to double 2N/A return (-
1);
/* dt_errno is set for us */ 2N/A return (-
1);
/* dt_errno is set for us */ 2N/A return (-
1);
/* dt_errno is set for us */ 2N/A if (
fprintf(
out,
"#ifdef\t__cplusplus\nextern \"C\" {\n#endif\n\n") < 0)
2N/A return (-
1);
/* dt_errno is set for us */