diff options
author | Tom Tromey <tromey@redhat.com> | 2013-11-06 07:55:51 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-11-18 13:29:02 -0700 |
commit | 53ce3c3929c7121f155e0a4a2492c8dba3878dfd (patch) | |
tree | c18467750a0e8f574a0c2362cc83cf8e5be965b1 /gdb/common | |
parent | 09607c9e081644f4f5a7fdd9105ee1e9862fdb66 (diff) | |
download | gdb-53ce3c3929c7121f155e0a4a2492c8dba3878dfd.zip gdb-53ce3c3929c7121f155e0a4a2492c8dba3878dfd.tar.gz gdb-53ce3c3929c7121f155e0a4a2492c8dba3878dfd.tar.bz2 |
remove gdb_stat.h
This patch is purely mechanical. It removes gdb_stat.h and changes
the code to use sys/stat.h.
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.
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/filestuff.c | 2 | ||||
-rw-r--r-- | gdb/common/gdb_stat.h | 59 | ||||
-rw-r--r-- | gdb/common/linux-osdata.c | 2 |
3 files changed, 2 insertions, 61 deletions
diff --git a/gdb/common/filestuff.c b/gdb/common/filestuff.c index bbb60a7..2792d59 100644 --- a/gdb/common/filestuff.c +++ b/gdb/common/filestuff.c @@ -29,7 +29,7 @@ #include <fcntl.h> #include <unistd.h> #include <sys/types.h> -#include "gdb_stat.h" +#include <sys/stat.h> #ifdef USE_WIN32API #include <winsock2.h> diff --git a/gdb/common/gdb_stat.h b/gdb/common/gdb_stat.h deleted file mode 100644 index 3e3c981..0000000 --- a/gdb/common/gdb_stat.h +++ /dev/null @@ -1,59 +0,0 @@ -/* 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) */ diff --git a/gdb/common/linux-osdata.c b/gdb/common/linux-osdata.c index 0ff10c6..90da899 100644 --- a/gdb/common/linux-osdata.c +++ b/gdb/common/linux-osdata.c @@ -43,7 +43,7 @@ #include "buffer.h" #include "gdb_assert.h" #include <dirent.h> -#include "gdb_stat.h" +#include <sys/stat.h> #include "filestuff.h" #define NAMELEN(dirent) strlen ((dirent)->d_name) |