From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 4F4B581799 for ; Sat, 27 Jul 2013 16:41:43 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of monnier.florent@gmail.com) identity=pra; client-ip=209.85.212.177; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="monnier.florent@gmail.com"; x-sender="monnier.florent@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of monnier.florent@gmail.com designates 209.85.212.177 as permitted sender) identity=mailfrom; client-ip=209.85.212.177; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="monnier.florent@gmail.com"; x-sender="monnier.florent@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wi0-f177.google.com) identity=helo; client-ip=209.85.212.177; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="monnier.florent@gmail.com"; x-sender="postmaster@mail-wi0-f177.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuoBANPb81HRVdSxk2dsb2JhbABbhAuDD7pOgRAIFg4BAQEBBwsLCRQEJIIkAQEFIx0BGx0BAwwGBQsNAgImAgIiAREBBQEcBogQAQMPmx6MAE+Cf4QZChknDWSHdAEFDIEcjlUHgmOBIgOXX49nFimEPDo X-IPAS-Result: AuoBANPb81HRVdSxk2dsb2JhbABbhAuDD7pOgRAIFg4BAQEBBwsLCRQEJIIkAQEFIx0BGx0BAwwGBQsNAgImAgIiAREBBQEcBogQAQMPmx6MAE+Cf4QZChknDWSHdAEFDIEcjlUHgmOBIgOXX49nFimEPDo X-IronPort-AV: E=Sophos;i="4.89,757,1367964000"; d="scan'208";a="27543008" Received: from mail-wi0-f177.google.com ([209.85.212.177]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 27 Jul 2013 16:41:42 +0200 Received: by mail-wi0-f177.google.com with SMTP id hq12so1082891wib.10 for ; Sat, 27 Jul 2013 07:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=6OcYhfYKycg6Nkpj17RO3ho0W31yuCLY8TlQzQGWA1Y=; b=x5wJ2RbgOQNH5BLyIJbXpIu0tqLQZno0NPoagTF9JQw6pkGjUYedcdMidRJW1ONiqm EdTVq2bUrJzWT2hlO3mJrsYu3RF2Rp1eqOITZKKzW+U/UlCenMIea5LJAs3/pL8arT29 /pf5Gxigy+D33w6xqZR9LmH2EcTaGymp+xDig7Ci5AJOvfv09yhQc7upclim0jO772KK pbZTzCTVUV7EWbf34GonPUfQD3/T0uMK59KKZFBybKb988BwRtwbkupILIQrNxJrABK+ SiFavIRsueeeBVdwGymg5bhfK7zU69ft+/MDkMBUQNnW/HpYmH+N7Hb9czuyCiU0hDmz P4kg== MIME-Version: 1.0 X-Received: by 10.194.242.134 with SMTP id wq6mr37295672wjc.94.1374936102176; Sat, 27 Jul 2013 07:41:42 -0700 (PDT) Received: by 10.194.80.36 with HTTP; Sat, 27 Jul 2013 07:41:42 -0700 (PDT) In-Reply-To: <20130727181711.65d8456f@kiwi.local.tld> References: <20130727181711.65d8456f@kiwi.local.tld> Date: Sat, 27 Jul 2013 16:41:42 +0200 Message-ID: From: Florent Monnier To: ygrek Cc: caml-list@inria.fr Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Validation-by: monnier.florent@gmail.com Subject: Re: [Caml-list] portable truncate 2013/07/27, ygrek wrote: > On Fri, 26 Jul 2013 12:35:03 +0200 > Florent Monnier wrote: > >> I would like to know how to truncate a file under MS/Windows. > > There is a patch sitting for ExtUnix implementing ftruncate. > if you are willing to test it - it could be integrated into extunix > and maybe further find it's way into upstream. Sorry I don't know how to switch language to english in Cygwin. On Linux I export LANG and/or LANGUAGE but here it doesn't do the trick. $ sh configure 'C:\cygwin\bin\flexlink' n'est pas reconnu en tant que commande interne ou externe, un programme ex=E2=96=92cutable ou un fichier de commandes. 'C:\cygwin\bin\flexlink' n'est pas reconnu en tant que commande interne ou externe, un programme ex=E2=96=92cutable ou un fichier de commandes. 'C:\cygwin\bin\flexlink' n'est pas reconnu en tant que commande interne ou externe, un programme ex=E2=96=92cutable ou un fichier de commandes. E: Field 'native_dynlink' is not set: Field 'flexdll_version' is not set: Command 'C:\cygwin\bin\flexlink -help > "C:\cygwin\tmp\oasis-374005.txt"' terminated with error code 1 $ which flexlink /usr/bin/flexlink $ ls c:/cygwin/bin/flexlink c:/cygwin/bin/flexlink* --=20 Regards