diff scripts/plot/util/private/__gnuplot_get_var__.m @ 20410:d9f35ceff9e1

Change mkfifo to use an octal argument for MODE (bug #45054). * NEWS: Announce switch from decimal to octal MODE for mkfifo. * file-io.cc (convert): Add a FIXME note that this function is repeated in * syscalls.cc. * syscalls.cc (convert): New function to convert from one base to another. * syscalls.cc (Fmkfifo): Change docstring to note that MODE argument is now octal. Convert MODE from octal to decimal before calling octave_mkfifo(). Add BIST tests. * __gnuplot_get_var__.m, __gnuplot_ginput__.m: Change instances of MODE argument in m-files from decimal to octal.
author Rik <rik@octave.org>
date Sun, 17 May 2015 10:04:08 -0700
parents 4197fc428c7d
children
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_get_var__.m
+++ b/scripts/plot/util/private/__gnuplot_get_var__.m
@@ -52,8 +52,7 @@
   if (use_mkfifo)
     gpin_name = tempname ();
 
-    ## Mode: 0600 == 6*8*8
-    [err, msg] = mkfifo (gpin_name, 6*8*8);
+    [err, msg] = mkfifo (gpin_name, 600);
 
     if (err)
       error ("__gnuplot_get_var__: Can not make FIFO (%s)", msg);