diff options
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/statvfs.h | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/fstatvfs.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/netinet/ip.h | 6 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sys/mount.h | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/statvfs.h b/sysdeps/unix/sysv/linux/bits/statvfs.h index 85cdc98..fc63806 100644 --- a/sysdeps/unix/sysv/linux/bits/statvfs.h +++ b/sysdeps/unix/sysv/linux/bits/statvfs.h @@ -87,6 +87,8 @@ enum #define ST_APPEND ST_APPEND ST_IMMUTABLE = 512, /* Immutable file. */ #define ST_IMMUTABLE ST_IMMUTABLE - ST_NOATIME = 1024 /* Do not update access times. */ + ST_NOATIME = 1024, /* Do not update access times. */ #define ST_NOATIME ST_NOATIME + ST_NODIRATIME /* Do not update directory access times. */ +#define ST_NODIRATIME ST_NODIRATIME }; diff --git a/sysdeps/unix/sysv/linux/fstatvfs.c b/sysdeps/unix/sysv/linux/fstatvfs.c index ef28bc6..de926f4 100644 --- a/sysdeps/unix/sysv/linux/fstatvfs.c +++ b/sysdeps/unix/sysv/linux/fstatvfs.c @@ -155,6 +155,8 @@ fstatvfs (int fd, struct statvfs *buf) buf->f_flag |= ST_MANDLOCK; else if (strcmp (opt, "noatime") == 0) buf->f_flag |= ST_NOATIME; + else if (strcmp (opt, "nodiratime") == 0) + buf->f_flag |= ST_NODIRATIME; /* We can stop looking for more entries. */ break; diff --git a/sysdeps/unix/sysv/linux/netinet/ip.h b/sysdeps/unix/sysv/linux/netinet/ip.h index cb27ebf..1add1b2 100644 --- a/sysdeps/unix/sysv/linux/netinet/ip.h +++ b/sysdeps/unix/sysv/linux/netinet/ip.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 92, 93, 95, 96, 97 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 93, 95, 96, 97, 98 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,7 +19,7 @@ #ifndef __NETINET_IP_H #define __NETINET_IP_H 1 -#include <sys/cdefs.h> +#include <features.h> #include <sys/types.h> #include <netinet/in.h> @@ -60,7 +60,9 @@ struct ip_options u_int8_t router_alert; u_int8_t __pad1; u_int8_t __pad2; +#ifdef __GNUC__ u_int8_t __data[0]; +#endif }; struct iphdr diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h index c9ace10..589ecbc 100644 --- a/sysdeps/unix/sysv/linux/sys/mount.h +++ b/sysdeps/unix/sysv/linux/sys/mount.h @@ -53,8 +53,10 @@ enum #define S_APPEND S_APPEND S_IMMUTABLE = 512, /* Immutable file. */ #define S_IMMUTABLE S_IMMUTABLE - MS_NOATIME = 1024 /* Do not update access times. */ + MS_NOATIME = 1024, /* Do not update access times. */ #define MS_NOATIME MS_NOATIME + MS_NODIRATIME = 2048 /* Do not update directory access times. */ +#define MS_NODIRATIME MS_NODIRATIME }; /* Flags that can be altered by MS_REMOUNT */ |