Mercurial > hg > octave-lyh
changeset 10174:eb64bf1c6107
use unlink module from gnulib
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 21 Jan 2010 02:28:33 -0500 |
parents | 2b1f3f156aaf |
children | d354be89b2c3 |
files | ChangeLog bootstrap.conf liboctave/ChangeLog liboctave/file-ops.cc liboctave/lo-cutils.c liboctave/lo-utils.h |
diffstat | 6 files changed, 20 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-01-21 John W. Eaton <jwe@octave.org> + + * bootstrap.conf (gnulib_modules): Include unlink in the list. + 2010-01-21 John W. Eaton <jwe@octave.org> * bootstrap.conf (gnulib_modules): Include strptime in the list.
--- a/bootstrap.conf +++ b/bootstrap.conf @@ -33,6 +33,7 @@ strftime strptime times + unlink round "
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,9 @@ +2010-01-21 John W. Eaton <jwe@octave.org> + + * lo-cutils.c (octave_unlink): New funtion. + * lo-utils.h: Provide decl. + * file-ops.cc (file_ops::unlink): Call octave_unlink. + 2010-01-21 John W. Eaton <jwe@octave.org> * lo-cutils.c (octave_umask): New funtion.
--- a/liboctave/file-ops.cc +++ b/liboctave/file-ops.cc @@ -833,17 +833,13 @@ int status = -1; -#if defined (HAVE_UNLINK) - status = ::unlink (name.c_str ()); + status = octave_unlink (name.c_str ()); if (status < 0) { using namespace std; msg = ::strerror (errno); } -#else - msg = NOT_SUPPORTED ("unlink"); -#endif return status; }