00001 /* 00002 * Copyright (C) 2004, 2005, 2007, 2009, 2013, 2015 Internet Systems Consortium, Inc. ("ISC") 00003 * Copyright (C) 1999-2002 Internet Software Consortium. 00004 * 00005 * Permission to use, copy, modify, and/or distribute this software for any 00006 * purpose with or without fee is hereby granted, provided that the above 00007 * copyright notice and this permission notice appear in all copies. 00008 * 00009 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 00010 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 00011 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 00012 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 00013 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 00014 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00015 * PERFORMANCE OF THIS SOFTWARE. 00016 */ 00017 00018 #ifndef NAMED_MAIN_H 00019 #define NAMED_MAIN_H 1 00020 00021 /*! \file */ 00022 00023 #ifdef ISC_MAIN_HOOK 00024 #define main(argc, argv) bindmain(argc, argv) 00025 #endif 00026 00027 /* 00028 * Commandline arguments for named; also referenced in win32/ntservice.c 00029 */ 00030 #define NS_MAIN_ARGS "46c:C:d:D:E:fFgi:lL:M:m:n:N:p:P:sS:t:T:U:u:vVx:X:" 00031 00032 ISC_PLATFORM_NORETURN_PRE void 00033 ns_main_earlyfatal(const char *format, ...) 00034 ISC_FORMAT_PRINTF(1, 2) ISC_PLATFORM_NORETURN_POST; 00035 00036 void 00037 ns_main_earlywarning(const char *format, ...) ISC_FORMAT_PRINTF(1, 2); 00038 00039 void 00040 ns_main_setmemstats(const char *); 00041 00042 #endif /* NAMED_MAIN_H */