📄 main.c.htm
字号:
<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <meta name="generator" content="OpenGrok v0.6beta (5cad370c5aab)"/> <link rel="icon" href="/source/default/img/icon.png" type="image/png"/> <link rel="stylesheet" type="text/css" href="/source/default/style.css"/> <link rel="stylesheet" type="text/css" href="/source/default/print.css" media="print" /> <link rel="alternate stylesheet" type="text/css" media="all" title="Paper White" href="/source/default/print.css"/> <title>Cross Reference: /onnv/onnv-gate/usr/src/cmd/cdrw/main.c</title><script type="text/javascript"><!--function toggle_annotations() { var spans = document.getElementsByTagName("span"); for (var i = 0; i < spans.length; i++) { var span = spans[i]; if (span.className == 'blame') { span.className = 'blame-hidden'; } else if (span.className == 'blame-hidden') { span.className = 'blame'; } }}// --></script><style type="text/css"> div#Iconbar a { font-size: 11px; color: #444; text-decoration: none; background-position: 50% 0%; background-repeat: no-repeat; display: block; float: left; margin: 0 0.6em; padding-top: 34px;}div#Iconbar a#DiscussionsIcon { background-image: url(http://www.opensolaris.org/images/discussions.gif);}div#Iconbar a#CommunitiesIcon { background-image: url(http://www.opensolaris.org/images/communities.gif);}div#Iconbar a#ProjectsIcon { background-image: url(http://www.opensolaris.org/images/projects.gif);}div#Iconbar a#DownloadIcon { background-image: url(http://www.opensolaris.org/images/download.gif);}div#Iconbar a#SourceBrowserIcon { background-image: url(http://www.opensolaris.org/images/srcbrowse.gif);}</style></head><body><div id="page"><form action="/source/search"> <div id="header"><div id="MastheadLogo"><a id="MastheadLogo" href="http://www.opensolaris.org"></a></div> <div id="pagetitle"><b id="filename">Cross Reference: main.c</b><br/></div> </div><div id="Masthead"><tt><a href="/source/xref/">xref</a>: /<a href="/source/xref/onnv/">onnv</a>/<a href="/source/xref/onnv/onnv-gate/">onnv-gate</a>/<a href="/source/xref/onnv/onnv-gate/usr/">usr</a>/<a href="/source/xref/onnv/onnv-gate/usr/src/">src</a>/<a href="/source/xref/onnv/onnv-gate/usr/src/cmd/">cmd</a>/<a href="/source/xref/onnv/onnv-gate/usr/src/cmd/cdrw/">cdrw</a>/<a href="/source/xref/onnv/onnv-gate/usr/src/cmd/cdrw/main.c">main.c</a></tt></div> <div id="bar"><a href="/source" id="home">Home</a> | <a id="history" href="/source/history/onnv/onnv-gate/usr/src/cmd/cdrw/main.c">History</a> | <a href="/source/xref/onnv/onnv-gate/usr/src/cmd/cdrw/main.c?a=true">Annotate</a> | <a id="download" href="/source/raw/onnv/onnv-gate/usr/src/cmd/cdrw/main.c">Download</a> | <input id="search" name="q" class="q"/><input type="submit" value="Search" class="submit"/><input type="checkbox" name="path" value="/onnv/onnv-gate/usr/src/cmd/cdrw"/> only in <b>cdrw</b></div></form><div id="src"><pre><a class="l" name="1"> 1 </a><span class="c">/*<a class="l" name="2"> 2 </a> * CDDL HEADER START<a class="l" name="3"> 3 </a> *<a class="l" name="4"> 4 </a> * The contents of this file are subject to the terms of the<a class="l" name="5"> 5 </a> * Common Development and Distribution License (the "License").<a class="l" name="6"> 6 </a> * You may not use this file except in compliance with the License.<a class="l" name="7"> 7 </a> *<a class="l" name="8"> 8 </a> * You can obtain a copy of the license at <a href="/source/s?path=usr/">usr</a>/<a href="/source/s?path=usr/src/">src</a>/<a href="/source/s?path=usr/src/OPENSOLARIS.LICENSE">OPENSOLARIS.LICENSE</a><a class="l" name="9"> 9 </a> * or <a href="http://www.opensolaris.org/os/licensing">http://www.opensolaris.org/os/licensing</a>.<a class="hl" name="10"> 10 </a> * See the License for the specific language governing permissions<a class="l" name="11"> 11 </a> * and limitations under the License.<a class="l" name="12"> 12 </a> *<a class="l" name="13"> 13 </a> * When distributing Covered Code, include this CDDL HEADER in each<a class="l" name="14"> 14 </a> * file and include the License file at <a href="/source/s?path=usr/">usr</a>/<a href="/source/s?path=usr/src/">src</a>/<a href="/source/s?path=usr/src/OPENSOLARIS.LICENSE">OPENSOLARIS.LICENSE</a>.<a class="l" name="15"> 15 </a> * If applicable, add the following below this CDDL HEADER, with the<a class="l" name="16"> 16 </a> * fields enclosed by brackets "[]" replaced with your own identifying<a class="l" name="17"> 17 </a> * information: Portions Copyright [yyyy] [name of copyright owner]<a class="l" name="18"> 18 </a> *<a class="l" name="19"> 19 </a> * CDDL HEADER END<a class="hl" name="20"> 20 </a> */</span><a class="l" name="21"> 21 </a><span class="c">/*<a class="l" name="22"> 22 </a> * Copyright 2008 Sun Microsystems, Inc. All rights reserved.<a class="l" name="23"> 23 </a> * Use is subject to license terms.<a class="l" name="24"> 24 </a> */</span><a class="l" name="25"> 25 </a><a class="l" name="26"> 26 </a>#<b>pragma</b> <b>ident</b> <span class="s">"%Z%%M% %I% %E% SMI"</span><a class="l" name="27"> 27 </a><a class="l" name="28"> 28 </a>#<b>include</b> <<a href="/source/s?path=stdio.h">stdio.h</a>><a class="l" name="29"> 29 </a>#<b>include</b> <<a href="/source/s?path=stdlib.h">stdlib.h</a>><a class="hl" name="30"> 30 </a>#<b>include</b> <<a href="/source/s?path=sys/types.h">sys/types.h</a>><a class="l" name="31"> 31 </a>#<b>include</b> <<a href="/source/s?path=limits.h">limits.h</a>><a class="l" name="32"> 32 </a>#<b>include</b> <<a href="/source/s?path=unistd.h">unistd.h</a>><a class="l" name="33"> 33 </a>#<b>include</b> <<a href="/source/s?path=libintl.h">libintl.h</a>><a class="l" name="34"> 34 </a>#<b>include</b> <<a href="/source/s?path=locale.h">locale.h</a>><a class="l" name="35"> 35 </a>#<b>include</b> <<a href="/source/s?path=dbus/dbus.h">dbus/dbus.h</a>><a class="l" name="36"> 36 </a>#<b>include</b> <<a href="/source/s?path=hal/libhal.h">hal/libhal.h</a>><a class="l" name="37"> 37 </a><a class="l" name="38"> 38 </a>#<b>include</b> <span class="s">"<a href="/source/s?path=msgs.h">msgs.h</a>"</span><a class="l" name="39"> 39 </a>#<b>include</b> <span class="s">"<a href="/source/s?path=device.h">device.h</a>"</span><a class="hl" name="40"> 40 </a>#<b>include</b> <span class="s">"<a href="/source/s?path=util.h">util.h</a>"</span><a class="l" name="41"> 41 </a>#<b>include</b> <span class="s">"<a href="/source/s?path=main.h">main.h</a>"</span><a class="l" name="42"> 42 </a>#<b>include</b> <span class="s">"<a href="/source/s?path=options.h">options.h</a>"</span><a class="l" name="43"> 43 </a>#<b>include</b> <span class="s">"<a href="/source/s?path=mmc.h">mmc.h</a>"</span><a class="l" name="44"> 44 </a>#<b>include</b> <span class="s">"<a href="/source/s?path=misc_scsi.h">misc_scsi.h</a>"</span><a class="l" name="45"> 45 </a><a class="l" name="46"> 46 </a><span class="c">/*<a class="l" name="47"> 47 </a> * global flags<a class="l" name="48"> 48 </a> */</span><a class="l" name="49"> 49 </a><b>int</b> <a href="/source/s?defs=debug">debug</a> = <span class="n">0</span>;<a class="hl" name="50"> 50 </a><b>int</b> <a href="/source/s?defs=keep_disc_open">keep_disc_open</a> = <span class="n">0</span>;<a class="l" name="51"> 51 </a><b>int</b> <a href="/source/s?defs=requested_speed">requested_speed</a> = <span class="n">0</span>;<a class="l" name="52"> 52 </a><b>int</b> <a href="/source/s?defs=simulation">simulation</a> = <span class="n">0</span>;<a class="l" name="53"> 53 </a><b>int</b> <a href="/source/s?defs=verbose">verbose</a> = <span class="n">0</span>;<a class="l" name="54"> 54 </a><b>char</b> *<a href="/source/s?defs=image_file">image_file</a> = <a href="/source/s?defs=NULL">NULL</a>;<a class="l" name="55"> 55 </a><b>char</b> *<a href="/source/s?defs=blanking_type">blanking_type</a> = <a href="/source/s?defs=NULL">NULL</a>;<a class="l" name="56"> 56 </a><b>int</b> <a href="/source/s?defs=audio_type">audio_type</a> = <a href="/source/s?defs=AUDIO_TYPE_NONE">AUDIO_TYPE_NONE</a>;<a class="l" name="57"> 57 </a><b>int</b> <a href="/source/s?defs=extract_track_no">extract_track_no</a> = <span class="n">0</span>;<a class="l" name="58"> 58 </a><b>char</b> *<a href="/source/s?defs=extract_file">extract_file</a> = <a href="/source/s?defs=NULL">NULL</a>;<a class="l" name="59"> 59 </a><b>char</b> *<a href="/source/s?defs=alt_tmp_dir">alt_tmp_dir</a> = <a href="/source/s?defs=NULL">NULL</a>;<a class="hl" name="60"> 60 </a><b>char</b> *<a href="/source/s?defs=copy_src">copy_src</a> = <a href="/source/s?defs=NULL">NULL</a>;<a class="l" name="61"> 61 </a><b>int</b> <a href="/source/s?defs=vol_running">vol_running</a> = <span class="n">0</span>;<a class="l" name="62"> 62 </a><b>int</b> <a href="/source/s?defs=cflag">cflag</a> = <span class="n">0</span>;<a class="l" name="63"> 63 </a><b>int</b> <a href="/source/s?defs=tflag">tflag</a> = <span class="n">0</span>;<a class="l" name="64"> 64 </a><a href="/source/s?defs=uid_t">uid_t</a> <a href="/source/s?defs=ruid">ruid</a>, <a href="/source/s?defs=cur_uid">cur_uid</a>;<a class="l" name="65"> 65 </a><a class="l" name="66"> 66 </a><span class="c">/*<a class="l" name="67"> 67 </a> * global variables<a class="l" name="68"> 68 </a> */</span><a class="l" name="69"> 69 </a><a href="/source/s?defs=cd_device">cd_device</a> *<a href="/source/s?defs=target">target</a> = <a href="/source/s?defs=NULL">NULL</a>; <span class="c">/* Default target device */</span><a class="hl" name="70"> 70 </a><b>static</b> <b>char</b> *<a href="/source/s?defs=tgtdev">tgtdev</a> = <a href="/source/s?defs=NULL">NULL</a>;<a class="l" name="71"> 71 </a><b>int</b> <a href="/source/s?defs=device_type">device_type</a> = <a href="/source/s?defs=CD_RW">CD_RW</a>; <span class="c">/* Default to <a href="/source/s?path=CD/">CD</a>/<a href="/source/s?path=CD/RW">RW</a> */</span><a class="l" name="72"> 72 </a><b>int</b> <a href="/source/s?defs=write_mode">write_mode</a> = <a href="/source/s?defs=TAO_MODE">TAO_MODE</a>; <span class="c">/* Default to track at once */</span><a class="l" name="73"> 73 </a><a class="l" name="74"> 74 </a><b>static</b> <b>void</b><a class="l" name="75"> 75 </a><a href="/source/s?defs=print_usage">print_usage</a>(<b>void</b>)<a class="l" name="76"> 76 </a>{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -