]>
Commit | Line | Data |
---|---|---|
477e62b6 CB |
1 | /* liblxcapi |
2 | * | |
3 | * Copyright © 2018 Christian Brauner <christian.brauner@ubuntu.com>. | |
4 | * Copyright © 2018 Canonical Ltd. | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License version 2, as | |
8 | * published by the Free Software Foundation. | |
9 | * | |
10 | * This program 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 | |
13 | * GNU General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU General Public License along | |
16 | * with this program; if not, write to the Free Software Foundation, Inc., | |
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 | * | |
19 | * This function has been copied from musl. | |
20 | */ | |
21 | ||
22 | #ifndef _GETGRGID_R_H | |
23 | #define _GETGRGID_R_H | |
24 | ||
25 | #include <stdio.h> | |
26 | #include <sys/types.h> | |
27 | #include <grp.h> | |
28 | ||
29 | extern int getgrgid_r(gid_t gid, struct group *gr, char *buf, size_t size, | |
30 | struct group **res); | |
31 | ||
32 | #endif /* _GETGRGID_R_H */ |