f85a07f140
Implement it as an inline function, and add restrict and ATTR_STRING() and ATTR_ACCESS() as appropriate. Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
14 lines
316 B
C
14 lines
316 B
C
// SPDX-FileCopyrightText: 2009, Nicolas François
|
|
// SPDX-FileCopyrightText: 2023-2024, Alejandro Colomar <alx@kernel.org>
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "atoi/getnum.h"
|
|
|
|
|
|
extern inline int get_gid(const char *restrict gidstr, gid_t *restrict gid);
|