Mercurial > hg > octave-lyh
diff src/oct-procbuf.cc @ 10411:479cc8a0a846
use gnulib namespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 15 Mar 2010 15:57:23 -0400 |
parents | 57a59eae83cc |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/src/oct-procbuf.cc +++ b/src/oct-procbuf.cc @@ -105,12 +105,12 @@ if (proc_pid == 0) { - ::close (parent_end); + gnulib::close (parent_end); if (child_end != child_std_end) { - ::dup2 (child_end, child_std_end); - ::close (child_end); + gnulib::dup2 (child_end, child_std_end); + gnulib::close (child_end); } while (octave_procbuf_list) @@ -119,7 +119,7 @@ if (fp) { - ::fclose (fp); + gnulib::fclose (fp); fp = 0; } @@ -131,11 +131,11 @@ exit (127); } - ::close (child_end); + gnulib::close (child_end); if (proc_pid < 0) { - ::close (parent_end); + gnulib::close (parent_end); return 0; } @@ -193,7 +193,7 @@ } } - if (status == 0 && ::fclose (f) == 0) + if (status == 0 && gnulib::fclose (f) == 0) { using namespace std;