/*1* Copyright (c) 2005 Apple Computer, Inc. All rights reserved.2*3* @APPLE_APACHE_LICENSE_HEADER_START@4*5* Licensed under the Apache License, Version 2.0 (the "License");6* you may not use this file except in compliance with the License.7* You may obtain a copy of the License at8*9* http://www.apache.org/licenses/LICENSE-2.010*11* Unless required by applicable law or agreed to in writing, software12* distributed under the License is distributed on an "AS IS" BASIS,13* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14* See the License for the specific language governing permissions and15* limitations under the License.16*17* @APPLE_APACHE_LICENSE_HEADER_END@18*/1920#ifndef __LAUNCHD_H__21#define __LAUNCHD_H__2223#if HAS_MACH24#include <mach/mach.h>25#include <mach/port.h>26#endif2728#include "launch.h"2930#ifdef __APPLE__31#include "bootstrap.h"32#endif3334#include "runtime.h"3536struct kevent;37struct conncb;3839extern bool pid1_magic;40extern bool launchd_shutting_down;41extern bool fake_launchd_shutting_down;42extern bool network_up;43extern FILE *launchd_console;44extern uid_t launchd_uid;4546void launchd_SessionCreate(void);47void launchd_shutdown(void);4849enum {50LAUNCHD_PERSISTENT_STORE_DB,51LAUNCHD_PERSISTENT_STORE_LOGS,52};53char *launchd_copy_persistent_store(int type, const char *file);5455int _fd(int fd);5657#endif /* __LAUNCHD_H__ */585960