annotate liboctave/sysdir.h @ 1354:5b54091471dd

[project @ 1995-09-05 19:56:08 by jwe] Initial revision
author jwe
date Tue, 05 Sep 1995 19:56:08 +0000
parents
children 1281a23a34dd
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 // sysdir.h -*- C++ -*-
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
2 /*
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
3
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
5
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
6 This file is part of Octave.
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
7
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
8 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
9 under the terms of the GNU General Public License as published by the
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
10 Free Software Foundation; either version 2, or (at your option) any
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
11 later version.
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
12
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
13 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
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
15 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
16 for more details.
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
17
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
19 along with Octave; see the file COPYING. If not, write to the Free
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
24 #if !defined (octave_sysdir_h)
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
25 #define octave_sysdir_h 1
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
26
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
27 // This mess suggested by the autoconf manual.
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
28
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
29 // unistd.h defines _POSIX_VERSION on POSIX.1 systems.
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
30
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
31 #ifdef HAVE_UNISTD_H
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
32 #include <sys/types.h>
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
33 #include <unistd.h>
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
34 #endif
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
35
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
36 #if defined (HAVE_DIRENT_H) || defined (_POSIX_VERSION)
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
37 #include <dirent.h>
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
38 #define NLENGTH(dirent) (strlen((dirent)->d_name))
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
39 #else
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
40 #define dirent direct
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
41 #define NLENGTH(dirent) ((dirent)->d_namlen)
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
42 #if defined (HAVE_SYS_NDIR_H)
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
43 #include <sys/ndir.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_SYS_DIR_H)
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
46 #include <sys/dir.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 #if defined (HAVE_NDIR_H)
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
49 #include <ndir.h>
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
50 #endif
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
51 #endif
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
52
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
53 #endif
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
54
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
55 /*
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
56 ;;; Local Variables: ***
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
57 ;;; mode: C++ ***
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
58 ;;; page-delimiter: "^/\\*" ***
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
59 ;;; End: ***
5b54091471dd [project @ 1995-09-05 19:56:08 by jwe]
jwe
parents:
diff changeset
60 */