Octave-Forge - Extra packages for GNU Octave | |
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code |
00001 /* -*- buffer-read-only: t -*- vi: set ro: */ 00002 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 00003 /* Define PATH_MAX somehow. Requires sys/types.h. 00004 Copyright (C) 1992, 1999, 2001, 2003, 2005, 2009-2011 Free Software 00005 Foundation, Inc. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3, or (at your option) 00010 any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software Foundation, 00019 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 00020 00021 #ifndef _PATHMAX_H 00022 # define _PATHMAX_H 00023 00024 # include <unistd.h> 00025 00026 # include <limits.h> 00027 00028 # ifndef _POSIX_PATH_MAX 00029 # define _POSIX_PATH_MAX 256 00030 # endif 00031 00032 # if !defined PATH_MAX && defined _PC_PATH_MAX && defined HAVE_PATHCONF 00033 # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 \ 00034 : pathconf ("/", _PC_PATH_MAX)) 00035 # endif 00036 00037 /* Don't include sys/param.h if it already has been. */ 00038 # if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN 00039 # include <sys/param.h> 00040 # endif 00041 00042 # if !defined PATH_MAX && defined MAXPATHLEN 00043 # define PATH_MAX MAXPATHLEN 00044 # endif 00045 00046 # ifndef PATH_MAX 00047 # define PATH_MAX _POSIX_PATH_MAX 00048 # endif 00049 00050 #endif /* _PATHMAX_H */