This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: access port 127.0.0.1:1052 (cygserver question) <PLEASE REPLY TO THIS ONE>


On Thu, Jul 04, 2002 at 11:27:28AM +0100, Conrad Scott wrote:
> "Corinna Vinschen" <vinschen@redhat.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 . . . :-)

Urgh.

> 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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]