Lines Matching refs:g_ofile
96 static const char *g_ofile = NULL; variable
269 g_ofile ? g_ofile : "<stdout>"); in oprintf()
461 if ((g_ofp = fopen(g_ofile = g_etcfile, "a")) == NULL) in etcsystem_add()
462 fatal("failed to open output file '%s'", g_ofile); in etcsystem_add()
483 fatal("failed to close output file '%s'", g_ofile); in etcsystem_add()
485 error("added forceload directives to %s\n", g_ofile); in etcsystem_add()
642 if (g_cmdc == 1 && g_ofile != NULL) { in link_prog()
643 (void) strlcpy(dcp->dc_ofile, g_ofile, sizeof (dcp->dc_ofile)); in link_prog()
1469 g_ofile = optarg; in main()
1527 if (g_ofp == NULL && g_ofile != NULL) { in main()
1613 if (g_ofile != NULL && (g_ofp = fopen(g_ofile, "a")) == NULL) in main()
1614 fatal("failed to open output file '%s'", g_ofile); in main()
1626 if (g_ofile == NULL) in main()
1627 g_ofile = "/kernel/drv/dtrace.conf"; in main()
1629 dof_prune(g_ofile); /* strip out any old DOF directives */ in main()
1637 if ((g_ofp = fopen(g_ofile, "a")) == NULL) in main()
1638 fatal("failed to open output file '%s'", g_ofile); in main()
1653 fatal("failed to close output file '%s'", g_ofile); in main()
1660 error("saved anonymous enabling in %s\n", g_ofile); in main()
1678 if (g_cmdc > 1 && g_ofile != NULL) { in main()
1685 g_ofile, g_cmdc, objv) != 0) in main()
1693 if (g_ofile != NULL && (g_ofp = fopen(g_ofile, "a")) == NULL) in main()
1694 fatal("failed to open output file '%s'", g_ofile); in main()
1716 if (g_ofile == NULL) { in main()
1737 g_ofile = p = g_cmdv[0].dc_ofile; in main()
1742 if ((g_ofp = fopen(g_ofile, "w")) == NULL) in main()
1743 fatal("failed to open header file '%s'", g_ofile); in main()
1747 if (dtrace_program_header(g_dtp, g_ofp, g_ofile) != 0 || in main()
1749 dfatal("failed to create header file %s", g_ofile); in main()