fhandler_clipboard.cc, fhandler_disk_file.cc, fhandler_dsp.cc, fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc, fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc, pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc, security.h, spawn.cc, syscalls.cc, thread.h, uinfo.cc, winsup.h): Change usage of uid_t to __uid16_t, gid_t to __gid16_t and off_t to __off32_t throughout. Use INVALID_UID, INVALID_GID and INVALID_SEEK instead casting -1 to the appropriate type. * winsup.h: Define INVALID_UID, INVALID_GID and INVALID_SEEK. * include/cygwin/acl.h: Define internal __aclent16_t and __aclent32_t types. Don't declare acl functions when compiling Cygwin. * include/cygwin/grp.h: Declare getgrgid() and getgrnam() with correct types for internal usage.
47 lines
761 B
C
47 lines
761 B
C
/* cygwin/grp.h
|
|
|
|
Copyright 2002 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__
|
|
struct __group16
|
|
{
|
|
char *gr_name;
|
|
char *gr_passwd;
|
|
__gid16_t gr_gid;
|
|
char **gr_mem;
|
|
};
|
|
|
|
struct __group32
|
|
{
|
|
char *gr_name;
|
|
char *gr_passwd;
|
|
__gid32_t gr_gid;
|
|
char **gr_mem;
|
|
};
|
|
|
|
struct __group16 * getgrgid (__gid16_t gid);
|
|
struct __group16 * getgrnam (const char *name);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _CYGWIN_GRP_H_ */
|