Update copyright notices with scripts/update-copyrights
[glibc.git] / hurd / hurd / id.h
blob37431e308766158cef19535b64f4d2c07ad95fc0
1 /* User and group IDs.
2 Copyright (C) 1993-2014 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 <http://www.gnu.org/licenses/>. */
19 #ifndef _HURD_ID_H
21 #define _HURD_ID_H 1
22 #include <features.h>
24 #include <cthreads.h> /* For `struct mutex'. */
26 /* Structure describing authorization data for the process. */
28 struct hurd_id_data
30 struct mutex lock;
32 int valid; /* If following data are up to date. */
34 struct
36 uid_t *uids;
37 gid_t *gids;
38 mach_msg_type_number_t nuids, ngids;
39 } gen, aux;
41 auth_t rid_auth; /* Cache used by access. */
44 /* Current data. */
46 extern struct hurd_id_data _hurd_id;
49 /* Update _hurd_id (caller should be holding the lock). */
51 extern error_t _hurd_check_ids (void);
54 #endif /* hurd/id.h */