]> git.ipfire.org Git - thirdparty/glibc.git/blame - hurd/hurd/id.h
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / hurd / hurd / id.h
CommitLineData
28f540f4 1/* User and group IDs.
b168057a 2 Copyright (C) 1993-2015 Free Software Foundation, Inc.
c84142e8
UD
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
41bdb6e2
AJ
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.
c84142e8
UD
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
41bdb6e2 13 Lesser General Public License for more details.
c84142e8 14
41bdb6e2 15 You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
28f540f4
RM
18
19#ifndef _HURD_ID_H
20
21#define _HURD_ID_H 1
22#include <features.h>
23
24#include <cthreads.h> /* For `struct mutex'. */
25
26/* Structure describing authorization data for the process. */
27
28struct hurd_id_data
29 {
30 struct mutex lock;
31
32 int valid; /* If following data are up to date. */
33
34 struct
35 {
36 uid_t *uids;
37 gid_t *gids;
38 mach_msg_type_number_t nuids, ngids;
39 } gen, aux;
40
41 auth_t rid_auth; /* Cache used by access. */
42 };
43
44/* Current data. */
45
46extern struct hurd_id_data _hurd_id;
47
48
49/* Update _hurd_id (caller should be holding the lock). */
50
51extern error_t _hurd_check_ids (void);
52
53
54#endif /* hurd/id.h */