mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-15 21:49:22 +08:00
Remove "32" or "64" from each of the following names: acl32, aclcheck32, aclfrommode32, aclfrompbits32, aclfromtext32, aclsort32, acltomode32, acltopbits32, acltotext32, facl32, fchown32, fcntl64, fstat64, _fstat64, _fstat64_r, ftruncate64, getgid32, getgrent32, getgrgid32, getgrnam32, getgroups32, getpwuid32, getpwuid_r32, getuid32, getuid32, initgroups32, lseek64, lstat64, mknod32, mmap64, setegid32, seteuid32, setgid32, setgroups32, setregid32, setreuid32, setuid32, stat64, _stat64_r, truncate64. Remove prototypes and macro definitions of these names. Remove "#ifndef __INSIDE_CYGWIN__" from some headers so that the new names will be available when compiling Cygwin. Remove aliases that are no longer needed. Include <unistd.h> in fhandler_clipboard.cc for the declarations of geteuid and getegid.
52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
/* cygwin/stat.h
|
|
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;
|
|
uid_t st_uid;
|
|
gid_t st_gid;
|
|
dev_t st_rdev;
|
|
off_t st_size;
|
|
timestruc_t st_atim;
|
|
timestruc_t st_mtim;
|
|
timestruc_t st_ctim;
|
|
blksize_t st_blksize;
|
|
blkcnt_t st_blocks;
|
|
timestruc_t st_birthtim;
|
|
};
|
|
|
|
#define st_atime st_atim.tv_sec
|
|
#define st_mtime st_mtim.tv_sec
|
|
#define st_ctime st_ctim.tv_sec
|
|
#define st_birthtime st_birthtim.tv_sec
|
|
|
|
/* POSIX IPC objects are not implemented as distinct file types, so the
|
|
below macros have to return 0. The expression is supposed to catch
|
|
illegal usage with non-stat parameters. */
|
|
#define S_TYPEISMQ(buf) ((void)(buf)->st_mode,0)
|
|
#define S_TYPEISSEM(buf) ((void)(buf)->st_mode,0)
|
|
#define S_TYPEISSHM(buf) ((void)(buf)->st_mode,0)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _CYGWIN_STAT_H */
|