1/* User and group IDs.
2 Copyright (C) 1993-2022 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
18
19#ifndef _HURD_ID_H
20
21#define _HURD_ID_H 1
22#include <features.h>
23#include <hurd/hurd_types.h>
24#include <errno.h>
25#include <bits/types/error_t.h>
26
27#include <lock-intern.h> /* For `struct mutex'. */
28
29/* Structure describing authorization data for the process. */
30
31struct hurd_id_data
32 {
33 struct mutex lock;
34
35 int valid; /* If following data are up to date. */
36
37 struct
38 {
39 uid_t *uids;
40 gid_t *gids;
41 mach_msg_type_number_t nuids, ngids;
42 } gen, aux;
43
44 auth_t rid_auth; /* Cache used by access. */
45 };
46
47/* Current data. */
48
49extern struct hurd_id_data _hurd_id;
50
51
52/* Update _hurd_id (caller should be holding the lock). */
53
54extern error_t _hurd_check_ids (void);
55
56
57#endif /* hurd/id.h */
58

source code of glibc/hurd/hurd/id.h