delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/20/12:41:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 20 Feb 2004 12:35:30 -0500
From: "Jason M. Felice" <jfelice AT cronosys DOT com>
To: cygwin AT cygwin DOT com
Subject: cygwin_attach_fd_to_handle(), mmap()
Message-ID: <20040220173530.GI813@cronosys.com>
Mime-Version: 1.0
User-Agent: Mutt/1.5.4i

I'm working on getting the cygwin port of rsync to be able to back up
open files.  This requires the FILE_FLAG_BACKUP_SEMANTICS flag.  I've
got rsync opening the file, and I use cygwin_attach_fd_to_handle() to
get an fd, but the problem is that cygwin seems to map it as a "basic"
handle and not a "diskfile" handle, and therefore rsync's mmap fails.

I'm willing to do the coding, but I'd like to code a cygwin patch which
gets accepted, so I'm soliciting comments on the interface to do this.

Perhaps something like cygwin_attach_fd_to_handle_ex() which takes a
flags argument, and we provide a flag for mapping to a diskfile object?

Is there to muck with cygwin's internals and do this without modifying
cygwin?

-- 
 Jason M. Felice
 Cronosys, LLC <http://www.cronosys.com/>
 216.221.4600 x302

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019