1/*	$NetBSD: os.h,v 1.6 2024/02/21 22:51:00 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#pragma once
19
20#include <stdio.h>
21
22#include <isc/lang.h>
23
24ISC_LANG_BEGINDECLS
25
26int
27set_user(FILE *fd, const char *user);
28/*%<
29 * Set the owner of the file referenced by 'fd' to 'user'.
30 * Returns:
31 *   0 		success
32 *   -1 	insufficient permissions, or 'user' does not exist.
33 */
34
35ISC_LANG_ENDDECLS
36