caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Jeremy Fincher" <tweedgeezer@hotmail.com>
To: jhspies@adept.co.za, caml-list@inria.fr
Subject: Re: [Caml-list] using open_out_gen, output_string and close_out
Date: Mon, 06 Aug 2001 20:36:58 -0400	[thread overview]
Message-ID: <F204txc1o8yfogkJXrR00000157@hotmail.com> (raw)

I believe your permissions are wrong.  I can't tell you what algorithm to 
use to determine the permissions number, but I know it has to include some 
bits for the file type (plain file, socket, pipe, directory, etc.)

When I want 0644 I use 33188.  That's all I can tell you.  I found that 
number by looking at the ST_MODE return value of the stat(2) call on a 
regular file that i knew was 0644 :)

Jeremy

># let l = open_out_gen [Open_creat;Open_append] 0o666 "/tmp/xx";;

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


             reply	other threads:[~2001-08-07  0:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-07  0:36 Jeremy Fincher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-08-07  8:33 Johann Spies
2001-08-06 20:37 Johann Spies
2001-08-07  7:36 ` Xavier Leroy
2001-08-07 10:46   ` Johann Spies

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F204txc1o8yfogkJXrR00000157@hotmail.com \
    --to=tweedgeezer@hotmail.com \
    --cc=caml-list@inria.fr \
    --cc=jhspies@adept.co.za \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).