chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] Re: #424: umask support


From: Chicken Trac
Subject: [Chicken-janitors] Re: #424: umask support
Date: Mon, 22 Nov 2010 12:11:48 -0000

#424: umask support
-----------------------------+----------------------------------------------
  Reporter:  mario           |       Owner:       
      Type:  change request  |      Status:  new  
  Priority:  major           |   Milestone:       
 Component:  core libraries  |     Version:  4.6.x
Resolution:                  |    Keywords:  umask
-----------------------------+----------------------------------------------

Comment(by mario):

 Hi Felix.  Thanks for bringing this up again and sorry for being quiet
 lately.

 My concerns are regarding to the behavior of umask in a multi-threaded
 environment and the API.

 Should it be possible to allow multiple threads to set different file
 creation modes? As far as I understand, Scsh allows that (I may be wrong,
 though).

 How should the umask support be implemented?  As Peter suggests (i.e.,
 having {{{file-creation-mode-mask}}} and a setter for it)?  Or just
 {{{set-file-creation-mode-mask!}}} which is just a direct binding to the
 {{{umask}}} syscall?

 Maybe the poll should contain more options, like:

  * I want umask support via {{{file-creation-mode}}} and a setter for it.
 Multiple threads share the same mask.
  * I want umask support via {{{file-creation-mode}}} and a setter for it.
 Each thread can set its own mask.
  * I want umask support via {{{set-file-creation-mode-mask!}}} (it changes
 the mask and returns the old mask -- a direct binding to the {{{umask}}}
 syscall). Each thread can set its own mask.
  * I want umask support via {{{set-file-creation-mode-mask!}}} (it changes
 the mask and returns the old mask -- a direct binding to the {{{umask}}}
 syscall). Multiple threads share the same mask.
  * I don't want umask support

 Or maybe we can discuss those options and reduce them to a smaller set
 before setting a poll (suggestion).  Maybe some of my concerns are just
 silly and can be safely ignored.

-- 
Ticket URL: <https://bugs.call-cc.org/ticket/424#comment:9>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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