Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: cygwin AT cygwin DOT com Subject: cygwin_attach_fd_to_handle(), mmap() Message-ID: <20040220173530.GI813@cronosys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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/