comparison liboctave/cmd-hist.cc @ 10411:479cc8a0a846

use gnulib namespace
author John W. Eaton <jwe@octave.org>
date Mon, 15 Mar 2010 15:57:23 -0400
parents 07ebe522dac2
children 12d25a1d84bf
comparison
equal deleted inserted replaced
10410:b3ec24dc305a 10411:479cc8a0a846
289 289
290 if (! fs) 290 if (! fs)
291 { 291 {
292 int tem; 292 int tem;
293 293
294 tem = open (f.c_str (), O_CREAT, 0666); 294 tem = gnulib::open (f.c_str (), O_CREAT, 0666);
295 close (tem); 295 gnulib::close (tem);
296 } 296 }
297 297
298 int status 298 int status
299 = ::octave_append_history (lines_this_session, f.c_str ()); 299 = ::octave_append_history (lines_this_session, f.c_str ());
300 300
805 } 805 }
806 806
807 void 807 void
808 command_history::error (int err_num) 808 command_history::error (int err_num)
809 { 809 {
810 (*current_liboctave_error_handler) ("%s", strerror (err_num)); 810 (*current_liboctave_error_handler) ("%s", gnulib::strerror (err_num));
811 } 811 }
812 812
813 void 813 void
814 command_history::error (const std::string& s) 814 command_history::error (const std::string& s)
815 { 815 {