+2013-11-18 Tom Tromey <tromey@redhat.com>
+
+ * common/gdb_stat.h: Remove.
+ * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
+ * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
+ * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
+ * corefile.c: Use sys/stat.h, not gdb_stat.h.
+ * ctf.c: Use sys/stat.h, not gdb_stat.h.
+ * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
+ * dbxread.c: Use sys/stat.h, not gdb_stat.h.
+ * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
+ * exec.c: Use sys/stat.h, not gdb_stat.h.
+ * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
+ * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
+ * inf-child.c: Use sys/stat.h, not gdb_stat.h.
+ * jit.c: Use sys/stat.h, not gdb_stat.h.
+ * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
+ * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
+ * main.c: Use sys/stat.h, not gdb_stat.h.
+ * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
+ * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
+ * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
+ * objfiles.c: Use sys/stat.h, not gdb_stat.h.
+ * procfs.c: Use sys/stat.h, not gdb_stat.h.
+ * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
+ * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
+ * remote.c: Use sys/stat.h, not gdb_stat.h.
+ * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
+ * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
+ * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
+ * source.c: Use sys/stat.h, not gdb_stat.h.
+ * symfile.c: Use sys/stat.h, not gdb_stat.h.
+ * symmisc.c: Use sys/stat.h, not gdb_stat.h.
+ * symtab.c: Use sys/stat.h, not gdb_stat.h.
+ * top.c: Use sys/stat.h, not gdb_stat.h.
+ * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
+
2013-11-18 Tom Tromey <tromey@redhat.com>
* gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
+++ /dev/null
-/* Portable <sys/stat.h>
- Copyright (C) 1995-2013 Free Software Foundation, Inc.
-
- This file is part of GDB.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#if !defined(GDB_STAT_H)
-#define GDB_STAT_H
-
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#if !defined(S_ISBLK) && defined(S_IFBLK)
-#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
-#endif
-#if !defined(S_ISCHR) && defined(S_IFCHR)
-#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
-#endif
-#if !defined(S_ISDIR) && defined(S_IFDIR)
-#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
-#endif
-#if !defined(S_ISREG) && defined(S_IFREG)
-#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
-#endif
-#if !defined(S_ISFIFO) && defined(S_IFIFO)
-#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
-#endif
-#if !defined(S_ISLNK) && defined(S_IFLNK)
-#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
-#endif
-#if !defined(S_ISSOCK) && defined(S_IFSOCK)
-#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
-#endif
-#if !defined(S_ISMPB) && defined(S_IFMPB) /* V7 */
-#define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB)
-#define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC)
-#endif
-#if !defined(S_ISNWK) && defined(S_IFNWK) /* HP/UX */
-#define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK)
-#endif
-
-/* Microsoft C's stat.h doesn't define all the POSIX file modes. */
-#ifndef S_IROTH
-#define S_IROTH S_IREAD
-#endif
-
-#endif /* !defined(GDB_STAT_H) */