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

statdefs.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_statdefs_h)
00024 #define octave_statdefs_h 1
00025 
00026 #ifdef HAVE_SYS_TYPES_H
00027 #include <sys/types.h>
00028 #endif
00029 
00030 #ifdef HAVE_SYS_STAT_H
00031 #include <sys/stat.h>
00032 #endif
00033 
00034 #ifndef S_ISREG                 /* Doesn't have POSIX.1 stat stuff. */
00035 #ifndef mode_t
00036 #define mode_t unsigned short
00037 #endif
00038 #endif
00039 #if !defined(S_ISBLK) && defined(S_IFBLK)
00040 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
00041 #endif
00042 #if !defined(S_ISCHR) && defined(S_IFCHR)
00043 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
00044 #endif
00045 #if !defined(S_ISDIR) && defined(S_IFDIR)
00046 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
00047 #endif
00048 #if !defined(S_ISREG) && defined(S_IFREG)
00049 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
00050 #endif
00051 #if !defined(S_ISFIFO) && defined(S_IFIFO)
00052 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
00053 #endif
00054 #if !defined(S_ISLNK) && defined(S_IFLNK)
00055 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
00056 #endif
00057 #if !defined(S_ISSOCK) && defined(S_IFSOCK)
00058 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
00059 #endif
00060 #if !defined(S_ISMPB) && defined(S_IFMPB) /* V7 */
00061 #define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB)
00062 #define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC)
00063 #endif
00064 #if !defined(S_ISNWK) && defined(S_IFNWK) /* HP/UX */
00065 #define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK)
00066 #endif
00067 
00068 #ifndef S_ISLNK
00069 #undef HAVE_LSTAT
00070 #endif
00071 
00072 #endif
00073 
00074 /*
00075 ;;; Local Variables: ***
00076 ;;; mode: C ***
00077 ;;; End: ***
00078 */

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