octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47614] pipe() does not work on Windows


From: Tatsuro MATSUOKA
Subject: [Octave-bug-tracker] [bug #47614] pipe() does not work on Windows
Date: Mon, 04 Apr 2016 03:31:42 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36

Follow-up Comment #2, bug #47614 (project octave):

A little struggle:


octave_syscalls::pipe (fid, msg)


is defined in oct-syscalls.cc 
http://octave.org/doxygen/4.0/d5/d5e/oct-syscalls_8cc_source.html


  222 int
  223 octave_syscalls::pipe (int *fildes)
  224 {
  225   std::string msg;
  226   return pipe (fildes, msg);
  227 }
  228 
  229 int
  230 octave_syscalls::pipe (int *fildes, std::string& msg)
  231 {
  232   msg = std::string ();
  233 
  234   int status = -1;
  235 
  236 #if defined (HAVE_PIPE)
  237   status = ::pipe (fildes);
  238 
  239   if (status < 0)
  240     msg = gnulib::strerror (errno);
  241 #else
  242   msg = NOT_SUPPORTED ("pipe");
  243 #endif
  244 
  245   return status;
  246 }




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47614>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]