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: Wed, 10 Nov 2010 09:46:35 -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):

 Peter suggested taking a look at how scsh implements umask.  The API
 documentation for umask in scsh is
 http://www.scsh.net/docu/html/man-Z-H-4.html#node_sec_3.5

 As far as I understand, scsh's umask is thread-safe (i.e., threads can set
 different masks).

 The primitive for getting the current mask is implemented like Peter
 suggests:

 {{{
 (define (process-umask)
   (let ((m (set-process-umask 0)))
     (set-process-umask m)
     m))
 }}}

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/424#comment:6>
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]