Mercurial > hg > octave-lyh
annotate liboctave/statdefs.h @ 10396:a0b51ac0f88a
optimize accumdim with summation
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 05 Mar 2010 12:31:30 +0100 |
parents | cbc402e64d83 |
children | fd0a3ac60b0e |
rev | line source |
---|---|
1 | 1 /* |
2 | |
7017 | 3 Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 2002, 2005, 2007 |
4 John W. Eaton | |
1 | 5 |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
7016 | 10 Free Software Foundation; either version 3 of the License, or (at your |
11 option) any later version. | |
1 | 12 |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
7016 | 19 along with Octave; see the file COPYING. If not, see |
20 <http://www.gnu.org/licenses/>. | |
1 | 21 |
22 */ | |
23 | |
383 | 24 #if !defined (octave_statdefs_h) |
25 #define octave_statdefs_h 1 | |
1 | 26 |
27 #include <sys/types.h> | |
2926 | 28 |
29 #ifdef HAVE_SYS_STAT_H | |
1 | 30 #include <sys/stat.h> |
2926 | 31 #endif |
1 | 32 |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
33 #ifndef S_ISREG /* Doesn't have POSIX.1 stat stuff. */ |
3225 | 34 #ifndef mode_t |
1 | 35 #define mode_t unsigned short |
36 #endif | |
3225 | 37 #endif |
1 | 38 #if !defined(S_ISBLK) && defined(S_IFBLK) |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
39 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) |
1 | 40 #endif |
41 #if !defined(S_ISCHR) && defined(S_IFCHR) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
42 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) |
1 | 43 #endif |
44 #if !defined(S_ISDIR) && defined(S_IFDIR) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
45 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) |
1 | 46 #endif |
47 #if !defined(S_ISREG) && defined(S_IFREG) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
48 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) |
1 | 49 #endif |
50 #if !defined(S_ISFIFO) && defined(S_IFIFO) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
51 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) |
1 | 52 #endif |
53 #if !defined(S_ISLNK) && defined(S_IFLNK) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
54 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) |
1 | 55 #endif |
56 #if !defined(S_ISSOCK) && defined(S_IFSOCK) | |
10312
cbc402e64d83
untabify liboctave header files
John W. Eaton <jwe@octave.org>
parents:
10182
diff
changeset
|
57 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) |
1 | 58 #endif |
59 #if !defined(S_ISMPB) && defined(S_IFMPB) /* V7 */ | |
60 #define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB) | |
61 #define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC) | |
62 #endif | |
63 #if !defined(S_ISNWK) && defined(S_IFNWK) /* HP/UX */ | |
64 #define S_ISNWK(m) (((m) & S_IFMT) == S_IFNWK) | |
65 #endif | |
66 | |
67 #ifndef S_ISLNK | |
4062 | 68 #undef HAVE_LSTAT |
1 | 69 #endif |
70 | |
71 #endif |