delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/18/14:41:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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, 18 Jun 2004 11:37:41 -0700 (PDT)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Ctrl-Z fails to suspend Windows programs
In-Reply-To: <40D2D2D6.4030305@luukku.com>
Message-ID: <Pine.LNX.4.58.0406181129450.30937@ming.fruitbat.org>
References: <NUTMEG2ZBNCogiwHsqh0000045f AT NUTMEG DOT CAM DOT ARTIMI DOT COM> <40D2D2D6 DOT 4030305 AT luukku DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

On Fri, 18 Jun 2004, Jani tiainen wrote:

> Dave Korn wrote:
>
> >>-----Original Message-----
> >>From: cygwin-owner On Behalf Of Peter A. Castro
> >>Sent: 17 June 2004 21:13
> >>To: John Cooper
> >>Cc: cygwin
> >>Subject: RE: Ctrl-Z fails to suspend Windows programs
> >
> >>Anyway, can you point me to where you got this code example?
> >
> >>  [win32sdk]
> >>>ID: Q90493
> >
> >   I have a suspicion that this (and similar) code samples should probably
> > not be posted to this list; can everyone please snip their quotes of it.  It
> > looks a bit copyright to me.  So I googled the q number.  Found it in a
> > couple of places.
> >
> > http://support.microsoft.com/default.aspx?scid=kb;en-us;90493
> >
> > http://www.opensource.apple.com/darwinsource/10.3/tcsh-44/tcsh/win32/globals
> > .c
> >
> >   Oh dear.  Word-for-word copying of M$ proprietary source into an open
> > source project?  TCSH-L added.  I dunno what the status is of SDK source
> > code examples but it's certainly M$ copyright; someone should look at the
> > licensing terms.

Who said anything about "Word-for-word copying"?  Or were you only
refering to the inclusion of M$ source in the email?  I believe I already
stated I'd be re-writing the example to better suit a posix environment,
anyways.  I simply want the theory behind the example.  I'll derive my
own implementation from it.

> Well, if this is Microsoft code, following applies to it:
> <http://support.microsoft.com/default.aspx?scid=%2fsupport%2fmisc%2fcpyright.asp>
>
> And for Apple sources, there is also copyright notice that should follow
> if it is used (as usually people do).
>
> >   There's a different way of doing it, just frex.  Opening a file and
> > reading a few bytes out of a couple of structs is something that can be done
> > in standard posix C without even breaking a sweat.
>
> Surely. And it's far more efficient than done in 'M$'-way. Of course if
> reason or another image format changes own hack needs to be updated,
> M$-solution still works. (Or doesn't...)

And using standard posix C calls to read the file is exactly what I'll be
doing.  However, I need to see how I can include the Windows specific
structures.  That's the real magic behind this little example... well,
that and making zsh use it :)

-- 
Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood

--
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