# HG changeset patch # User John W. Eaton # Date 1264061216 18000 # Node ID 326746625a51b244dc523f821d37959d8b4e2478 # Parent 6bd86b6287b15936b14dcb24d23c2e3d2a365fce file-ops.cc cleanups diff -r 6bd86b6287b1 -r 326746625a51 ChangeLog --- a/ChangeLog Thu Jan 21 02:53:37 2010 -0500 +++ b/ChangeLog Thu Jan 21 03:06:56 2010 -0500 @@ -1,3 +1,9 @@ +2010-01-21 John W. Eaton + + * configure.ac: Delete checks for rename, link, readlink, rmdir, + strcasecmp, stricmp, strncasecmp, strnicmp, strptime, symlink, + and unlink. + 2010-01-21 John W. Eaton * bootstrap.conf (gnulib_modules): Include pathmax and readlink diff -r 6bd86b6287b1 -r 326746625a51 configure.ac --- a/configure.ac Thu Jan 21 02:53:37 2010 -0500 +++ b/configure.ac Thu Jan 21 03:06:56 2010 -0500 @@ -1501,13 +1501,12 @@ chmod dup2 endgrent endpwent execvp expm1 expm1f fcntl fork getcwd \ getegid geteuid getgid getgrent getgrgid getgrnam getpgrp getpid \ getppid getpwent getpwuid getuid getwd _kbhit kill \ - lgamma lgammaf lgamma_r lgammaf_r link localtime_r log1p log1pf \ - memmove mkstemp on_exit pipe poll putenv raise readlink \ - realpath rename resolvepath rindex rmdir roundl select setgrent setlocale \ + lgamma lgammaf lgamma_r lgammaf_r localtime_r log1p log1pf \ + memmove mkstemp on_exit pipe poll putenv raise \ + realpath resolvepath rindex roundl select setgrent setlocale \ setpwent setvbuf sigaction siglongjmp sigpending sigprocmask sigsuspend \ - snprintf strcasecmp strdup strerror stricmp strncasecmp \ - strnicmp strptime strsignal symlink tempnam tgammaf trunc umask \ - uname unlink usleep utime vfprintf vsprintf vsnprintf waitpid \ + snprintf strdup strerror strsignal tempnam tgammaf trunc umask \ + uname usleep utime vfprintf vsprintf vsnprintf waitpid \ _chmod _snprintf x_utime _utime32) AC_LANG_PUSH(C++) diff -r 6bd86b6287b1 -r 326746625a51 liboctave/ChangeLog --- a/liboctave/ChangeLog Thu Jan 21 02:53:37 2010 -0500 +++ b/liboctave/ChangeLog Thu Jan 21 03:06:56 2010 -0500 @@ -1,3 +1,8 @@ +2010-01-21 John W. Eaton + + * file-ops.cc: Don't include unistd.h. + (NOT_SUPPORTED): Delete unused macro. + 2010-01-21 John W. Eaton * lo-cutils.c (octave_tempnam): New funtion. diff -r 6bd86b6287b1 -r 326746625a51 liboctave/file-ops.cc --- a/liboctave/file-ops.cc Thu Jan 21 02:53:37 2010 -0500 +++ b/liboctave/file-ops.cc Thu Jan 21 03:06:56 2010 -0500 @@ -37,11 +37,7 @@ #include #endif -#incluede - -#ifdef HAVE_UNISTD_H -#include -#endif +#include #include "dir-ops.h" #include "file-ops.h" @@ -91,9 +87,6 @@ return retval; } -#define NOT_SUPPORTED(nm) \ - nm ": not supported on this system" - // We provide a replacement for mkdir(). int