s390: Use dl-symbol-redir-ifunc.h on cpu-tunables
[glibc.git] / hurd / hurd / id.h
blob1490440d8e546c39e5a71a7ba0d67bc34561f08c
1 /* User and group IDs.
2 Copyright (C) 1993-2023 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
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/>. */
19 #ifndef _HURD_ID_H
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>
27 #include <lock-intern.h> /* For `struct mutex'. */
29 /* Structure describing authorization data for the process. */
31 struct hurd_id_data
33 struct mutex lock;
35 int valid; /* If following data are up to date. */
37 struct
39 uid_t *uids;
40 gid_t *gids;
41 mach_msg_type_number_t nuids, ngids;
42 } gen, aux;
44 auth_t rid_auth; /* Cache used by access. */
47 /* Current data. */
49 extern struct hurd_id_data _hurd_id;
52 /* Update _hurd_id (caller should be holding the lock). */
54 extern error_t _hurd_check_ids (void);
57 #endif /* hurd/id.h */