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 /* provide a chdir function that tries not to fail due to ENAMETOOLONG 00004 Copyright (C) 2004-2005, 2009-2011 Free Software Foundation, Inc. 00005 00006 This program is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00018 00019 /* Written by Jim Meyering. */ 00020 00021 #include <unistd.h> 00022 #include <limits.h> 00023 00024 #ifndef PATH_MAX 00025 # ifdef MAXPATHLEN 00026 # define PATH_MAX MAXPATHLEN 00027 # endif 00028 #endif 00029 00030 /* On systems without PATH_MAX, presume that chdir accepts 00031 arbitrarily long directory names. */ 00032 #ifndef PATH_MAX 00033 # define chdir_long(Dir) chdir (Dir) 00034 #else 00035 int chdir_long (char *dir); 00036 #endif