mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 16:26:12 +08:00
* include/cygwin/grp.h: New file.
* include/cygwin/stat.h: Ditto. * include/cygwin/types.h: Add definitions for __off32_t, __off64_t, off_t, __uid16_t, __uid32_t, uid_t, __gid16_t, __gid32_t and gid_t. * include/sys/cygwin.h: Use correct uid and gid types.
This commit is contained in:
parent
82b3ac561c
commit
52296b850c
@ -1,3 +1,12 @@
|
|||||||
|
2002-02-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* include/cygwin/grp.h: New file.
|
||||||
|
* include/cygwin/stat.h: Ditto.
|
||||||
|
* include/cygwin/types.h: Add definitions for __off32_t,
|
||||||
|
__off64_t, off_t, __uid16_t, __uid32_t, uid_t, __gid16_t,
|
||||||
|
__gid32_t and gid_t.
|
||||||
|
* include/sys/cygwin.h: Use correct uid and gid types.
|
||||||
|
|
||||||
2002-02-09 Corinna Vinschen <corinna@vinschen.de>
|
2002-02-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* dtable.cc (dtable::dup2): Revert previous patch.
|
* dtable.cc (dtable::dup2): Revert previous patch.
|
||||||
|
43
winsup/cygwin/include/cygwin/grp.h
Normal file
43
winsup/cygwin/include/cygwin/grp.h
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/* 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;
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _CYGWIN_GRP_H_ */
|
54
winsup/cygwin/include/cygwin/stat.h
Normal file
54
winsup/cygwin/include/cygwin/stat.h
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
/* cygwin/stat.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_STAT_H
|
||||||
|
#define _CYGWIN_STAT_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
struct stat
|
||||||
|
{
|
||||||
|
dev_t st_dev;
|
||||||
|
ino_t st_ino;
|
||||||
|
mode_t st_mode;
|
||||||
|
nlink_t st_nlink;
|
||||||
|
__uid16_t __st_uid16;
|
||||||
|
__gid16_t __st_gid16;
|
||||||
|
dev_t st_rdev;
|
||||||
|
__off32_t __st_size32;
|
||||||
|
time_t st_atime;
|
||||||
|
__uid32_t __st_uid32;
|
||||||
|
time_t st_mtime;
|
||||||
|
__uid32_t __st_gid32;
|
||||||
|
time_t st_ctime;
|
||||||
|
long st_spare3;
|
||||||
|
long st_blksize;
|
||||||
|
long st_blocks;
|
||||||
|
__off64_t __st_size64;
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef __CYGWIN_USE_BIG_TYPES__
|
||||||
|
#define st_uid __st_uid32
|
||||||
|
#define st_gid __st_gid32
|
||||||
|
#define st_size __st_size64
|
||||||
|
#else
|
||||||
|
#define st_uid __st_uid16
|
||||||
|
#define st_gid __st_gid16
|
||||||
|
#define st_size __st_size32
|
||||||
|
#endif /* __CYGWIN_USE_BIG_TYPES__ */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _CYGWIN_STAT_H */
|
@ -1,6 +1,6 @@
|
|||||||
/* types.h
|
/* types.h
|
||||||
|
|
||||||
Copyright 2001 Red Hat Inc.
|
Copyright 2001, 2002 Red Hat Inc.
|
||||||
Written by Robert Collins <rbtcollins@hotmail.com>
|
Written by Robert Collins <rbtcollins@hotmail.com>
|
||||||
|
|
||||||
This file is part of Cygwin.
|
This file is part of Cygwin.
|
||||||
@ -17,6 +17,26 @@ extern "C"
|
|||||||
#ifndef _CYGWIN_TYPES_H
|
#ifndef _CYGWIN_TYPES_H
|
||||||
#define _CYGWIN_TYPES_H
|
#define _CYGWIN_TYPES_H
|
||||||
|
|
||||||
|
typedef long __off32_t;
|
||||||
|
typedef long long __off64_t;
|
||||||
|
#ifdef __CYGWIN_USE_BIG_TYPES__
|
||||||
|
typedef __off64_t off_t;
|
||||||
|
#else
|
||||||
|
typedef __off32_t off_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef unsigned short __uid16_t;
|
||||||
|
typedef unsigned short __gid16_t;
|
||||||
|
typedef unsigned long __uid32_t;
|
||||||
|
typedef unsigned long __gid32_t;
|
||||||
|
#ifdef __CYGWIN_USE_BIG_TYPES__
|
||||||
|
typedef __uid32_t uid_t;
|
||||||
|
typedef __gid32_t gid_t;
|
||||||
|
#else
|
||||||
|
typedef __uid16_t uid_t;
|
||||||
|
typedef __gid16_t gid_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(__INSIDE_CYGWIN__) || !defined(__cplusplus)
|
#if !defined(__INSIDE_CYGWIN__) || !defined(__cplusplus)
|
||||||
|
|
||||||
typedef void *pthread_t;
|
typedef void *pthread_t;
|
||||||
|
@ -209,8 +209,8 @@ extern int cygwin_attach_handle_to_fd (char *, int, HANDLE, mode_t, DWORD);
|
|||||||
#define TTY_CONSOLE 0x40000000
|
#define TTY_CONSOLE 0x40000000
|
||||||
|
|
||||||
#ifndef _SYS_TYPES_H
|
#ifndef _SYS_TYPES_H
|
||||||
typedef short uid_t;
|
typedef unsigned short __uid16_t;
|
||||||
typedef short gid_t;
|
typedef unsigned short __gid16_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct external_pinfo
|
struct external_pinfo
|
||||||
@ -219,8 +219,8 @@ struct external_pinfo
|
|||||||
pid_t ppid;
|
pid_t ppid;
|
||||||
HANDLE hProcess;
|
HANDLE hProcess;
|
||||||
DWORD dwProcessId, dwSpawnedProcessId;
|
DWORD dwProcessId, dwSpawnedProcessId;
|
||||||
uid_t uid;
|
__uid16_t uid;
|
||||||
gid_t gid;
|
__gid16_t gid;
|
||||||
pid_t pgid;
|
pid_t pgid;
|
||||||
pid_t sid;
|
pid_t sid;
|
||||||
int ctty;
|
int ctty;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user