Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bits
File: stat.h
/* Copyright (C) 1999-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#if !defined _SYS_STAT_H && !defined _FCNTL_H
[17] Fix | Delete
# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
[18] Fix | Delete
#endif
[19] Fix | Delete
[20] Fix | Delete
#ifndef _BITS_STAT_H
[21] Fix | Delete
#define _BITS_STAT_H 1
[22] Fix | Delete
[23] Fix | Delete
/* Versions of the `struct stat' data structure. */
[24] Fix | Delete
#ifndef __x86_64__
[25] Fix | Delete
# define _STAT_VER_LINUX_OLD 1
[26] Fix | Delete
# define _STAT_VER_KERNEL 1
[27] Fix | Delete
# define _STAT_VER_SVR4 2
[28] Fix | Delete
# define _STAT_VER_LINUX 3
[29] Fix | Delete
[30] Fix | Delete
/* i386 versions of the `xmknod' interface. */
[31] Fix | Delete
# define _MKNOD_VER_LINUX 1
[32] Fix | Delete
# define _MKNOD_VER_SVR4 2
[33] Fix | Delete
# define _MKNOD_VER _MKNOD_VER_LINUX /* The bits defined below. */
[34] Fix | Delete
#else
[35] Fix | Delete
# define _STAT_VER_KERNEL 0
[36] Fix | Delete
# define _STAT_VER_LINUX 1
[37] Fix | Delete
[38] Fix | Delete
/* x86-64 versions of the `xmknod' interface. */
[39] Fix | Delete
# define _MKNOD_VER_LINUX 0
[40] Fix | Delete
#endif
[41] Fix | Delete
[42] Fix | Delete
#define _STAT_VER _STAT_VER_LINUX
[43] Fix | Delete
[44] Fix | Delete
struct stat
[45] Fix | Delete
{
[46] Fix | Delete
__dev_t st_dev; /* Device. */
[47] Fix | Delete
#ifndef __x86_64__
[48] Fix | Delete
unsigned short int __pad1;
[49] Fix | Delete
#endif
[50] Fix | Delete
#if defined __x86_64__ || !defined __USE_FILE_OFFSET64
[51] Fix | Delete
__ino_t st_ino; /* File serial number. */
[52] Fix | Delete
#else
[53] Fix | Delete
__ino_t __st_ino; /* 32bit file serial number. */
[54] Fix | Delete
#endif
[55] Fix | Delete
#ifndef __x86_64__
[56] Fix | Delete
__mode_t st_mode; /* File mode. */
[57] Fix | Delete
__nlink_t st_nlink; /* Link count. */
[58] Fix | Delete
#else
[59] Fix | Delete
__nlink_t st_nlink; /* Link count. */
[60] Fix | Delete
__mode_t st_mode; /* File mode. */
[61] Fix | Delete
#endif
[62] Fix | Delete
__uid_t st_uid; /* User ID of the file's owner. */
[63] Fix | Delete
__gid_t st_gid; /* Group ID of the file's group.*/
[64] Fix | Delete
#ifdef __x86_64__
[65] Fix | Delete
int __pad0;
[66] Fix | Delete
#endif
[67] Fix | Delete
__dev_t st_rdev; /* Device number, if device. */
[68] Fix | Delete
#ifndef __x86_64__
[69] Fix | Delete
unsigned short int __pad2;
[70] Fix | Delete
#endif
[71] Fix | Delete
#if defined __x86_64__ || !defined __USE_FILE_OFFSET64
[72] Fix | Delete
__off_t st_size; /* Size of file, in bytes. */
[73] Fix | Delete
#else
[74] Fix | Delete
__off64_t st_size; /* Size of file, in bytes. */
[75] Fix | Delete
#endif
[76] Fix | Delete
__blksize_t st_blksize; /* Optimal block size for I/O. */
[77] Fix | Delete
#if defined __x86_64__ || !defined __USE_FILE_OFFSET64
[78] Fix | Delete
__blkcnt_t st_blocks; /* Number 512-byte blocks allocated. */
[79] Fix | Delete
#else
[80] Fix | Delete
__blkcnt64_t st_blocks; /* Number 512-byte blocks allocated. */
[81] Fix | Delete
#endif
[82] Fix | Delete
#ifdef __USE_XOPEN2K8
[83] Fix | Delete
/* Nanosecond resolution timestamps are stored in a format
[84] Fix | Delete
equivalent to 'struct timespec'. This is the type used
[85] Fix | Delete
whenever possible but the Unix namespace rules do not allow the
[86] Fix | Delete
identifier 'timespec' to appear in the <sys/stat.h> header.
[87] Fix | Delete
Therefore we have to handle the use of this header in strictly
[88] Fix | Delete
standard-compliant sources special. */
[89] Fix | Delete
struct timespec st_atim; /* Time of last access. */
[90] Fix | Delete
struct timespec st_mtim; /* Time of last modification. */
[91] Fix | Delete
struct timespec st_ctim; /* Time of last status change. */
[92] Fix | Delete
# define st_atime st_atim.tv_sec /* Backward compatibility. */
[93] Fix | Delete
# define st_mtime st_mtim.tv_sec
[94] Fix | Delete
# define st_ctime st_ctim.tv_sec
[95] Fix | Delete
#else
[96] Fix | Delete
__time_t st_atime; /* Time of last access. */
[97] Fix | Delete
__syscall_ulong_t st_atimensec; /* Nscecs of last access. */
[98] Fix | Delete
__time_t st_mtime; /* Time of last modification. */
[99] Fix | Delete
__syscall_ulong_t st_mtimensec; /* Nsecs of last modification. */
[100] Fix | Delete
__time_t st_ctime; /* Time of last status change. */
[101] Fix | Delete
__syscall_ulong_t st_ctimensec; /* Nsecs of last status change. */
[102] Fix | Delete
#endif
[103] Fix | Delete
#ifdef __x86_64__
[104] Fix | Delete
__syscall_slong_t __glibc_reserved[3];
[105] Fix | Delete
#else
[106] Fix | Delete
# ifndef __USE_FILE_OFFSET64
[107] Fix | Delete
unsigned long int __glibc_reserved4;
[108] Fix | Delete
unsigned long int __glibc_reserved5;
[109] Fix | Delete
# else
[110] Fix | Delete
__ino64_t st_ino; /* File serial number. */
[111] Fix | Delete
# endif
[112] Fix | Delete
#endif
[113] Fix | Delete
};
[114] Fix | Delete
[115] Fix | Delete
#ifdef __USE_LARGEFILE64
[116] Fix | Delete
/* Note stat64 has the same shape as stat for x86-64. */
[117] Fix | Delete
struct stat64
[118] Fix | Delete
{
[119] Fix | Delete
__dev_t st_dev; /* Device. */
[120] Fix | Delete
# ifdef __x86_64__
[121] Fix | Delete
__ino64_t st_ino; /* File serial number. */
[122] Fix | Delete
__nlink_t st_nlink; /* Link count. */
[123] Fix | Delete
__mode_t st_mode; /* File mode. */
[124] Fix | Delete
# else
[125] Fix | Delete
unsigned int __pad1;
[126] Fix | Delete
__ino_t __st_ino; /* 32bit file serial number. */
[127] Fix | Delete
__mode_t st_mode; /* File mode. */
[128] Fix | Delete
__nlink_t st_nlink; /* Link count. */
[129] Fix | Delete
# endif
[130] Fix | Delete
__uid_t st_uid; /* User ID of the file's owner. */
[131] Fix | Delete
__gid_t st_gid; /* Group ID of the file's group.*/
[132] Fix | Delete
# ifdef __x86_64__
[133] Fix | Delete
int __pad0;
[134] Fix | Delete
__dev_t st_rdev; /* Device number, if device. */
[135] Fix | Delete
__off_t st_size; /* Size of file, in bytes. */
[136] Fix | Delete
# else
[137] Fix | Delete
__dev_t st_rdev; /* Device number, if device. */
[138] Fix | Delete
unsigned int __pad2;
[139] Fix | Delete
__off64_t st_size; /* Size of file, in bytes. */
[140] Fix | Delete
# endif
[141] Fix | Delete
__blksize_t st_blksize; /* Optimal block size for I/O. */
[142] Fix | Delete
__blkcnt64_t st_blocks; /* Nr. 512-byte blocks allocated. */
[143] Fix | Delete
# ifdef __USE_XOPEN2K8
[144] Fix | Delete
/* Nanosecond resolution timestamps are stored in a format
[145] Fix | Delete
equivalent to 'struct timespec'. This is the type used
[146] Fix | Delete
whenever possible but the Unix namespace rules do not allow the
[147] Fix | Delete
identifier 'timespec' to appear in the <sys/stat.h> header.
[148] Fix | Delete
Therefore we have to handle the use of this header in strictly
[149] Fix | Delete
standard-compliant sources special. */
[150] Fix | Delete
struct timespec st_atim; /* Time of last access. */
[151] Fix | Delete
struct timespec st_mtim; /* Time of last modification. */
[152] Fix | Delete
struct timespec st_ctim; /* Time of last status change. */
[153] Fix | Delete
# else
[154] Fix | Delete
__time_t st_atime; /* Time of last access. */
[155] Fix | Delete
__syscall_ulong_t st_atimensec; /* Nscecs of last access. */
[156] Fix | Delete
__time_t st_mtime; /* Time of last modification. */
[157] Fix | Delete
__syscall_ulong_t st_mtimensec; /* Nsecs of last modification. */
[158] Fix | Delete
__time_t st_ctime; /* Time of last status change. */
[159] Fix | Delete
__syscall_ulong_t st_ctimensec; /* Nsecs of last status change. */
[160] Fix | Delete
# endif
[161] Fix | Delete
# ifdef __x86_64__
[162] Fix | Delete
__syscall_slong_t __glibc_reserved[3];
[163] Fix | Delete
# else
[164] Fix | Delete
__ino64_t st_ino; /* File serial number. */
[165] Fix | Delete
# endif
[166] Fix | Delete
};
[167] Fix | Delete
#endif
[168] Fix | Delete
[169] Fix | Delete
/* Tell code we have these members. */
[170] Fix | Delete
#define _STATBUF_ST_BLKSIZE
[171] Fix | Delete
#define _STATBUF_ST_RDEV
[172] Fix | Delete
/* Nanosecond resolution time values are supported. */
[173] Fix | Delete
#define _STATBUF_ST_NSEC
[174] Fix | Delete
[175] Fix | Delete
/* Encoding of the file mode. */
[176] Fix | Delete
[177] Fix | Delete
#define __S_IFMT 0170000 /* These bits determine file type. */
[178] Fix | Delete
[179] Fix | Delete
/* File types. */
[180] Fix | Delete
#define __S_IFDIR 0040000 /* Directory. */
[181] Fix | Delete
#define __S_IFCHR 0020000 /* Character device. */
[182] Fix | Delete
#define __S_IFBLK 0060000 /* Block device. */
[183] Fix | Delete
#define __S_IFREG 0100000 /* Regular file. */
[184] Fix | Delete
#define __S_IFIFO 0010000 /* FIFO. */
[185] Fix | Delete
#define __S_IFLNK 0120000 /* Symbolic link. */
[186] Fix | Delete
#define __S_IFSOCK 0140000 /* Socket. */
[187] Fix | Delete
[188] Fix | Delete
/* POSIX.1b objects. Note that these macros always evaluate to zero. But
[189] Fix | Delete
they do it by enforcing the correct use of the macros. */
[190] Fix | Delete
#define __S_TYPEISMQ(buf) ((buf)->st_mode - (buf)->st_mode)
[191] Fix | Delete
#define __S_TYPEISSEM(buf) ((buf)->st_mode - (buf)->st_mode)
[192] Fix | Delete
#define __S_TYPEISSHM(buf) ((buf)->st_mode - (buf)->st_mode)
[193] Fix | Delete
[194] Fix | Delete
/* Protection bits. */
[195] Fix | Delete
[196] Fix | Delete
#define __S_ISUID 04000 /* Set user ID on execution. */
[197] Fix | Delete
#define __S_ISGID 02000 /* Set group ID on execution. */
[198] Fix | Delete
#define __S_ISVTX 01000 /* Save swapped text after use (sticky). */
[199] Fix | Delete
#define __S_IREAD 0400 /* Read by owner. */
[200] Fix | Delete
#define __S_IWRITE 0200 /* Write by owner. */
[201] Fix | Delete
#define __S_IEXEC 0100 /* Execute by owner. */
[202] Fix | Delete
[203] Fix | Delete
#ifdef __USE_ATFILE
[204] Fix | Delete
# define UTIME_NOW ((1l << 30) - 1l)
[205] Fix | Delete
# define UTIME_OMIT ((1l << 30) - 2l)
[206] Fix | Delete
#endif
[207] Fix | Delete
[208] Fix | Delete
#endif /* bits/stat.h */
[209] Fix | Delete
[210] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function