annotate liboctave/sysdir.h @ 14193:72aebe619641 stable rc-3-6-0-0

3.6.0-rc0 release candidate * configure.ac (AC_INIT): Version is now 3.6.0-rc0. (OCTAVE_RELEASE_DATE): Now 2012-01-10. (OCTAVE_API_VERSION_NUMBER): Now 47.
author John W. Eaton <jwe@octave.org>
date Tue, 10 Jan 2012 16:43:41 -0500
parents 72c96de7a403
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1354
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
1 /*
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
2
14138
72c96de7a403 maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents: 11523
diff changeset
3 Copyright (C) 1995-2012 John W. Eaton
1354
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
4
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
5 This file is part of Octave.
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
6
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
7 Octave is free software; you can redistribute it and/or modify it
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5307
diff changeset
9 Free Software Foundation; either version 3 of the License, or (at your
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5307
diff changeset
10 option) any later version.
1354
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
11
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
12 Octave is distributed in the hope that it will be useful, but WITHOUT
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
15 for more details.
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
16
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5307
diff changeset
18 along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 5307
diff changeset
19 <http://www.gnu.org/licenses/>.
1354
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
20
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
21 */
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
22
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
23 #if !defined (octave_sysdir_h)
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
24 #define octave_sysdir_h 1
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
25
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
26 // This mess suggested by the autoconf manual.
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
27
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
28 // unistd.h defines _POSIX_VERSION on POSIX.1 systems.
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
29
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
30 #include <sys/types.h>
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
31 #include <unistd.h>
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
32
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
33 #if defined (HAVE_DIRENT_H) || defined (_POSIX_VERSION)
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
34 #include <dirent.h>
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
35 #define NLENGTH(dirent) (strlen((dirent)->d_name))
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
36 #else
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
37 #define dirent direct
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
38 #define NLENGTH(dirent) ((dirent)->d_namlen)
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
39 #if defined (HAVE_SYS_NDIR_H)
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
40 #include <sys/ndir.h>
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
41 #endif
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
42 #if defined (HAVE_SYS_DIR_H)
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
43 #include <sys/dir.h>
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
44 #endif
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
45 #if defined (HAVE_NDIR_H)
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
46 #include <ndir.h>
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
47 #endif
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
48 #endif
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
49
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
50 #endif