Mercurial > hg > octave-nkf
comparison scripts/plot/util/private/__gnuplot_ginput__.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 | 9fc020886ae9 |
children |
comparison
equal
deleted
inserted
replaced
20409:5fb4bc5f70ce | 20410:d9f35ceff9e1 |
---|---|
61 endif | 61 endif |
62 | 62 |
63 if (use_mkfifo) | 63 if (use_mkfifo) |
64 gpin_name = tempname (); | 64 gpin_name = tempname (); |
65 | 65 |
66 ##Mode: 6*8*8 == 0600 | 66 [err, msg] = mkfifo (gpin_name, 600); |
67 [err, msg] = mkfifo (gpin_name, 6*8*8); | |
68 | 67 |
69 if (err) | 68 if (err) |
70 error ("ginput: Can not open fifo (%s)", msg); | 69 error ("ginput: Can not open fifo (%s)", msg); |
71 endif | 70 endif |
72 endif | 71 endif |