GDB (API)
/home/stan/gdb/src/gdb/common/gdb_dirent.h
Go to the documentation of this file.
00001 /* Portable <dirent.h>.
00002    Copyright (C) 2000-2013 Free Software Foundation, Inc.
00003 
00004    This file is part of GDB.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 3 of the License, or
00009    (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00018 
00019 #ifndef GDB_DIRENT_H
00020 #define GDB_DIRENT_H 1
00021 
00022 /* See description of `AC_HEADER_DIRENT' in the Autoconf manual.  */
00023 #ifdef HAVE_DIRENT_H
00024 # include <dirent.h>            /* ARI: dirent.h */
00025 # define NAMELEN(dirent) strlen ((dirent)->d_name)    /* ARI: strlen d_name */
00026 #else
00027 # define dirent direct
00028 # define NAMELEN(dirent) (dirent)->d_namelen    /* ARI: d_namelen */
00029 # ifdef HAVE_SYS_NDIR_H
00030 #  include <sys/ndir.h>
00031 # endif
00032 # ifdef HAVE_SYS_DIR_H
00033 #  include <sys/dir.h>
00034 # endif
00035 # ifdef HAVE_NDIR_H
00036 #  include <ndir.h>
00037 # endif
00038 #endif
00039 
00040 #endif /* not GDB_DIRENT_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines