can not install xfree

2002-01-24 Thread Marco Szabo

Hello,

I´ve got a problem with xfree. (latest version, cygwin also the
latest version). I followed the Instruction but when I want to start
xfree with startx nothing happened.
The errors are:
xinit: Coonection refused(errno 111): unable to connect to X server.
xinit: No such process(errno 3): Server error


-- Marco Szabo, [EMAIL PROTECTED] on 01.24.2002


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: stop cygwin sed adding ^M

2002-01-24 Thread J S

OK I think I know why I had this problem now. You're saying if my drive is 
mounted in text mode then sed will insert ^M at the end of lines.
This won't happen though if the drive is mounted in bin mode. Right?

In that case I have one more question. When I start cygwin as an 
administrator, my c drive is mounted as:

c: on /cygdrive/c type user (binmode,noumount)

but if I'm logged on as a local user, it's mounted in text mode.
How can I change this as a local user to be mounted in binary?

Thanks,

JS.

>From: Christopher Faylor <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: stop cygwin sed adding ^M
>Date: Wed, 23 Jan 2002 13:26:31 -0500
>MIME-Version: 1.0
>Received: from [209.249.29.67] by hotmail.com (3.2) with ESMTP id 
>MHotMailBE184B9300114136E853D1F91D430BCD0; Wed, 23 Jan 2002 10:27:31 -0800
>Received: (qmail 2849 invoked by alias); 23 Jan 2002 18:26:35 -
>Received: (qmail 2783 invoked from network); 23 Jan 2002 18:26:34 -
>Received: from unknown (HELO lacrosse.corp.redhat.com) (12.107.208.154)  by 
>sources.redhat.com with SMTP; 23 Jan 2002 18:26:34 -
>Received: from cgf.cipe.redhat.com (dhcpd247.meridian.redhat.com 
>[172.16.47.247])by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id 
>g0NIQY319737for <[EMAIL PROTECTED]>; Wed, 23 Jan 2002 13:26:34 -0500
>Received: (from cgf@localhost)by cgf.cipe.redhat.com (8.11.6/8.8.7) id 
>g0NIQVw17956for [EMAIL PROTECTED]; Wed, 23 Jan 2002 13:26:31 -0500
>From cygwin-return-43764-vervoom Wed, 23 Jan 2002 10:29:22 -0800
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: 
>
>List-Subscribe: 
>List-Archive: 
>List-Post: 
>List-Help: , 
>
>Sender: [EMAIL PROTECTED]
>Delivered-To: mailing list [EMAIL PROTECTED]
>Message-ID: <[EMAIL PROTECTED]>
>Mail-Followup-To: [EMAIL PROTECTED]
>References: <[EMAIL PROTECTED]> 
><[EMAIL PROTECTED]> 
><[EMAIL PROTECTED]>
>In-Reply-To: <[EMAIL PROTECTED]>
>User-Agent: Mutt/1.3.23.1i
>
>On Wed, Jan 23, 2002 at 07:14:18PM +0100, Corinna Vinschen wrote:
> >On Wed, Jan 23, 2002 at 12:54:42PM -0500, Chris Faylor wrote:
> >> On Wed, Jan 23, 2002 at 03:58:57PM +0100, Schaible, Jorg wrote:
> >> >May be you should read the FAQ regarding text mounts ??
> >>
> >> sed is a fully ported utility.  It is supposed to read CRLF text on
> >> standard input and produce only UNIX-style newline endings on standard
> >> output.
> >
> >There's one situation I know that it actually converts LF to CRLF.
> >
> >Say, you have a file foo:
> >
> >$ od -c foo
> >000   h   a   l   l   o  \n
> >006
> >
> >and your currently in a textmode mounted directory, then
> >
> >$ sed -e 's/ll/nn/' foo > bar
> >
> >creates actually a CRLF file bar:
> >
> >$ od -c bar
> >000   h   a   n   n   o  \r  \n
> >007
> >
> >and that's defined behaviour.  That isn't even going on in sed.
> >The stdio redirection has already happened in the shell and sed
> >is just using that file descriptor.
>
>I stand corrected.
>
>Sorry for the misinformation.
>
>cgf
>
>--
>Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting: http://cygwin.com/bugs.html
>Documentation: http://cygwin.com/docs.html
>FAQ:   http://cygwin.com/faq/
>


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: stop cygwin sed adding ^M

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 09:20:43AM +, J S wrote:
> OK I think I know why I had this problem now. You're saying if my drive is 
> mounted in text mode then sed will insert ^M at the end of lines.
> This won't happen though if the drive is mounted in bin mode. Right?
> 
> In that case I have one more question. When I start cygwin as an 
> administrator, my c drive is mounted as:
> 
> c: on /cygdrive/c type user (binmode,noumount)
> 
> but if I'm logged on as a local user, it's mounted in text mode.
> How can I change this as a local user to be mounted in binary?

mount --change-cygdrive-prefix -b /cygdrive

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: can not install xfree

2002-01-24 Thread Corinna Vinschen

Wrong mailing list.  Try [EMAIL PROTECTED]

Corinna

On Thu, Jan 24, 2002 at 10:15:27AM +0100, Marco Szabo wrote:
> Hello,
> 
> I´ve got a problem with xfree. (latest version, cygwin also the 
> latest version). I followed the Instruction but when I want to start 
> xfree with startx nothing happened.
> The errors are:
> xinit: Coonection refused(errno 111): unable to connect to X server.
> xinit: No such process(errno 3): Server error
> 
> 
> -- Marco Szabo, [EMAIL PROTECTED] on 01.24.2002
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




[ANNOUNCEMENT] Updated: OpenSSH-3.0.2p1-5

2002-01-24 Thread Corinna Vinschen

I've updated the version of OpenSSH in cygwin/latest to 3.0.2p1-5.

This version is now using the POSIX regex API offered by the Cygwin
DLL beginning with version 1.3.7.  Therefore, the regex package isn't
needed anymore to build and run OpenSSH-3.0.2p1-5.


  OpenSSH-3.0.2p1-5 does NOT run with Cygwin versions prior to 1.3.7!!


To update your installation, click on the "Install Cygwin now" link on
the http://sources.redhat.com/cygwin web page.  This downloads setup.exe
to your system.  The, run setup and answer all of the questions.

Note that we do not allow downloads from sources.redhat.com (aka
cygwin.com) due to bandwidth limitations.  This means that you will need
to find a mirror which has this update.

In the US, ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin/ is a
reliable high bandwidth connection.

In Germany,
ftp://ftp.uni-erlangen.de/pub/pc/gnuwin32/cygwin/mirrors/cygnus/ is
usually pretty good.

In the UK,
http://programming.ccp14.ac.uk/ftp-mirror/programming/cygwin/pub/cygwin/
is usually up-to-date within 48 hours.

If one of the above doesn't have the latest version of this package then
you can either wait for the site to be updated or find another mirror.

If you have questions or comments, please send them to the Cygwin
mailing list at:  [EMAIL PROTECTED] .  I would appreciate
if you would use this mailing list rather than emailing me directly.
This includes ideas and comments about the setup utility or Cygwin
in general.

If you want to make a point or ask a question the Cygwin mailing list is
the appropriate place.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe to the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: stop cygwin sed adding ^M

2002-01-24 Thread J S

Thanks for that. It's working now!
Could you tell me where this would have been set in the first place though?


>From: Corinna Vinschen <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: stop cygwin sed adding ^M
>Date: Thu, 24 Jan 2002 10:26:06 +0100
>MIME-Version: 1.0
>Received: from [209.249.29.67] by hotmail.com (3.2) with ESMTP id 
>MHotMailBE191E53008240043158D1F91D430C5F0; Thu, 24 Jan 2002 01:26:49 -0800
>Received: (qmail 2975 invoked by alias); 24 Jan 2002 09:26:09 -
>Received: (qmail 2943 invoked from network); 24 Jan 2002 09:26:08 -
>Received: from unknown (HELO cygbert.vinschen.de) (217.229.56.7)  by 
>sources.redhat.com with SMTP; 24 Jan 2002 09:26:08 -
>Received: (from corinna@localhost)by cygbert.vinschen.de 
>(8.11.6/8.9.3/Linux sendmail 8.9.3) id g0O9Q6f13631for [EMAIL PROTECTED]; 
>Thu, 24 Jan 2002 10:26:06 +0100
>From cygwin-return-43786-vervoom Thu, 24 Jan 2002 01:28:17 -0800
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: 
>
>List-Subscribe: 
>List-Archive: 
>List-Post: 
>List-Help: , 
>
>Sender: [EMAIL PROTECTED]
>Delivered-To: mailing list [EMAIL PROTECTED]
>Message-ID: <[EMAIL PROTECTED]>
>Mail-Followup-To: [EMAIL PROTECTED]
>References: <[EMAIL PROTECTED]>
>In-Reply-To: <[EMAIL PROTECTED]>
>User-Agent: Mutt/1.3.22.1i
>
>On Thu, Jan 24, 2002 at 09:20:43AM +, J S wrote:
> > OK I think I know why I had this problem now. You're saying if my drive 
>is
> > mounted in text mode then sed will insert ^M at the end of lines.
> > This won't happen though if the drive is mounted in bin mode. Right?
> >
> > In that case I have one more question. When I start cygwin as an
> > administrator, my c drive is mounted as:
> >
> > c: on /cygdrive/c type user (binmode,noumount)
> >
> > but if I'm logged on as a local user, it's mounted in text mode.
> > How can I change this as a local user to be mounted in binary?
>
>mount --change-cygdrive-prefix -b /cygdrive
>
>Corinna
>
>--
>Corinna Vinschen  Please, send mails regarding Cygwin to
>Cygwin Developermailto:[EMAIL PROTECTED]
>Red Hat, Inc.
>
>--
>Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting: http://cygwin.com/bugs.html
>Documentation: http://cygwin.com/docs.html
>FAQ:   http://cygwin.com/faq/
>


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




File mode judgement

2002-01-24 Thread Wu Yongwei

In the past, Cygwin seemed to judge whether a file is executable on a
combination of suffix and content. However, today when I reinstalled Cygwin,
I suddenly found that it no more did it. Now on a NTFS volume it depends
only on file attributes.

1) Is it a design change?

2) Is it possible to switch back to the old behaviour?

Thank you in advance. Reply to this mail address, please.

Best regards

Wu Yongwei


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: File mode judgement

2002-01-24 Thread Robert Collins


===
- Original Message -
From: "Wu Yongwei" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 9:10 PM
Subject: File mode judgement


> In the past, Cygwin seemed to judge whether a file is executable on a
> combination of suffix and content. However, today when I reinstalled
Cygwin,
> I suddenly found that it no more did it. Now on a NTFS volume it
depends
> only on file attributes.
>
> 1) Is it a design change?

Yes. It is much faster to look at file permissions first, and content
second. Thats what unix does. The change is activated by CYGWIN=ntsec.

> 2) Is it possible to switch back to the old behaviour?

AFAIK, no. It shouldn't be needed anyway, just use chmod to set the +x
bit on any executables you have.
Rob


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




unscubscribe

2002-01-24 Thread Rajesh M



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: gettimeofday() does not returns usec resolution

2002-01-24 Thread Lapo Luchini

> As long as the calibration only occurs when someone is using
> gettimeofday, not on every cygwin1.dll load, then that sounds fine to
> me.

I wouldn't call it "calibration" is just a quick call to the old
gettimeofday() and, yes, it's done only on the first call (the value is
retanied in a static variable)... so maybe you have 1-2 usec lost on the
first call.

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: rebuild libc.a with MB_CAPABLE defined

2002-01-24 Thread Kazuhiro Fujieda

>>> On Fri, 11 Jan 2002 12:22:39 +1100
>>> "Robert Collins" <[EMAIL PROTECTED]> said:

> At a guess, you'll need to do more than just define MB_CAPABLE. Chances
> are, it's disabled because cygwin is not MB_CAPABLE :}.

You misunderstand the role of the MB_CAPABLE definition in newlib.
The feature enabled by this definition can work on any platform.

  | AIST  Kazuhiro Fujieda <[EMAIL PROTECTED]>
  | HOKURIKU  Center for Information Science
o_/ 1990  Japan Advanced Institute of Science and Technology

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




mkpasswd - cannot contact Domain Controller

2002-01-24 Thread J S

Which Cygwin package does the source code for mkpasswd live in?

JS.

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: stop cygwin sed adding ^M

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 09:50:19AM +, J S wrote:
> Thanks for that. It's working now!
> Could you tell me where this would have been set in the first place though?

It could have been set by a previous DLL.  If you install
UNIX/for all it should only set the system cygdrive to
binary but older DLLs have set the user setting to a
standard textmode mount point by accident on the first
use.

Corinna

P.S.: Please strip your replies by unused parts of the mail
you reply to.  *Especially* remove overlengthy mail headers!

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: unscubscribe

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 03:56:17PM +0530, Rajesh M wrote:

You drew a blank.  Try again.

> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple

BUT READ THIS FIRST!

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: gettimeofday() does not returns usec resolution

2002-01-24 Thread Lapo Luchini

> >> Do you have an assignment on file with Red Hat?
> >Sorry but english knowledge doesn't let me understand "assignment on file", could
> >you explain it to me with other words?
> http://cygwin.com/contrib.html

Got it... I'll send one ASAP (-_- snail mail... when will a signed e-mail be accepted
as "legal"? -_-)

BTW: IANAL but the base for that gettimeofday() function is taken from Tim Prince's
message and the file is "Copyright (c) 1994-1998 Larry McVoy." as the source reads...

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




[ANNOUNCEMENT] Advance notice: Remove regex package on 2001-02-07

2002-01-24 Thread Corinna Vinschen



Since Cygwin 1.3.7, the Cygwin API contains the POSIX regex calls.

For that reason, the "regex" package is no longer needed, except other
packages depend on it.

The only package in the Cygwin net distribution which was dependent of
"regex" was OpenSSH.  This isn't any longer true with OpenSSH-3.0.2p1-5.

For that reason, I will remove the regex package in 2 weeks from today.



If you have questions or comments, please send them to the Cygwin
mailing list at:  [EMAIL PROTECTED] .  I would appreciate
if you would use this mailing list rather than emailing me directly.
This includes ideas and comments about the setup utility or Cygwin
in general.

If you want to make a point or ask a question the Cygwin mailing list is
the appropriate place.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe to the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




AW: mkpasswd - cannot contact Domain Controller

2002-01-24 Thread KRISTOF . DOFFING

> 
> Search the package list:
> 
> http://cygwin.com/packages/

Kristof Doffing
Lufthansa Systems
Airline Services GmbH, FRA AS/S
FAC, Hugo-Eckener-Ring A.8.02
60549 Frankfurt/Main
Tel.: +49 69 / 696 92630
Fax : +49 69 / 696 92062


-Ursprüngliche Nachricht-
Von: J S [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 24. Januar 2002 11:33
An: [EMAIL PROTECTED]
Betreff: mkpasswd - cannot contact Domain Controller

Which Cygwin package does the source code for mkpasswd live in?

JS.

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: mkpasswd - cannot contact Domain Controller

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 10:33:12AM +, J S wrote:
> Which Cygwin package does the source code for mkpasswd live in?

cygwin

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: pthread_create or STL problem?

2002-01-24 Thread Robert Collins

On Thu, 2002-01-24 at 17:40, Haksun Li wrote:
> Dear all,
> 
> 
> 
> I am testing out the following piece of code using Cygwin.
> 
> It works as expected (exits when failing to create a new thread) under
> Solaris and Linux.
> 

AFAICT your crash is in your program. Possibly this is due to the C++
compiler being built without a threading model (Anyone recall if this
has been fixed or not?).

Cygwin itself doesn't seem to be causing the crash, although it's
strange that the program exits early with no warning :|... I'll look
into that aspect.

Rob


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: pthread_create or STL problem?

2002-01-24 Thread Gareth Pearce


- Original Message -
From: "Robert Collins" <[EMAIL PROTECTED]>
To: "Haksun Li" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 10:54 PM
Subject: Re: pthread_create or STL problem?


> On Thu, 2002-01-24 at 17:40, Haksun Li wrote:
> > Dear all,
> >
> >
> >
> > I am testing out the following piece of code using Cygwin.
> >
> > It works as expected (exits when failing to create a new thread) under
> > Solaris and Linux.
> >
>
> AFAICT your crash is in your program. Possibly this is due to the C++
> compiler being built without a threading model (Anyone recall if this
> has been fixed or not?).
>
> Cygwin itself doesn't seem to be causing the crash, although it's
> strange that the program exits early with no warning :|... I'll look
> into that aspect.
>
> Rob
>

umm my first thoughts when i saw this problem was - run out of memory bug
... needs to increase his limit in the registry...

map is Not small ... compared to map at least...
and theres going to be one for each thread...
lots of memory being used ...

but its only a guess ... ;)

Gareth


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: texmf packages ready

2002-01-24 Thread Jan Nieuwenhuizen

Guy Worthington <[EMAIL PROTECTED]> writes:
[cc: cygwin]

> Thankyou for providing the texmf packages.  'Just downloaded the base,
> doc and extra packages using your setup.ini (and Cygwin's setup.exe).
> The only trouble I had was my internet connection dropping out.  If it
> is possible, can the released packages be split into smaller sizes
> (say ~4MegaBytes)?

That's not easily possible, as far as I know.  However, the texmf-tiny
package (~1.8MB) is available as a minimal-download option.

If you keep having trouble with this, try using wget (now in contrib)
to download the files by hand.  Wget can continue downloading
partially downloaded files (-c switch).

Hmm, what does setup.exe do with partly downloaded tarballs?

> Your script post-texmf.sh, ran to completion, generating the plain,
> and latex format files for tex, etex and pdfetex. Running
>
>   latex sample2e
>
> generated a good .dvi file.

Ah, good.

> Running dvips on sample2e.dvi, gave errors such as
>
> mkdir: cannot create directory `/usr/share/texmf/fonts/pk/ljfour' permission denied

That's not good.  What is your $VARTEXFONTS set to?  Could you try:

   echo $VARTEXFONTS
   VARTEXFONTS=$HOME/texmf dvips -o x.ps sample2e.dvi

> One final observation, I use fpTeX on windows which sets the
> environment variable TEXMFCNF, within bash I reset this with command
>
>   export TEXMFCNF=/usr/share/texmf/web2c
>
> Is this correct?, or should I be pointing to another directory.

Yes, this should be ok; although unsetting it:

unset TEXMFCNF

should also work.  Any other variables that get set by fpTeX?

Thanks for your report,
Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




STATUS+AF8-ACCESS+AF8-VIOLATION Exception

2002-01-24 Thread Amos

Hi,

Any simple c program that uses a string function crashes with the
STATUS+AF8-ACCESS+AF8-VIOLATION exception.

+ACM-include +ADw-string.h+AD4-
main()
+AHs-char +ACo-abc +AD0- +ACI-a b c+ACIAOw-
strcpy(abc, +ACI-hello+ACI-)+ADs-
printf(+ACIAJQ-s+AFw-n+ACI-, abc)+ADs-
+AH0-

Can you please help me. I use Windows2000.

Thanks,

Amos


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




AW: STATUS+-AF8-ACCESS+-AF8-VIOLATION Exception

2002-01-24 Thread KRISTOF . DOFFING

Of course it crashes.
writing to a string literal +ACo-is+ACo- an access violation.
BTW: This piece of code is a violation of any good taste
and should crash on any system.

(depends on whether the string constant is stored on the data segment or in
the code segment).

Nevertheless, this is not really a cygwin topic (ASAIK).

Kristof Doffing
Lufthansa Systems
Airline Services GmbH, FRA AS/S
FAC, Hugo-Eckener-Ring A.8.02
60549 Frankfurt/Main
Tel.: +-49 69 / 696 92630
Fax : +-49 69 / 696 92062


-Urspr+APw-ngliche Nachricht-
Von: Amos +AFs-mailto:tirtsab+AEA-inter.net.il+AF0-
Gesendet am: Donnerstag, 24. Januar 2002 14:01
An: cygwin+AEA-cygwin.com
Betreff: STATUS+-AF8-ACCESS+-AF8-VIOLATION Exception

Hi,

Any simple c program that uses a string function crashes with the
STATUS+AF8-ACCESS+AF8-VIOLATION exception.

+ACM-include +ADw-string.h+AD4-
main()
+AHs-char +ACo-abc +AD0- +ACI-a b c+ACIAOw-
strcpy(abc, +ACI-hello+ACI-)+ADs-
printf(+ACIAJQ-s+AFw-n+ACI-, abc)+ADs-
+AH0-

Can you please help me. I use Windows2000.

Thanks,

Amos


--
Unsubscribe info:  http://cygwin.com/ml/+ACM-unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Descriptor passing between process

2002-01-24 Thread egor duda

Hi!

Wednesday, 23 January, 2002 Corinna Vinschen [EMAIL PROTECTED] wrote:

CV> On Wed, Jan 23, 2002 at 10:55:07AM +0100, Christophe LEITIENNE wrote:
>> I'm using Cygwin 1.3.8 on a Windows 2000 box.
>> I'm looking for a way to pass a socket descriptor between 2 process, using
>> sendmsg and recvmsg on a unix named pipe. This procedure seems to be well
>> knowned and works well on Linux and AIX.
>> I didn't found anything interesting about it in the mailing list archives,
>> except someone who started to port this API to Cygwin some time ago, without
>> any further informations.
>> 
>> am I doing something wrong ?
>> Will this API be ported to Cygwin in a near future ?

CV> It's part of the API since 1.3.8-1.

Hmm. What change are you referring to? I don't see anything like this
in the ChangeLog.

Egor.mailto:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/





Re: STATUS+AF8-ACCESS+AF8-VIOLATION Exception

2002-01-24 Thread egor duda

Hi!

Thursday, 24 January, 2002 Amos [EMAIL PROTECTED] wrote:

A> Any simple c program that uses a string function crashes with the
A> STATUS_ACCESS_VIOLATION exception.

A> #include 
A> main()
A> {char *abc = "a b c";
A> strcpy(abc, "hello");
A> printf("%s\n", abc);
A> }

your program is incorrect. "a b c" string is a constant and can't be
overwritten. complier places it in read-only segment, hence the
exception in strcpy. Please refer to any C language manual for rules
of proper string manipulation.

Egor.mailto:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Descriptor passing between process

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 04:14:20PM +0300, Egor Duda wrote:
> CV> It's part of the API since 1.3.8-1.
> 
> Hmm. What change are you referring to? I don't see anything like this
> in the ChangeLog.

2002-01-19  Mark Bradshaw  <[EMAIL PROTECTED]>

* cygwin.din: Add recvmsg and sendmsg.
* net.cc: Add cygwin_recvmsg and cygwin_sendmsg.
* /usr/include/sys/socket.h: Add recvmsg and sendmsg.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: STATUS+AF8-ACCESS+AF8-VIOLATION Exception

2002-01-24 Thread Amos

Thanks Egor.

Amos
- Original Message - 
From: "egor duda" <[EMAIL PROTECTED]>
To: "Amos" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 3:17 PM
Subject: Re: STATUS+AF8-ACCESS+AF8-VIOLATION Exception


> Hi!
> 
> Thursday, 24 January, 2002 Amos [EMAIL PROTECTED] wrote:
> 
> A> Any simple c program that uses a string function crashes with the
> A> STATUS_ACCESS_VIOLATION exception.
> 
> A> #include 
> A> main()
> A> {char *abc = "a b c";
> A> strcpy(abc, "hello");
> A> printf("%s\n", abc);
> A> }
> 
> your program is incorrect. "a b c" string is a constant and can't be
> overwritten. complier places it in read-only segment, hence the
> exception in strcpy. Please refer to any C language manual for rules
> of proper string manipulation.
> 
> Egor.mailto:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19
> 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Descriptor passing between process

2002-01-24 Thread egor duda

Hi!

Thursday, 24 January, 2002 Corinna Vinschen [EMAIL PROTECTED] wrote:

CV> On Thu, Jan 24, 2002 at 04:14:20PM +0300, Egor Duda wrote:
>> CV> It's part of the API since 1.3.8-1.
>> 
>> Hmm. What change are you referring to? I don't see anything like this
>> in the ChangeLog.

CV> 2002-01-19  Mark Bradshaw  <[EMAIL PROTECTED]>

CV> * cygwin.din: Add recvmsg and sendmsg.
CV> * net.cc: Add cygwin_recvmsg and cygwin_sendmsg.
CV> * /usr/include/sys/socket.h: Add recvmsg and sendmsg.

yes, but if i understand things correctly, Christophe was talking
about passing file descriptors between processes by means of AF_UNIX
sockets. btw, "Subject:" implies this :).

this is done on unices via msg_control (or msg_accrights) field in msg
structure. and unices ensure that the process which receives the
message using recvmsg can use the descriptor for all kinds of file
operations. in the case of cygwin, the receiver may get the value 3 in
message packet, but won't be able to use it in "read (3, buf, sizeof (buf))"

Egor.mailto:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




rxvt problems on win98

2002-01-24 Thread Scott Evans

I have Cygwin installed on two Win98 machines -- identical installs.
I've used rxvt as my shell window since I found out about the port
(well before it was included in the distro).  However, on one of my
machines, when I resize the rxvt window, bash pegs the CPU and stops
responding.

This doesn't happen on my Win2k machine at work (same Cygwin install).

The rxvt I have reports v2.7.2:
 -rwxr-xr-x1 gse  544141824 Mar 20  2001 /usr/bin/rxvt

The bash shell I have reports:
 GNU bash, version 2.05.0(8)-release (i686-pc-cygwin

I guess these are both older versions, but has anybody else seen these
problems?


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Descriptor passing between process

2002-01-24 Thread Christophe LEITIENNE

Hi all,

> yes, but if i understand things correctly, Christophe was talking
> about passing file descriptors between processes by means of AF_UNIX
> sockets. btw, "Subject:" implies this :).
>
> this is done on unices via msg_control (or msg_accrights) field in msg
> structure. and unices ensure that the process which receives the
> message using recvmsg can use the descriptor for all kinds of file
> operations. in the case of cygwin, the receiver may get the value 3 in
> message packet, but won't be able to use it in "read (3, buf, sizeof
(buf))"

That's exactly what I was talking about.
This is done under Linux or AIX by using a cmsghdr structure and some CMSG_*
macros, which does not appear to be present in Cygwin.
I found a piece of code that doesn't use all this stuff. Could it work (I
haven't tried yet) ?

int sendfd(sockfd, fd)
int sockfd;  /* UNIX domain socket to pass descriptor on */
int fd;  /* the actual fd value to pass */
{
struct iovec iov[1];
struct msghdr msg;
extern int errno;

iov[0].iov_base = (char *) 0;  /* no data to send */
iov[0].iov_len  = 0;
msg.msg_iov  = iov;
msg.msg_iovlen   = 1;
msg.msg_name = (caddr_t) 0;
msg.msg_accrights= (caddr_t) &fd; /* address of descriptor */
msg.msg_accrightslen = sizeof(fd); /* pass 1 descriptor */

if (sendmsg(sockfd, &msg, 0) < 0)
return( (errno > 0) ? errno : 255 );

return(0);
}

Christophe.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




rxvt problems on win98

2002-01-24 Thread David Starks-Browning

On Thursday 24 Jan 02, Scott Evans writes:
> The rxvt I have reports v2.7.2:
>  -rwxr-xr-x1 gse  544141824 Mar 20  2001 /usr/bin/rxvt

Mine says:

> -rwxr-xr-x1 starksb  None   142848 Jun  4  2001 /usr/bin/rxvt

What does "cygcheck -c" say?

Have you tried using Cygwin Setup to upgrade your rxvt installation?

David


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




mkpasswd - cannot contact Domain Controller

2002-01-24 Thread J S

Looking at the code then, it seems to bomb out in main when it gets to:

if (print_domain)
  {
if (domain_name_specified)
  rc = netgetdcname (NULL, domain_name, (LPBYTE *) & servername);
else
  rc = netgetdcname (NULL, NULL, (LPBYTE *) & servername);
if (rc != ERROR_SUCCESS)
  {
print_win_error(rc);
exit (1);
  }

The problem is with the call to netgetdcname which returns the name of the 
primary domain controller. This works on my computer (which is DHCP enabled 
and seems to configured for a Primary WINS server).
My colleague has a fixed IP address, but I can't see any Primary WINS server 
configured when I issue an IPCONFIG /ALL.
Is the PDC not supposed to be configured for a fixed IP address do you know?

JS

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: rxvt problems on win98

2002-01-24 Thread Scott Evans

Okay, I just did an update on all my packages and specified "reinstall"
for rxvt, just to be safe.  The behavior no longer exists, so that's good.
However, I now remember why I was using an older version of rxvt: the
one that is distributed with Cygwin is the "with a console" version
(note the window that briefly flashes on the screen before the actual
rxvt window comes up).  When Steve did his original port, he also
did a "no-console" experimental build, which is nice because the
flashing window isn't there, and it seems to work fine otherwise.
(see http://www.io.com/~bub/rxvt.html)

I tried reverting back to this version of rxvt and everything seems
great -- no flickering and no CPU-peg upon resizing.  So I guess the
problem was somewhere in bash(?).

I may have missed this discussino, but has anyone considered using the
no-console build of rxvt in the distro?



scott


> I have Cygwin installed on two Win98 machines -- identical installs.
> I've used rxvt as my shell window since I found out about the port
> (well before it was included in the distro).  However, on one of my
> machines, when I resize the rxvt window, bash pegs the CPU and stops
> responding.
>
> This doesn't happen on my Win2k machine at work (same Cygwin install).
>
> The rxvt I have reports v2.7.2:
>  -rwxr-xr-x1 gse  544141824 Mar 20  2001 /usr/bin/rxvt
>
> The bash shell I have reports:
>  GNU bash, version 2.05.0(8)-release (i686-pc-cygwin
>
> I guess these are both older versions, but has anybody else seen these
> problems?



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: rxvt problems on win98

2002-01-24 Thread David Starks-Browning

On Thursday 24 Jan 02, Scott Evans writes:
> I may have missed this discussino, but has anyone considered using the
> no-console build of rxvt in the distro?

Why is the brief flash a problem?

David


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Laser toner cartridges save up to 40% from retail price

2002-01-24 Thread gts


Please forward to the person responsible for purchasing your laser printer supplies.

GT toner supplies

To
order by phone please call 770-623-9780
order by email: [EMAIL PROTECTED]
email removal:  [EMAIL PROTECTED] with subject: remove

Laser printer toner cartridges, copier and fax cartridges
save up 40% from retail price.

University and/or school purchase orders welcome. (no credit approval required)

Pay by check, c.o.d, or purchase order (net 30 days).

For any question about our company please email us at
[EMAIL PROTECTED]


Our new, laser printer toner cartridge, prices are as follows: 
(please order by item number)

ITEMMAKEMODEL   PRICE

1 - Hp  Laserjet series 4l, 4p (74a)--- $39.00
2 - Hp  Laserjet series 1100 (92a)- $39.00
3 - Hp  Laserjet series 2 (95a) $30.00
4 - Hp  Laserjet series 2p (75a)--- $49.00
5 - Hp  Laserjet series 5p,5mp,6p,6mp (03a) --- $39.00
6 - Hp  Laserjet series 5si,800 (09a) - $89.00
7 - Hp  Laserjet series 2100 (96a)  $65.00
8 - Hp  Laserjet series 8100 (82x)  $129.00
9 - Hp  Laserjet series 5l,6l (3906a) - $35.00
10  Hp  Laserjet series 4v  $89.00
11  Hp  Laserjet series 4000 (27x)  $65.00
12  Hp  Laserjet series 3si,4si (91a) - $49.00
13  Hp  Laserjet series 4,4m,5,5m (98a) --- $40.00
14  Hp  Laserjet series 5000 (29x)  $89.00
15  Hp  Laserfax 500, 700 (fx1) --- $44.00
16  Hp  Laserfax 5000, 7000 (fx2) - $49.00
17  Hp  Laserfax (fx3)  $49.00
18  Hp  Laserfax (fx4)  $49.00

19  Lexmark-Optra 4019,4029 high yield  $79.00
20  Lexmark-Optra r 4039,4049 high yield -- $99.00
21  Lexmark-Optra e --- $49.00
22  Lexmark-Optra n --- $105.00
23  Lexmark-Optra s --- $145.00
24  Lexmark-Optra t --- $180.00

25  Epson   Action laser 7000,7500,8000,9000 -- $99.00
26  Epson   Action laser 1000,1500  --- $99.00

27  Panasonic-Nec series 2 models 90 and 95 --- $99.00

28  Apple - Laser writer pro 600,16/600 --- $40.00
29  Apple - Laser writer select 300,320,360 --- $64.00
30  Apple - Laser writer 300,320 -- $49.00
31  Apple - Laser writer nt,2nt --- $49.00
32  Apple - Laser writer 12/640 --- $69.00

33  Canon - Fax laserclass 4000 (fx3) - $49.00
34  Canon - Fax laserclass 5000,6000,7000 (fx2) --- $44.00
35  Canon - Laserfax 5000,7000 (fx2) -- $44.00
36  Canon - Laserfax 8500,9000 (fx4) -- $44.00
37  Canon - Copier pc3,6re,7 & 11 (a30) --- $59.00
38  Canon - Copier 300,320,700,720 and 760 (e-40)   $79.00

30 Day unlimited warranty included on all products.

If you are ordering by e-mail or c.o.d. please fill out an order form with the 
following information:

phone number
company name
first and last name
street address
city, state zip code

If you are ordering by purchase order please fill out an order form with the following 
information:

purchase order number
phone number
company or school name
shipping address and billing address
city, state zip code

All trade marks and brand names listed above are property of the respective
holders and used for descriptive purposes only.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




mkpasswd - cannot contact Domain Controller

2002-01-24 Thread J S

Fixed it. He didn't have his primary Wins Server configuration set up.

Works fine now.

JS.

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: rxvt problems on win98

2002-01-24 Thread Scott Evans

> Why is the brief flash a problem?

It's not a real problem -- just an annoyance.
Given the choice, I'd rather not have it.



scott


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Descriptor passing between process

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 03:17:23PM +0100, Christophe LEITIENNE wrote:
> I found a piece of code that doesn't use all this stuff. Could it work (I
> haven't tried yet) ?
> 
> int sendfd(sockfd, fd)
> int sockfd;  /* UNIX domain socket to pass descriptor on */
> int fd;  /* the actual fd value to pass */
> {
> struct iovec iov[1];
> struct msghdr msg;
> extern int errno;
> 
> iov[0].iov_base = (char *) 0;  /* no data to send */
> iov[0].iov_len  = 0;
> msg.msg_iov  = iov;
> msg.msg_iovlen   = 1;
> msg.msg_name = (caddr_t) 0;
> msg.msg_accrights= (caddr_t) &fd; /* address of descriptor */
> msg.msg_accrightslen = sizeof(fd); /* pass 1 descriptor */
> 
> if (sendmsg(sockfd, &msg, 0) < 0)
> return( (errno > 0) ? errno : 255 );
> 
> return(0);
> }

This isn't supported.  Control structure passing doesn't work at
all with the current implementation.

Btw., the above source code won't work on Linux, too.  First of all,
the msg_accrights and msg_accrightslen members doesn't exist in the 
msghdr struct (they are called msg_control and msg_controllen) and
second, file descriptors in one process have no meaning in another
process, except it's parent or child of the calling process,
coincidentally.  That's somewhat dangerous.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Binutil compatibulity

2002-01-24 Thread Sava Zxivanovich

Hi.

I am working with PowerPC 401 D2 - in deed PLX IOP480.

I have installed GCC chain that uses binutil 2.9.1, gcc 2.95.2 for
powerpc-elf.
Due to fact that as in that version do not support one operand - tlbwe,
I have to upgrade to one I hope does support - 2.10.1. I would not like
to use 2.11, I had quit a bad time with it (and GCC 3.0.1).

My question is if binutil 2.10 does support operand tlwbe (PowerPC
Embedded Environment, PowerPC 401D2), would there be any problem if I
configure binutils as ppc-eabi (I suppose yes, I would like just to
check that) and would it be any problem with gcc 2.95.2 (I suppose not,
but you never know).

Why am I asking all this? Well, we are very near to a point where we
would go with commercial compiler. Actually, this is a last cry before
that.

Kind regards,
Sava

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




[ANNOUNCEMENT] Updated: cURL 7.9.3-1

2002-01-24 Thread Kevin Roth

cURL has been updated to version 7.9.3-1.

As with the previous version, curl has a run-time dependancy 
on openssl-0.9.6b-2 or later (as this was the first release 
to include DLLs). Since I can't "require" a specific build of 
openssl, make sure you've upgraded to this version before 
(or at the same time as) upgrading curl.
OpenSSL 0.9.6c-3 will work fine.

>From the curl mailing list's release note:

"This release is mainly a bugfix release, but there's also a few
new nifty things added. The internals have also undergone a
major restructure in preparations for future innovations."

See http://curl.haxx.se/mail/archive-2002-01/0107.html for details. 



To update your installation, click on the "Install Cygwin now" link  
on the http://sources.redhat.com/cygwin web page.  This downloads  
setup.exe to your system.  Then, run setup and answer all questions.

Note that downloads are not allowed from sources.redhat.com (a.k.a.
cygwin.com) due to bandwidth limitations.  This means that you
will need to find a mirror which has this update.

In the US, the following mirror is already up-to-date:
ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin/
This is a reliable and high-bandwidth mirror site.

Anywhere else, please select something appropriate from the list 
of mirror sites included with setup.exe. If your choice doesn't 
have the latest version of this package, you can either wait for 
the site to be updated or select another mirror. 

If you have questions or comments, please send them to the Cygwin 
mailing list: <[EMAIL PROTECTED]>.  I would appreciate if you would 
use this mailing list rather than emailing me directly.  This includes 
ideas and comments about the setup utility or Cygwin in general. 

If you want to make a point or ask a question, the Cygwin mailing list 
is the appropriate place. 


  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO *** 

If you want to unsubscribe from the cygwin-announce mailing list, look 
at the "List-Unsubscribe: " tag in the email header of this message. 
Send email to the address specified there.  It will be in the format: 

[EMAIL PROTECTED] 

--  
Kevin Roth 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Descriptor passing between process

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 04:45:13PM +0300, Egor Duda wrote:
> Hi!
> 
> Thursday, 24 January, 2002 Corinna Vinschen [EMAIL PROTECTED] wrote:
> 
> CV> On Thu, Jan 24, 2002 at 04:14:20PM +0300, Egor Duda wrote:
> >> CV> It's part of the API since 1.3.8-1.
> >> 
> >> Hmm. What change are you referring to? I don't see anything like this
> >> in the ChangeLog.
> 
> CV> 2002-01-19  Mark Bradshaw  <[EMAIL PROTECTED]>
> 
> CV> * cygwin.din: Add recvmsg and sendmsg.
> CV> * net.cc: Add cygwin_recvmsg and cygwin_sendmsg.
> CV> * /usr/include/sys/socket.h: Add recvmsg and sendmsg.
> 
> yes, but if i understand things correctly, Christophe was talking
> about passing file descriptors between processes by means of AF_UNIX
> sockets. btw, "Subject:" implies this :).
> 
> this is done on unices via msg_control (or msg_accrights) field in msg
> structure. and unices ensure that the process which receives the
> message using recvmsg can use the descriptor for all kinds of file
> operations. in the case of cygwin, the receiver may get the value 3 in
> message packet, but won't be able to use it in "read (3, buf, sizeof (buf))"

Ouch.  I didn't read your message correctly before sending the
reply to Christophe's mail.

Sorry,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Binutil compatibulity

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 03:34:56PM -, Sava Zxivanovich wrote:
> Hi.
> 
> I am working with PowerPC 401 D2 - in deed PLX IOP480.
> 
> I have installed GCC chain that uses binutil 2.9.1, gcc 2.95.2 for
> powerpc-elf.
> Due to fact that as in that version do not support one operand - tlbwe,
> I have to upgrade to one I hope does support - 2.10.1. I would not like
> to use 2.11, I had quit a bad time with it (and GCC 3.0.1).
> 
> My question is if binutil 2.10 does support operand tlwbe (PowerPC
> Embedded Environment, PowerPC 401D2), would there be any problem if I
> configure binutils as ppc-eabi (I suppose yes, I would like just to
> check that) and would it be any problem with gcc 2.95.2 (I suppose not,
> but you never know).
> 
> Why am I asking all this? Well, we are very near to a point where we
> would go with commercial compiler. Actually, this is a last cry before
> that.

Wrong mailing list.

You should try [EMAIL PROTECTED]

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Descriptor passing between process

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 04:38:40PM +0100, Corinna Vinschen wrote:
> On Thu, Jan 24, 2002 at 04:45:13PM +0300, Egor Duda wrote:
> > Hi!
> > 
> > Thursday, 24 January, 2002 Corinna Vinschen [EMAIL PROTECTED] wrote:
> > 
> > CV> On Thu, Jan 24, 2002 at 04:14:20PM +0300, Egor Duda wrote:
> > >> CV> It's part of the API since 1.3.8-1.
> > >> 
> > >> Hmm. What change are you referring to? I don't see anything like this
> > >> in the ChangeLog.
> > 
> > CV> 2002-01-19  Mark Bradshaw  <[EMAIL PROTECTED]>
> > 
> > CV> * cygwin.din: Add recvmsg and sendmsg.
> > CV> * net.cc: Add cygwin_recvmsg and cygwin_sendmsg.
> > CV> * /usr/include/sys/socket.h: Add recvmsg and sendmsg.
> > 
> > yes, but if i understand things correctly, Christophe was talking
> > about passing file descriptors between processes by means of AF_UNIX
> > sockets. btw, "Subject:" implies this :).
> > 
> > this is done on unices via msg_control (or msg_accrights) field in msg
> > structure. and unices ensure that the process which receives the
> > message using recvmsg can use the descriptor for all kinds of file
> > operations. in the case of cygwin, the receiver may get the value 3 in
> > message packet, but won't be able to use it in "read (3, buf, sizeof (buf))"
> 
> Ouch.  I didn't read your message correctly before sending the
> reply to Christophe's mail.

More ouch!  I just read a detailed description of the descriptor
passing magic via AF_LOCAL sockets in U*X systems. I see now that
I didn't even know what you were talking about.

It *could* be implemented.  

First we would have to implement the control message passing at all and
when it's available we could perhaps even implement descriptor passing
using the DuplicateHandle() function.

Volunteers?

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: Binutil compatibulity

2002-01-24 Thread Sava Zxivanovich

Thanks.

> -Original Message-
> From: Corinna Vinschen [mailto:[EMAIL PROTECTED]]
> Sent: 24 January 2002 15:45
> To: Sava Zxivanovich
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: Binutil compatibulity
> 
> 
> On Thu, Jan 24, 2002 at 03:34:56PM -, Sava Zxivanovich wrote:
> > Hi.
> > 
> > I am working with PowerPC 401 D2 - in deed PLX IOP480.
> > 
> > I have installed GCC chain that uses binutil 2.9.1, gcc 2.95.2 for
> > powerpc-elf.
> > Due to fact that as in that version do not support one 
> operand - tlbwe,
> > I have to upgrade to one I hope does support - 2.10.1. I 
> would not like
> > to use 2.11, I had quit a bad time with it (and GCC 3.0.1).
> > 
> > My question is if binutil 2.10 does support operand tlwbe (PowerPC
> > Embedded Environment, PowerPC 401D2), would there be any 
> problem if I
> > configure binutils as ppc-eabi (I suppose yes, I would like just to
> > check that) and would it be any problem with gcc 2.95.2 (I 
> suppose not,
> > but you never know).
> > 
> > Why am I asking all this? Well, we are very near to a point where we
> > would go with commercial compiler. Actually, this is a last 
> cry before
> > that.
> 
> Wrong mailing list.
> 
> You should try [EMAIL PROTECTED]
> 
> Corinna
> 
> -- 
> Corinna Vinschen  Please, send mails 
> regarding Cygwin to
> Cygwin Developer
> mailto:[EMAIL PROTECTED]
> Red Hat, Inc.
> 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




setregid and setreguid

2002-01-24 Thread J S

Hi,

I'm trying to compile eterm on cygwin, but running into problems because it 
needs setregid and setuid. I noticed that these were in the cygwin package 
testsuite and so I tried to compile that but the make file wouldn't work. 
Are there any binaries around for setregid and setreguid?

JS.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Descriptor passing between process

2002-01-24 Thread egor duda

Hi!

Thursday, 24 January, 2002 Corinna Vinschen [EMAIL PROTECTED] wrote:

CV> It *could* be implemented.

CV> First we would have to implement the control message passing at all and
CV> when it's available we could perhaps even implement descriptor passing
CV> using the DuplicateHandle() function.

To call DuplicateHandle() you must have a process handle of the peer.
i don't know how can we do it properly without cygwin daemon.

btw, i wonder if descriptor sent through AF_LOCAL socket whould remain
valid after sender closes it? and what about "after sender terminates"?

Egor.mailto:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




gettimeofday/PerformanceCounter overhead

2002-01-24 Thread Lapo Luchini

> As long as the calibration only occurs when someone is using
> gettimeofday, not on every cygwin1.dll load, then that sounds fine to
> me.

At the end of the mail there is some benchmarking to show PerformanceCounter
use is not that "slow" even in its setup (which is done on it's first call).

Columns are:
-original: call to the gettimeofday() by DJ as found in
winsup/cygwin/times.cc (which uses GetSystemTimeAsFileTime)
-new: overall use of the new gettimeofday()
-new_init: a version that has a "bug" in "initialization" so that
initializes itself at every call
-new_old: a version thar has a "bug" in detection of Performancecounter
presence to force use of original call
all times are in seconds per 1 millions of consecutive calls
(e.g. can be considered roughly microsecond per call)

The following consideration arise:
-on 98 QueryPerformanceCounter is 12.5 times faster
-on 2000/XP QueryPerformanceCounter is 2-3 times slower, except 2 cases in
which is 7 and 9 times slower
-in the typical case QueryPerformanceCounter take 5-10us at first call and
2-4us at other calls
-even in the worst case QueryPerformanceCounter takes "only" 11us

This sound to me as the new function would be good... what do you think of
it?

My only real concern is that as it is it has an "absolute" uncertainty of
15ms on the time measurement (but only 2-4us on deltas).
An approach to have some kind of syncronization would be to poll original
gettimeofday() until it changes value and to "sync" on that "edge", but this
would slow the first call from 5-10us down to 1-16ms, which is way too much
IMHO.

+-+---++--+--+--+--+

Machine |compiler |OS |CPU |original  |new   |new_init
|new_old   |
+-+---++--+--+--+--+

CyberOne|no-cygwin|2000sp2|2xP3-450|   .846679|  1.746022|  5.503428|
.918950|
CyberOne|MSVisualC|2000sp2|2xP3-450|   .862335|  1.914982|  5.498225|
.868891|
NoEmOn  |no-cygwin|2000sp2|P3-450  |  1.228030| 11.458962| 28.876049|
1.820429|
Jastar  |no-cygwin|2000sp?|P2-400  |  1.184996|  8.016424| 10.086791|
1.285417|
Magic   |MSVisualC|2000sp?|P3-350  |  1.190737|  3.377681| 10.157640|
1.178946|
Cikku   |no-cygwin|2000sp?|P2-300  |  1.401790|  4.52| 11.412069|
1.382729|
Omero   |no-cygwin|XP |XP1700+ |   .296723|  1.051282|  3.200104|
.289188|
Viri|no-cygwin|98first|P2-333  | 74.665424|  5.960425| 88.101787|
75.279405|
Jex |no-cygwin|98se   |P2-233  |114.010888|
9.040290|136.016347|114.065398|
+-+---++--+--+--+--+

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Descriptor passing between process

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 07:18:13PM +0300, Egor Duda wrote:
> Hi!
> 
> Thursday, 24 January, 2002 Corinna Vinschen [EMAIL PROTECTED] wrote:
> 
> CV> It *could* be implemented.
> 
> CV> First we would have to implement the control message passing at all and
> CV> when it's available we could perhaps even implement descriptor passing
> CV> using the DuplicateHandle() function.
> 
> To call DuplicateHandle() you must have a process handle of the peer.
> i don't know how can we do it properly without cygwin daemon.

Yes, why not.  Did you have a look into Robert's daemon so far?

> btw, i wonder if descriptor sent through AF_LOCAL socket whould remain
> valid after sender closes it? and what about "after sender terminates"?

We're talking about Cygwin processes not native Windows processes,
so we should be able to handle that (more or less) correctly.
What if the sender is blocked until the daemon got a descriptor
copy?  Then the sender can do what it wants.  Just a draft.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: setregid and setreguid

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 04:05:09PM +, J S wrote:
> Hi,
> 
> I'm trying to compile eterm on cygwin, but running into problems because it 
> needs setregid and setuid. I noticed that these were in the cygwin package 
> testsuite and so I tried to compile that but the make file wouldn't work. 
> Are there any binaries around for setregid and setreguid?

That wouldn't make much sense since only setuid() and setuid() resp.
setgid and setegid() are implemented in Cygwin currently.  Shouldn't
be too hard to patch eterm to use these functions instead.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: [ANNOUNCEMENT] Advance notice: Remove regex package on 2001-02-07

2002-01-24 Thread Charles Wilson

Corinna Vinschen wrote:

> 
> 
> Since Cygwin 1.3.7, the Cygwin API contains the POSIX regex calls.
> 
> For that reason, the "regex" package is no longer needed, except other
> packages depend on it.
> 
> The only package in the Cygwin net distribution which was dependent of
> "regex" was OpenSSH.  This isn't any longer true with OpenSSH-3.0.2p1-5.
> 
> For that reason, I will remove the regex package in 2 weeks from today.


Hmmmthis is disquieting.  Let's assume that Bob has built, on his 
machine,  the "HandyMedicineDatabase" application which depends on 
cygregex.dll.

He can now no longer install HMD on a new machine, unless he carries 
around a copy of the regex package -- or he is forced to recompile his 
app so that it doesn't depend on cygregex.dll.

Perhaps you can release a new regex package that contains only the DLL, 
and not the development links.  However, this brings up the question: 
how long to we need to keep these old DLLs around to support (possible) 
user-compiled packages?

E.g. when can the libreadline4 package be removed?  No existing *cygwin* 
package depends on it, but user-compiled stuff might...Ditto 
"cygregex.dll".

--Chuck



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: rxvt problems on win98

2002-01-24 Thread Charles Wilson

I use the 'run' program from 
http://www.neuro.gatech.edu/users/cwilson/cygutls/unversioned/run/

Just grab the run.exe program, rename it to 'runrxvt.exe' and drop it 
into /bin.  Then, set your shortcut to point to runrxvt instead of run.

Voila' !  no more flash.

--Chuck

Scott Evans wrote:

>>Why is the brief flash a problem?
>>
> 
> It's not a real problem -- just an annoyance.
> Given the choice, I'd rather not have it.
> 
> 
> 
> scott
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 
> 



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




rxvt requires libx11.dll?

2002-01-24 Thread James Garrison

Just curious, but why is rxvt included in the cygwin distro
when it appears to require libx11.dll, which only comes with
xfree86?

-- 
James GarrisonAthens Group, Inc.
mailto:[EMAIL PROTECTED]5608 Parkcrest Dr
http://www.athensgroup.comAustin, TX 78731
PGP: RSA=0x92E90A3B DH/DSS=0x498D331C (512) 345-0600 x150



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: setregid and setreguid

2002-01-24 Thread egor duda

Hi!

Thursday, 24 January, 2002 J S [EMAIL PROTECTED] wrote:

JS> Hi,

JS> I'm trying to compile eterm on cygwin, but running into problems because it 
JS> needs setregid and setuid. I noticed that these were in the cygwin package 
JS> testsuite and so I tried to compile that but the make file wouldn't work. 
JS> Are there any binaries around for setregid and setreguid?

If you look a bit closer upon cygwin testsuite, or run it at least
once, you see that setregid and setuid tests are known to fail.
Exactly because these functions are not supported.

Egor.mailto:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: rxvt requires libx11.dll?

2002-01-24 Thread Larry Hall (RFK Partners, Inc)

At 11:50 AM 1/24/2002, James Garrison wrote:
>Just curious, but why is rxvt included in the cygwin distro
>when it appears to require libx11.dll, which only comes with
>xfree86?



Asked and answered in the last few days on this list.  

rxvt doesn't *require* libx11.dll.  It just loads it if the DISPLAY 
variable is set to something other than '0'.  See the email archives for 
more detail if you're still curious.



Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: setregid and setreguid

2002-01-24 Thread J S

Thanks Corinna, but I don't seem to have setgid or setegid either 
(eventhough I've just been to cygwin.com to download all the latest 
updates).

JS.


>>
>On Thu, Jan 24, 2002 at 04:05:09PM +, J S wrote:
> > Hi,
> >
> > I'm trying to compile eterm on cygwin, but running into problems because 
>it
> > needs setregid and setuid. I noticed that these were in the cygwin 
>package
> > testsuite and so I tried to compile that but the make file wouldn't 
>work.
> > Are there any binaries around for setregid and setreguid?
>
>That wouldn't make much sense since only setuid() and setuid() resp.
>setgid and setegid() are implemented in Cygwin currently.  Shouldn't
>be too hard to patch eterm to use these functions instead.
>
>Corinna
>
>--


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: rxvt requires libx11.dll?

2002-01-24 Thread Charles Wilson



James Garrison wrote:

> Just curious, but why is rxvt included in the cygwin distro
> when it appears to require libx11.dll, which only comes with
> xfree86?
> 

It doesn't require libx11.dll.  It can USE libx11.dll under certain 
circumstances.  Basically, it dynamically loads (using dlopen()) either 
libX11.dll or libW11.dll depending on the value of the DISPLAY 
environment variable.  Try this:

'rxvt.exe -display :0 -title rxvt-noX -e bash -login'

and you'll get the "native Windows, nonX" behavior.

--Chuck


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: gettimeofday() does not returns usec resolution

2002-01-24 Thread Christopher Faylor

On Thu, Jan 24, 2002 at 11:43:10AM +0100, Lapo Luchini wrote:
>> >> Do you have an assignment on file with Red Hat?
>> >Sorry but english knowledge doesn't let me understand "assignment on file", could
>> >you explain it to me with other words?
>> http://cygwin.com/contrib.html
>
>Got it... I'll send one ASAP (-_- snail mail... when will a signed e-mail be accepted
>as "legal"? -_-)
>
>BTW: IANAL but the base for that gettimeofday() function is taken from Tim Prince's
>message and the file is "Copyright (c) 1994-1998 Larry McVoy." as the source reads...

Um.  If you can't assign the source code to us then we can't take it.
If the source was written by someone else then you can't assign it.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Change color of bold text attribute for cygwin terminal

2002-01-24 Thread Richard Kandarian

This seems it should be simple but I can't find a way to do it.

I'm running a very current cygwin on MSW2K.

The bold text in less is a very unreadable color the way I have things set 
up. I have my window set to a very pleasant light color background and the 
bold text in less (man etc.) is white.

It seems that less uses termcap and my the terminal type is cygwin. But try 
as I might I cannot figure out how to change the colors.

It seems to me that it ought to be very easy to set the colors for the 
cygwin terminal (or console, or whatever). Is there a configuration file 
which specifies which color is used for which text display attribute? Or is 
the escape sequence to set the bold attribute actually setting a color? Are 
the attribute colors specified in the source somewhere? How does it work?


Richard Kandarian
http://www.lanl.gov/cgi-bin/fonelink.pl/085598

Any opinions stated in this message are mine and not expressed on behalf of 
any other individual or entity unless explicitly noted otherwise. As for 
the links at the very end, my opinion is that they are interesting.

UNIX is software. M$ Windows is hardware implemented in software.

When M$ says 'embrace and extend', what does that bring to mind?
A huge boa constrictor?

Save the world from M$ tyranny - embrace and extend LINUX before M$ does.

http://www.fourmilab.to/documents/top10.html
http://www.prospect.org/print/V11/16/ackerman-b.html
http://www.theatlantic.com/issues/2000/12/fallows.htm


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: unscubscribe

2002-01-24 Thread Christopher Faylor

On Thu, Jan 24, 2002 at 11:48:13AM +0100, Corinna Vinschen wrote:
>On Thu, Jan 24, 2002 at 03:56:17PM +0530, Rajesh M wrote:
>
>You drew a blank.  Try again.
>
>> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
>
>BUT READ THIS FIRST!

Welcome to my life.  I get about one or two a day of these to
[EMAIL PROTECTED]

Often I spend quite a bit of time arguing with people that if they
actually follow the instructions at the page they'll be able to
unsubscribe themselves.  In 100% of the cases that I've come across,
the person was just not really reading the instructions.

And, even though there are quite a few mailing lists on
sources.redhat.com, guess which group of mailing lists get the most
clueless "Plese unsuscribe!!" messages?

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: rebuild libc.a with MB_CAPABLE defined

2002-01-24 Thread Christopher Faylor

On Thu, Jan 24, 2002 at 07:32:17PM +0900, Kazuhiro Fujieda wrote:
 On Fri, 11 Jan 2002 12:22:39 +1100
 "Robert Collins" <[EMAIL PROTECTED]> said:
>
>> At a guess, you'll need to do more than just define MB_CAPABLE. Chances
>> are, it's disabled because cygwin is not MB_CAPABLE :}.
>
>You misunderstand the role of the MB_CAPABLE definition in newlib.
>The feature enabled by this definition can work on any platform.

Has anyone proposed a patch to newlib to make this behavior the default
for Cygwin?

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




socket/fdopen/exec problem

2002-01-24 Thread Pierre A. Humblet

The attached file demonstrates a problem with a
combination of socket, fdopen and exec. It was observed
on Win98/ME/NT4/2000. Latest everything.
Please cc: me directly. 

A server is listening on port 999 and forking worker 
processes. It can be restarted by kill -HUP. Under some 
conditions, new connections stop being accepted and 
netstat -a shows two listen on port 999.

The demo is based on a widely ported program (exim)
where the problem first surfaced. It appears to be related
to the use of fdopen(). 

To reproduce:
1) Compile and run in a window.
2) In another window, 
  a) telnet localhost 999 then quit
  b) kill -HUP pid
  c) netstat -a shows two listen on port 999
 New connections may or may not be accepted, and
 mayhem can occasionally be observed with netstat.

Yes, all sockets are closed. No, playing with the 
"close on exec" bit or with "linger" does not seem
to help.

Pierre


tcpdemo.c
Description: application/unknown-content-type-c_auto_file

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: setregid and setreguid

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 05:00:23PM +, J S wrote:
> Thanks Corinna, but I don't seem to have setgid or setegid either 
> (eventhough I've just been to cygwin.com to download all the latest 
> updates).

You have.  Trust me.  However, you'll need special user permissions
(see http://cygwin.com/cygwin-ug-net/ntsec.html).

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re installer crash

2002-01-24 Thread Jason Doege

I have successfully installed many times until the latest release of
the installer which crashes with an invalid memory access.

If someone would like more details, please contact me with specific
questions.

Best regards,
Jason Doege

--
Jason Doege
Director, Design Link Technology
Inovys, Corp. Phone (512) 422-9483
11417 Carnelian Dr.   Fax   (512) 292-8958
Austin, TX 78739  email [EMAIL PROTECTED]


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




100MB Webspace@ $5.5 per month !

2002-01-24 Thread EASY SPACE SYSTEMS

EASY SPACE SYSTEMS
8/1C, Cornfield Road, Kolkata - 700 019. West Bengal. INDIA.
Ph : 91-33-4600488 / 91-33-4601758
Email : [EMAIL PROTECTED]


Respected Sir / Madam,

They say chance favours the prepared mind so what are you waiting for ? A lot of 
companies 
host with us, why don't   you try ? If you have a previously registered domain, the 
transfer is FREE 
! We are resellers to Network Solutions.

We take great pleasure in announcing the best hosting rates on this side of the  
planet.


THESE ARE OUR CURRENT HOSTING RATES :

SPACE STATION (CORPORATE/Large Business)
• SPACE : 100 MB 
• AMOUNT : $55.00 per year. (All inclusive) OR $5.50 Monthly
• DOMAIN NAME TRANSFER : FREE
• Unlimited Transfer
• 25 POP Mails, Forwarders, Auto Responders 
• 5 Mailing Lists, Webmail Facilities   
• 24/7 FTP Access   
• 5 SubDomains (Separate FTP Accounts)  
• Free Control Panel, MySQL, SMTP Mail
• Account Activation  -- Immediate
• Search Engine Submission - FREE
and much ... much more.


SHUTTLE (BUDGET)
• SPACE : 50 MB 
• AMOUNT : $40.00 per year. (All inclusive) OR $4.00 per month.
• DOMAIN NAME TRANSFER : FREE
• Unlimited Transfer
• 5 POP Mails, Forwarders, Auto Responders
• 5 Mailing Lists, Webmail Facilities
• 24/7 FTP Access
• 2 SubDomains (Separate FTP Accounts)
• Free Control Panel, MySQL, SMTP Mail
• Account Activation  -- Immediate
• Search Engine Submission - FREE
and much ... much more.


RESELLERS - Please email [EMAIL PROTECTED] for an autoquote in INR.
CLIENT LIST - Please email [EMAIL PROTECTED] for the 'larger' clients we have.


If there is any information you need or anything that you need to know or understand, 
please feel 
free to call us or email us at any of the contact details provided. We will be sure to 
send across 
an executive to assist you   further in making your decision.


Happy hosting and  logging you on, 
DEBJANI - 91-33-4600488 / 91-33-4601758
ARJUN - 91-98300 69676
VISIT US AT WWW.EZSPL.COM AND PLACE YOUR ORDERS TODAY !!!


All rights reserved : EASY SPACE SPACE SYSTEMS 1999-2002.
This mail is the sole property of EZSPL
RESELLERS - Please email [EMAIL PROTECTED] for an autoquote in INR.
CLIENT LIST - Please email [EMAIL PROTECTED] for the 'larger' clients we have.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: unscubscribe

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 01:04:21PM -0500, Chris Faylor wrote:
> And, even though there are quite a few mailing lists on
> sources.redhat.com, guess which group of mailing lists get the most
> clueless "Plese unsuscribe!!" messages?

Hm no, I don't know.  Is that a trick question, perhaps?

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Resolved my SSH password problem...but what's the explanation?

2002-01-24 Thread Benn Schreiber

I installed the latest cygwin stuff the other day, and was unable to get
ssh to work.  Specifically, after setting up host keys and my user keys,
ssh-ing to myself would give me a password prompt.  Quite inconvenient
and annoying!
 
After futzing around with this, I discovered that running sshd from a
bash window would result in it working.  AHA!  Must be a file protection
problem of some sort.
 
Further searching finally led me to 'chown SYSTEM .ssh/authorized_keys2'
and voila!  It works now.
 
I'm pretty sure that I've set up previous versions of cygwin on other
systems and did not have to do this.
 
So, my question is.why did I have to do this now?
 
In any event, I'm running fine now, and hopefully if anyone else is
seeing this, this note will be useful.
 
Benn Schreiber



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: security.cc: bug report, question and suggestion

2002-01-24 Thread Pierre A. Humblet

Corinna Vinschen wrote:

> However, I've just checked in a change which should create a useful
> DACL for the primary token created by DuplicateTokenEx() in the
> create_token() function.  It uses the function `sec_user()' which I
> once introduced to set security attributes for CreateProcess calls,
> etc.  Could you test if it now behaves as you'd expect?

Corinna,

It doesn't seem to do anything (see attach). What does it do for you?
I am pretty sure (used gdb) that I am running your latest code. NT4.0

Pierre

gid was 513
setgid returned 0, read 1005
uid was 500
setuid returned 0, read 1004
USERNAME testuser
/*** Token Start /
/*** Token User */
PHumblet ASTRALPOINT SidTypeUser
S-1-5-21-2127391503-1594901184-99485923-1004
/*** Token Type */
TokenImpersonation
/*** Token Source */
Token source Cygwin.1
/*** Token Security */
*** SECURITY INFO START *
Owner: Administrators BUILTIN SidTypeAlias
S-1-5-32-544
Group: Domain Users ASTRALPOINT SidTypeGroup
S-1-5-21-1391547877-877281485-1846952604-513
ACL:
0 Administrators BUILTIN SidTypeAlias
S-1-5-32-544
ACCESS_ALLOWED_ACE_TYPE 
TOKEN_ASSIGN_PRIMARY, TOKEN_DUPLICATE, TOKEN_IMPERSONATE, TOKEN_QUERY, TOKEN_QUERY_SOUR
CE, TOKEN_ADJUST_PRIVILEGES, TOKEN_ADJUST_GROUPS, TOKEN_ADJUST_DEFAULT, DELETE, READ_CO
NTROL, WRITE_DAC, WRITE_OWNER, 
1 SYSTEM NT AUTHORITY SidTypeWellKnownGroup
S-1-5-18
ACCESS_ALLOWED_ACE_TYPE 
TOKEN_ASSIGN_PRIMARY, TOKEN_DUPLICATE, TOKEN_IMPERSONATE, TOKEN_QUERY, TOKEN_QUERY_SOUR
CE, TOKEN_ADJUST_PRIVILEGES, TOKEN_ADJUST_GROUPS, TOKEN_ADJUST_DEFAULT, DELETE, READ_CO
NTROL, WRITE_DAC, WRITE_OWNER, 
*** SECURITY INFO END *



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


putting a cygdrive directory in /

2002-01-24 Thread Benn Schreiber

That was a GREAT suggestion, it really cuts down on the typing,
especially with filename completion.  A final tweak that would make it
just a little better would be if a future cygwin update moved cygwin.bat
and cygwin.ico out of / into some other directory (/etc maybe?)

Thanks and keep up the GREAT work!

Benn Schreiber



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Environment var PATH broken in 1.3.9 - spaces NG

2002-01-24 Thread Richard Kandarian

I'm using MS Visual C++ executables installed in:

C:\Program Files\Microsoft Visual Studio\VC98\Bin

and for some reason they all have filenames which are all caps.

With tcsh in 1.3.8 some of the commands will complete and/or be found 
either upper or lower case (e.g. cl.exe) and others will only complete 
and/or be found if typed uppercase (e.g. NMAKE.EXE).

Now in 1.3.9 the PATH environment variable in tcsh has all the spaces in 
the above path replaced with ':' and I have to type in the full path to all 
the Visual C++ stuff. The path (not PATH) in tcsh, which is a translation 
of the PATH variable, does not have the spaces replaced with ':'.

I guess I need to translate my .login and .cshrc to something bash can 
read... sigh.


Richard Kandarian
http://www.lanl.gov/cgi-bin/fonelink.pl/085598

Any opinions stated in this message are mine and not expressed on behalf of 
any other individual or entity unless explicitly noted otherwise. As for 
the links at the very end, my opinion is that they are interesting.

UNIX is software. M$ Windows is hardware implemented in software.

When M$ says 'embrace and extend', what does that bring to mind?
A huge boa constrictor?

Save the world from M$ tyranny - embrace and extend LINUX before M$ does.

http://www.fourmilab.to/documents/top10.html
http://www.prospect.org/print/V11/16/ackerman-b.html
http://www.theatlantic.com/issues/2000/12/fallows.htm


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: gettimeofday() does not returns usec resolution

2002-01-24 Thread Ralf Habacker

> 
> > >> Has anyone address this problem already. I have looked int the
> > >> cygwin and list and found the only topic
> > >http://sources.redhat.com/ml/cygwin/2001-12/msg00201.html
> 
> In the attached file there is a "patch" for gettmieofday:
> 
> ---
> int gettimeofday(struct timeval *tv, struct timezone *tz)
> {
>  LARGE_INTEGER   t;
>  FILETIME   f;
>  double microseconds;
>  static LARGE_INTEGER offset;
>  static double   frequencyToMicroseconds;
>  static intinitialized = 0;
>  static BOOLusePerformanceCounter = 0;
> 
>  if (!initialized) {
>   LARGE_INTEGER performanceFrequency;
>   initialized = 1;
>   usePerformanceCounter = QueryPerformanceFrequency(&performanceFrequency);
>   if (usePerformanceCounter) {
>QueryPerformanceCounter(&offset);
>frequencyToMicroseconds = (double)performanceFrequency.QuadPart /
> 100.;
>   } else {
>offset = getFILETIMEoffset();
>frequencyToMicroseconds = 10.;
>   }
>  }
>  if (usePerformanceCounter) QueryPerformanceCounter(&t);
>  else {
>   GetSystemTimeAsFileTime(&f);
>   t.QuadPart = f.dwHighDateTime;
>   t.QuadPart <<= 32;
>   t.QuadPart |= f.dwLowDateTime;
>  }
> 
>  t.QuadPart -= offset.QuadPart;
>  microseconds = (double)t.QuadPart / frequencyToMicroseconds;
>  t.QuadPart = microseconds;
>  tv->tv_sec = t.QuadPart / 100;
>  tv->tv_usec = t.QuadPart % 100;
>  return (0);
> }
> 
> 
> The following Microsoft page (
> http://www.vbapi.com/ref/q/queryperformancecounter.html ) says it supported
> on all version (startig from NT3.51 and Windows95) an, at least, it calls
> GetTickCount()*1000.
> 
> > >> In http://www-106.ibm.com/developerworks/library/l-rt1/ there is a
> > >> detailed instruction how to use the hugh resolution counter. .
> > >>
> > >> $ cat timeofday.c #include 
> > >>
> > >> int main() { struct timeval tp; long a,b;
> > >>
> > >> gettimeofday(&tp,0); a =
> > >> ((unsigned)tp.tv_sec)*100+((unsigned)tp.tv_usec);
> > >>
> > >> printf("timestamp (us): %d\n",a); usleep(1000); gettimeofday(&tp,0); b
> > >>  = ((unsigned)tp.tv_sec)*100+((unsigned)tp.tv_usec);
> > >printf("timestamp
> > >>  (us): %d (diff) %d\n",b,b-a); }
> 
> I adapted the code to find exactly the minimum time slice, and not "how well
> 1ms of retard is seen" (it was a 0ns or 15000ns, this is always 15000ns;
> moreover printf is out of the "timing" section):

isn't the time slice about 10ms. ? 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: gettimeofday() does not returns usec resolution

2002-01-24 Thread Ralf Habacker

>
>
> > Hmm.  I do remember this patch.  Can you submit this to cygwin-patches
> > in the correct format: http://cygwin.com/contrib.html ?
>
> Given enough time, yes (never hacked that one, but it seems that only
> winsup/cygwin/times.cc would need to be modified).. anyway of course I'm one of
> the few that actually would like to have this feature so I guess there's no big
> hurry.
>
> Of course the number reported by PerformanceTimer has an unknown offset with
> system time (it appears to start at 0 at program start, but that's not clearly
> specified) so I would have calculate an initial "offset" in the "old" way... this
> would give 3-4 microsecond precision on "deltas" but an initial uncertainty of
 ^
> the usual 15 milliseconds or so.
>
This is a output of the mentioned profiler. It say about a minimal time of about 1-2 
us. May the difference be
caused by the cygwin.dll overhead ? (We're using the native functions, not 
gettimeofday()).

[1828] EmptyTest   count:100  time: (min)  1 [us] (max)  2 [us] 
(sum)169 [us]

> I guess that it's better that having that uncertainty between ANY two
> measurations... but if someone has some other idea.. please suggest =)
>
> > Do you have an assignment on file with Red Hat?
>
> Sorry but english knowledge doesn't let me understand "assignment on file", could
> you explain it to me with other words?
>
> > >---
> > >int gettimeofday(struct timeval *tv, struct timezone *tz)
> > >{
> > >}
> > >
>
> A note for everyone: that implementation was taken from tim Prince's message on
> lmbench and of course lacked any syncronization with real time as was used only
> for deltas.
>
> --
> Lapo 'Raist' Luchini
> [EMAIL PROTECTED] (PGP & X.509 keys available)
> http://www.lapo.it (ICQ UIN: 529796)
>
>
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
>
>


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: [ANNOUNCEMENT] Advance notice: Remove regex package on 2001-02-07

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 11:42:16AM -0500, Charles Wilson wrote:
> Hmmmthis is disquieting.  Let's assume that Bob has built, on his 
> machine,  the "HandyMedicineDatabase" application which depends on 
> cygregex.dll.
> 
> He can now no longer install HMD on a new machine, unless he carries 
> around a copy of the regex package -- or he is forced to recompile his 
> app so that it doesn't depend on cygregex.dll.

As far as I understood our licensing model, the HMD application
is either OSS or it's internally used.  Either way, Bob has the
sources handy.  I don't see a problem.

> Perhaps you can release a new regex package that contains only the DLL, 
> and not the development links.  However, this brings up the question: 
> how long to we need to keep these old DLLs around to support (possible) 
> user-compiled packages?
> 
> E.g. when can the libreadline4 package be removed?  No existing *cygwin* 
> package depends on it, but user-compiled stuff might...Ditto 
> "cygregex.dll".

I'd think it's your decision for libreadline4.

libregex was always just a workaround.  Having regex functionality
in libc (libcygwin) is what most people (and packages) expect.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Environment var PATH broken in 1.3.9 - spaces NG

2002-01-24 Thread Michael A Chase

When I start either tcsh or bash from the MSDOS prompt with your MSVS
directory in the path, $PATH is translated correctly.  Are you adding the
directory to your path after tcsh has started?

If you are adding the MSVS directory in .login or .cshrc, you need to be
sure to quote properly or tcsh may be taking the spaces as separators.

I don't actually have MSVS, so I can't confirm or deny the problem you are
having with varying cases.  I have seen other messages that report problems
with directory specifications that contain spaces.

WinXP
Cygwin: 1.3.9-1
bash 2.05a-2
tcsh 6.11.00-3
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
- Original Message -
From: "Richard Kandarian" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 12:26
Subject: Environment var PATH broken in 1.3.9 - spaces NG


> I'm using MS Visual C++ executables installed in:
>
> C:\Program Files\Microsoft Visual Studio\VC98\Bin
>
> and for some reason they all have filenames which are all caps.
>
> With tcsh in 1.3.8 some of the commands will complete and/or be found
> either upper or lower case (e.g. cl.exe) and others will only complete
> and/or be found if typed uppercase (e.g. NMAKE.EXE).
>
> Now in 1.3.9 the PATH environment variable in tcsh has all the spaces in
> the above path replaced with ':' and I have to type in the full path to
all
> the Visual C++ stuff. The path (not PATH) in tcsh, which is a translation
> of the PATH variable, does not have the spaces replaced with ':'.
>
> I guess I need to translate my .login and .cshrc to something bash can
> read... sigh.




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: security.cc: bug report, question and suggestion

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 02:56:49PM -0500, Pierre A. Humblet wrote:
> Corinna Vinschen wrote:
> 
> > However, I've just checked in a change which should create a useful
> > DACL for the primary token created by DuplicateTokenEx() in the
> > create_token() function.  It uses the function `sec_user()' which I
> > once introduced to set security attributes for CreateProcess calls,
> > etc.  Could you test if it now behaves as you'd expect?
> 
> Corinna,
> 
> It doesn't seem to do anything (see attach). What does it do for you?
> I am pretty sure (used gdb) that I am running your latest code. NT4.0

Sorry but I don't see what you've tested.  The patch should address
your problem with the access rights of the impersonation token.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: unscubscribe (even the subjects perversely amusing!)

2002-01-24 Thread [EMAIL PROTECTED]

- Original Message -
From: "Christopher Faylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 6:04 PM
Subject: Re: unscubscribe


> And, even though there are quite a few mailing lists on
> sources.redhat.com, guess which group of mailing lists get the most
> clueless "Plese unsuscribe!!" messages?

If that's really the case then maybe the text on
http://cygwin.com/ml/#unsubscribe-simple should be changed from:

If you are on list foobaz, send a mail note to
  [EMAIL PROTECTED]

to:

For example, if you've accidentally subscribed to the cygwin mail list,
send
a mail note to

[EMAIL PROTECTED]

Alternatively, is it perhaps possible to configure ezmlm-idx to move the
information from the List-Unsubscribe to be included in the appended sig
like bit at the bottom? (It's a shame more email clients don't support the
list features.)

Also, maybe we should make it (a lot) harder to actually subscribe! How
about if to subscribe you had to answer a simple unix question?! This could
pre-emptively weed out some of the clueless users! ;-)

Keith



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: socket/fdopen/exec problem

2002-01-24 Thread Corinna Vinschen

On Thu, Jan 24, 2002 at 01:27:24PM -0500, Pierre A. Humblet wrote:
> The attached file demonstrates a problem with a
> combination of socket, fdopen and exec. It was observed
> on Win98/ME/NT4/2000. Latest everything.
> Please cc: me directly. 
> 
> A server is listening on port 999 and forking worker 
> processes. It can be restarted by kill -HUP. Under some 
> conditions, new connections stop being accepted and 
> netstat -a shows two listen on port 999.
> 
> The demo is based on a widely ported program (exim)
> where the problem first surfaced. It appears to be related
> to the use of fdopen(). 
> 
> To reproduce:
> 1) Compile and run in a window.
> 2) In another window, 
>   a) telnet localhost 999 then quit
>   b) kill -HUP pid
>   c) netstat -a shows two listen on port 999
>  New connections may or may not be accepted, and
>  mayhem can occasionally be observed with netstat.
> 
> Yes, all sockets are closed. No, playing with the 
> "close on exec" bit or with "linger" does not seem
> to help.

Isn't that just the usual effect that sockets remain in TIME_WAIT
state for 2MSL seconds?

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Environment var PATH broken in 1.3.9 - spaces NG

2002-01-24 Thread Richard Kandarian

The path to MSVC is set in the registry (i.e. Control panel > system > 
advanced > environment (or however you get there)). To be even more precise 
tcsh inherits the environment from bash which inherits it from cmd.exe 
which gets it from the registry somehow.

Sorry I didn't mention that.

If I execute 'tcsh -l' at a cmd.exe prompt the behavior is the same. (I 
didn't know I could do that! I thought I needed bash to read /etc/profile 
to get everything setup.)

I'm busy switching to bash anyway...

At 12:48 PM 1/24/2002 -0800, "Michael A Chase" <[EMAIL PROTECTED]> wrote:
>When I start either tcsh or bash from the MSDOS prompt with your MSVS
>directory in the path, $PATH is translated correctly.  Are you adding the
>directory to your path after tcsh has started?
>
>If you are adding the MSVS directory in .login or .cshrc, you need to be
>sure to quote properly or tcsh may be taking the spaces as separators.
>
>I don't actually have MSVS, so I can't confirm or deny the problem you are
>having with varying cases.  I have seen other messages that report problems
>with directory specifications that contain spaces.
>
>WinXP
>Cygwin: 1.3.9-1
>bash 2.05a-2
>tcsh 6.11.00-3
>--
>Mac :})
>** I normally forward private questions to the appropriate mail list. **
>Give a hobbit a fish and he eats fish for a day.
>Give a hobbit a ring and he eats fish for an age.
>- Original Message -
>From: "Richard Kandarian" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, January 24, 2002 12:26
>Subject: Environment var PATH broken in 1.3.9 - spaces NG
>
>
> > I'm using MS Visual C++ executables installed in:
> >
> > C:\Program Files\Microsoft Visual Studio\VC98\Bin
> >
> > and for some reason they all have filenames which are all caps.
> >
> > With tcsh in 1.3.8 some of the commands will complete and/or be found
> > either upper or lower case (e.g. cl.exe) and others will only complete
> > and/or be found if typed uppercase (e.g. NMAKE.EXE).
> >
> > Now in 1.3.9 the PATH environment variable in tcsh has all the spaces in
> > the above path replaced with ':' and I have to type in the full path to
>all
> > the Visual C++ stuff. The path (not PATH) in tcsh, which is a translation
> > of the PATH variable, does not have the spaces replaced with ':'.
> >
> > I guess I need to translate my .login and .cshrc to something bash can
> > read... sigh.


Richard Kandarian
http://www.lanl.gov/cgi-bin/fonelink.pl/085598

Any opinions stated in this message are mine and not expressed on behalf of 
any other individual or entity unless explicitly noted otherwise. As for 
the links at the very end, my opinion is that they are interesting.

UNIX is software. M$ Windows is hardware implemented in software.

When M$ says 'embrace and extend', what does that bring to mind?
A huge boa constrictor?

Save the world from M$ tyranny - embrace and extend LINUX before M$ does.

http://www.fourmilab.to/documents/top10.html
http://www.prospect.org/print/V11/16/ackerman-b.html
http://www.theatlantic.com/issues/2000/12/fallows.htm


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: security.cc: bug report, question and suggestion

2002-01-24 Thread Pierre A. Humblet

Corinna Vinschen wrote:

> Sorry but I don't see what you've tested.  The patch should address
> your problem with the access rights of the impersonation token.

The attachment has a printout of the security info of the impersonation
token. Its DACL is not set the way you intend to have it, in fact
things seem to be as before your changes. 
If you want I can send you my token printing program.

Pierre

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Environment var PATH broken in 1.3.9 - spaces NG

2002-01-24 Thread Christopher Faylor

On Thu, Jan 24, 2002 at 02:16:07PM -0700, Richard Kandarian wrote:
>The path to MSVC is set in the registry (i.e. Control panel > system > 
>advanced > environment (or however you get there)). To be even more precise 
>tcsh inherits the environment from bash which inherits it from cmd.exe 
>which gets it from the registry somehow.
>
>Sorry I didn't mention that.
>
>If I execute 'tcsh -l' at a cmd.exe prompt the behavior is the same. (I 
>didn't know I could do that! I thought I needed bash to read /etc/profile 
>to get everything setup.)

It still sounds like you have something like a "set path=($PATH)" somewhere.

For the record, there were very few changes made between 1.3.8 and 1.3.9
and none of the changes had anything to do with environment handlin.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




HELP! Running rsh non-interactvively

2002-01-24 Thread norm

I want to run cygwin's rsh non-interactively.

To get inetd working I found
http://www.adamswann.com/library/2001/Cygwin-Inetd.html and tried to follow its
advice.

 I did:

 cygrunsrv -I inetd -d "CYGWIN inetd" -p /usr/sbin/inetd -a -d -e
 CYGWIN=ntsec
 cygrunsrv -S inetd



 I was then able to telnet. ftp, and rsh interactively from a Linux box to a
 windows box (its name is "wad").  They all seemed to work very well, but
 they solicit a password.  I use the same login name on both computers.

But when I try:

rsh wad ls

I get:

 Permission denied

The Cygwin-Inetd.html site has some more stuff:

  Right-click "My Computer" and select Properties.  Click the "Environment
  Variables" button on the "Advanced" tab.  Add a new system variable...the name
  is CYGWIN and the value is "ntsec" (no quotes).  This tells Cygwin to use your
  Windows 2000 security.

  Add C:\Cygwin\Bin\ to the PATH system variable. (Stick it at the end,
  separated from everything else with a semicolon (";")).

  Run "/usr/sbin/inetd.exe --install-as-service".

  Reboot!

But it says to do that only if telnet and ftp don't work and I am afraid to do
anything that drastic if I don't have to to.

"man cygrunsrv" yields "No manual entry for cygrunsrv".  After
/usr/sbin/makewhatis, "man -k cygrunsrv" yields "cygrunsrv: nothing
appropriate".

I would very much appreciate any help.

Background:

I am a Windows beginner.

The Linux box is running Red Hat Linux release 6.2.

The Windows box is running Microsoft Windows 2000, 5.00.2195

"cygcheck -s" yields:


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Thu Jan 24 13:38:02 2002

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\WINNT\SYSTEM32
c:\WINNT
c:\WINNT\SYSTEM32\WBEM
c:\DMI\WIN32\BIN
C:\cygwin\bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

CYGWIN = `ntsec'
HOME = `C:\cygwin\home\norm'
MAKE_MODE = `unix'
PWD = `/home/norm'
USER = `norm'

Use `-r' to scan registry

a:  fd   N/AN/A
c:  hd  NTFS   76285Mb   8% CP CS UN PA FC 
d:  fd  FAT  238Mb 100% CPUN   ZIP250
e:  cd   N/AN/A
z:  net NTFS   14061Mb  47% CP CSPApublic

Z: /z usertextmode
.  /cygdrive  userbinmode,noumount
C:/cygwin  /  system  binmode
C:/cygwin/bin  /usr/bin   system  binmode
C:/cygwin/lib  /usr/lib   system  binmode

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

   56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll
  621k 2002/01/16 C:\cygwin\bin\cygcrypto.dll
  102k 2001/12/06 C:\cygwin\bin\cygcurl-2.dll
   73k 2002/01/16 C:\cygwin\bin\cygexslt-0.dll
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll
   18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
   20k 2002/01/13 C:\cygwin\bin\cyghistory5.dll
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll
   81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll
   35k 2000/12/05 C:\cygwin\bin\cygitk30.dll
   45k 2001/07/04 C:\cygwin\bin\cygjbig1.dll
  119k 2001/06/06 C:\cygwin\bin\cygjpeg6b.dll
   19k 2002/01/13 C:\cygwin\bin\cygltdl-3.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
   40k 2001/11/21 C:\cygwin\bin\cygpcre.dll
   39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
  121k 2002/01/13 C:\cygwin\bin\cygreadline5.dll
   66k 2001/11/20 C:\cygwin\bin\cygregex.dll
  156k 2002/01/16 C:\cygwin\bin\cygssl.dll
  390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll
5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll
   10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll
  245k 2001/06/12 C:\cygwin\bin\cygtiff3.dll
  623k 2000/12/05 C:\cygwin\bin\cygtk80.dll
  612k 2002/01/16 C:\cygwin\bin\cygxml2-2.dll
   41k 2001/07/04 C:\cygwin\bin\cygXpm-noX4.dll
   45k 2001/07/04 C:\cygwin\bin\cygXpm-X4.dll
  202k 2002/01/16 C:\cygwin\bin\cygxslt-1.dll
   22k 2002/01/16 C:\cygwin\bin\cygxsltbreakpoint-1.dll
   50k 2002/01/20 C:\cygwin\bin\cygz.dll
  751k 2002/01/21 C:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.3.9
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major

Re: socket/fdopen/exec problem

2002-01-24 Thread Pierre A. Humblet

Corinna Vinschen wrote:

> Isn't that just the usual effect that sockets remain in TIME_WAIT
> state for 2MSL seconds?

I realize I am mixing two things. Seeing reused ports in netstat
isn't much of a problem in itself, as long as new calls can come
in. That's the OK case I see now all the time on NT. However the
problem I am chasing (on Win98) is that new calls are not accepted.
I will clarify and get back to you.

Pierre

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: gettimeofday() does not returns usec resolution

2002-01-24 Thread Lapo Luchini

> > would give 3-4 microsecond precision on "deltas" but an initial uncertainty of
>  ^
> > the usual 15 milliseconds or so.
> >
> This is a output of the mentioned profiler. It say about a minimal time of about 1-2 
>us. May the difference be
> caused by the cygwin.dll overhead ? (We're using the native functions, not 
>gettimeofday()).
>
> [1828] EmptyTest   count:100  time: (min)  1 [us] (max)  2 [us] 
>(sum)169 [us]

On my machine it's actually 1.74us, but I made the test on some machines and the 
result varies from 1.05 to 5.9us
(excluding a single machine for which it takes 11.45us).
That using my own profiles that uses the "adapted gettimeofday(), so it has a ilttle 
bit more of overhead to
divide it in the secs and usecs fileds.

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: gettimeofday() does not returns usec resolution

2002-01-24 Thread Lapo Luchini

> > I adapted the code to find exactly the minimum time slice, and not "how well
> > 1ms of retard is seen" (it was a 0ns or 15000ns, this is always 15000ns;
> > moreover printf is out of the "timing" section):
> isn't the time slice about 10ms. ?

Actually is between 15 and 16ms:

try  1: 437687512 - 437703512 = 16000
try  2: 437703512 - 437719512 = 16000
try  3: 437719512 - 437734512 = 15000
try  4: 437734512 - 437750512 = 16000
try  5: 437750512 - 437766512 = 16000
try  6: 437766512 - 437781512 = 15000
try  7: 437781512 - 437797512 = 16000
try  8: 437797512 - 437812512 = 15000
try  9: 437812512 - 437828512 = 16000
try 10: 437828512 - 437844512 = 16000
try 11: 437844512 - 437859512 = 15000
try 12: 437859512 - 437875512 = 16000
try 13: 437875512 - 437891512 = 16000
try 14: 437891512 - 437906512 = 15000
try 15: 437906512 - 437922512 = 16000
try 16: 437922512 - 437937512 = 15000
try 17: 437937512 - 437953512 = 16000
try 18: 437953512 - 437969512 = 16000
try 19: 437969512 - 437984512 = 15000
try 20: 437984512 - 438000512 = 16000

Just try this source:

#include 

#define TV2LONG(t) ((unsigned long)t.tv_sec)*100+((unsigned long)t.tv_usec)

int main() {
 struct timeval tp;
 unsigned long a, b;
 unsigned int n = 1;
 for(n=1; n<=20; n++) {
  gettimeofday(&tp, 0);
  a = TV2LONG(tp);
  do {
   gettimeofday(&tp, 0);
  } while((b = TV2LONG(tp)) <= a);
  printf("try %2d: %ld - %ld = %ld\n", n, a, b, b-a);
 }
 gettimeofday(&tp, 0);
 a = TV2LONG(tp);
 usleep(100);
 gettimeofday(&tp, 0);
 b = TV2LONG(tp);
 printf("sleep:  %ld - %ld = %ld usec\n", a, b, b-a);
}

--
Lapo 'Raist' Luchini
[EMAIL PROTECTED] (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: gettimeofday() does not returns usec resolution

2002-01-24 Thread Ralf Habacker

> 
> >
> >
> > > Hmm.  I do remember this patch.  Can you submit this to cygwin-patches
> > > in the correct format: http://cygwin.com/contrib.html ?
> >
> > Given enough time, yes (never hacked that one, but it seems that only
> > winsup/cygwin/times.cc would need to be modified).. anyway of course I'm one of
> > the few that actually would like to have this feature so I guess there's no big
> > hurry.
> >
> > Of course the number reported by PerformanceTimer has an unknown offset with
> > system time (it appears to start at 0 at program start, but that's not clearly
> > specified) so I would have calculate an initial "offset" in the "old" way... this
> > would give 3-4 microsecond precision on "deltas" but an initial uncertainty of
>  ^
> > the usual 15 milliseconds or so.
> >
> This is a output of the mentioned profiler. It say about a minimal time of about 1-2 
>us. May the difference be
> caused by the cygwin.dll overhead ? (We're using the native functions, not 
>gettimeofday()).
> 
> [1828] EmptyTest   count:100  time: (min)  1 [us] (max)  2 [us] 
>(sum)169 [us]
> 
Ups, I forgot to say I'm using win2k. Sorry 

Ralf 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: [ANNOUNCEMENT] Advance notice: Remove regex package on 2001-02-07

2002-01-24 Thread Charles Wilson

Corinna Vinschen wrote:

> On Thu, Jan 24, 2002 at 11:42:16AM -0500, Charles Wilson wrote:
> 
>>Hmmmthis is disquieting.  Let's assume that Bob has built, on his 
>>machine,  the "HandyMedicineDatabase" application which depends on 
>>cygregex.dll.
>>
>>He can now no longer install HMD on a new machine, unless he carries 
>>around a copy of the regex package -- or he is forced to recompile his 
>>app so that it doesn't depend on cygregex.dll.
>>
> 
> As far as I understood our licensing model, the HMD application
> is either OSS or it's internally used.  Either way, Bob has the
> sources handy.  I don't see a problem.


Sure.  But I could *really* piss a lot of people off if I removed 
libncurses5 and libncurses6 and released libncurses7 instead (and even 
moreso if I release "empty" libncurses5 and 6 packages to force the 
deletion of preexisting cygncurses5/6 DLLs).

I don't think it's reasonable to assume that ONLY the packages 
distributed by the cygwin mirror system matter -- even after all 
"official" packages have migrated to the new cygncurses7.dll, "external" 
progs still might require cygncurses6/5 for a while.

Just because it's possible for Bob to recompile "HMD" doesn't mean that 
we as maintainers should arbitrarily and needlessly force him to do so.


>>Perhaps you can release a new regex package that contains only the DLL, 
>>and not the development links.  However, this brings up the question: 
>>how long to we need to keep these old DLLs around to support (possible) 
>>user-compiled packages?
>>
>>E.g. when can the libreadline4 package be removed?  No existing *cygwin* 
>>package depends on it, but user-compiled stuff might...Ditto 
>>"cygregex.dll".
>>
> 
> I'd think it's your decision for libreadline4.


Sure -- and I figure I'll keep it around for about 6 - 9 months. But 
I'll never release an empty "libreadline4" package -- that's just 
needless meddling with the user's system.


> libregex was always just a workaround.  Having regex functionality
> in libc (libcygwin) is what most people (and packages) expect.


Sure.  But Bob previously ported HMD to use -lregex, and now his binary 
requires cygregex.dll.  If he is distributing HMD (with sources, no GPL 
violations here) now he must immediately "un-port" and recompile -- 
because new users can't get cygregex.dll anymore.  I don't think we 
should be that dictatorial to folks who distribute derivative (but 
GPL-compliant) packages that piggyback off of cygwin.

To sum up: I think you should release "regex-4.4-3" that only contains 
/usr/bin/cygregex.dll -- and nothing else. (this guarantees that new 
packages cannot acquire a dependency on cygregex).  And then just let it 
sit for several months, so that the "Bob's" of the world have a 
reasonable amount of time to recompile their stuff.


--Chuck


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




newbie: terminfo compiled for Solaris?

2002-01-24 Thread Kathryn Hargreaves


It seems one would need a differently compiled terminfo file for Solaris
than for Linux, since the binaries have different byte orderings.  I'm
not really installing Cygwin, except on the Solaris side, so I don't
know if/how to obtain a file that will work on Solaris.

Much thanks,
Kathy

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: [ANNOUNCEMENT] Advance notice: Remove regex package on2001-02-07

2002-01-24 Thread Robert Collins

On Fri, 2002-01-25 at 09:02, Charles Wilson wrote:
> To sum up: I think you should release "regex-4.4-3" that only contains 
> /usr/bin/cygregex.dll -- and nothing else. (this guarantees that new 
> packages cannot acquire a dependency on cygregex).  And then just let it 
> sit for several months, so that the "Bob's" of the world have a 
> reasonable amount of time to recompile their stuff.

I concur.
Rob


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: File mode judgement

2002-01-24 Thread Wu Yongwei

Thank you for so quick a response.

Now I see. I set the environment variable CYGWIN to "ntsec" when I was
testing inetd service. Now I unset CYGWIN and solved my problem.

No, it is not good yet while even the header files and text files installed
by Cygwin itself are regarded as "executable" on setup by default.

Best regards,

Wu Yongwei

--- Original Message from "Robert Collins"
<[EMAIL PROTECTED]> ---

> In the past, Cygwin seemed to judge whether a file is executable on a
> combination of suffix and content. However, today when I reinstalled
Cygwin,
> I suddenly found that it no more did it. Now on a NTFS volume it depends
> only on file attributes.
>
> 1) Is it a design change?

Yes. It is much faster to look at file permissions first, and content
second. Thats what unix does. The change is activated by CYGWIN=ntsec.

> 2) Is it possible to switch back to the old behaviour?

AFAIK, no. It shouldn't be needed anyway, just use chmod to set the +x
bit on any executables you have.

Rob


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




cygwin@cygwin.com

2002-01-24 Thread 117114
$B%a!<%k$,$G$-$A$c$&EEOC$b$G$-$A$c$&"v(B
$B$^$8$a$J=P2q$$$N%5%$%H$G$9!#(B
$BG/Np!"CO0h!"=P?HCO$J$I$+$i$"$J$?$K%T%C%?%j$N$*Ajhttp://117114.jp/~info/

$BAGE($J=P2q$$$,$"$j$^$9$h$&$K!&!&!&(B

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


CVS PServer problem

2002-01-24 Thread Wu Yongwei

I am running Windows 2000 and have configured inetd correctly -- that is, I
suppose so, because now I can access services like FTP and daytime. And
then, I

1) added cvspserver to the Windows Services file;
2) added "cvspserver stream tcp nowait root /usr/bin/cvs
cvs --allow-root=/home/cvs pserver" to /etc/inetd.conf;
3) created /home/cvs and executed cvs init for this directory;
4) created a /home/cvs/CVSROOT/passwd containing
"test:QFVdvse1GAVi2:Administrator";
5) restarted the inetd service.

Now I can see from netstat that port 2401 is listening. I set CVSROOT to
":pserver:[EMAIL PROTECTED]:/home/cvs" and I can execute a cvs login using
pserver. However, when I try "cvs import...", it always reports

  setuid failed: Not owner

Any ideas? (I can log in to FTP as "Administrator" or "anonymous" and
encounter no problems.)

Thanks and best regards,

Wu Yongwei


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: CVS PServer problem

2002-01-24 Thread Geoff Soutter

RTFMLA

[Heh. Been waiting to use that one...]

Pserver doesn't work yet. Using :external and SSH does.

Geoff

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of Wu Yongwei
Sent: Friday, January 25, 2002 4:09 PM
To: [EMAIL PROTECTED]
Subject: CVS PServer problem


I am running Windows 2000 and have configured inetd correctly -- that
is, I suppose so, because now I can access services like FTP and
daytime. And then, I

1) added cvspserver to the Windows Services file;
2) added "cvspserver stream tcp nowait root /usr/bin/cvs
cvs --allow-root=/home/cvs pserver" to /etc/inetd.conf;
3) created /home/cvs and executed cvs init for this directory;
4) created a /home/cvs/CVSROOT/passwd containing
"test:QFVdvse1GAVi2:Administrator";
5) restarted the inetd service.

Now I can see from netstat that port 2401 is listening. I set CVSROOT to
":pserver:[EMAIL PROTECTED]:/home/cvs" and I can execute a cvs login
using pserver. However, when I try "cvs import...", it always reports

  setuid failed: Not owner

Any ideas? (I can log in to FTP as "Administrator" or "anonymous" and
encounter no problems.)

Thanks and best regards,

Wu Yongwei


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




change in behavior of bash (recent or not)?

2002-01-24 Thread Soren Andersen

Hello,

I checked for previous discussions or announcements relating to this, did not find 
such (obviously, because I am writing).

Once again (as per other recent posts): I am using Cygwin on Win98 SE (sometimes). 
This msg pertains to this environment only, not to running on NT etc. Just to be 
precise. So, my Cygwin, now:

Cygwin DLL version info:
DLL version: 1.3.9
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 51
Shared data: 3
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Mon Jan 21 12:48:41 EST 2002
Shared id: cygwin1S3

my bash: bash 2.05a-2.

I just updated bash along with Cygwin etc day before yesterday. Several months 
(approx 4) had elapsed since I last updated this particular Cygwin installation. 
Therefore this change -- if there is one -- may have appeared "long" before now.

The observation:
I have a script that runs from the 'STARTUP' folder when I boot W98, so that as soon 
as I have entered my Windoze 'login' I make sure that bash is going to know who I am -
- no, readers are not expected to understand what i am saying, I stated the purpose 
of the script first instead of the mechanism. To be concise I want to skip 
irrelevancies. The germane detail is .. this script is a one-line bash command in a 
Windows batch file that reads thus:

X:\Cygwin\bin\bash -c "echo -n WINSET USERNAME=`/bin/whoami.exe` 
>/cdv/c/_session_user.bat"

The file that is written ("_session_user.bat") is used later when I invoke an 
interactive bash login shell.

What is germane to my inquiry is the observation that when I booted Windows today my 
script ran as if I had invoked an interactive bash shell. The behavior had changed. I 
got Window resizing because i invoke Chuck Wilson's consize.exe from my 
'/etc/profile' file (which is executed -- if present -- anytime bash is invoked as an 
interactive shell, no?). This is how I was tipped off that the behavior had changed.

Before, the command to bash just executed cleanly and quickly and I was done (the DOS 
console window in which this stuff happens is visible for a few seconds and then 
gone). Now, unwanted stuff is unnecessarily happening, and I am curious why: is this 
expected behavior of bash given the invocation above (simply a flag '-c' followed by 
a command to execute)? Should it not (according to my expectations, which i am not 
saying are correct, but simply giving what is the basis of my inquiry): run as a non-
interactive shell?

To be sure i have updated my batch script with this invocation of bash:

D:\win98_Cygwin\bin\bash --noprofile --norc -c \
  "echo -n WINSET USERNAME=`/bin/whoami.exe` >/cdv/c/_session_user.bat"

(The line is not broken at "\" in my batch script of course: email limitations).

Running it seems to accomplish the desired control of bash's behavior.

Regards,
 Soren Andersen


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: CVS PServer problem

2002-01-24 Thread Wu Yongwei

Is there a guide to do so? I configured sshd but still cannot do a remote
CVS operation.

(BTW, it seems I cannot stop the sshd service installed by ssh-host-config.)

Best regards,

Wu Yongwei

--- Original Message from "Geoff Soutter" ---

RTFMLA

[Heh. Been waiting to use that one...]

Pserver doesn't work yet. Using :external and SSH does.

Geoff


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: gettimeofday() does not returns usec resolution

2002-01-24 Thread Ralf Habacker

Lapo Luchini writes: 
> 
> > > I adapted the code to find exactly the minimum time slice, and not "how well
> > > 1ms of retard is seen" (it was a 0ns or 15000ns, this is always 15000ns;
> > > moreover printf is out of the "timing" section):
> > isn't the time slice about 10ms. ?
> 
> Actually is between 15 and 16ms:
> 
> try  1: 437687512 - 437703512 = 16000
> try  2: 437703512 - 437719512 = 16000
> try  3: 437719512 - 437734512 = 15000
> try  4: 437734512 - 437750512 = 16000
> try  5: 437750512 - 437766512 = 16000
> try  6: 437766512 - 437781512 = 15000
> try  7: 437781512 - 437797512 = 16000
> try  8: 437797512 - 437812512 = 15000
> try  9: 437812512 - 437828512 = 16000
> try 10: 437828512 - 437844512 = 16000
> try 11: 437844512 - 437859512 = 15000
> try 12: 437859512 - 437875512 = 16000
> try 13: 437875512 - 437891512 = 16000
> try 14: 437891512 - 437906512 = 15000
> try 15: 437906512 - 437922512 = 16000
> try 16: 437922512 - 437937512 = 15000
> try 17: 437937512 - 437953512 = 16000
> try 18: 437953512 - 437969512 = 16000
> try 19: 437969512 - 437984512 = 15000
> try 20: 437984512 - 438000512 = 16000
> 
Thats my result on a toshiba Satelitte Pro 4300 Laptop with win2000 

habacker@BRAMSCHE ~/src/gettimeofday
$ ./a.exe
try  1: -347828856 - -347818856 = 1
try  2: -347818856 - -347808856 = 1
try  3: -347808856 - -347798856 = 1
try  4: -347798856 - -347788856 = 1
try  5: -347788856 - -347778856 = 1
try  6: -347758856 - -347748856 = 1
try  7: -347748856 - -347737856 = 11000
try  8: -347737856 - -347727856 = 1
try  9: -347727856 - -347717856 = 1
try 10: -347717856 - -347707856 = 1
try 11: -347707856 - -347697856 = 1
try 12: -347697856 - -347687856 = 1
try 13: -347687856 - -347677856 = 1
try 14: -347677856 - -347667856 = 1
try 15: -347667856 - -347657856 = 1
try 16: -347657856 - -347647856 = 1
try 17: -347647856 - -347637856 = 1
try 18: -347637856 - -347627856 = 1
try 19: -347627856 - -347617856 = 1
try 20: -347617856 - -347607856 = 1




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: CVS PServer problem

2002-01-24 Thread Geoff Soutter

How about this http://jfipa.org/publications/CVSGuide/. 

I used Cygwin as the client and server and it worked once I had ssh and
sshd set up properly...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of Wu Yongwei
Sent: Friday, January 25, 2002 5:37 PM
To: [EMAIL PROTECTED]
Subject: RE: CVS PServer problem


Is there a guide to do so? I configured sshd but still cannot do a
remote CVS operation.

(BTW, it seems I cannot stop the sshd service installed by
ssh-host-config.)

Best regards,

Wu Yongwei

--- Original Message from "Geoff Soutter" ---

RTFMLA

[Heh. Been waiting to use that one...]

Pserver doesn't work yet. Using :external and SSH does.

Geoff


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




SSHD problems on Windows 2000 Professional

2002-01-24 Thread Wu Yongwei

I am running the latest version (as of minutes ago) of Cygwin and
encountered problems of SSHD. I did not found answer in latest posts.

I used ssh-host-config to set up sshd. I installed sshd as service and used
the default "CYGWIN=binmode tty ntsec". While it started perfectly for the
first time and was completely usable, the service even refused to stop. I
had to kill sshd.exe in task manager. And then it would not work until the
next boot.

I tried starting sshd from inetd. It was even worse. When I connected to it
from a remote box, there was no response at all. And then sshd.exe hung.
Stopping the service inetd would not stop sshd.exe. I could not even kill
it. I had to reboot the W2k box.

I also tried sshd.exe directly from Cygwin Bash. I would see the prompt for
password on a remote box when connecting to it, but the password could not
be accepted. It always reports "Permission denied".

Any help? (Reply to me, please.)

Thanks and best regards,

Wu Yongwei


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/