X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=xAuPtj1pmC3JM1/G if/z3uhP3rkFwzbWigZDSl+EIcsv4rihCZ3jsgNV3Nc57waRlYW+OuudRV/rYPjg yOMh6UjWWPatTjiq+uKoXkZFD5IodmMkVwYscAlFLU8LefOzMNBh0shuxT6/hAza U5gsVjcwicdM3b4LXesnWEqD0QQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=default; bh=8qEbpCo/Vly/FS3ERSYNGw z3rFo=; b=qg2+2XwuBicKugtO7oQ5bCH443nkHteyKw2wXUrEh8vNx+Sr3Axozw 8vnYXaFiq/lYNmJ9Ia08PPorKaMj2e5VPGjK9rbryuNG1LnFh0oooWGiQkdfO9qf 11ndCZTGPybMPZ28pDx21GJj1GGt2+ACPKPUArLYUaB2rjr/xafNo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 X-HELO: vms173019pub.verizon.net X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=ZJdgQs+z c=1 sm=1 tr=0 a=Z9UJdt/jcW91Hd6r4aN9qw==:117 a=vP6ySPhpAh4A:10 a=N659UExz7-8A:10 a=w_pzkKWiAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=h1PgugrvaO0A:10 a=Ycqq0OrC0olYl6zz0e4A:9 a=pILNOxqGKmIA:10 a=zvuQ_vupYScA:10 Message-id: <5559FB9E.3040200@cygwin.com> Date: Mon, 18 May 2015 10:47:58 -0400 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: File operations on a Windows Driver (character device) References: In-reply-to: Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 05/18/2015 05:42 AM, Alessio Faina wrote: > Hello everyone, > > I'm developing a port of a FreeBSD/Linux application that consists of > two parts: a kernel and a user land part. > The kernel part is build as a WDM driver and is compiled with VS2013 > and WDK 8.1: the userspace is going to > be compiled under Cygwin for compatibility with user land programs > already written for other OSs. > > My problem is that the user space program invokes Open(), ioctl(), > mmap/munmap(), select() and poll(). > > I've build a test Win32 app to open with CreateFile the DosDevice with > the "\\\\.\\uniioctl" name and everything goes fine, > but I've tried to do the same thing with Open(...) with a lot of > variants (\\DosDevice\\uniioctl, \dev\uniioctl....) but I'm > unable to open the character device. There is some way to do this? Sorry I can't help with allot of specifics on your questions but I can say that when using Cygwin, you are best off if you stick to POSIX syntax and semantics and don't mix in Windows code and Windowisms. That includes path separators (i.e. use '/', not '\'). See this page in the User's Guide for information on how Cygwin handles device emulation too: -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple