1/* 2 * Copyright © 2009 Apple Inc. All rights reserved. 3 * 4 * @APPLE_LICENSE_HEADER_START@ 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * 9 * 1. Redistributions of source code must retain the above copyright notice, 10 * this list of conditions and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright notice, 12 * this list of conditions and the following disclaimer in the documentation 13 * and/or other materials provided with the distribution. 14 * 3. Neither the name of Apple Inc. ("Apple") nor the names of its 15 * contributors may be used to endorse or promote products derived from this 16 * software without specific prior written permission. 17 * 18 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 19 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * 29 * @APPLE_LICENSE_HEADER_END@ 30 */ 31#ifndef __DYNAMIC__ 32#include <notify.h> 33 34uint32_t notify_post(const char *name) 35{ 36 return 0; 37} 38 39uint32_t notify_register_check(const char *name, int *out_token) 40{ 41 *out_token = 0; 42 return 0; 43} 44 45uint32_t notify_register_signal(const char *name, int sig, int *out_token) 46{ 47 *out_token = 0; 48 return 0; 49} 50 51uint32_t notify_register_mach_port(const char *name, mach_port_t *notify_port, int flags, int *out_token) 52{ 53 *notify_port = MACH_PORT_NULL; 54 out_token = 0; 55 return 0; 56} 57 58uint32_t notify_register_file_descriptor(const char *name, int *notify_fd, int flags, int *out_token) 59{ 60 *notify_fd = 0; 61 out_token = 0; 62 return 0; 63} 64 65uint32_t notify_check(int token, int *check) 66{ 67 *check = 1; 68 return 0; 69} 70 71uint32_t notify_cancel(int token) 72{ 73 return 0; 74} 75 76int __notify_78945668_info__ = 0; 77 78uint32_t notify_monitor_file(int t, char *s, int f) 79{ 80 return 0; 81} 82#endif /* !defined(__DYNAMIC__) */ 83