caml-list - the Caml user's mailing list
 help / Atom feed
* [Caml-list] Unix.truncate for Windows
@ 2018-07-25  9:59 Florent Monnier
  2018-07-25 10:36 ` Nicolás Ojeda Bär
  0 siblings, 1 reply; 2+ messages in thread
From: Florent Monnier @ 2018-07-25  9:59 UTC (permalink / raw)
  To: caml-list

Hi,

I wrote some stub code for the function Unix.truncate for Windows:

https://github.com/fccm/ocaml_unix_truncate_win32

I mainly found the code from Rosettacode:
https://rosettacode.org/wiki/Truncate_a_file#Windows

Now I would like to know if the upstream would be interested to get
this code included?
If yes, what's next? should I try to make the change to ocaml's git (I
would need some help then) or some upstream developer will do the job?

Regards
Florent Monnier

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Unix.truncate for Windows
  2018-07-25  9:59 [Caml-list] Unix.truncate for Windows Florent Monnier
@ 2018-07-25 10:36 ` Nicolás Ojeda Bär
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolás Ojeda Bär @ 2018-07-25 10:36 UTC (permalink / raw)
  To: monnier.florent; +Cc: OCaml Mailing List

Dear Florent,

Yes, it would be a nice to fill out the Windows implementation of Unix.truncate!

Best would be if you could open a PR to the official OCaml repository at

  https://github.com/ocaml/ocaml

General guidelines about the procedure are available at:

  https://github.com/ocaml/ocaml/blob/trunk/CONTRIBUTING.md

If you need any help with the mechanics of this or modifying the
compiler source code, I will be happy to lend you a hand, just let me
know.

Best wishes,
Nicolás






On Wed, Jul 25, 2018 at 11:59 AM Florent Monnier
<monnier.florent@gmail.com> wrote:
>
> Hi,
>
> I wrote some stub code for the function Unix.truncate for Windows:
>
> https://github.com/fccm/ocaml_unix_truncate_win32
>
> I mainly found the code from Rosettacode:
> https://rosettacode.org/wiki/Truncate_a_file#Windows
>
> Now I would like to know if the upstream would be interested to get
> this code included?
> If yes, what's next? should I try to make the change to ocaml's git (I
> would need some help then) or some upstream developer will do the job?
>
> Regards
> Florent Monnier
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-25  9:59 [Caml-list] Unix.truncate for Windows Florent Monnier
2018-07-25 10:36 ` Nicolás Ojeda Bär

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list

AGPL code for this site: git clone https://public-inbox.org/ public-inbox