Welcome to mirror list, hosted at ThFree Co, Russian Federation.

grp.h « cygwin « include « cygwin « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 056c5f6185a58416eaa14cd3facbd0a7e8b13558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* cygwin/grp.h

   Copyright 2002, 2011 Red Hat Inc.
   Written by Corinna Vinschen <corinna@vinschen.de>

This file is part of Cygwin.

This software is a copyrighted work licensed under the terms of the
Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
details. */

#ifndef _CYGWIN_GRP_H_
#define _CYGWIN_GRP_H_

#include <sys/types.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifdef __INSIDE_CYGWIN__
#ifndef __x86_64__
struct __group16
{
  char *gr_name;
  char *gr_passwd;
  __gid16_t gr_gid;
  char **gr_mem;
};
#endif

struct group * getgrgid32 (gid_t gid);
struct group * getgrnam32 (const char *name);
gid_t getgid32 ();
gid_t getegid32 ();
#endif

extern int getgrouplist (const char *, gid_t, gid_t *, int *);

#ifdef __cplusplus
}
#endif

#endif /* _CYGWIN_GRP_H_ */