メインページ   クラス階層   構成   ファイル一覧   構成メンバ   ファイルメンバ  

sysdir.h

解説を見る。
00001 /*
00002 
00003 Copyright (C) 1996, 1997 John W. Eaton
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 2, or (at your option) any
00010 later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, write to the Free
00019 Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00020 
00021 */
00022 
00023 #if !defined (octave_sysdir_h)
00024 #define octave_sysdir_h 1
00025 
00026 // This mess suggested by the autoconf manual.
00027 
00028 // unistd.h defines _POSIX_VERSION on POSIX.1 systems.
00029 
00030 #ifdef HAVE_UNISTD_H
00031 #ifdef HAVE_SYS_TYPES_H
00032 #include <sys/types.h>
00033 #endif
00034 #include <unistd.h>
00035 #endif
00036 
00037 #if defined (HAVE_DIRENT_H) || defined (_POSIX_VERSION)
00038 #include <dirent.h>
00039 #define NLENGTH(dirent) (strlen((dirent)->d_name))
00040 #else
00041 #define dirent direct
00042 #define NLENGTH(dirent) ((dirent)->d_namlen)
00043 #if defined (HAVE_SYS_NDIR_H)
00044 #include <sys/ndir.h>
00045 #endif
00046 #if defined (HAVE_SYS_DIR_H)
00047 #include <sys/dir.h>
00048 #endif
00049 #if defined (HAVE_NDIR_H)
00050 #include <ndir.h>
00051 #endif
00052 #endif
00053 
00054 #endif
00055 
00056 /*
00057 ;;; Local Variables: ***
00058 ;;; mode: C++ ***
00059 ;;; End: ***
00060 */

Wed Dec 29 11:52:20 2004に生成されました。 doxygen1.2.18
SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送