32e060f86ae5a0849f340c49587d3f5fcc7f2c8a
[dragonfly.git] / usr.sbin / named / include / named / os.h
1 /*
2  * Copyright (C) 1999-2002  Internet Software Consortium.
3  *
4  * Permission to use, copy, modify, and distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
9  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
10  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
11  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
12  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
13  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
14  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
15  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  */
17
18 /* $Id: os.h,v 1.14.2.2 2002/08/05 06:57:03 marka Exp $ */
19 /* $DragonFly: src/usr.sbin/named/include/named/os.h,v 1.1 2004/05/27 18:15:42 dillon Exp $ */
20
21 #ifndef NS_OS_H
22 #define NS_OS_H 1
23
24 #include <isc/types.h>
25
26 void
27 ns_os_init(const char *progname);
28
29 void
30 ns_os_daemonize(void);
31
32 void
33 ns_os_chroot(const char *root);
34
35 void
36 ns_os_inituserinfo(const char *username);
37
38 void
39 ns_os_changeuser(void);
40
41 void
42 ns_os_minprivs(void);
43
44 void
45 ns_os_writepidfile(const char *filename, isc_boolean_t first_time);
46
47 void
48 ns_os_shutdown(void);
49
50 #endif /* NS_OS_H */