<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre, #msg p { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[23600] trunk/launchd/src/launchd_core_logic.c</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.macosforge.org/projects/launchd/changeset/23600">23600</a></dd>
<dt>Author</dt> <dd>zarzycki@apple.com</dd>
<dt>Date</dt> <dd>2008-04-18 14:41:05 -0700 (Fri, 18 Apr 2008)</dd>
</dl>

<h3>Log Message</h3>
<pre>Better documentation.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunklaunchdsrclaunchd_core_logicc">trunk/launchd/src/launchd_core_logic.c</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunklaunchdsrclaunchd_core_logicc"></a>
<div class="modfile"><h4>Modified: trunk/launchd/src/launchd_core_logic.c (23599 => 23600)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/launchd/src/launchd_core_logic.c        2008-04-15 21:55:50 UTC (rev 23599)
+++ trunk/launchd/src/launchd_core_logic.c        2008-04-18 21:41:05 UTC (rev 23600)
</span><span class="lines">@@ -387,14 +387,54 @@
</span><span class="cx">         uint64_t start_time;
</span><span class="cx">         uint32_t min_run_time;
</span><span class="cx">         uint32_t start_interval;
</span><del>-        bool checkedin:1, anonymous:1, debug:1, inetcompat:1, inetcompat_wait:1,
-                     ondemand:1, session_create:1, low_pri_io:1, no_init_groups:1, priv_port_has_senders:1,
-                     importing_global_env:1, importing_hard_limits:1, setmask:1, legacy_mach_job:1, start_pending:1,
-                     globargv:1, wait4debugger:1, internal_exc_handler:1, stall_before_exec:1, only_once:1,
-                     currently_ignored:1, forced_peers_to_demand_mode:1, setnice:1, hopefully_exits_last:1, removal_pending:1,
-                     legacy_LS_job:1, sent_sigkill:1, debug_before_kill:1, weird_bootstrap:1, start_on_mount:1,
-                     per_user:1, hopefully_exits_first:1, deny_unknown_mslookups:1, unload_at_mig_return:1, abandon_pg:1,
-                     poll_for_vfs_changes:1, deny_job_creation:1, kill_via_shmem:1, sent_kill_via_shmem:1;
</del><ins>+#if 0
+        /* someday ... */
+        enum {
+                J_TYPE_ANONYMOUS = 1,
+                J_TYPE_LANCHSERVICES,
+                J_TYPE_MACHINIT,
+                J_TYPE_INETD,
+        } j_type;
+#endif
+        bool debug:1,                                /* man launchd.plist --&gt; Debug */
+             ondemand:1,                        /* man launchd.plist --&gt; KeepAlive == false */
+             session_create:1,                        /* man launchd.plist --&gt; SessionCreate */
+             low_pri_io:1,                        /* man launchd.plist --&gt; LowPriorityIO */
+             no_init_groups:1,                        /* man launchd.plist --&gt; InitGroups */
+             priv_port_has_senders:1,                /* a legacy mach_init concept to make bootstrap_create_server/service() work */
+             importing_global_env:1,                /* a hack during job importing */
+             importing_hard_limits:1,                /* a hack during job importing */
+             setmask:1,                                /* man launchd.plist --&gt; Umask */
+             anonymous:1,                        /* a process that launchd knows about, but isn't managed by launchd */
+             checkedin:1,                        /* a legacy mach_init concept to detect sick jobs */
+             legacy_mach_job:1,                        /* a job created via bootstrap_create_server() */
+             legacy_LS_job:1,                        /* a job created via spawn_via_launchd() */
+             inetcompat:1,                        /* a legacy job that wants inetd compatible semantics */
+             inetcompat_wait:1,                        /* a twist on inetd compatibility */
+             start_pending:1,                        /* an event fired and the job should start, but not necessarily right away */
+             globargv:1,                        /* man launchd.plist --&gt; EnableGlobbing */
+             wait4debugger:1,                        /* man launchd.plist --&gt; WaitForDebugger */
+             internal_exc_handler:1,                /* MachExceptionHandler == true */
+             stall_before_exec:1,                /* a hack to support an option of spawn_via_launchd() */
+             only_once:1,                        /* man launchd.plist --&gt; LaunchOnlyOnce. Note: 5465184 Rename this to &quot;HopefullyNeverExits&quot; */
+             currently_ignored:1,                /* Make job_ignore() /  job_watch() work. If these calls were balanced, then this wouldn't be necessarily. */
+             forced_peers_to_demand_mode:1,        /* A job that forced all other jobs to be temporarily launch-on-demand */
+             setnice:1,                                /* man launchd.plist --&gt; Nice */
+             hopefully_exits_last:1,                /* man launchd.plist --&gt; HopefullyExitsLast */
+             removal_pending:1,                        /* a job was asked to be unloaded/removed while running, we'll remove it after it exits */
+             sent_sigkill:1,                        /* job_kill() was called */
+             debug_before_kill:1,                /* enter the kernel debugger before killing a job */
+             weird_bootstrap:1,                        /* a hack that launchd+launchctl use during jobmgr_t creation */
+             start_on_mount:1,                        /* man launchd.plist --&gt; StartOnMount */
+             per_user:1,                        /* This job is a per-user launchd managed by the PID 1 launchd */
+             hopefully_exits_first:1,                /* man launchd.plist --&gt; HopefullyExitsFirst */
+             deny_unknown_mslookups:1,                /* A flag for changing the behavior of bootstrap_look_up() */
+             unload_at_mig_return:1,                /* A job thoroughly confused launchd. We need to unload it ASAP */
+             abandon_pg:1,                        /* man launchd.plist --&gt; AbandonProcessGroup */
+             poll_for_vfs_changes:1,                /* a hack to work around the fact that kqueues don't work on all filesystems */
+             deny_job_creation:1,                /* Don't let this job create new 'job_t' objects in launchd */
+             kill_via_shmem:1,                        /* man launchd.plist --&gt; EnableTransactions */
+             sent_kill_via_shmem:1;                /* We need to 'kill_via_shmem' once-and-only-once */
</ins><span class="cx">         mode_t mask;
</span><span class="cx">         const char label[0];
</span><span class="cx"> };
</span></span></pre>
</div>
</div>

</body>
</html>