Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75354 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76887 invoked from network); 10 Jul 2014 09:19:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2014 09:19:08 -0000 Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hoa-project.net from 95.130.10.56 cause and error) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 95.130.10.56 host1.ip6-networks.net Received: from [95.130.10.56] ([95.130.10.56:44359] helo=host1.ip6-networks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/C1-65406-78A5EB35 for ; Thu, 10 Jul 2014 05:19:04 -0400 Received: from host1.ip6-networks.net (localhost [127.0.0.1]) by host1.ip6-networks.net (Postfix) with ESMTP id AF74A60C2F for ; Thu, 10 Jul 2014 11:19:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=hoa-project.net; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=dkim; bh= I/ynYugIBt+uxXRyAW2F8sDTE0xu6H7wEGO7pes/o9E=; b=JVTfh7VCi1KcKIW2 hoMxcj4xiwO6ix4Xot/WavgZVxIjiV2XMSC8mIprwo+pFvcULWuXwYxaURD+mLqI a/HgpVPAicYwavy9namqGPnQbtErIVF2OdBJJ8fJ9uSjIUm2Bnq0FZhlUGGiWgyf lXuJWBerS8t+6LRq7+gPzpIChqc= Received: from Hwhost2.local (5-40.0-85.cust.bluewin.ch [85.0.40.5]) by host1.ip6-networks.net (Postfix) with ESMTPSA id 5F3C960AA1 for ; Thu, 10 Jul 2014 11:19:00 +0200 (CEST) Message-ID: <53BE5A83.4020108@hoa-project.net> Date: Thu, 10 Jul 2014 11:18:59 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: internals@lists.php.net References: <53BB9F9C.20308@hoa-project.net> <53BBE484.2070807@hoa-project.net> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Implemented fallocate() syscall in streams From: ivan.enderlin@hoa-project.net ("Ivan Enderlin @ Hoa") On 10/07/2014 11:13, Julien Pauli wrote: >>> The difference between ftruncate and fallocate is meaningless in userland. >> If `fallocate` is proposed in the user-land, then it will be logical to have >> it in the stream wrapper API. That's it :-). > I admit that it would be nice for consistency, however I wonder how > users will interpret the difference between ftruncate and fallocate. Users will interpret exactly what the documentation says ;-). Since PHP is a scripting language, it is just a collection of cross-platform bindings (on the top of C APIs in the case of php-src). Some bindings are just more advanced ones than others. That's all. Someone will be likely to use `fallocate` some day, for sure. Cheers. -- Ivan Enderlin Developer of Hoa http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/