]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/alpha/bits/stat.h
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / alpha / bits / stat.h
index 40b6853430810adbfcd84f4884d57e883c6ee721..f768febeb169702526f2455db68459f24bc540e4 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (C) 1996,1997,1998,1999,2000,2001,2004
-   Free Software Foundation, Inc.
+/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library.  If not, see
+   <https://www.gnu.org/licenses/>.  */
 
-#ifndef _SYS_STAT_H
+#if !defined _SYS_STAT_H && !defined _FCNTL_H
 # error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
 #endif
 
+#ifndef _BITS_STAT_H
+#define _BITS_STAT_H   1
+
 /* Versions of the `struct stat' data structure.  */
 #define _STAT_VER_KERNEL       0
 #define _STAT_VER_GLIBC2       1
 #define _STAT_VER_GLIBC2_1     2
 #define _STAT_VER_KERNEL64     3
 #define _STAT_VER_GLIBC2_3_4   3
-#define _STAT_VER              _STAT_VER_GLIBC2_3_4
+#define _STAT_VER_LINUX                3
+#define _STAT_VER              _STAT_VER_LINUX
 
 /* Versions of the `xmknod' interface.  */
 #define _MKNOD_VER_LINUX       0
@@ -41,7 +43,7 @@
 
    Use neat tidy anonymous unions and structures when possible.  */
 
-#ifdef __USE_MISC
+#ifdef __USE_XOPEN2K8
 # if __GNUC_PREREQ(3,3)
 #  define __ST_TIME(X)                         \
        __extension__ union {                   \
@@ -90,7 +92,7 @@ struct stat
     __ST_TIME(a);              /* Time of last access.  */
     __ST_TIME(m);              /* Time of last modification.  */
     __ST_TIME(c);              /* Time of last status change.  */
-    long __unused[3];
+    long __glibc_reserved[3];
   };
 
 #ifdef __USE_LARGEFILE64
@@ -111,7 +113,7 @@ struct stat64
     __ST_TIME(a);              /* Time of last access.  */
     __ST_TIME(m);              /* Time of last modification.  */
     __ST_TIME(c);              /* Time of last status change.  */
-    long __unused[3];
+    long __glibc_reserved[3];
   };
 #endif
 
@@ -149,3 +151,10 @@ struct stat64
 #define        __S_IREAD       0400    /* Read by owner.  */
 #define        __S_IWRITE      0200    /* Write by owner.  */
 #define        __S_IEXEC       0100    /* Execute by owner.  */
+
+#ifdef __USE_ATFILE
+# define UTIME_NOW     ((1l << 30) - 1l)
+# define UTIME_OMIT    ((1l << 30) - 2l)
+#endif
+
+#endif /* bits/stat.h */