Mail Archives: cygwin-developers/2002/07/04/06:34:35

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Date: Thu, 4 Jul 2002 12:34:28 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: access port (cygserver question) <PLEASE REPLY TO THIS ONE>
Message-ID: <>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <20020704052424 DOT GA15450 AT redhat DOT com> <00e601c2232d$a7c5be10$2300a8c0 AT LAPTOP> <010001c2233f$75231360$6132bc3e AT BABEL> <20020704115207 DOT O21857 AT cygbert DOT vinschen DOT de> <013801c22341$e3722430$6132bc3e AT BABEL> <20020704120624 DOT P21857 AT cygbert DOT vinschen DOT de> <018801c22345$661c1ff0$6132bc3e AT BABEL>
Mime-Version: 1.0
In-Reply-To: <018801c22345$661c1ff0$6132bc3e@BABEL>
User-Agent: Mutt/

On Thu, Jul 04, 2002 at 11:27:28AM +0100, Conrad Scott wrote:
> "Corinna Vinschen" <vinschen AT redhat DOT com> wrote:
> > Isn't that just going out of the way of rewriting some code in a
> > better way?  Just calling unlink() is somewhat ugly, isn't it?
> But if it works . . . :-)


> Despite that, agreed, it's my inherent laziness that jumped up and bit
> me.  I'll send it back to its kennel without any supper.
> I've also no idea as to how complex it would be to avoid using _open
> inside the socket code, e.g. does it currently work with file
> descriptors and so would using CreateFile require large scale changes?

Use HANDLE instead if int,
CreateFile instead of open
ReadFile instead of read
WriteFile instead of write
CloseHandle instead of close
Remove already existing calls to unlink

No, it doesn't look like a real large scale patch.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

- Raw text -

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