DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 615EY6Ag1277033
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 615EY6Ag1277033
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=GxgHDA7G
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A5E04BA2E08
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1770302045;
	bh=tnv9+/TQD8zR590xyUF5whA/DS+iB6ZryxfaPrXLlA8=;
	h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=GxgHDA7GJ5nTwOrOCe03hypI1Hv7Iq5YYImhccJQYRTCzOK2y3wyni0feLxv/O7H4
	 dzg1QmBpaLB3h28xcdC5axJqvDwqID6EzX7Kf7ccUDecMyi0GbKjpZjGmxdaw5Jcdg
	 Fu+ysG9x9WZoCtzjNF884OGIhLeowEJAUMeXYFyU=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70A9C4BA2E1B
Date: Thu, 5 Feb 2026 15:33:47 +0100
To: cygwin@cygwin.com
Subject: Re: Cygwin sparse file support: Please support fcntl(..., F_FREESP,
 ...)
Message-ID: <aYSqS2_OPesYKYGe@calimero.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <CALXu0Ud81zLUaJ3DY1M3UPshBdEMHmQ1sYYDsvqQv9U3FnaMJA@mail.gmail.com>
 <CAHnbEGJ0PmtG7dCWQyVFasY0tSZVow1Gp61nDeMn=BK3U42Xxw@mail.gmail.com>
 <Z7MJSQVFRjZ4s_ko@calimero.vinschen.de>
 <CALXu0UeOFwKruiCUs=+8Hm2yA89tPXVtb=tAqfu-z+xE63o5=w@mail.gmail.com>
 <CALXu0Ucvsjrri6Ltie3ytsW_2PRbWLmX3yZE4EypVe0-WFjkeQ@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CALXu0Ucvsjrri6Ltie3ytsW_2PRbWLmX3yZE4EypVe0-WFjkeQ@mail.gmail.com>
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>
Content-Type: text/plain; charset="utf-8"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 615EY6Ag1277033

On Feb  5 08:41, Cedric Blancher via Cygwin wrote:
> On Thu, 5 Jun 2025 at 09:07, Cedric Blancher <cedric.blancher@gmail.com> wrote:
> >
> > On Mon, 17 Feb 2025 at 11:07, Corinna Vinschen via Cygwin
> > <cygwin@cygwin.com> wrote:
> > >
> > > On Feb 16 16:27, Sebastian Feld via Cygwin wrote:
> > > > On Sat, Feb 15, 2025 at 4:15 PM Cedric Blancher via Cygwin
> > > > <cygwin@cygwin.com> wrote:
> > > > >
> > > > > Good afternoon!
> > > > >
> > > > > Could Cygwin 3.6 please support fcntl(...,F_FREESP,...) and
> > > > > cntl(...,F_FREESP64,...), as specified in
> > > > > https://docs.oracle.com/cd/E19253-01/816-5167/fcntl-2/index.html
> > > > >
> > > > > Lots of older software from Solaris, SUPER/UX, CrayOS use F_FREESP for
> > > >
> > > > QNX and AIX support F_ALLOCSP and F_FREESP
> > > >
> > > > > punching a hole into a file, and IMO it'll be nice if this works for
> > > > > Cygwin out of the box.
> > > >
> > > > +1
> > > >
> > > > Please also add F_ALLOCSP and F_ALLOCSP64 to allocate space in a file.
> > > > Like F_FREESP and F_FREESP64 it takes a struct flock/flock64, so it's
> > > > a pretty straightforward API.
> > >
> > > No, we won't do that. We're not adding any new feature to 3.6 this
> > > close to the release.
> >
> > What about now? Could this be implemented for Cygwin 3.7, please?
> 
> Hello?

These are equivalent to the fallocate stuff.  Just add an #ifdef to
the source.  You'll have to do that on Linux anyway.

If you want this in Cygwin, please consider https://cygwin.com/acronyms/#PTC


Corinna

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

