pipe improvements in snapshot

2002-12-10 Thread Christopher Faylor
In the most recent cygwin snapshot (uploading now) I've attempted to work around the 10ms delay in pipe reads. I've managed this by resurrecting an idea I had back in 1998, updated for the new millenium. My idea was shot down by other (then) Cygnus employees but since they are now gone and I'm in

RE: can user add his own service in cygwin inetd?

2002-12-10 Thread Larry Hall (RFK Partners, Inc)
Sorry, I'm not an inetd expert. I'd be stuck looking at the available documents too. It's not immediately obvious to me that a perl program wouldn't be able to be run from inetd but then again, I don't know what you're doing. If you do exactly what you've done on Linux and it works there but n

Re: Bison 1.75

2002-12-10 Thread Christopher Faylor
From http://cygwin.com/lists.html: # cygwin-apps: a subscribers-only developers for discussing packaging issues regarding applications that are distributed with the Cygwin DLL. If you are maintaining or volunteering to maintain one of the packages that is distribut

Re: Latest setup.exe

2002-12-10 Thread Robert Collins
On Mon, 2002-12-09 at 03:56, Joseph Davida wrote: > I got around the problem by removing the > old C:\cygwin (actually by renaming it > to cygwin.old) and restarting the setup.exe. > > So it appears current setup.exe will cause this > problem on Win2K if it installs on top of an > exsisting insta

FREE Support & Resistance Training: Breakthrough Technique

2002-12-10 Thread John Slauson
Dear Fellow Trader, For a very limited time, I will be offering a free recorded training session to savvy traders who want to learn a PRECISE way to identify true "Support and Resistance" levels on their charts. (NOTE: This session will only be available to traders who respond before midnight

RE: can user add his own service in cygwin inetd?

2002-12-10 Thread Hua Wang
See if I can make my question clear -- if cygwin inetd can launch a perl (as a daemon) program? I can launch a .exe program without problem. If I move my perl program to a linux machine, it runs fine. I suspect that cygwin inetd just like exceed inetd -- couldn't launch a perl program, but I want

RE: can user add his own service in cygwin inetd?

2002-12-10 Thread [EMAIL PROTECTED]
Well, I'm assuming the program you're trying to launch is created to run as a service/daemon. If it's not, that would be a big part of the problem. If it is, beyond the obvious task of making sure that the environment is correct for the program in question, I can't offer any insights to your pro

RE: can user add his own service in cygwin inetd?

2002-12-10 Thread Hua Wang
Larry, Thanks for your help. After I add new service in etc/services and inetd.conf, inetd seems trying to launch the service I just added. But it got "Connection closed by foreign host" msg immediately. What I tried to do is launch a perl program. Exceed couldn't do it, that is why I am seeking so

RE: ssh tunnel x session - solution

2002-12-10 Thread Cary Lewis
I was having a problem using Xfree and ssh under cygwin. I want to be able to run a xterm session on a remote cygwin machine on the X server running on my local cygwin machine. I can ssh into the remote machine with no problem, and I get an .Xauthority file, the problem is that the entry has the

crashing in select

2002-12-10 Thread markmadsen1
I'm using W2K Pro and select ( I think it is there ) is dumping core. The reason I am not sure is that when I run the app in gdb, the crash is not in the main thread but the addresses on the stack match those of the main thread after it calls select. (The app doesn't start any additional threads on

RE: can user add his own service in cygwin inetd?

2002-12-10 Thread [EMAIL PROTECTED]
I'd recommend looking at the documentation for inetd (i.e. 'man inetd'). It's also woth reviewing /usr/doc/Cygwin/inetutils-1.3.2.README. This should give you the information you need. Larry Original Message: - From: Hua Wang [EMAIL PROTECTED] Date: Tue, 10 Dec 2002 13:41:27 -070

can user add his own service in cygwin inetd?

2002-12-10 Thread Hua Wang
Does any one know if one can add own service in cygwin inetd like exceed does? if it does, how to do it? Any help are great appreciated. Hua -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin

RE: Cygwin Reinstall Failiure

2002-12-10 Thread John Morrison
> From: Arthur I Schwarz > [1] How do I know what I should have and should not have listed in the > setup.exe package list? Is there any documentation on the required > packages? You shouldn't (I believe) have any choice with base, it should aways be installed. As for what else you have selected,

Re: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Igor Pechtchanski
Pierre, Corinna's earlier post indicated that using this pointer collided with Cygwin's fork/exec mechanism... Igor On Tue, 10 Dec 2002, Pierre A. Humblet wrote: > On Wed, Dec 11, 2002 at 06:12:21AM +1100, Noel Gordon wrote: > > > If it is true that cygwin uses gethostbyname() from wsock

Re: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Pierre A. Humblet
On Wed, Dec 11, 2002 at 06:12:21AM +1100, Noel Gordon wrote: > If it is true that cygwin uses gethostbyname() from wsock32.dll, and > returns the wsock32.dll hostent* result to the application, then it > is perhaps unwise to free() it. Following your tip, we find from ... > In net.cc cygwin take

Defunct process on Win98, Cygwin 1.3.17

2002-12-10 Thread Pierre A. Humblet
I have seen two such events in the last few weeks. pid 375917 is stuck waiting forever. Are there any useful details that I should provide? Pierre 713677 262325 262325 4294253619? 500 11:59:54 /c/PROGRAM FILES/CYGNUS/BIN/EXIM-4.10.13-3 375917 713677 262325 4294591379? 500 11

Re: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Noel Gordon
> On Tue, 10 Dec 2002, Noel Gordon wrote: > > > Anyone else confirm that the following program compiled under > > gcc 3.2, cygwin 1.3.17-1, on Win2k leaks memory? > > > > /*---*/ > > > > #include > > #include > > > > int main() > > { > >

Re: cd accepting paths with trailing dots that don't exist (bashand tcsh)

2002-12-10 Thread Shankar Unni
Corinna Vinschen wrote: Honestly, it's a Windows thingy. Windows allows any number of trailing dots for a path or file name. Go figure! And ".." is handled as a special case somewhere in Win32. For giggles, try "cd ..." or "cd ". Both behave like "cd .". Anyway, it's not a cygwin bug.

Re: ls .. not respecting symbolic links

2002-12-10 Thread Shankar Unni
Robb, Sam wrote: I see the same behavior under Linux, so the question is: is this a bash bug, or expected behavior? Expected behavior. This has been a well-known feature of symlinks - the kernel-level APIs can only follow physical paths, not logical paths. *Some shells* have explicit code t

Re: /tmp

2002-12-10 Thread Shankar Unni
Vince Hoffman wrote: I'm intrigued, where would you have it point then ? c:\temp ? c:\tmp ? No, to \tmp. Ditto for /etc. I had tried this same thing earlier: I was using a mount map where "/" was mounted on "c:/" (I have only one disk), and I had a c:/usr directory containing symlinks to c:/

Re: ntsec and remote copy

2002-12-10 Thread Pierre A. Humblet
On Tue, Dec 10, 2002 at 02:02:59PM -, Kris Thielemans wrote: > I have a problem with ntsec I think. > I copied files from a remote disk (a Windows NT server) using the explorer. > These files are then set to the following UID: > > ls -l test.txt > -rwx--1 65535None 1225 De

Re: SIGSEGV when called sem_init() with gdb.

2002-12-10 Thread Oreste Bernardi
I installed gdb 20020718-1. I tried again and I see same behavior. By the way, is gdb 20020718-1 experimental version or stable version ? Oreste - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, December 10, 2002

Re: Cygwin Reinstall Failiure

2002-12-10 Thread Arthur I Schwarz
And here I thought that I was helping you. Just goes to show that 'pride goeth before the fall' and all that rot. You hit it. During my last install my setup.ini file shows that sh-util was installed and my setup.log file shows it was downloaded, but, it was never installed. The old sh-util's in

Re: pathing issues script failure

2002-12-10 Thread Randall R Schulz
Scott, You're re-inventing the wheel, here. Learn about "cygpath", for starters. Also, a new package called "cyg-wrapper.sh" was recently released. It's an attempt at a generic bridging script between Cygwin command interpreters and Windows-native programs. I have yet to evaluate it, so I can'

RE: pathing issues script failure

2002-12-10 Thread [EMAIL PROTECTED]
Non-Cygwin programs don't and never will understand Cygwin's POSIX paths. Look to the FAQ entry below for the cygpath utility to convert paths back and forth: How do I convert between Windows and UNIX paths? http://cygwin.com/faq/faq_4.html#SEC36 Larry Original Message: - From:

pathing issues script failure

2002-12-10 Thread Scott Purcell
Hello, I am writing a simple shell script and I am running into some roadblocks. I am sure it is something I am doing, or the way I have configured the system? Anyway, the problem is in the following script, I have to type in /cygdrive/c, to reach the c drive. But for some reason this script fai

Re: GL/gl.h and libopengl32.a

2002-12-10 Thread Andre Bleau
Daniel Wesslen wrote: Hi, Could somebody update GL/gl.h and regenerate libopengl32.a for a more recent OpenGL version? Thanks, Daniel Wesslen If you mean updating to GL 1.2 or 2.0, no, it will not be done because it cannot be done. libopengl32.a contains the the symbols for M$ %SYSTEMROOT%\

Re: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Igor Pechtchanski
On Tue, 10 Dec 2002, Corinna Vinschen wrote: > On Tue, Dec 10, 2002 at 10:36:04AM -0500, Igor Pechtchanski wrote: > > On Tue, 10 Dec 2002, Noel Gordon wrote: > > > > > Anyone else confirm that the following program compiled under > > > gcc 3.2, cygwin 1.3.17-1, on Win2k leaks memory? > > Confirmed

Re: [ANN] cyg-wrapper.sh

2002-12-10 Thread Matt Armstrong
Luc Hermitte <[EMAIL PROTECTED]> writes: > cyg-wrapper v2.2 has been uploaded on my web site: > http://hermitte.free.fr/cygwin/#Win32 > http://hermitte.free.fr/cygwin/cyg-wrapper.sh > > cyg-wrapper is a shell script that helps to run, from cygwin, > command-line applications that have been

Re: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Corinna Vinschen
On Tue, Dec 10, 2002 at 10:36:04AM -0500, Igor Pechtchanski wrote: > On Tue, 10 Dec 2002, Noel Gordon wrote: > > > Anyone else confirm that the following program compiled under > > gcc 3.2, cygwin 1.3.17-1, on Win2k leaks memory? Confirmed. I found the missing free(). > >From http://www.opengro

RE: ntsec and remote copy

2002-12-10 Thread Kris Thielemans
Oh yes, a related remark. On the file with the funny UID, some things work, some don't. For instance, I can vi it, but I cannot write it. This seems to say that some cygwin programs call this file readable, but others don't... Bearing in mind the premissions that it is said to, I would actually cl

ls .. not respecting symbolic links

2002-12-10 Thread Robb, Sam
All, My apologies if this is a report of expected behavior. I'm primarily a Windows user, and despite spending the last year in Linux/Cygwin lands, I'm still very new to some things :-/ Create a symlink to a directory: $ cd /tmp $ ls $ ln -s /cygdrive/c/TEMP c_temp $ cd c_temp At this po

Re: cd accepting paths with trailing dots that don't exist (bash and tcsh)

2002-12-10 Thread Corinna Vinschen
On Tue, Dec 10, 2002 at 03:49:24PM -, Steve Fairbairn wrote: > > Corinna & All, > > After a play with a dos command prompt, I see your point. I would however > point out that there is still a difference with bash. If you have more than > one trailing . in bash, the 'directory' it puts you i

RE: cd accepting paths with trailing dots that don't exist (bash and tcsh)

2002-12-10 Thread [EMAIL PROTECTED]
Steve, Sounds to me like you're interested in knowing some of the internal details of the border between the Cygwin POSIX emulation layer and the support provided by the WIN32 API. The best way to get these details is to actually "dig in" to the code and see what it does. It is possible that t

RE: SIGSEGV when called sem_init() with gdb.

2002-12-10 Thread [EMAIL PROTECTED]
Rerun setup and update your gdb. If that doesn't help, let the list know. Larry Original Message: - From: Oreste Bernardi [EMAIL PROTECTED] Date: Tue, 10 Dec 2002 16:01:16 +0100 To: [EMAIL PROTECTED] Subject: SIGSEGV when called sem_init() with gdb. Dear, all #include int ma

RE: cross-compiler

2002-12-10 Thread [EMAIL PROTECTED]
The latter. See the cygwin/developer's list email archives if you need a source to help you figure out how to do this. Larry Original Message: - From: [EMAIL PROTECTED] Date: Tue, 10 Dec 2002 09:05:25 -0500 To: [EMAIL PROTECTED] Subject: cross-compiler Pardon me if maybe this

RE: CRON service under an alternate account

2002-12-10 Thread [EMAIL PROTECTED]
Original Message: - >From: Redterra [EMAIL PROTECTED] >Date: Tue, 10 Dec 2002 13:45:41 +0800 >To: [EMAIL PROTECTED] >Subject: CRON service under an alternate account >Why is CRON coded to always revert to SYSTEM, and as a consequence, never >about to access network >shares, de

Re: Another cygrunsrv question

2002-12-10 Thread [EMAIL PROTECTED]
Assuming your question below is not rhetorical, I'd say you may be the best one to determine that, considering that you clearly understand the perl script provided. Although, it's fair to point out that anyone else interested in this functionality could certainly review your script and determine

RE: cd accepting paths with trailing dots that don't exist (bash and tcsh)

2002-12-10 Thread Steve Fairbairn
Corinna & All, After a play with a dos command prompt, I see your point. I would however point out that there is still a difference with bash. If you have more than one trailing . in bash, the 'directory' it puts you in is empty, and you cannot create any files in there. Also bash seems to ret

Re: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Igor Pechtchanski
On Tue, 10 Dec 2002, Noel Gordon wrote: > Anyone else confirm that the following program compiled under > gcc 3.2, cygwin 1.3.17-1, on Win2k leaks memory? > > /*---*/ > > #include > #include > > int main() > { > struct hostent *host; > >

Re: cd accepting paths with trailing dots that don't exist (bash and tcsh)

2002-12-10 Thread Corinna Vinschen
On Tue, Dec 10, 2002 at 09:47:10AM -, Steve Fairbairn wrote: > I've just come across some very strange (to me at least) results with the cd > command in both bash and tcsh under cygwin (1.3.17-1). I have cut and paste > from my shell as I feel it would be easier for you to read it yourself. >

socket reads garbage

2002-12-10 Thread Roger Villemaire
Hi, I posted last week a message about ssh client not working anymore after I upgraded cygwin. Since it seems I am the only one having this problem I downloaded compiled and traced ssh to find that in fact it doesn't read correctly the ID string coming form the sshd server. The problem is that

Re: stdint.h missing

2002-12-10 Thread egor duda
Hi! Tuesday, 10 December, 2002 Neal D. Becker [EMAIL PROTECTED] wrote: NDB> It seems that /usr/include/stdint.h is missing. I am using: Welcome to the world of portable programming. Single Unix Specification version 2 -- a standard cygwin is trying to comply with -- doesn't include such file.

Re: postgres 7.3 IpcSemaphoreCreate: semget(key=1, num=17,03600)failed: Function not implemented

2002-12-10 Thread Jason Tishler
Dan, On Mon, Dec 09, 2002 at 07:34:59PM +0100, Dan Holmsand wrote: > Jason Tishler wrote: > >On Mon, Dec 09, 2002 at 12:05:16AM +0100, Dan Holmsand wrote: > >>I get a similar error: > >> > >>IpcSemaphoreInitialize: semctl(id=2, 0, SETVAL, 0) failed: Invalid argument > > > >The above is noted in th

SIGSEGV when called sem_init() with gdb.

2002-12-10 Thread Oreste Bernardi
Dear, all #include int main () { int p; sem_t sem; int i=0,d; //sem=(sem_t)NULL; //With this There isn't any problem sem_init (&sem,0,1); sem_post (&sem); sem_wait(&sem); return i; } cygwin 1.3.17-1 gcc 3.2-3 gdb 20010428-3 When executing this source code with gdb I get an SIGSEGV signal whe

Re: Cursor manipulation in python/curses

2002-12-10 Thread Jason Tishler
Leonardo, On Thu, Dec 05, 2002 at 12:26:24PM -0200, Leonardo Mesquita wrote: > this is the first time I am writing to this list, so I apologize if > this is way off-topic... No need to apologize -- this post is appropriate for this list. > Is there any possible way to hide the terminal cursor wi

stdint.h missing

2002-12-10 Thread Neal D. Becker
It seems that /usr/include/stdint.h is missing. I am using: Cygwin Win95/NT Configuration Diagnostics Current System Time: Tue Dec 10 09:43:35 2002 Windows 2000 Server Ver 5.0 Build 2195 Service Pack 2 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygw

Re: Postgresql build fails ...

2002-12-10 Thread Jason Tishler
Stephan, On Tue, Dec 10, 2002 at 09:29:41AM +0100, Stephan Harren wrote: > May I use this DBD::PG without cygwin? No, if you want a Win32 libpq, then you will have to build it yourself. Note that you may need MSVC to accomplish this -- unless, someone has added Mingw support. Jason -- PGP/GPG

ntsec and remote copy

2002-12-10 Thread Kris Thielemans
Hi, I have a problem with ntsec I think. I copied files from a remote disk (a Windows NT server) using the explorer. These files are then set to the following UID: ls -l test.txt -rwx--1 65535None 1225 Dec 10 11:30 test.txt If I create a file locally myself, I nicely get -rw-

cross-compiler

2002-12-10 Thread Fred_Smith
Pardon me if maybe this belong on developer instead I've seen mention of a cygwin-targeted cross-development toolset (for LInux, perhaps), but so far have no clue where/how one obtains it. Is there a package available somewhere, or does one need to download gcc et al (and I don't know how

GL/gl.h and libopengl32.a

2002-12-10 Thread Daniel Wesslen
Hi, Could somebody update GL/gl.h and regenerate libopengl32.a for a more recent OpenGL version? Thanks, Daniel Wesslen -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ:

Re: MSVC++ compiling against cygwin headers to link cygwin1.dll

2002-12-10 Thread Tim Prince
On Tuesday 10 December 2002 01:02, Manne Baum wrote: > Hi, > Is there a way to use cygwin1.dll by MSVC++ compiler/linker? > > I (read FAQ, searched lists and) tried with defines and includes but > couldn't make MSVC++ compile against cygwin headers like > #include > and end up with errors li

RE: setup troubles: Download incomplete

2002-12-10 Thread Kris Thielemans
Hi, sorry for the late follow-up. new text is at the end > -Original Message- > From: Larry Hall (RFK Partners, Inc) [mailto:[EMAIL PROTECTED]] > Sent: 06 December 2002 13:54 > To: Kris Thielemans; [EMAIL PROTECTED] > Subject: RE: setup troubles: Download incomplete > > > At 04:57 AM 12/

memory checker tools under cygwin

2002-12-10 Thread Xavier Boussin
hi folks, I am looking for a memory checker such as mpatrol running under cygwin Any one ever tried to run mpatrol under cygwin (or others)? thanks gilles -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: h

FW: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Steve Fairbairn
Sorry, it decided not to reply to the list for some reason. -Original Message- From: Steve Fairbairn Sent: 10 December 2002 08:57 To: 'Noel Gordon' Subject: RE: cygwin 1.3.17-1 gethostbyname() leak I can confirm it loses about 8k every sample of the Win2k Pro task manager performance mon

cd accepting paths with trailing dots that don't exist (bash and tcsh)

2002-12-10 Thread Steve Fairbairn
Hi All, I've just come across some very strange (to me at least) results with the cd command in both bash and tcsh under cygwin (1.3.17-1). I have cut and paste from my shell as I feel it would be easier for you to read it yourself. I don't have any aliases set. The output is all from bash, bu

"Segmentation fault" error in ld

2002-12-10 Thread fabrizio_ge-wolit
The version of ld distributed with Cygwin (version 2.13.90 20021118) exits with a "segmentation fault" error when launched with the -shared option and passed a .def file with a syntax error. An example: create a file with a .def extension, and the following content - LIBRARY lib BA

MSVC++ compiling against cygwin headers to link cygwin1.dll

2002-12-10 Thread Manne Baum
Hi, Is there a way to use cygwin1.dll by MSVC++ compiler/linker? I (read FAQ, searched lists and) tried with defines and includes but couldn't make MSVC++ compile against cygwin headers like #include and end up with errors like ...\cygwin\usr\include\sys\_types.h(13) : error C26

cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Noel Gordon
Anyone else confirm that the following program compiled under gcc 3.2, cygwin 1.3.17-1, on Win2k leaks memory? /*---*/ #include #include int main() { struct hostent *host; while ( 1 ) { if ( ( host = gethostbyname( "localhost"

Re: Postgresql build fails ...

2002-12-10 Thread Stephan Harren
May I use this DBD::PG without cygwin? I'm asking, because I want to make an exe-file out of the perl-script, and perl2exe will include DBD and postgres-libs but I don't think that it will also include the cygwin-libs. Best regards and thanks a lot, Stephan Elfyn McBratney wrote: Hi, You've

Re: Postgresql build fails ...

2002-12-10 Thread Elfyn McBratney
Hi, You've got what you need to compile DBD::PG with /bin/pq.dll. You may have to synlink but I can't remember what the prefix is. Try: $ ln -s /bin/pq.dll /bin/cygpq.dll The above name may be wrong, check the list archives, but we've been using the DBD::PG mod at work since I started with cyg