1 /*
2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3  *
4  * SPDX-License-Identifier: MPL-2.0
5  *
6  * This Source Code Form is subject to the terms of the Mozilla Public
7  * License, v. 2.0. If a copy of the MPL was not distributed with this
8  * file, you can obtain one at https://mozilla.org/MPL/2.0/.
9  *
10  * See the COPYRIGHT file distributed with this work for additional
11  * information regarding copyright ownership.
12  */
13 
14 /*! \file */
15 
16 #ifndef RNDC_OS_H
17 #define RNDC_OS_H 1
18 
19 #include <stdio.h>
20 
21 #include <isc/lang.h>
22 
23 ISC_LANG_BEGINDECLS
24 
25 int
26 set_user(FILE *fd, const char *user);
27 /*%<
28  * Set the owner of the file referenced by 'fd' to 'user'.
29  * Returns:
30  *   0 		success
31  *   -1 	insufficient permissions, or 'user' does not exist.
32  */
33 
34 ISC_LANG_ENDDECLS
35 
36 #endif /* ifndef RNDC_OS_H */
37