bugGNU Octave - Bugs: bug #45054, mkfifo: Document that MODE is in...

 
 

bug #45054: mkfifo: Document that MODE is in base 10

Submitted by:  None
Submitted on:  Fri 08 May 2015 07:45:51 AM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 17 May 2015 05:09:02 PM UTC, comment #3:

I documented the decimal argument to mkfifo on the stable branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/b597bd161a5f).

On the development branch, I changed mkfifo to use an octal argument which matches the UNIX function (http://hg.savannah.gnu.org/hgweb/octave/rev/d9f35ceff9e1).

Rik <rik5>
Project Administrator
Tue 12 May 2015 12:19:32 AM UTC, comment #2:

Rather than document it, shouldn't we change the behavior of mkfifo to treat the input mode argument as octal? This would more closely follow the relevant system library call, and it is also the way we handle arguments in chmod where the mode is interpreted as octal.

Rik <rik5>
Project Administrator
Fri 08 May 2015 10:26:18 AM UTC, comment #1:

Andreas explained this recently to a user on stackoverflow and provided an example. Maybe it could be reused to improve mkfifo help text

https://stackoverflow.com/questions/30110340/mkfifo-in-gnu-octave

Carnë Draug <carandraug>
Project Member
Fri 08 May 2015 07:45:51 AM UTC, original submission:

I think the doc should mention that MODE is interpreted as base10 integer so the user has to call

To get the expected "prw-r--r--" modestr. Perhaps it could also mention that the umask is also used.

man 3 mkfifo:

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 17 May 2015 05:09:02 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1