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