aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-01-18 00:50:52 +0000
committerRoland McGrath <roland@gnu.org>1996-01-18 00:50:52 +0000
commit285a3eee46e60a9dde6275bc1714546150492da4 (patch)
tree5828d082183d75b0f7e860a41931100e1e252be4
parentWed Jan 17 11:04:58 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu> (diff)
downloadglibc-285a3eee46e60a9dde6275bc1714546150492da4.tar.gz
glibc-285a3eee46e60a9dde6275bc1714546150492da4.tar.bz2
glibc-285a3eee46e60a9dde6275bc1714546150492da4.zip
* sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
_STAT_VER_SVR4, _STAT_VER): New macros. (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros. * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER): New macros.
-rw-r--r--ChangeLog7
-rw-r--r--sysdeps/unix/sysv/linux/statbuf.h13
-rw-r--r--sysdeps/unix/sysv/sysv4/i386/statbuf.h9
3 files changed, 24 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index ec92ce9df5..8f68509bc2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
Wed Jan 17 11:04:58 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
+ * sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
+ _STAT_VER_SVR4, _STAT_VER): New macros.
+ (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros.
+
+ * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER):
+ New macros.
+
* io/sys/stat.h (_STAT_VER, _MKNOD_VER): New macros.
(__xstat, __fxstat, __lxstat, __xmknod): Declare new functions.
[__GNUC__] (stat, fstat, lstat, mknod): Define these (and __ names)
diff --git a/sysdeps/unix/sysv/linux/statbuf.h b/sysdeps/unix/sysv/linux/statbuf.h
index 5aabdd30ad..72c72f44e1 100644
--- a/sysdeps/unix/sysv/linux/statbuf.h
+++ b/sysdeps/unix/sysv/linux/statbuf.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1995, 1996 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
@@ -19,8 +19,15 @@ Cambridge, MA 02139, USA. */
#ifndef _STATBUF_H
#define _STATBUF_H
-/* Current version of stat system call. */
-#define _STAT_VER 1
+/* Versions of the `struct stat' data structure. */
+#define _STAT_VER_LINUX 1
+#define _STAT_VER_SVR4 2
+#define _STAT_VER _STAT_VER_LINUX /* The one defined below. */
+
+/* Versions of the `xmknod' interface. */
+#define _MKNOD_VER_LINUX 1
+#define _MKNOD_VER_SVR4 2
+#define _MKNOD_VER _MKNOD_VER_LINUX /* The bits defined below. */
struct stat
diff --git a/sysdeps/unix/sysv/sysv4/i386/statbuf.h b/sysdeps/unix/sysv/sysv4/i386/statbuf.h
index 6f1bfed850..ada49ce6d0 100644
--- a/sysdeps/unix/sysv/sysv4/i386/statbuf.h
+++ b/sysdeps/unix/sysv/sysv4/i386/statbuf.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1996 Free Software Foundation, Inc.
Contributed by Brendan Kehoe (brendan@zen.org).
The GNU C Library is free software; you can redistribute it and/or
@@ -21,6 +21,11 @@ Cambridge, MA 02139, USA. */
#include <gnu/types.h>
+/* Versions of the `struct stat' data structure and
+ the bits of the `xmknod' interface. */
+#define _STAT_VER 2
+#define _MKNOD_VER 2
+
/* Structure describing file characteristics. */
struct stat
{
@@ -35,7 +40,7 @@ struct stat
long st_filler2[2];
long st_size; /* Size of file, in bytes. */
- /* SVR4 added this extra long to allow for expansion of off_t. */
+ /* SVR4 added this extra long to allow for expansion of off_t. */
long st_filler3;
long st_atime; /* Time of last access. */