Mercurial > hg > octave-avbm
changeset 10179:326746625a51
file-ops.cc cleanups
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 21 Jan 2010 03:06:56 -0500 |
parents | 6bd86b6287b1 |
children | be952ce74023 |
files | ChangeLog configure.ac liboctave/ChangeLog liboctave/file-ops.cc |
diffstat | 4 files changed, 17 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-01-21 John W. Eaton <jwe@octave.org> + + * configure.ac: Delete checks for rename, link, readlink, rmdir, + strcasecmp, stricmp, strncasecmp, strnicmp, strptime, symlink, + and unlink. + 2010-01-21 John W. Eaton <jwe@octave.org> * bootstrap.conf (gnulib_modules): Include pathmax and readlink
--- a/configure.ac +++ b/configure.ac @@ -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++)
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2010-01-21 John W. Eaton <jwe@octave.org> + + * file-ops.cc: Don't include unistd.h. + (NOT_SUPPORTED): Delete unused macro. + 2010-01-21 John W. Eaton <jwe@octave.org> * lo-cutils.c (octave_tempnam): New funtion.
--- a/liboctave/file-ops.cc +++ b/liboctave/file-ops.cc @@ -37,11 +37,7 @@ #include <sys/types.h> #endif -#incluede <pathmax.h> - -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif +#include <pathmax.h> #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