[Review - good to go] unrtf-0.19.0

2004-02-19 Thread Igor Pechtchanski
On Wed, 18 Feb 2004, Jari Aalto+mail.linux wrote:

 * Tue 2004-02-17 Igor Pechtchanski
 |
 | Not quite.  I'd put the whole shebang (starting with UnRTF) in
 | setup.hint, i.e.,
 |
 | sdesc: Convert RTF to other formats, including HTML, LaTeX, text, and PostScript.
 | ldesc: UnRTF is a moderately complicated converter from RTF to other formats,
 | including HTML, LaTeX, text, and PostScript.  Converting to HTML, it
 | supports tables, fonts, colors, embedded images, hyperlinks, paragraph
 | alignment among other things.
 | category: Doc
 | requires: cygwin

 Fixed.

 |  Wow. Bug in the script, it didn't call check() and went
 |  unnoticed from me. Fixed.
 |
 | Yep, but now it's not stripped.

 Fixed.

 Jari

Indeed it is.

 wget --non-verbose  \
   http://tierra.dyndns.org:81/cygwin/unrtf/setup.hint \
   http://tierra.dyndns.org:81/cygwin/unrtf/unrtf-0.19.0-1-src.tar.bz2 \
   http://tierra.dyndns.org:81/cygwin/unrtf/unrtf-0.19.0-1.tar.bz2

 or

 mkdir unrtf ; cd unrtf
 wget -q -O - http://tierra.dyndns.org:81/cygwin/unrtf/get.sh | sh

This is now good to go, and can be uploaded as soon as it gathers the
necessary votes.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


a script to remove empty directories

2004-02-19 Thread Andreas Seidl
Igor Pechtchanski wrote:
On Wed, 18 Feb 2004, Andreas Seidl wrote:
Hmm, wouldn't the generic build script be the place to add functionality
to remove empty directories? Doing it by hand adds work, and even worse,
is a possible source for bugs, as a newer release might have actually
files in directories which were empty before, and if overlooked, they
could get removed.


Andreas,

Feel free to send a patch for this. ;-)
Igor
I have written the following script, which is as good as I can do at the 
moment.

- begin -
#!/usr/bin/bash
# rmed -- remove empty directories recursively
# usage: rmed [DIR] where DIR is an optional argument, the directory
#   where to start examining.
# limitations:
#   - spaces in file or direcory names
#   - currently still prints instead of removing (remove # in line 19)
if [ -z $1 ] ; then
  basedir=.
else
  basedir=$1
fi
cd $basedir
dirs=`\ls -F | grep '/' | sed sx/xx`
for dir in $dirs ; do
   #echo   examining $dir
  if [ -z `\ls $dir` ] ; then
echo empty: `pwd`/$dir
#rmdir $dir
  else
rmed $dir
  fi
done
cd -
- end -


Re: a script to remove empty directories

2004-02-19 Thread Bruce Ingalls
Andreas Seidl wrote:

Igor Pechtchanski wrote:

On Wed, 18 Feb 2004, Andreas Seidl wrote:

Hmm, wouldn't the generic build script be the place to add 
functionality
to remove empty directories? Doing it by hand adds work, and even 
worse,
is a possible source for bugs, as a newer release might have actually
files in directories which were empty before, and if overlooked, they
could get removed.




Andreas,

Feel free to send a patch for this.
Igor


I have written the following script, which is as good as I can do at 
the moment.

- begin -
#!/usr/bin/bash
# rmed -- remove empty directories recursively
# usage: rmed [DIR] where DIR is an optional argument, the directory
#   where to start examining.
# limitations:
#   - spaces in file or direcory names


Hm. I'm used to Linux compatible systems treating `test -z` as checking 
files/dirs for zero length, not strings.
I'm not sure why the following doesn't work:
#!/bin/bash
for dir in **/*; do if [ -d $dir -a ! -s $dir ];then echo $dir; fi; done
for dir in **/.*; do if [ -d $dir -a ! -s $dir ];then echo $dir; fi; done

Maybe zsh works better than bash here?

Anyhow, here is an elegant, working solution. If no optional dir is 
passed, then the current dir is checked recursively, and empty 
subdirectories are passed.

#!/bin/bash
ROOT=${1:-.}
if [ ! -d $ROOT ];then ROOT=.;fi
find $ROOT -type d -empty|xargs rmdir -
Here is a shortcoming:
1) Makes only one pass, so if a directory only contains empty 
subdirectories, that new, empty parent remains.
You could try saving the dirnames/parents of deleted directories into a 
list, or recursively attempt to rmed them.





Re: a script to remove empty directories

2004-02-19 Thread Dr. Volker Zell
 Andreas == Andreas Seidl writes:

Andreas I have written the following script, which is as good as I can do at
Andreas the moment.

Andreas - begin -
Andreas #!/usr/bin/bash
Andreas # rmed -- remove empty directories recursively
Andreas # usage: rmed [DIR] where DIR is an optional argument, the directory
Andreas #   where to start examining.
Andreas # limitations:
Andreas #   - spaces in file or direcory names
Andreas #   - currently still prints instead of removing (remove # in line 19)
Andreas if [ -z $1 ] ; then
Andreasbasedir=.
Andreas else
Andreasbasedir=$1
Andreas fi
Andreas cd $basedir
Andreas dirs=`\ls -F | grep '/' | sed sx/xx`
Andreas for dir in $dirs ; do
Andreas #echo   examining $dir
Andreasif [ -z `\ls $dir` ] ; then
Andreas  echo empty: `pwd`/$dir
Andreas  #rmdir $dir
Andreaselse
Andreas  rmed $dir
Andreasfi
Andreas done
Andreas cd -
Andreas - end -

Here is another one from

 o http://www.shelldorado.com/scripts/categories.html


--- cut here ---
:
# rmemptydir - remove empty directories
# Heiner Steven ([EMAIL PROTECTED]), 2000-07-17
#
# Category: File Utilities

[ $# -lt 1 ]  set -- .

find $@ -type d -depth -print |
while read dir
do
[ `ls $dir | wc -l` -lt 1 ] || continue
echo 2 $0: removing empty directory: $dir
rmdir $dir || exit $?
done
exit 0
--- cut here ---

Ciao
  Volker



Re: [Review - good to go] unrtf-0.19.0

2004-02-19 Thread Dr. Volker Zell
 Igor == Igor Pechtchanski  writes:

Igor This is now good to go, and can be uploaded as soon as it gathers the
Igor necessary votes.

Here is one

Igor   Igor

Ciao
  Volker



Re: [Review - good to go] unrtf-0.19.0

2004-02-19 Thread Joshua Daniel Franklin
On Thu, Feb 19, 2004 at 09:09:16AM -0500, Igor Pechtchanski wrote:
 On Wed, 18 Feb 2004, Jari Aalto+mail.linux wrote:
 
  mkdir unrtf ; cd unrtf
  wget -q -O - http://tierra.dyndns.org:81/cygwin/unrtf/get.sh | sh
 
 This is now good to go, and can be uploaded as soon as it gathers the
 necessary votes.


I was hoping to try it out, but it looks like your the or DNS is 
down right now.

Based on Igor's review, I vote for this since it sounds useful.


Re: a script to remove empty directories

2004-02-19 Thread Andreas Seidl
Bruce Ingalls wrote:

Anyhow, here is an elegant, working solution. If no optional dir is 
passed, then the current dir is checked recursively, and empty 
subdirectories are passed.

#!/bin/bash
ROOT=${1:-.}
if [ ! -d $ROOT ];then ROOT=.;fi
find $ROOT -type d -empty|xargs rmdir -
Meanwhile I was able to overcome the spaces in filenames problem, and, 
funny enough, i used wc -l as in the script posted by Volker for testing 
a directory to be empty. But I use recursion, which is bad for 
incorporation in other scripts. Anyway, below is, just for the records, 
my meanwhile obsolete solution.

Your version is much faster (but has problems with spaces) than my 
version and the version posted by Volker. (e.g. 4s versus 50s).

- begin -
#!/usr/bin/bash
# rmed -- remove empty directories recursively
# Andreas Seidl -- http://www.fmi.uni-passau.de/~seidl/ -- 19.02.2004
# usage: rmed [DIR] where DIR is an optional argument, the directory
#   where to start examining.
if [ -z $1 ] ; then
  basedir=.
else
  basedir=$1
fi
cd $basedir
for dir in * ; do
  if [ -d `pwd`/$dir ] ; then
if [ `\ls $dir | wc -l` -eq 0 ] ; then
#if [ -z $(\ls $dir) ] ; then
  echo empty: `pwd`/$dir
  rmdir $dir
else
  #echo non-empty: `pwd`/$dir
  rmed $dir
fi
  fi
done
cd -
- end -
Here is a shortcoming:
1) Makes only one pass, so if a directory only contains empty 
subdirectories, that new, empty parent remains.
You could try saving the dirnames/parents of deleted directories into a 
list, or recursively attempt to rmed them.








Re: a script to remove empty directories

2004-02-19 Thread Andreas Seidl
Dr. Volker Zell wrote:

Here is another one from

 o http://www.shelldorado.com/scripts/categories.html
I searched with Google, but did not find it...

--- cut here ---
:
# rmemptydir - remove empty directories
# Heiner Steven ([EMAIL PROTECTED]), 2000-07-17
#
# Category: File Utilities
[ $# -lt 1 ]  set -- .

find $@ -type d -depth -print |
while read dir
do
[ `ls $dir | wc -l` -lt 1 ] || continue
echo 2 $0: removing empty directory: $dir
rmdir $dir || exit $?
done
exit 0
--- cut here ---
This is the best one we have seen today. The clever -depth option to 
find ensures, that directories, which contain only empty directories, 
are removed as well:

$ find . -type d -depth -print
./asd
./asdf asdf/jkl
./asdf asdf
./usr/bin
./usr
.
as opposed to:

$ find . -type d -print
.
./asd
./asdf asdf
./asdf asdf/jkl
./usr
./usr/bin




Re: a script to remove empty directories

2004-02-19 Thread Igor Pechtchanski
On Thu, 19 Feb 2004, Andreas Seidl wrote:

 Bruce Ingalls wrote:

  Anyhow, here is an elegant, working solution. If no optional dir is
  passed, then the current dir is checked recursively, and empty
  subdirectories are passed.
 
  #!/bin/bash
  ROOT=${1:-.}
  if [ ! -d $ROOT ];then ROOT=.;fi
  find $ROOT -type d -empty|xargs rmdir -f

 Meanwhile I was able to overcome the spaces in filenames problem, and,
 funny enough, i used wc -l as in the script posted by Volker for testing
 a directory to be empty. But I use recursion, which is bad for
 incorporation in other scripts. Anyway, below is, just for the records,
 my meanwhile obsolete solution.

 Your version is much faster (but has problems with spaces) than my
 version and the version posted by Volker. (e.g. 4s versus 50s).

Here's a variant of the above that works with spaces in filenames (but
doesn't delete directories that contain only empty directories):

find $ROOT -depth -type d -empty -print0 |xargs -0 rmdir -f

However, does anyone care to submit a patch to the generic-build-script?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton


Re: a script to remove empty directories

2004-02-19 Thread Robert Collins
On Fri, 2004-02-20 at 01:56, Andreas Seidl wrote:
 Igor Pechtchanski wrote:
  
  Feel free to send a patch for this. ;-)
  Igor
 
 I have written the following script, which is as good as I can do at the 
 moment.

Oh . I'm sorry, I replied to the wrong thread with my previous email
about this being uselss

Again - I'm sorry.

Rob (goes off to get coffee...)

-- 
GPG key available at: http://www.robertcollins.net/keys.txt.


signature.asc
Description: This is a digitally signed message part


Re: a script to remove empty directories

2004-02-19 Thread Robert Collins
On Fri, 2004-02-20 at 01:56, Andreas Seidl wrote:
 Igor Pechtchanski wrote:
  Andreas,
  
  Feel free to send a patch for this. ;-)
  Igor
 
 I have written the following script, which is as good as I can do at the 
 moment.

And is utterly useless. Cygwin setup is written in C/C++.

Rob
-- 
GPG key available at: http://www.robertcollins.net/keys.txt.


signature.asc
Description: This is a digitally signed message part


Re: Window events skip past window manager?

2004-02-19 Thread Takuma Murakami
Christopher,

 I'm just installed using Cygwin/X via Cygwin Setup:
   XFree86-base v 4.3.0-1
   XFee86-bin v 4.3.0-8
 
 Running on Win XP Pro.

The version of XFree86-xserv is important.  Options for
XWin.exe are also good information.

 It's a great relief to see X again!  I'm starting off with just
 the default twm.  However, it seems that most window mouse and
 key events are not captured by the window manager, and instead
 are passed on to the app. 
 
 For example:
 
   Button3 = : all : f.raiselower
 
 This works only for the root, the window titlebar, and in the iconmgr.
 In the window, it just passes Button3 on to the running application.

I assume you mention twm and tested using .twmrc containing
only the line you showed.  It looks raiselower is working
correctly on the release-44 server with no option given.

  F1 = : all : f.raiselower
  F2 = : all : f.warpto emacs
 
 Both of these work only on root.  I've played with fvwm2 as well
 and experienced similar results.

I also tried the F1 case and got success.

 Anyway to get this to work?

I suspect that you are using a too old version of Cygwin/X
or your .twmrc has some errors.

Takuma Murakami



Re: Problems with the right-button.

2004-02-19 Thread Takuma Murakami
Gonzalo,

 What do you mean when you say pressing a control key? Which key do you
 refer?

I meant the key which is printed Ctrl on its keytop, but
it is not the problem because you prove Cygwin/X has
different behaviour to other X servers.

 I have followed your recomendations, and have done a test with xev. This is
 what I get when I click the right-button:
 
 ButtonPress event, serial 25, synthetic NO, window 0x1e1,
 root 0x3b, subw 0x0, time 7103754, (84,92), root:(150,158),
 state 0x10, button 3, same_screen YES

It indicates button presses are correctly reported to
applications, I believe.  A little suspicion is the state 0x10.
Were you pressing some keys while the xev test?

 Any help will be apreciated.

Unfortunately I have no more ideas.  I don't have CDE
environments, so I can't even try to examine or reproduce
your problem.

Takuma Murakami



Re: map mouse button 4 or 5 to button 2?

2004-02-19 Thread Takuma Murakami
Jeffrey,

 Is it possible to have either button 4 or 5 (usually the forward/back 
 buttons) send a 'button 2' signal (ie paste) to cygwin applications?  

Chad shows the best way for your purpose.  As a note, you
can swap mouse buttons via xmodmap command in UNIX like
environments.  For this case
xmodmap -e pointer = 1 5 3 4 2
swaps button 2 and button 5.

 My new mouse/keyboard setup is MS Wireless Optical Desktop Elite (which 
 includes a Wireless IntelliMouse Explorer 2.0), and I'm running  hm, 
 not sure how to check my Cygwin version, it's probably ~4 months old 
 ... on WinXP.

The xmodmap way works well on Cygwin/X versions newer than
release-22 (released on 2003-11-9).

Takuma Murakami



Re: map mouse button 4 or 5 to button 2?

2004-02-19 Thread J S
Just to confuse the issue further (sorry), can I map the right mouse button 
to CTRL+F9 ?

JS.

Jeffrey,

 Is it possible to have either button 4 or 5 (usually the forward/back
 buttons) send a 'button 2' signal (ie paste) to cygwin applications?
Chad shows the best way for your purpose.  As a note, you
can swap mouse buttons via xmodmap command in UNIX like
environments.  For this case
xmodmap -e pointer = 1 5 3 4 2
swaps button 2 and button 5.
 My new mouse/keyboard setup is MS Wireless Optical Desktop Elite (which
 includes a Wireless IntelliMouse Explorer 2.0), and I'm running  hm,
 not sure how to check my Cygwin version, it's probably ~4 months old
 ... on WinXP.
The xmodmap way works well on Cygwin/X versions newer than
release-22 (released on 2003-11-9).
Takuma Murakami

_
Stay in touch with absent friends - get MSN Messenger 
http://www.msn.co.uk/messenger



Re: map mouse button 4 or 5 to button 2?

2004-02-19 Thread Takuma Murakami
 Just to confuse the issue further (sorry), can I map the right mouse button 
 to CTRL+F9 ?

I guess xmodmap cannot do such remapping.  However there
are some tools which achieve the remapping in Windows layer.
Maybe there are some in UNIX layer too.

Takuma Murakami



Re: XWin causes Windows apps to hang(?)

2004-02-19 Thread Ed Avis
Ed Avis [EMAIL PROTECTED] writes:

- I copied a URL from an email message in Evolution
- When I paste into a Windows app, that Windows app is stuck. This
happened w/iexplorer and explorer.exe.

It appears as if the Windows app is stuck indefinitely waiting for
the pastable from XWin.

I am seeing this too.  I tried pasting into several different
applications, in all cases it caused the app to hang and I had to
kill it using the task manager.

Here is the XWin.log for an X session that does this.  The server is
running happily but it will crash any Windows app I try to paste into
from the X selection.  I wonder if it might be the line

winProcSetSelectionOwner - OpenClipboard () failed: 

The log follows.

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1280 h 1024
winInitializeDefaultScreens - Returning
OsVendorInit - Creating bogus screen 0
(EE) Unable to locate/open config file
InitOutput - Error reading config file
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - Allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 001f
InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
winScreenInit - dwWidth: 1280 dwHeight: 1024
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL - Using Windows display depth of 32 bits per pixel
winCreateBoundingWindowWindowed - User w: 1280 h: 1024
winCreateBoundingWindowWindowed - Current w: 1280 h: 1024
winAdjustForAutoHide - Original WorkArea: 0 0 996 1280
winAdjustForAutoHide - Adjusted WorkArea: 0 0 996 1280
winCreateBoundingWindowWindowed - WindowClient w 1274 h 971 r 1274 l 0 b 971 t 0
winCreateBoundingWindowWindowed -  Returning
winCreatePrimarySurfaceShadowDDNL - Creating primary surface
winCreatePrimarySurfaceShadowDDNL - Created primary surface
winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface
winAllocateFBShadowDDNL - lPitch: 5096
winAllocateFBShadowDDNL - Created shadow pitch: 5096
winAllocateFBShadowDDNL - Created shadow stride: 1274
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowDDNL - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winFinishScreenInitFB - returning
winScreenInit - returning
InitOutput - Returning.
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shared 
memory support in the kernel
(--) Setting autorepeat to delay=250, rate=31
(--) winConfigKeyboard - Layout: 0809 (0809) 
(--) Using preset keyboard for English (United Kingdom) (809), type 4
(EE) No primary keyboard configured
(==) Using compiletime defaults for keyboard
Rules = xfree86 Model = pc105 Layout = gb Variant = (null) Options = (null)
winPointerWarpCursor - Discarding first warp: 637 485
winBlockHandler - Releasing pmServerStarted
winBlockHandler - pthread_mutex_unlock () returned
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winClipboardWindowProc - WM_DRAWCLIPBOARD - Initializing - Returning.
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 

putting xwin into background from a batch script

2004-02-19 Thread J S
Hi,

I have a batch script to start an xdmcp session. Once the xwin command runs 
I need to start up xbindkeys. However the program hangs at the xwin command 
until the session is closed down, then executes xbindkeys:

xwin -noreset -ac -query %SERVER% -from %IP% -clipboard -nodecoration 
-emulate3buttons 50 -dpi 91 -once
xbindkeys

Is there a way (in batch) to fork the xwin session into the background ?

Thanks for any help,

JS.

_
Tired of 56k? Get a FREE BT Broadband connection 
http://www.msn.co.uk/specials/btbroadband



Re: GDI object leak with remote emacs

2004-02-19 Thread Takuma Murakami
Jeremy,

 I don't know if this is related to the problems that people are
 experiencing with local copies of emacs but I'm seeing a GDI object
 leak with remote invocations of emacs that are routed back to my X
 server.
 
 Basically, I run cygwin/XFree86 on my local workstation, and I start
 an emacs on a Unix server that is displayed on my X server here.
 When using emacs, everytime I open a file, I can see that the XWin.exe
 processes gains a few GDI objects, but killing that buffer in emacs
 doesn't free them.  Exiting emacs doesn't free them either.  Once the
 leak grows enough (around 1500 GDI objects in XWin.exe) I start
 getting repaint problems and I have to kill X and restart it.

I cannot reproduce this in the following environments.
- Cygwin DLL 1.5.5 and 1.5.7
- Cygwin/X release-44
- GNU Emacs 21.3 on FreeBSD 4.8 and 21.3 on MacOS X 10.3
- SFU not installed
- invoked by 'ssh -CXf hostname emacs'

In my task manager's process list XWin.exe allocates 2 GDI
objects for a frame and the number of open files does not
affect it.  Closing a frame correctly reduces 2 GDI objects.

Takuma Murakami



Re: Problems with the right-button.

2004-02-19 Thread Alexander Gottwald
On Thu, 19 Feb 2004, Takuma Murakami wrote:

  ButtonPress event, serial 25, synthetic NO, window 0x1e1,
  root 0x3b, subw 0x0, time 7103754, (84,92), root:(150,158),
  state 0x10, button 3, same_screen YES
 
 It indicates button presses are correctly reported to
 applications, I believe.  A little suspicion is the state 0x10.
 Were you pressing some keys while the xev test?

state 0x10 is Num-Lock. Try switching off num-lock

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723
 Chemnitzer Linux-Tag 2004 - 6. und 7. März 2004
 http://www.tu-chemnitz.de/linux/tag


Re: Window events skip past window manager?

2004-02-19 Thread Takuma Murakami
Christopher,

 Here's what xev reports when I hit F1 in the event tester window, 
 does this shed any light?
 
 KeyPress event, serial 22, synthetic NO, window 0x81,
 root 0x3a, subw 0x0, time 71535359, (37,0), root:(72,469),
 state 0x10, keycode 67 (keysym 0xffbe, F1), same_screen YES,
 XLookupString gives 0 bytes:  
 
 KeyRelease event, serial 22, synthetic NO, window 0x81,
 root 0x3a, subw 0x0, time 71535453, (37,0), root:(72,469),
 state 0x10, keycode 67 (keysym 0xffbe, F1), same_screen YES,
 XLookupString gives 0 bytes:  

Alexander Gottwald has the light.  He tells that the state
0x10 indicates NumLock is on, which probably causes your
problem.  Try to turn off NumLock.

Takuma Murakami



Suggestion: Minimize All item in Multi-Window Mode Tray Menu

2004-02-19 Thread David M. Miller
You're probably inundated with far more salient suggestions, but I
thought I'd try anyway:

When the screen is littered with X windows, it would be useful to be
able to minimize them as a group without affecting the non-X windows;
likewise, an Undo Minimize All item (a la Windows Explorer taskbar
context menu) could restore any that were minimized with the first
command that haven't been restored individually.

Just asking.



=
Regards,
david
--
David M. Miller
Business Visions, Inc. 
570 Fort Washington Ave, Suite #22B,
New York, NY  10033-2039
Mobile: (917) 952-1600

__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools


problems with maximized windows

2004-02-19 Thread Massimiliano Hofer
Hi,
I'm using XFree86 4.3.0 under Windows 2000 and Windows XP in multiwindow mode, 
but I have problems with maximized windows.
With many applications (especially CrossOver, but not only), if I maximize 
them, X starts to display duplicate layers and mouse pointers in menues, drop 
down lists and anything that pops up without a complete window.

This never happens if I don't use the multiwindow mode, so I guess it's a 
problem with window border calculations in the local window manager.

Has anyone ever had this problem? Am I doing something wrong with the 
configuration?

-- 
Bye,
   Massimiliano Hofer
Nucleus


Re: map mouse button 4 or 5 to button 2?

2004-02-19 Thread Harold L Hunt II
Jeff,

I just bought the same keyboard and mouse setup and ran into the same 
issue that you did.  The key is to make the mouse wheel click map to 
something that the mouse driver does not intercept and prevent from 
being handled by the current application.  The Switch Application 
function is an intercepted function, whereas the old default 
AutoScroll is not intercepted, so the mouse wheel click is passed 
through to the current application.  I am not sure there is much we can 
do to force the mouse driver to pass us the mouse wheel click, so you 
might just have to set it back to AutoScroll to get the desired 
functionality.

Harold

Jeffrey J. Gray wrote:

Hi,

Is it possible to have either button 4 or 5 (usually the forward/back 
buttons) send a 'button 2' signal (ie paste) to cygwin applications?  
The reasons for this are (1) since button 2 is on the wheel, pressing 
this button sometimes also accidentally sends a scroll signal making for 
sloppy paste operations and  (2) I just upgraded my mouse, and in the 
new standard configuration, Windows intercepts button 2 and makes it a 
'switch applications' signal.  I need button 2 for Cygwin paste 
operations, so I'm anxious to restore this functionality to my cygwin.

My new mouse/keyboard setup is MS Wireless Optical Desktop Elite (which 
includes a Wireless IntelliMouse Explorer 2.0), and I'm running  hm, 
not sure how to check my Cygwin version, it's probably ~4 months old 
 on WinXP.

Thanks for the help,
Jeff


Re: XWin causes Windows apps to hang(?)

2004-02-19 Thread Harold L Hunt II
Ed,

Yes, the OpenClipboard failure is probably causing your crash.  Try 
editing your startxwin.bat and removing the -clipboard parameter being 
passed to XWin.exe.  There is likely a bug in XWin.exe's clipboard 
support that will need to be fixed.

Harold

Ed Avis wrote:

Ed Avis [EMAIL PROTECTED] writes:


- I copied a URL from an email message in Evolution
- When I paste into a Windows app, that Windows app is stuck. This
happened w/iexplorer and explorer.exe.
It appears as if the Windows app is stuck indefinitely waiting for
the pastable from XWin.
I am seeing this too.  I tried pasting into several different
applications, in all cases it caused the app to hang and I had to
kill it using the task manager.


Here is the XWin.log for an X session that does this.  The server is
running happily but it will crash any Windows app I try to paste into
from the X selection.  I wonder if it might be the line
winProcSetSelectionOwner - OpenClipboard () failed: 

The log follows.

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1280 h 1024
winInitializeDefaultScreens - Returning
OsVendorInit - Creating bogus screen 0
(EE) Unable to locate/open config file
InitOutput - Error reading config file
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - Allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 001f
InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
winScreenInit - dwWidth: 1280 dwHeight: 1024
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL - Using Windows display depth of 32 bits per pixel
winCreateBoundingWindowWindowed - User w: 1280 h: 1024
winCreateBoundingWindowWindowed - Current w: 1280 h: 1024
winAdjustForAutoHide - Original WorkArea: 0 0 996 1280
winAdjustForAutoHide - Adjusted WorkArea: 0 0 996 1280
winCreateBoundingWindowWindowed - WindowClient w 1274 h 971 r 1274 l 0 b 971 t 0
winCreateBoundingWindowWindowed -  Returning
winCreatePrimarySurfaceShadowDDNL - Creating primary surface
winCreatePrimarySurfaceShadowDDNL - Created primary surface
winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface
winAllocateFBShadowDDNL - lPitch: 5096
winAllocateFBShadowDDNL - Created shadow pitch: 5096
winAllocateFBShadowDDNL - Created shadow stride: 1274
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowDDNL - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winFinishScreenInitFB - returning
winScreenInit - returning
InitOutput - Returning.
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
(--) Setting autorepeat to delay=250, rate=31
(--) winConfigKeyboard - Layout: 0809 (0809) 
(--) Using preset keyboard for English (United Kingdom) (809), type 4
(EE) No primary keyboard configured
(==) Using compiletime defaults for keyboard
Rules = xfree86 Model = pc105 Layout = gb Variant = (null) Options = (null)
winPointerWarpCursor - Discarding first warp: 637 485
winBlockHandler - Releasing pmServerStarted
winBlockHandler - pthread_mutex_unlock () returned
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winClipboardWindowProc - WM_DRAWCLIPBOARD - Initializing - Returning.
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1

girls are just amazing

2004-02-19 Thread Merrill Day
tired of your gf not liking you

http://www.oloomb.com/4/3/index.php?ai=7176





Re: Billing info needed for order # 457f asfsafas jhghnbh

2004-02-19 Thread Ovaries M. Whist
Hey,

Check it out Buy Phentermine, Ambien, Soma, Viagr4 and
Cialas Aka Super Viagr4.. The Viagr4 that last
all weekend! 

As well as all other popular medications. Next-Day Fedex.
No prior prescription needed. 

check it out here http://supermdonline.com?rid=1001











off
http://to.supermdonline.com


src/winsup/doc ChangeLog cygwinenv.sgml textbi ...

2004-02-19 Thread joshuadfranklin
CVSROOT:/cvs/src
Module name:src
Changes by: [EMAIL PROTECTED]   2004-02-20 07:26:17

Modified files:
winsup/doc : ChangeLog cygwinenv.sgml textbinary.sgml 

Log message:
2004-02-19  Joshua Daniel Franklin  [EMAIL PROTECTED]

* cygwinenv.sgml: Remove incorrect ^Z information. Add
some tags to server option description.
* textbinary.sgml: Remove incorrect ^Z information.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/doc/ChangeLog.diff?cvsroot=srcr1=1.56r2=1.57
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/doc/cygwinenv.sgml.diff?cvsroot=srcr1=1.11r2=1.12
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/winsup/doc/textbinary.sgml.diff?cvsroot=srcr1=1.3r2=1.4



[PATCH] Add support for non portable mutex initializers

2004-02-19 Thread Thomas Pfaff
This patch will add support for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,
PTHREAD_NORMAL_MUTEX_INITIALIZER_NP and
PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP (+ some small bugfixes).
Attached are also testcases for these initializers.
The initializer names are borrowed from linux nptl.

These initializers can be used for example to enable thread safe stdio
in newlib without moving __sinit. I really want to get this fixed.

Thomas

P.S.: I will be on winter vacation next week, no reply during that
time.


2004-02-20  Thomas Pfaff  [EMAIL PROTECTED]

* winsup.api/pthread/mutex8e.c: New testcase.
* winsup.api/pthread/mutex8n.c: Ditto.
* winsup.api/pthread/mutex8r.c: Ditto.

and

2004-02-20  Thomas Pfaff  [EMAIL PROTECTED]

* include/pthread.h (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP):
New define.
(PTHREAD_NORMAL_MUTEX_INITIALIZER_NP): Ditto.
(PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Ditto.
* thread.cc (pthread_mutex::is_good_initializer):
Check for all posssible initializers
(pthread_mutex::is_good_initializer_or_object): Ditto.
(pthread_mutex::is_good_initializer_or_bad_object): Ditto.
(verifyable_object_isvalid): Support up to three static
initializers.
(verifyable_object_isvalid (void const *,long)): Remove.
(pthread_cond::is_good_initializer_or_bad_object): Remove
unneeded objectState var.
(pthread_cond::init): Condition remains unchanged when creation
has failed.
(pthread_rwlock::is_good_initializer_or_bad_object): Remove
unneeded objectState var.
(pthread_rwlock::init): Rwlock remains unchanged when creation
has failed.
(pthread_mutex::init): Remove obsolete comment.
Mutex remains unchanged when creation has failed. Add support
for new initializers.
(pthread_mutex_getprioceiling): Do not create mutex,
just return ENOSYS.
(pthread_mutex_lock): Simplify.
(pthread_mutex_trylock): Remove unneeded local themutex.
(pthread_mutex_unlock): Just return EPERM if mutex is not
initialized.
(pthread_mutex_setprioceiling): Do not create mutex,
just return ENOSYS.
* thread.h (verifyable_object_isvalid): Support up to three
static initializers.
(verifyable_object_isvalid (void const *,long)): Remove
prototype.
(pthread_mutex::init): Add optional initializer to parameter
list.


/* 
 * mutex8r.c
 *
 * Tests PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP.
 *
 * Depends on API functions: 
 *  pthread_mutex_lock()
 *  pthread_mutex_unlock()
 */

#include test.h
 
pthread_mutex_t mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;

int
main()
{
  assert(mutex == PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP);

  assert(pthread_mutex_lock(mutex) == 0);

  assert(mutex != PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP);

  assert(mutex != NULL);

  assert(pthread_mutex_lock(mutex) == 0);

  assert(pthread_mutex_unlock(mutex) == 0);

  assert(pthread_mutex_unlock(mutex) == 0);

  assert(pthread_mutex_destroy(mutex) == 0);

  assert(mutex == NULL);

  return 0;
}
/* 
 * mutex8n.c
 *
 * Tests PTHREAD_NORMAL_MUTEX_INITIALIZER_NP.
 * Thread locks mutex twice (recursive lock).
 * The thread should deadlock.
 *
 * Depends on API functions: 
 *  pthread_create()
 *  pthread_mutex_init()
 *  pthread_mutex_lock()
 *  pthread_mutex_unlock()
 */

#include test.h

static int lockCount = 0;

pthread_mutex_t mutex = PTHREAD_NORMAL_MUTEX_INITIALIZER_NP;

void * locker(void * arg)
{
  assert(pthread_mutex_lock(mutex) == 0);
  lockCount++;

  /* Should wait here (deadlocked) */
  assert(pthread_mutex_lock(mutex) == 0);
  lockCount++;
  assert(pthread_mutex_unlock(mutex) == 0);

  return (void *) 555;
}
 
int
main()
{
  pthread_t t;

  assert(pthread_create(t, NULL, locker, NULL) == 0);

  Sleep(1000);

  assert(lockCount == 1);

  /*
   * Should succeed even though we don't own the lock
   * because FAST mutexes don't check ownership.
   */
  assert(pthread_mutex_unlock(mutex) == 0);

  Sleep (1000);

  assert(lockCount == 2);

  exit(0);

  /* Never reached */
  return 0;
}

/* 
 * mutex8e.c
 *
 * Tests PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP.
 *
 * Depends on API functions: 
 *  pthread_mutex_lock()
 *  pthread_mutex_unlock()
 */

#include test.h
 
pthread_mutex_t mutex = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;

int
main()
{
  assert(mutex == PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP);

  assert(pthread_mutex_lock(mutex) == 0);

  assert(mutex != PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP);

  assert(mutex != NULL);

  assert(pthread_mutex_lock(mutex) == EDEADLK);

  assert(pthread_mutex_unlock(mutex) == 0);

  assert(pthread_mutex_destroy(mutex) == 0);

  assert(mutex == NULL);

  return 0;
}
diff -urp cygwin.org/include/pthread.h cygwin/include/pthread.h
--- cygwin.org/include/pthread.h2004-02-19 08:39:17.438017600 +0100
+++ 

lpr improvement proposal

2004-02-19 Thread Rodrigo Medina
Hi all,
Now that the new version (1.2.4-1) of lpr works properly I have been trying
to
configure the printing commands of programs that can print directly,
such as dvips, ghostview or xfig. I have found that this task is not 
trivial because in general the files to be printed need to be preprocessed;
for example in my case they need to be converted from postscript to deskjet.
Not even the printing of a text file is trivial.

In order to facilitate this task I have modified lpr including a couple
of additional options. I am proposing to include these chages in the
new versions of lpr. Follows a description of the modifications. The
modified files are attached.

1-  In my experience most of the time the CR/LF translation is not needed,
 so it was flipped the way the raw option works. No option: raw printing,
 -l option: LF - CR-LF preprocessing.

2- The -f option was included. It indicates that a FORMFEED character 
is appended to the file. In most printers (working in line printer mode)
this would produce the ejection of the last page of the document.

3- The  -F nameoffilter to give the name of a filter (or pipe),
to be applied to the input file before sending it to the printer. So
   lpr -l -Ffilter -Pprinter file
would be equivalent to
   filter  file | lpr -l -Pprinter .

Follows a description of how to print different kinds of files on different
kinds of hardware if lpr had the features I am proposing.


--- Printing of text files with line-printers.

 In a Cygwin environment one has at least three kinds of text files: Unix
text
files, Windows text files and DOS text files. Unix and Windows text files
usually use some iso-8859-* character set, while DOS uses an ibm-cp*
character
set.  On the other hand Windows and DOS text files use CR-LF line
terminations,
while Unix files use LF line terminations. Most printers have a line-printer
mode in which they print each byte of a text file. In many cases, such as in
mine, the printer is DOS-compatible, what that means is that it uses an
ibm-cp*
character set, depending on the language you use, and of course it requires
a
CR-LF or LF-CR line termination.
 In my case the printer and DOS use ibm-cp850, while cygwin and Windows use
iso-8859-1. In order to print a text file one has to:

for a  DOS text file:
 append FF, send raw to lpr;
for a Windows text file:
 translate iso-8859-1 to ibm-cp850, append FF, send raw to lpr;
for a Unix text file:
 translate iso-8859-1 to ibm-cp850, LF-CR-LF, append FF, send raw to lpr.

If lpr had the options I proposed (including the change of -l) and an
iso2ibm
filter were available the commands for printing text files were:

lpr -f -Pprinter DOS.txt
lpr -f -Fiso2ibm -Pprinter WINDOWS.txt
lpr -f -Fiso2ibm -l -Pprinter UNIX.txt

Right now I have to use scripts in order to accomplish the same tasks.

There are line-printers that use the iso-8859-* character set, in that case
WINDOWS and UNIX text files don't need to be preprocessed, but  DOS file
would require an ibm2iso filter:

lpr -f -Fibm2iso -Pprinter DOS.txt
lpr -f -Pprinter WINDOWS.txt
lpr -f -l -Pprinter UNIX.txt

--- Using a postscript printer.
To print a postscript file would be trivial
lpr -Pprinter file.ps

To print a text file you need a formatting filter, that produces a
postscript
file from the text file. Call it txt2ps. txt2ps can be designed to process
both WINDOWS and UNIX files.

lpr -Ftxt2ps file.txt

For a DOS.TWX file you would need to previously  apply an ibm2iso filter

lpr -Fibm2iso|txt2ps DOS.txt 

--- Using other graphic printers.
Most modern printers have a graphic mode of operation, which use their
own graphic language. The printer I have is a HP color deskjet. The
ghostscript which is distributed by cygwin translate a postscript file
to any kind of other graphic languages. Using gs one can make a shell
script that behaves as a filter from pstscript to deskjet: ps2cdj.

Some examples of printing. 
In order to print the output of a program like Word with the option print
to file one only needs to send the file raw to the printer

lpr -Pprinter file.cdj

For printing a postscript file

lpr -Fps2cdj -Pprinter file.ps

For printing a text file in graphic mode

lpr -Ftxt2ps|ps2cdj -Pprinter file.txt
lpr -Fibm2iso|txt2ps|ps2cdj -Pprinter DOS.txt


---

Rodrigo Medina.


Printer.hh
Description: Printer.hh


Printer.cc
Description: Printer.cc


lpr.cc
Description: lpr.cc


lpr.1
Description: lpr.1
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

g++ can't find sys/mman.h?

2004-02-19 Thread chuanyung
Dear all,

I already download the latest version cygwin. and setup in win2000.
I use g++ to compile a cpp file with mmap function.
But it can't find the header file.
What should I do?

And how to use make? 
When I type make: it's borland make, not gnu make.
How to setup?

Thanks.

Regards,
cylin.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: good top program for Cygwin

2004-02-19 Thread Stephen Powell
On Tue, 17 Feb 2004, [EMAIL PROTECTED] wrote:

 Anyone know of a decent top program to run from the command line?
 The one i have with cygwin installation has no help, and doesnt seem
 to show all the windows 2000 processes running on my box.  thanks
 Simon

If you want a program that is top like you could try pslist in the
PSTools package from http://www.sysinternals.com.  It is not cygwin
aware.

pslist -s 

-s [n]  Run in task-manager mode, for optional seconds specified.
Press Escape to abort.

Screen Shot:

Process information for D3LD581S:

Name  Pid CPU Thd  HndMemUser Time   Kernel Time   Elapsed Time
VetMsg   1664   0   8   70   2304  0:00:01.890   0:00:02.1870:50:13.906
System  4   0  79  533224  0:00:00.000   0:00:34.3120:00:00.000
SMSS  544   0   3   21468  0:00:00.078   0:00:00.1250:50:48.437
CSRSS 600   0  14  863   2984  0:00:04.703   0:00:07.9530:50:44.109
WINLOGON  624   0  24  527   4108  0:00:00.546   0:00:02.3590:50:42.781
SERVICES  668   0  22  468  11344  0:00:03.046   0:00:06.0310:50:41.875
LSASS 680   0  21  333   1432  0:00:00.421   0:00:00.7030:50:41.875
ati2evxx  840   0   4   52   2420  0:00:00.031   0:00:00.2180:50:41.156
SVCHOST   876   0  10  357   4208  0:00:00.140   0:00:00.2500:50:40.531
SVCHOST   956   0  87 1648  22408  0:00:01.421   0:00:04.4530:50:39.453
SVCHOST  1092   0   9   81   2464  0:00:00.031   0:00:00.0620:50:38.781
SVCHOST  1120   0  24  286   7256  0:00:00.156   0:00:00.1710:50:38.703
[...]

or possibly pmon from the Windows Resource Kit:

 Memory: 1047548K Avail: 607300K  PageFlts:  1438 InRam Kernel: 2160K P:32724K
 Commit: 513920K/ 433792K Limit:2519672K Peak: 555220K  Pool N:20336K P:32916K

Mem  Mem   Page   Flts Commit  Usage   Pri  Hnd Thd  Image
CPU  CpuTime  Usage Diff   Faults Diff Charge NonP Page Cnt Cnt  Name

 125868   64  2097084  486 File Cache
 0   0:02:24 20010  000  00  2 Idle Process
 0   0:00:362240 70900 3200  8  533 79 System
 0   0:00:004680  305017605 11   21  3 SMSS.EXE
 0   0:00:148080260690   19207   63 13  826 14 CSRSS.EXE
 0   0:00:02   41080 76130   7284   59   55 13  527 24 WINLOGON.EXE
 0   0:00:09  113560151280  10096   14   49  9  467 22 SERVICES.EXE
 0   0:00:01   14320 50750   57288   35  9  333 21 LSASS.EXE
 0   0:00:00   24200  6660   25401   17  8   52  4 ati2evxx.exe
 0   0:00:00   42080 12970   38408   22  8  357 10 SVCHOST.EXE
 0   0:00:06  224320197930  14880   73  112  8 1648 87 SVCHOST.EXE
 0   0:00:00   24640  7220   11123   13  8   81  9 SVCHOST.EXE
 0   0:00:00   72560 19690   5436   11   37  8  286 24 SVCHOST.EXE
[...]

-- 
Stephen Powell
stephen_powell at optusnet.com.au


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [Fwd: Bug: Perl:IsWinNT undefined RFE, only use / in reg values, not names..?]

2004-02-19 Thread linda w
Tried this...some scripts ran.  One that didn't wanted lanman.pm located in
Win32::lanman. 

Queerly enough, doing a i /lanman comes up zip even though it is in 
CPAN at
/CPAN/sources/authors/id/J/JH/JHELBERG/lanman.1.0.10.0.zip.

Obviously I'm still a bit too new for this stuff, get, make and install 
don't work and
say it isn't found.  I can see the module if I lookup by author, but  
doesn't
seem to like installing it via pathname or substituting backslashes or 
colons...even got
dumped out of cpan a few times:

Scanning cache /share/CPAN/build-win for sizes
C:\bin\perl.exe (1892): *** unable to remap 
C:\lib\perl5\5.8.2\cygwin-thread-mul
ti-64int\auto\Cwd\Cwd.dll to same address as parent(0xC0) != 0x111
 8 [main] perl 1436 sync_with_child: child 1892(0x6C0) died before 
initiali
zation with status code 0x1
 14290 [main] perl 1436 sync_with_child: *** child state child loading dlls

How would one normally go about installing lanman.pm without manually 
unpacking
the zip and putting it someplace (which I'm just randomly guessing 
wouldn't work for
some other reason -- like the lanman dll not being installed in the 
right place.

Do all the win32 libraries have to have a special port to work on cygwin 
even though
cygwin was supposed to aid in allowing posix type apps (like perl) to 
run under
win either from the bash or cjmd.exe shell?

Definitely the win32 lib is a step in the right direction...but why does 
cygwin need
a special version?

Thanks for the help...
-linda
Rafael Kitover wrote:

Please try installing perl-libwin32 package, and set:

export PERL5OPT=-MWin32

in your environment.

HTH

 

--
   In the marketplace of Real goods, capitalism is limited by safety
   regulations, consumer protection laws, and product liability.  In
   the computer industry, what protects the consumer?


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Running cygwin cron under WinXP SP1

2004-02-19 Thread Russell Hind
I have just installed the latest cygwin and set up cron to run using

cygrunsrv -I cron -p /usr/sbin/cron -a -D
cygrunsrv -S cron
It is running as a service (both in XP task manager and in ps -ef)

But I can't get it to execute commands.  I have tried a crontab as both 
/etc/crontab and /var/cron/tabs/Russell

Is there an FAQ for getting cron running under cygwin?  I can't been 
able to find one.

Thanks

Russell

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: ftp bug report

2004-02-19 Thread Corinna Vinschen
On Feb 18 02:21, Thomas Mellman wrote:
 Re: ftp crash
 
   ftp crashes intermittently (but reliably) when getting files.

Hmm, I tried to get various files between 1 Meg and 22 Megs, multiple
times, and I didn't have any crash.  Do you encounter the same problem
with a recent Cygwin snapshot?

Corinna

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

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ftp bug report

2004-02-19 Thread Thomas Mellman
Corinna wrote:

On Feb 18 02:21, Thomas Mellman wrote:
 Re: ftp crash
 
   ftp crashes intermittently (but reliably) when getting files.

Hmm, I tried to get various files between 1 Meg and 22 Megs, multiple
times, and I didn't have any crash.  Do you encounter the same problem
with a recent Cygwin snapshot?

Corinna


Do you mean more recent than

CYGWIN_NT-5.0 venedig 1.5.7(0.109/3/2) 2004-01-30 19:32 i686 unknown unknown Cygwin

I mean, I update regularly.  What do you recommend?


Did you try to use the mapping feature of nmap?  I transfer from a VMS
machine, and I need to nmap to get rid of the version number.  I also
use the case command to convert from uppercase to lowercase.


__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Running cygwin cron under WinXP SP1

2004-02-19 Thread Thorsten Kampe
* Russell Hind (2004-02-19 10:55 +0100)
 I have just installed the latest cygwin and set up cron to run using
 
 cygrunsrv -I cron -p /usr/sbin/cron -a -D
 cygrunsrv -S cron
 
 It is running as a service (both in XP task manager and in ps -ef)
 
 But I can't get it to execute commands.  I have tried a crontab as both 
 /etc/crontab and /var/cron/tabs/Russell

How did you create those? crontab -e for the latter? You know that the
system-wide crontab has a additional field for the user?

cron logs tho /var/whatever and into the eventviewer. Please consult
those two logs and explain further can't get it to execute commands. 

Try redirecting the output with . For executables use the full path
or the PATH variable inside the crontab. Please read the fine manual
which answers all FAQs.

Thorsten


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ftp bug report

2004-02-19 Thread Corinna Vinschen
On Feb 19 03:39, Thomas Mellman wrote:
 Corinna wrote:
 On Feb 18 02:21, Thomas Mellman wrote:
  Re: ftp crash
  
ftp crashes intermittently (but reliably) when getting files.
 
 Hmm, I tried to get various files between 1 Meg and 22 Megs, multiple
 times, and I didn't have any crash.  Do you encounter the same problem
 with a recent Cygwin snapshot?
 
 Corinna
 
 Do you mean more recent than
 
 CYGWIN_NT-5.0 venedig 1.5.7(0.109/3/2) 2004-01-30 19:32 i686 unknown unknown Cygwin
 
 I mean, I update regularly.  What do you recommend?

A snapshot.  http://cygwin.com/snapshots/

 Did you try to use the mapping feature of nmap?  I transfer from a VMS

What's nmap?  I never used it.  I don't see that we have a nmap package
in the distro.

 machine, and I need to nmap to get rid of the version number.  I also
 use the case command to convert from uppercase to lowercase.

I'd need *specific* instructions to reproduce the crash.  What commands
with which options do I have to use how?  Can I do this at all or do I
need non-Cygwin commands to reproduce it?  Do I have to have a VMS machine?

Otherwise it would be much more efficient if you'd track down the bug.
You have the inetutils sources, so you can build a debugging version
of ftp with all symbols in it.


Corinna

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

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ftp bug report

2004-02-19 Thread Thomas Mellman
Corinna  wrote:

 Did you try to use the mapping feature of nmap?  I transfer from a VMS

What's nmap?  I never used it.  I don't see that we have a nmap package
in the distro.

 machine, and I need to nmap to get rid of the version number.  I also
 use the case command to convert from uppercase to lowercase.

I'd need *specific* instructions to reproduce the crash.  What commands
with which options do I have to use how?  Can I do this at all or do I
need non-Cygwin commands to reproduce it?  Do I have to have a VMS machine?


Okay, like this:

$ ftp somehost
Connected to somehost.com.
220 somehost.3 FTP Server (Version 5.0) Ready.
Remote system type is VMS.
ftp user mellman
331 Username mellman requires a Password
Password: 
230 User logged in.
ftp cd somewhere
250-CWD command successful.
250 New default directory is somewhere
ftp nmap $1;$2 $1
ftp case
Case mapping on.
ftp get mspp_i_seq.h
200 PORT command successful.
150 Opening data connection for somewhere:MSPP_I_SEQ.H;1 (x.x.x.x,y)
Segmentation fault (core dumped)


Do you need to have an VMS machine?  Let's see ...

ftp unixhost
Connected to unixhost.
220 unixhost FTP server (Compaq Tru64 UNIX Version 5.60) ready.
Name (unixhost:tmellman): mellman
331 Password required for mellman. 
Password:
230 User mellman logged in.
ftp cd somewhere
250 CWD command successful.
ftp get MSPP_I_SAS00.INI;1
local: mspp_i_sas00.ini remote: MSPP_I_SAS00.INI;1
200 PORT command successful.
150 Opening BINARY mode data connection for MSPP_I_SAS00.INI;1 (x.x.x.x, y) (2494 
bytes).
Segmentation fault (core dumped)
139v/tmp/mellman/0219




__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: ftp bug report

2004-02-19 Thread Hughes, Bill
 Sent: 19 February 2004 13:32  From: Thomas Mellman
..snip.. 
 $ ftp somehost
 Connected to somehost.com.
 220 somehost.3 FTP Server (Version 5.0) Ready.
 Remote system type is VMS.
 ftp user mellman
 331 Username mellman requires a Password
 Password: 
 230 User logged in.
 ftp cd somewhere
 250-CWD command successful.
 250 New default directory is somewhere
 ftp nmap $1;$2 $1
 ftp case
 Case mapping on.
 ftp get mspp_i_seq.h
 200 PORT command successful.
 150 Opening data connection for somewhere:MSPP_I_SEQ.H;1 (x.x.x.x,y)
 Segmentation fault (core dumped)

fwiw I can reproduce the above, I'm running 1.5.7, not a snapshot.
The culprit may be nmap as using case alone transfer ok.
This is intended as a data point. If I get the time later I'll try the
latest safe snapshot but I can't say when.

This e-mail transmission is strictly confidential and intended solely
for the person or organisation to whom it is addressed. It may contain
privileged and confidential information and if you are not the intended
recipient, you must not copy, distribute or take any action in reliance
on it. If you have received this email in error, please reply to the
sender as soon as possible and delete the message. Please note that we
are able to, and reserve the right to, monitor e-mail communications
passing through our network.

The views expressed in this email are not that of the company unless
specified within the message.

The inclusion of this footnote indicates that the mail message and any
attachments have been checked for the presence of known viruses.

If you have any comments regarding our policy please direct them to
[EMAIL PROTECTED]

This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [Fwd: Bug: Perl:IsWinNT undefined RFE, only use / in reg values, not names..?]

2004-02-19 Thread Brian . Kelly

 Do all the win32 libraries have to have a special port to work on cygwin
 even though
 cygwin was supposed to aid in allowing posix type apps (like perl) to
 run under
 win either from the bash or cjmd.exe shell?

 Definitely the win32 lib is a step in the right direction...but why does
 cygwin need a special version?

Seems to me you answered your own question. The perl that's bundled with
Cygwin is *NOT*
an Active-State-*like* Win32 version of perl. It's really a *unix* built
version of perl that
-requires- Cygwin to even run on Windoze at all. That being the case,
Cygwin perl *thinks* its
running on unix - not Win32. Therefore, modules that expect direct,
non-POSIX access to the
Win32 subsystem are gonna need some help that wouldn't otherwise be
necessary with a true
Win32 build of Perl.

Brian Kelly





WellChoice, Inc. made the following
 annotations on 02/19/2004 09:07:12 AM
--
Attention!  This electronic message contains information that may be legally 
confidential and/or privileged.  The information is intended solely for the individual 
or entity named above and access by anyone else is unauthorized.  If you are not the 
intended recipient, any disclosure, copying, distribution, or use of the contents of 
this information is prohibited and may be unlawful.  If you have received this 
electronic transmission in error, please reply immediately to the sender that you have 
received the message in error, and delete it. Release/Disclosure Statement


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: 20040217 snapshot problem

2004-02-19 Thread Richard Campbell
There are some changes in the latest snapshot that may make inetd
work better.  I tracked down a stupid error that I'd introduced after
1.5.7.

Under the 20040218 snapshot, when trying to start X, inetd does not spin 
out of control CPU-wise.

However, XWin.exe does not start.

I tried strace -o strace_out --mask=all XWin.exe:

20040217 - 0 bytes of output in strace_out
20040218 - 0 bytes of output in strace_out
1.5.7-1  - 2 megabytes of output in strace_out, roughly, after shutting down X at the 
first opportunity.

-Richard Campbell.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: 20040217 snapshot problem

2004-02-19 Thread Christopher Faylor
On Thu, Feb 19, 2004 at 09:51:01AM -0500, Richard Campbell wrote:
There are some changes in the latest snapshot that may make inetd
work better.  I tracked down a stupid error that I'd introduced after
1.5.7.

Under the 20040218 snapshot, when trying to start X, inetd does not spin 
out of control CPU-wise.

However, XWin.exe does not start.

I tried strace -o strace_out --mask=all XWin.exe:

20040217 - 0 bytes of output in strace_out
20040218 - 0 bytes of output in strace_out
1.5.7-1  - 2 megabytes of output in strace_out, roughly, after shutting down X at the 
   first opportunity.

If strace is not producing any output at all, and there is no
xwin.exe.stackdump file then that would point something wrong on your
end.  I have no idea what could cause this behavior.

Can anyone else confirm this behavior and provide more details and maybe
a theory on what's going wrong?  I'm not seeing it at all.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: g++ can't find sys/mman.h?

2004-02-19 Thread Brian Ford
On Thu, 19 Feb 2004, chuanyung wrote:

 Dear all,

 I already download the latest version cygwin. and setup in win2000.
 I use g++ to compile a cpp file with mmap function.
 But it can't find the header file.
 What should I do?

First, please try reading the problem reporting guide lines available
here: http://cygwin.com/problems.html.  Please pay special attention to
the part about attaching the output of cygcheck.  This will allow us to
see the specific configuration details of your system and installation.
Thus, we will be able to help you much faster.

Also, please post the exact g++ compile line and output so we know exactly
what it can't find the header file means.

Using the package search facility available here:
http://cygwin.com/packages/ shows mman.h to be part of the main cygwin
package.  As such, it should be present unless you have a botched
installation.

 And how to use make?
 When I type make: it's borland make, not gnu make.
 How to setup?

Hint: It is a problem with you PATH environment variable.  You have the
directory containing Borland make ahead of /usr/bin in your PATH.  See:
http://cygwin.com/faq/faq_toc.html#TOC35 for more details.

HTH

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: 20040217 snapshot problem

2004-02-19 Thread Brian Ford
On Thu, 19 Feb 2004, Christopher Faylor wrote:

 On Thu, Feb 19, 2004 at 09:51:01AM -0500, Richard Campbell wrote:
 However, XWin.exe does not start.
 
 I tried strace -o strace_out --mask=all XWin.exe:
 
 20040217 - 0 bytes of output in strace_out
 20040218 - 0 bytes of output in strace_out
 1.5.7-1  - 2 megabytes of output in strace_out, roughly, after shutting down X at 
 the
  first opportunity.

 If strace is not producing any output at all, and there is no
 xwin.exe.stackdump file then that would point something wrong on your
 end.  I have no idea what could cause this behavior.

 Can anyone else confirm this behavior and provide more details and maybe
 a theory on what's going wrong?  I'm not seeing it at all.

WFM with current cvs.  It must be on his end.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Gdb runtime error

2004-02-19 Thread Larry Hall
At 12:15 AM 2/19/2004, Chih-Yi Kuan you wrote:
After the cygwin setup from the cygwin installer. Execution of gdb in
bash results in the follow error message:

*

 3 [main] ? 3552 cygheap_fixup_in_child: Couldn't reserve space
for cygwin's heap (0x6167 0x15A) in child, Win32 error 487
C:\cygwin\bin\gdb.exe (3552): *** m.AllocationBase 0x0, m.BaseAddress
0x6167, m.RegionSize 0xB8, m.State 0x1

**

Could anybody help me about this?


Try a recent snapshot http://cygwin.com/snapshots/.  1.5.7 is known to 
have some problems.

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


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Running cygwin cron under WinXP SP1

2004-02-19 Thread Harig, Mark
Please read the message in the Cygwin mailing list at:

http://sources.redhat.com/ml/cygwin/2003-12/msg00711.html

It will provide you with a script that will attempt
to diagnose the problem that you are having with cron.

 -Original Message-
 From: Russell Hind [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 19, 2004 4:56 AM
 To: [EMAIL PROTECTED]
 Subject: Running cygwin cron under WinXP SP1
 
 
 I have just installed the latest cygwin and set up cron to run using
 
 cygrunsrv -I cron -p /usr/sbin/cron -a -D
 cygrunsrv -S cron
 
 It is running as a service (both in XP task manager and in ps -ef)
 
 But I can't get it to execute commands.  I have tried a 
 crontab as both 
 /etc/crontab and /var/cron/tabs/Russell
 
 Is there an FAQ for getting cron running under cygwin?  I can't been 
 able to find one.
 
 Thanks
 
 Russell
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Problem compiling mysql over cygwin

2004-02-19 Thread Gerrit P. Haase
Hello Guy,

Monday, February 16, 2004, 8:12:10 PM, you wrote:

I got the following errors when compiling mysql over Cygwin:

item_timefunc.o(.text+0x2de6):item_timefunc.cc: undefined reference to
`__static_initialization_and_destruction_0(int, int)'
item_timefunc.o(.text+0x2e06):item_timefunc.cc: undefined reference to
`__static_initialization_and_destruction_0(int, int)'
convert.o(.text+0x136):convert.cc: undefined reference to
`__static_initialization_and_destruction_0(int, int)'
log.o(.text+0x3cd6):log.cc: undefined reference to
`__static_initialization_and_destruction_0(int, int)'
log.o(.text+0x3cf6):log.cc: undefined reference to
`__static_initialization_and_destruction_0(int, int)'
collect2: ld returned 1 exit status
make[4]: *** [mysqld.exe] Error 1

Is there any fix I could apply to my environment to make it working?

Until GCC is fixed to compile this code without errors, please see here for
a workaround:
http://www.cygwin.com/ml/cygwin/2003-11/msg01057.html


-- 
Best regards,
 Gerrit 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [Fwd: Bug: Perl:IsWinNT undefined RFE, only use / in reg values, not names..?]

2004-02-19 Thread Yitzchak Scott-Thoennes
On Thu, Feb 19, 2004 at 01:46:05AM -0800, linda w [EMAIL PROTECTED] wrote:
 Tried this...some scripts ran.  One that didn't wanted lanman.pm located in
 Win32::lanman. 
 
 Queerly enough, doing a i /lanman comes up zip even though it is in 
 CPAN at
 /CPAN/sources/authors/id/J/JH/JHELBERG/lanman.1.0.10.0.zip.
 
 How would one normally go about installing lanman.pm without manually 
 unpacking
 the zip and putting it someplace (which I'm just randomly guessing 
 wouldn't work for
 some other reason -- like the lanman dll not being installed in the 
 right place.

lanman doesn't seem to be packaged like a normal CPAN module;
presumably the author is expecting most people to use ActiveState and
ppm to install it.  You should download the zip file and unzip it into
a temporary directory and follow the readme's build instructions to
the extent possible, and it may or may not work.

 Definitely the win32 lib is a step in the right direction...but why does 
 cygwin need
 a special version?

Not sure what you mean.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: 20040217 snapshot problem

2004-02-19 Thread Richard Campbell
 If strace is not producing any output at all, and there is no
 xwin.exe.stackdump file then that would point something wrong on your
 end.  I have no idea what could cause this behavior.

 WFM with current cvs.  It must be on his end.

And I wouldn't be surprised.  Any ideas on where to look for what is 
wrong on my end?

-Richard Campbell.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Gdb runtime error

2004-02-19 Thread Chih-Yi Kuan
Sorry but can you explain more detail about how to use these files?

Thank you.

 -Original Message-
 From: Larry Hall [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 19, 2004 11:32 PM
 To: Chih-Yi Kuan; [EMAIL PROTECTED]
 Subject: Re: Gdb runtime error
 
 
 At 12:15 AM 2/19/2004, Chih-Yi Kuan you wrote:
 After the cygwin setup from the cygwin installer. Execution 
 of gdb in 
 bash results in the follow error message:
 
 *
 
  3 [main] ? 3552 cygheap_fixup_in_child: Couldn't 
 reserve space 
 for cygwin's heap (0x6167 0x15A) in child, Win32 error 487 
 C:\cygwin\bin\gdb.exe (3552): *** m.AllocationBase 0x0, 
 m.BaseAddress 
 0x6167, m.RegionSize 0xB8, m.State 0x1
 
 **
 
 Could anybody help me about this?
 
 
 Try a recent snapshot http://cygwin.com/snapshots/.  1.5.7 
 is known to 
 have some problems.
 
 --
 Larry Hall  http://www.rfk.com
 RFK Partners, Inc.  (508) 893-9779 - RFK Office
 838 Washington Street   (508) 893-9889 - FAX
 Holliston, MA 01746 
 
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ftp bug report

2004-02-19 Thread Corinna Vinschen
On Feb 19 05:31, Thomas Mellman wrote:
 Corinna  wrote:
 
  Did you try to use the mapping feature of nmap?  I transfer from a VMS
 
 What's nmap?  I never used it.  I don't see that we have a nmap package
 in the distro.
 
  machine, and I need to nmap to get rid of the version number.  I also
  use the case command to convert from uppercase to lowercase.
 
 I'd need *specific* instructions to reproduce the crash.  What commands
 with which options do I have to use how?  Can I do this at all or do I
 need non-Cygwin commands to reproduce it?  Do I have to have a VMS machine?
 
 Okay, like this:
 
 $ ftp somehost
 Connected to somehost.com.
 220 somehost.3 FTP Server (Version 5.0) Ready.
 Remote system type is VMS.
 ftp user mellman
 331 Username mellman requires a Password
 Password: 
 230 User logged in.
 ftp cd somewhere
 250-CWD command successful.
 250 New default directory is somewhere
 ftp nmap $1;$2 $1
 ftp case
 Case mapping on.
 ftp get mspp_i_seq.h
 200 PORT command successful.
 150 Opening data connection for somewhere:MSPP_I_SEQ.H;1 (x.x.x.x,y)
 Segmentation fault (core dumped)

FYI, I can reproduce it now.  I really didn't know about that nmap
command, I never used it before.

However, it would still be nice if somebody would try to track that
down, too.  When starting ftp under GDB, it doesn't hang, it just
doesn't print anything, so you must type in everything blind.

Corinna

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

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



w32api-2.5 GL/glu.h does not define wchar_t (Was: opengl-1.1.0-7 glut.h does not define wchar_t)

2004-02-19 Thread Andre Bleau
Philip Lamb phil at rave dot co dot nz wrote:
Hello,

The changes to GL/glu.h in w32api-2.5 expose a problem with the glut.h 
in opengl-1.1.0-7 package, file GL/glut.h. The problem is that whcar_t 
is now required to be defined by /usr/include/w32api/GL/glu.h, however 
glut.h does not do so.
I think you meant glu.h in the above line.


I'm not sure where the _best_ place to put a definition is; for myself I 
have put it at line 153 of glut.h. Others may wish to do so too, and 
perhaps a patch to the opengl package is in order if other more 
knowledgeable folks concur.
No glut function uses wchar_t in any form, so IMO it does _not_ belong 
there. The only thing GL-related that uses wchar_t is 
gluErrorUnicodeStringEXT, an M$-specific extension to GLU; from w32api-2.5 
usr/include/w32api/GL/glu.h :

GLAPI const wchar_t * APIENTRY gluErrorUnicodeStringEXT (GLenum error);

From w32api-2.5 announcement:

2003-09-24  Dimitri Papadopoulos  [EMAIL PROTECTED]

* include/GL/glu.h (gluErrorUnicodeStringWIN): Add macro
function. MSDN suggests using gluErrorUnicodeStringWIN
instead of gluErrorString, as it allows both ANSI and Unicode
error strings.
* include/GL/glu.h (gluErrorUnicodeStringEXT): Make the
returned pointer const for consistency reasons.
2003-09-24  Dimitri Papadopoulos  [EMAIL PROTECTED]

* include/GL/glu.h (gluErrorUnicodeStringEXT): Add function.
Function exists in glu32.def but is undocumented on MSDN.
A Google search came up with this declaration.
2003-09-24  Dimitri Papadopoulos  [EMAIL PROTECTED]

* include/GL/glu.h: Rewritten from scratch. Started from GLU 1.3
headers from OpenGL Sample Implementation. Windows ships with
GLU 1.2 so some constants and functions were removed. Then some
typedef's and function declarations were reworked to look like
the previous GL/glu.h.
So IMO, your patch below should be applied to glu.h by the w32api maintainers.


153,156d152
 # ifndef _WCHAR_T_DEFINED
 typedef unsigned short wchar_t;
 #  define _WCHAR_T_DEFINED
 # endif
The only other workaround I can see is adding an #include windows.h 
before every #include GL/glut.h which is neither elegant nor in the 
spirit of GLUT's philosophy of hiding platform dependencies.
--
Philip Lamb
[EMAIL PROTECTED]
I modified the above line (was a plain email adresss). Beware that Spam 
bots search lists like this one for new targets for their junk.

I CC'd the MingW list about this issue.



André Bleau, Cygwin's OpenGL package maintainer.

Please address all questions and problem reports about Cygwin's OpenGL 
package to cygwin at cygwin dot com . 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: [Fwd: Bug: Perl:IsWinNT undefined RFE, only use / in reg values, not names..?]

2004-02-19 Thread Yitzchak Scott-Thoennes
On Thu, Feb 19, 2004 at 07:48:48AM -0800, Yitzchak Scott-Thoennes [EMAIL PROTECTED] 
wrote:
 On Thu, Feb 19, 2004 at 01:46:05AM -0800, linda w [EMAIL PROTECTED] wrote:
  Tried this...some scripts ran.  One that didn't wanted lanman.pm located in
  Win32::lanman. 
  
  Queerly enough, doing a i /lanman comes up zip even though it is in 
  CPAN at
  /CPAN/sources/authors/id/J/JH/JHELBERG/lanman.1.0.10.0.zip.
  
  How would one normally go about installing lanman.pm without manually 
  unpacking
  the zip and putting it someplace (which I'm just randomly guessing 
  wouldn't work for
  some other reason -- like the lanman dll not being installed in the 
  right place.
 
 lanman doesn't seem to be packaged like a normal CPAN module;
 presumably the author is expecting most people to use ActiveState and
 ppm to install it.  You should download the zip file and unzip it into
 a temporary directory and follow the readme's build instructions to
 the extent possible, and it may or may not work.

Looks like may not.  The author has completely gone without
the normal perl module build facilities (e.g. MakeMaker); even
ActiveState users have to manually change path settings, etc. to
get the (nmake, MSVC++) makefile to work.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Gdb runtime error

2004-02-19 Thread Brian Ford
On Thu, 19 Feb 2004, Chih-Yi Kuan wrote:
 Larry Hall [mailto:cygwin-lh at cygwin dot com] wrote:

Please do not quote plain text email addresses in replies.  They are food
for spammers.

Also, Larry forgot to remind you to please *attach* your cygcheck output
next time.  If you put in inline, it messes up the mail archive search
engine.  Thanks.

  Try a recent snapshot http://cygwin.com/snapshots/.  1.5.7
  is known to have some problems.
 
 Sorry but can you explain more detail about how to use these files?

Does this help?

http://cygwin.com/faq/faq_2.html#SEC20

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: w32api-2.5 GL/glu.h does not define wchar_t (Was: opengl-1.1.0-7 glut.h does not define wchar_t)

2004-02-19 Thread Brian Ford
I'd say this issue is already fixed in cvs, although, I have not
completely confirmed it.

2004-02-19  Danny Smith  dannysmith at users dot sourceforge dot net

* include/Gl/glu.h: Include stddef.h.
Thanks to Greg Couch gregcouch at users dot sourceforge dot net

On Thu, 19 Feb 2004, Andre Bleau wrote:

 Philip Lamb phil at rave dot co dot nz wrote:
 Hello,
 
 The changes to GL/glu.h in w32api-2.5 expose a problem with the glut.h
 in opengl-1.1.0-7 package, file GL/glut.h. The problem is that whcar_t
 is now required to be defined by /usr/include/w32api/GL/glu.h, however
 glut.h does not do so.

 I think you meant glu.h in the above line.

 I'm not sure where the _best_ place to put a definition is; for myself I
 have put it at line 153 of glut.h. Others may wish to do so too, and
 perhaps a patch to the opengl package is in order if other more
 knowledgeable folks concur.

 No glut function uses wchar_t in any form, so IMO it does _not_ belong
 there. The only thing GL-related that uses wchar_t is
 gluErrorUnicodeStringEXT, an M$-specific extension to GLU; from w32api-2.5
 usr/include/w32api/GL/glu.h :

 GLAPI const wchar_t * APIENTRY gluErrorUnicodeStringEXT (GLenum error);

  From w32api-2.5 announcement:

 2003-09-24  Dimitri Papadopoulos  [EMAIL PROTECTED]
 
  * include/GL/glu.h (gluErrorUnicodeStringWIN): Add macro
  function. MSDN suggests using gluErrorUnicodeStringWIN
  instead of gluErrorString, as it allows both ANSI and Unicode
  error strings.
 
  * include/GL/glu.h (gluErrorUnicodeStringEXT): Make the
  returned pointer const for consistency reasons.
 
 2003-09-24  Dimitri Papadopoulos  [EMAIL PROTECTED]
 
  * include/GL/glu.h (gluErrorUnicodeStringEXT): Add function.
  Function exists in glu32.def but is undocumented on MSDN.
  A Google search came up with this declaration.
 
 2003-09-24  Dimitri Papadopoulos  [EMAIL PROTECTED]
 
  * include/GL/glu.h: Rewritten from scratch. Started from GLU 1.3
  headers from OpenGL Sample Implementation. Windows ships with
  GLU 1.2 so some constants and functions were removed. Then some
  typedef's and function declarations were reworked to look like
  the previous GL/glu.h.

 So IMO, your patch below should be applied to glu.h by the w32api maintainers.

 153,156d152
  # ifndef _WCHAR_T_DEFINED
  typedef unsigned short wchar_t;
  #  define _WCHAR_T_DEFINED
  # endif
 The only other workaround I can see is adding an #include windows.h
 before every #include GL/glut.h which is neither elegant nor in the
 spirit of GLUT's philosophy of hiding platform dependencies.
 --
 Philip Lamb
 [EMAIL PROTECTED]

 I modified the above line (was a plain email adresss). Beware that Spam
 bots search lists like this one for new targets for their junk.

 I CC'd the MingW list about this issue.

 André Bleau, Cygwin's OpenGL package maintainer.

 Please address all questions and problem reports about Cygwin's OpenGL
 package to cygwin at cygwin dot com .


-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: w32api-2.5 GL/glu.h missing GLU_ERROR definition.

2004-02-19 Thread Brian Ford
Not sure if you've seen this yet or not, but I thought I'd close the
thread.  Fixed in current cvs by:

2004-02-19  Danny Smith  dannysmith at users dot sourceforge dot net

* include/Gl/glu (GLU_ERROR): Define.
Thanks to Philip Lamb  phil at rave dot co dot nz

On Thu, 19 Feb 2004, Philip Lamb wrote:

 Hello,

 I've just upgraded from w32api-2.4 to -2.5. It looks like GL/glu.h
 file included in 2.5 is missing a definition of GLU_ERROR. In
 w32api-2.4, GLU_ERROR is defined on line 76, and a commented out
 version on line 177 (for completeness I suppose). In w32api-2.5, the
 first definition has been removed, and the second you can still see
 commented out on line 123 of glu.h.

 Suggested fix: amend line 123 of GL/glu.h in w32api package to read:
   #define GLU_ERROR 100103

 This bug breaks all sorts of existing code.


-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Zsh crashes on Ctrl-Z with cygwin1.dll snapshot 2004-02-18

2004-02-19 Thread Stefan Dalibor
Hi,
since upgrading Cygwin Dll from 1.5.5-1 (which I have to, because I need
exim 4.30 which won't run with cygwin1.dll  1.5.6-1, so downgrading is
not an option), I'm suffering from problems with Zsh (4.1.1-2).
I don't know what Zsh does with process management (the problems don't
occur neither with Bash nor pdksh), but here the story goes (hoping this
is still fixable before 1.5.8 comes out!):

1.5.5-1:
Zsh works fine.

1.5.6-1:
Zsh hangs immediately after starting, the shell is essentially unusable.

1.5.7-1:
Zsh starts, but hangs (reproducably) after trying to start a non-existing
command.
Also, shell functions executing pipelines with builtin commands (e.g.
``echo | grep ...'') hang ocasionally.

2004-02-18 snapshot:
Zsh starts fine, no more hangups on non-existing commands, but trying to
suspend a program (e.g. vim, lynx) by hitting Ctrl-Z results in a crash
with error messages like:

4 [sig] zsh 1912 handle_threadlist_exception: handle_threadlist_exception called with 
threadlist_ix -1

And stackdumps like:

Exception: STATUS_ACCESS_VIOLATION at eip=61025D4B
eax=0011 ebx= ecx=0065EB6C edx=61025650 esi=0065EBDC edi=61025650
ebp=0065E864 esp=0065E53C program=C:\cygwin\bin\zsh.exe
cs=001B ds=0023 es=0023 fs=0038 gs= ss=0023
Stack trace:
Frame Function  Args
0065E864  61025D4B  (, , , )
0065EB94  61026784  (0740, 0065EBDC, 00A4, 0065EBC8)
0065F0A4  6108D45E  (610F0774, , 0065F0C4, 0065F0FC)
0065F0C4  610030A6  (610F0774, 0065F0FC, 61003040, 5DF7)
0065F0F4  61003DE4  (, , , )
0065FFA4  61003D9A  (, , , )
End of stack trace

Stefan
--
Dr. Stefan Dalibor dalibor at cs dot fau dot de

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ftp bug report

2004-02-19 Thread Corinna Vinschen
On Feb 19 17:02, Corinna Vinschen wrote:
 On Feb 19 05:31, Thomas Mellman wrote:
  ftp nmap $1;$2 $1
  ftp case
  Case mapping on.
  ftp get mspp_i_seq.h
  200 PORT command successful.
  150 Opening data connection for somewhere:MSPP_I_SEQ.H;1 (x.x.x.x,y)
  Segmentation fault (core dumped)
 
 FYI, I can reproduce it now.  I really didn't know about that nmap
 command, I never used it before.

I fixed the bug (which could only show up when using nmap) and uploaded
a new version of inetutils.

As an exercise for the reader:

  buf = (char *) malloc (size);
  to = buf;
  [...]
  if (newsize  size)
buf = realloc (buf, newsize);
  while (newsize--)
*to++ = *src++;

What's wrong with this picture?


Corinna

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

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ftp bug report

2004-02-19 Thread Larry Hall
At 12:37 PM 2/19/2004, Corinna Vinschen you wrote:
On Feb 19 17:02, Corinna Vinschen wrote:
 On Feb 19 05:31, Thomas Mellman wrote:
  ftp nmap $1;$2 $1
  ftp case
  Case mapping on.
  ftp get mspp_i_seq.h
  200 PORT command successful.
  150 Opening data connection for somewhere:MSPP_I_SEQ.H;1 (x.x.x.x,y)
  Segmentation fault (core dumped)
 
 FYI, I can reproduce it now.  I really didn't know about that nmap
 command, I never used it before.

I fixed the bug (which could only show up when using nmap) and uploaded
a new version of inetutils.

As an exercise for the reader:

  buf = (char *) malloc (size);
  to = buf;
  [...]
  if (newsize  size)
buf = realloc (buf, newsize);
  while (newsize--)
*to++ = *src++;

What's wrong with this picture?


as he raises his hand...
I know, I know.  Pick me, pick me!  Oo!  OOO!   ;-)


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


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: 20040217 snapshot problem

2004-02-19 Thread Igor Pechtchanski
On Thu, 19 Feb 2004, Richard Campbell wrote:

 There are some changes in the latest snapshot that may make inetd
 work better.  I tracked down a stupid error that I'd introduced after
 1.5.7.

 Under the 20040218 snapshot, when trying to start X, inetd does not spin
 out of control CPU-wise.

 However, XWin.exe does not start.

 I tried strace -o strace_out --mask=all XWin.exe:

 20040217 - 0 bytes of output in strace_out
 20040218 - 0 bytes of output in strace_out
 1.5.7-1  - 2 megabytes of output in strace_out, roughly, after shutting down X at the
 first opportunity.

 -Richard Campbell.

Can you check whether /tmp/XWin.log shows anything when XWin doesn't
start?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: 20040217 snapshot problem

2004-02-19 Thread Richard Campbell
Can you check whether /tmp/XWin.log shows anything when XWin doesn't
start?

Nothing.  Not surprising, though, considering strace wasn't getting any output.

-Richard Campbell.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Zsh crashes on Ctrl-Z with cygwin1.dll snapshot 2004-02-18

2004-02-19 Thread Peter A. Castro
On Thu, 19 Feb 2004, Brian Ford wrote:

 On Thu, 19 Feb 2004, Stefan Dalibor wrote:

  2004-02-18 snapshot:
  Zsh starts fine, no more hangups on non-existing commands, but trying to
  suspend a program (e.g. vim, lynx) by hitting Ctrl-Z results in a crash
  with error messages like:
 
  4 [sig] zsh 1912 handle_threadlist_exception: handle_threadlist_exception called 
  with threadlist_ix -1
 
  And stackdumps like:
 
 WFM

WFM too!

In fact, I've tested all of the following with zsh:

20040213 - works
20040214 - works
20040215 - can't start zsh (get Appl Error diag box)
20040216 - works
20040217 - works
20040218 - works

I suspect there is something environmentally wrong with your setup,
Stefan.  You might try ensuring you don't have any cygwin apps running
(like inetd, perhaps?).  Use Task Manager to verify that, then start zsh
with no .z* profiles to ensure you're getting a clean environment.

 $ uname -a
 CYGWIN_NT-5.1 fordpc 1.5.8(0.110/4/2) 2004-02-19 09:26 i686 unknown unknown Cygwin
 $ cygcheck -srv | grep zsh
 zsh 4.1.1-2
 $ sleep 100
 [^Z here]
 [1]+  Stopped sleep 100
 $ fg
 sleep 100

And, here's my run with the 20040218 snapshot:

([EMAIL PROTECTED])[101] ~ % uname -a
CYGWIN_NT-4.0 itdev-nt55 1.5.8s(0.110/4/2) 20040218 17:35:06 i686 unknown unknown 
Cygwin
([EMAIL PROTECTED])[102] ~ % vim
[Ctrl-Z here]
zsh: 445 suspended  vim
([EMAIL PROTECTED])[103] ~ % ps -ef
UID PIDPPID TTY STIME COMMAND
pcastro  67   1   0  10:17:34 /usr/bin/zsh
pcastro 445  67   0  10:17:45 /usr/bin/vim
pcastro 205  67   0  10:17:48 /usr/bin/ps
([EMAIL PROTECTED])[104] ~ % jobs
[1]  + suspended  vim
([EMAIL PROTECTED])[105] ~ % fg
[1]  + continued  vim
([EMAIL PROTECTED])[106] ~ %

-- 
Peter A. Castro [EMAIL PROTECTED] or [EMAIL PROTECTED]
Cats are just autistic Dogs -- Dr. Tony Attwood

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



two text/binary oddities

2004-02-19 Thread Robert R Schneck
Short form:
1) cat  foo creates foo with DOS line endings... no matter what.
2) A control-Z in a file doesn't act as end-of-file in text mode, 
despite what the Cygwin User's Guide says.

Long form:
1) Apparently, cat sometimes explicitly sets stdout to O_TEXT.  This
occurs twice in the source, once with the comment
  /* If stdin is a terminal device, and it is the ONLY
 input file (i.e. we didn't write anything to the
 output yet), switch the output back to TEXT mode.
 This is so cat  xyzzy creates a DOS-style text
 file, like people expect.  */
It's certainly not what a Cygwin user with binary mounts and
CYGWIN=tty binmode is likely to expect.  I suggest that both 
occurences of setting the mode of stdout be removed from the Cygwin
port of cat.

2) Well, the Cygwin User's Guide says
  b. On reading in text mode, a CR followed by an NL is deleted and a ^Z
 character signals the end of file.
Happily for me, only the first seems to be happening.  Are the docs out 
of date, or did I test insufficiently, or is the situation more 
complicated?

Robert


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ftp bug report

2004-02-19 Thread Thomas Mellman
I fixed the bug (which could only show up when using nmap) and uploaded
a new version of inetutils.


Wow!  I'm impressed.  Thank you!


As an exercise for the reader:

  buf = (char *) malloc (size);
  to = buf;
  [...]
  if (newsize  size)
buf = realloc (buf, newsize);
  while (newsize--)
*to++ = *src++;

What's wrong with this picture?


Oh, I hope there's an answer section in the back
of the book.

Proving my ignorance once again ...

0v~/eg/ccat malmalloc.c
main ()
{
char *buf, *to, *src = hello world;
int size = 8, newsize;

newsize = strlen (src) + 1;
buf = (char *) malloc (size);
to = buf;

if (newsize  size)
buf = (char *)realloc (buf, newsize);
while (newsize--)
*to++ = *src++;

printf (%s\n, buf);
}
0v~/eg/c./malmalloc.exe 
hello world
12v~/eg/c



(assumes newsize is initialized).


__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ftp bug report

2004-02-19 Thread Brian Ford
On Thu, 19 Feb 2004, Thomas Mellman wrote:

 Corinna Vinschen wrote:

 As an exercise for the reader:
 
   buf = (char *) malloc (size);
   to = buf;
   [...]
   if (newsize  size)
 buf = realloc (buf, newsize);
   while (newsize--)
 *to++ = *src++;
 
 What's wrong with this picture?
 

 Oh, I hope there's an answer section in the back
 of the book.

Hint: realloc can move the data, returning a different base address.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ftp bug report

2004-02-19 Thread Thomas Mellman
Brian Ford wrote:
 Oh, I hope there's an answer section in the back
 of the book.

Hint: realloc can move the data, returning a different base address.


Oh.  I guess I read the man page wrong:

 The realloc() function changes the size of the block of memory pointed to
  by the pointer parameter to the number of bytes specified by the size
  parameter, and returns a pointer to the block. The contents of the block
  ^^^ 
  remain unchanged up to the lesser of the old and new sizes, and the con-
  tents of any memory added beyond the limit of the old size is undefined.


Admittedly, that was from a certain Unix-box manufacturer.  Thanks to your hint,
I checked the cygwin man page, and it was much clearer!



__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [Fwd: Bug: Perl:IsWinNT undefined RFE, only use / in reg values, not names..?]

2004-02-19 Thread linda w
What features does one get with a unix perl over a perl built where 
WinNT is
defined as true or false?  Many (most? all?) of the Win32 calls are 
available
in the Cygwin environment, why not compile the perl as a mixed breed 
perl that
defines WinNT?

What is lost by allowing Perl to make libwin32 calls.

If Cygwin is supposed to enable me to run my utils and scripts from bash or
cnd.exe, then why should perl be different?  What do I lose by defining 
-MWin32
in the PERL5OPS?, or put another way, why isn't it on and present all 
the time?

Besides, it seems, that the cpan modules for perl can't be for active state
perl since they have their own package manager -- but are for the 
floundering
win32-perl that is mostly eclipsed by active state's perl and cygwin's 
perl.

I suppose I find it frustrating to find books/examples about win32-perl that
don't quite work on active state and don't quite work on cyg_WIN_ (vs. a
cygunix product that might infer a variant of unix).
It seems cyg_win_ was designed to add POSIX  and unix compatibility and
functionality to the _Win_ environment with the intent of making things
_easier_ (Easy is good -- not everyone can be a master of every technology).
So why not make things easier for perl scripters as well by starting with
a perl that is unix (works with cpan, handles paths with //, /) and
win (paths handle \\, : and  and define WinNT) compatible?
Is there some fundamental reason why they can't both be present in perl?

I think part of the problem is that Perl is both an app (can be view as
a unix app to be transferred over), or can be viewed as part of the
development environment (as it is a development tool) that also understands
it is running in a mixed mode.
I'm favoring the latter view, obviously, while some have taken the former
view.  I'm just thinking it makes cygperl so much more accessible/useful to
have it understand it's mixed mode heritage as well.
Is that something real difficult or impossible to do?

(I don't know, never having built perl in the first place.)

Linda



[EMAIL PROTECTED] wrote:

Seems to me you answered your own question. The perl that's bundled with

Cygwin is *NOT*
an Active-State-*like* Win32 version of perl. It's really a *unix* built
version of perl that
-requires- Cygwin to even run on Windoze at all. That being the case,
Cygwin perl *thinks* its
running on unix - not Win32. Therefore, modules that expect direct,
non-POSIX access to the
Win32 subsystem are gonna need some help that wouldn't otherwise be
necessary with a true
Win32 build of Perl.
Brian Kelly
 



--
   In the marketplace of Real goods, capitalism is limited by safety
   regulations, consumer protection laws, and product liability.  In
   the computer industry, what protects the consumer?


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Assembler

2004-02-19 Thread Shankar Unni
Williams, Gerald S (Jerry) wrote:

Googling brought me to http://line.sourceforge.net,
which may be more along the lines of what you seek.
Seems to be a Dead Project(TM). No updates or releases since May 29, 2001.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: [Fwd: Bug: Perl:IsWinNT undefined RFE, only use / in reg values, not names..?]

2004-02-19 Thread Yitzchak Scott-Thoennes
On Thu, Feb 19, 2004 at 11:27:29AM -0800, linda w wrote:
 What features does one get with a unix perl over a perl built where 
 WinNT is
 defined as true or false?  Many (most? all?) of the Win32 calls are 
 available
 in the Cygwin environment, why not compile the perl as a mixed breed 
 perl that
 defines WinNT?

If possible, please shorten your lines.

 What is lost by allowing Perl to make libwin32 calls.
 
 If Cygwin is supposed to enable me to run my utils and scripts from bash or
 cnd.exe, then why should perl be different?  What do I lose by defining 
 -MWin32
 in the PERL5OPS?, or put another way, why isn't it on and present all 
 the time?

Because the perl-libwin32 package was released a little over 3 weeks ago.
Allow some time, please.

On the win32-perl/ActiveState side, the stuff in our package is divided
into two places, the perl core, and the libwin32 CPAN distribution.
-MWin32CORE will get you what is in the perl core for non-cygwin perl's.
The need for that should go away at some point.  Code using other Win32::
parts should already have use Win32.

Note that cygwin runs not just on WinNT and derivitaves; you can expect
Win32::IsWinNT to return false for Win9x, just as it does with ActiveState
(IIRC).

 Besides, it seems, that the cpan modules for perl can't be for active state
 perl since they have their own package manager -- but are for the 
 floundering
 win32-perl that is mostly eclipsed by active state's perl and cygwin's 
 perl.

As far as I know, they are usable with ActiveState (for XS modules
assuming you have the same compilation tools ActiveState uses).
That lanman thing seems to be an abberation, in that it isn't set up
like a real perl module.

 It seems cyg_win_ was designed to add POSIX  and unix compatibility and
 functionality to the _Win_ environment with the intent of making things
 _easier_ (Easy is good -- not everyone can be a master of every technology).
 So why not make things easier for perl scripters as well by starting with
 a perl that is unix (works with cpan, handles paths with //, /) and
 win (paths handle \\, : and  and define WinNT) compatible?
 
 Is there some fundamental reason why they can't both be present in perl?

In making POSIX-like paths work in a drive-letter world, you can't
have everything.  What is it exactly that you would like that you see
as missing?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



cp, install, and the .exe extension

2004-02-19 Thread Robert R Schneck
This is a bug in the fileutils packaging (I think).

Recently I noticed that install has special handling for the .exe 
extension, and cp does not.  In the fileutils source tarball
I notice there are three files:
  copy.c  copy.c.cgf  copy.c.orig

If I replace copy.c with either of the other two and rebuild, I get a 
cp which *does* have special handling for the .exe extension.
Did the fileutils maintainer just forget to do this?

Incidentally, the Cygwin User's Guide specifically claims that install 
won't handle the .exe extension; but currently it does.

Robert


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: 20040217 snapshot problem

2004-02-19 Thread Christopher Faylor
On Thu, Feb 19, 2004 at 01:30:01PM -0500, Richard Campbell wrote:
Can you check whether /tmp/XWin.log shows anything when XWin doesn't
start?

Nothing.  Not surprising, though, considering strace wasn't getting any
output.

Right.  Very odd.

If you just run xwin.exe does it also misbehave?  If so, how about running under
the debugger?

gdb /usr/X11R6/bin/xwin.exe
r

Report on any weird behavior here.  If it obviously crashes then report the
output of both 'bt' and 'x/40x $esp'.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: ftp bug report

2004-02-19 Thread Christopher Faylor
On Thu, Feb 19, 2004 at 05:02:36PM +0100, Corinna Vinschen wrote:
On Feb 19 05:31, Thomas Mellman wrote:
 Corinna  wrote:
 
  Did you try to use the mapping feature of nmap?  I transfer from a VMS
 
 What's nmap?  I never used it.  I don't see that we have a nmap package
 in the distro.
 
  machine, and I need to nmap to get rid of the version number.  I also
  use the case command to convert from uppercase to lowercase.
 
 I'd need *specific* instructions to reproduce the crash.  What commands
 with which options do I have to use how?  Can I do this at all or do I
 need non-Cygwin commands to reproduce it?  Do I have to have a VMS machine?
 
 Okay, like this:
 
 $ ftp somehost
 Connected to somehost.com.
 220 somehost.3 FTP Server (Version 5.0) Ready.
 Remote system type is VMS.
 ftp user mellman
 331 Username mellman requires a Password
 Password: 
 230 User logged in.
 ftp cd somewhere
 250-CWD command successful.
 250 New default directory is somewhere
 ftp nmap $1;$2 $1
 ftp case
 Case mapping on.
 ftp get mspp_i_seq.h
 200 PORT command successful.
 150 Opening data connection for somewhere:MSPP_I_SEQ.H;1 (x.x.x.x,y)
 Segmentation fault (core dumped)

FYI, I can reproduce it now.  I really didn't know about that nmap
command, I never used it before.

However, it would still be nice if somebody would try to track that
down, too.  When starting ftp under GDB, it doesn't hang, it just
doesn't print anything, so you must type in everything blind.

You could start ftp in one console window and attach to it with gdb
in another...

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: two text/binary oddities (Users Guide Alert)

2004-02-19 Thread Christopher Faylor
On Thu, Feb 19, 2004 at 06:37:12PM +, Robert R Schneck wrote:
Short form:
1) cat  foo creates foo with DOS line endings... no matter what.
2) A control-Z in a file doesn't act as end-of-file in text mode, 
despite what the Cygwin User's Guide says.

Joshua, could you remove anything which indicates that CTRL-Z is
equivalent to an EOF from the user's guide?

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [Fwd: Bug: Perl:IsWinNT undefined RFE, only use / in reg values, not names..?]

2004-02-19 Thread Christopher Faylor
On Thu, Feb 19, 2004 at 11:27:29AM -0800, linda w wrote:
What features does one get with a unix perl over a perl built where
WinNT is defined as true or false?  Many (most?  all?) of the Win32
calls are available in the Cygwin environment, why not compile the perl
as a mixed breed perl that defines WinNT?

What is lost by allowing Perl to make libwin32 calls.

What is lost is the delightful opportunity of having you bring this up,
gripe about it, and act as if it was a new topic on a monthly basis.

I doubt that there is anyone in the cygwin mailing list who would want
to lose the opportunity of seeing you rehash this subject over and over
and over again.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: cp, install, and the .exe extension

2004-02-19 Thread Christopher Faylor
On Thu, Feb 19, 2004 at 10:09:55PM +, Robert R Schneck wrote:
This is a bug in the fileutils packaging (I think).

Recently I noticed that install has special handling for the .exe 
extension, and cp does not.  In the fileutils source tarball
I notice there are three files:
  copy.c  copy.c.cgf  copy.c.orig

If I replace copy.c with either of the other two and rebuild, I get a 
cp which *does* have special handling for the .exe extension.
Did the fileutils maintainer just forget to do this?

No.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: search and replace tool

2004-02-19 Thread Reini Urban
Larry Hall schrieb:
At 02:59 PM 2/18/2004, dAniel hAhler you wrote:
I'm looking for a search and replace tool to replace a text portion in
a bunch (3500+) of files.
That should be an easy one.. :)
This isn't really Cywgin-specific.  As a result, it's off-topic for this 
list.  
But fixing perl's long-standing inability to do direct inline editing 
via perl -i would be cygwin specific.
Anyone investigated this lately?
--
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: [Fwd: Bug: Perl:IsWinNT undefined RFE, only use / in reg values, not names..?]

2004-02-19 Thread Brian . Kelly

 It seems cyg_win_ was designed to add POSIX  and unix compatibility
 and functionality to the _Win_ environment with the intent of making
 things _easier_ (Easy is good -- not everyone can be a master of
 every technology). So why not make things easier for perl scripters
 as well by starting with a perl that is unix (works with cpan,
 handles paths with //, /) and win (paths handle \\, : and
  and define WinNT) compatible?

I can't bring up the cygwin site right now for some reason, so I'll
go off memory. I do succinctly remember cgf being asked about cygwin
making things easier and he very clearly stated THAT WAS NOT THE GOAL.
The goal was to make a POSIX COMPATIBLE layer for Microsoft Windows
Platforms. PERIOD. There is no other goal, focus or mission. At least
*that* is what I took from his statements. This discussion is in the
archives somewhere. I don't think anyone would argue that making things
easier is a good thing to strive for - but that in fact is a much *bigger*
and *loftier* goal than the one defined for the cygwin project. Cygwin
is still a *relatively* new animal and there isn't a big enough cross-over
user base wanting hybrid capability to stimulate many developers into
working
more towards this goal. The fact that libwin32 got ported is proof that
such desire *does* exist and that things are *beginning* to move in this
direction - but one must have patience!!! Furthermore, the changes needed
were introduced into the modules themselves, NOT the cygwin1.dll.
(At least, that's my possibly errant understanding). cgf and crew
have enough challenge right now just getting the *POSIX* thing right.
When that task is someday finished - maybe they too will be inspired to
*up the ante*. And I for one completely understand their lack of desire
for doing it *now*.

Brian Kelly




WellChoice, Inc. made the following
 annotations on 02/19/2004 03:41:10 PM
--
Attention!  This electronic message contains information that may be legally 
confidential and/or privileged.  The information is intended solely for the individual 
or entity named above and access by anyone else is unauthorized.  If you are not the 
intended recipient, any disclosure, copying, distribution, or use of the contents of 
this information is prohibited and may be unlawful.  If you have received this 
electronic transmission in error, please reply immediately to the sender that you have 
received the message in error, and delete it. Release/Disclosure Statement


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Repeatable crash with CVS version of cygwin1 DLL

2004-02-19 Thread Cliff Geschke
From: Christopher Faylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 19, 2004 12:05 AM
Subject: Re: Repeatable crash with CVS version of cygwin1 DLL

On Wed, Feb 18, 2004 at 11:03:21PM -0600, Cliff Geschke wrote:
I have tried the latest update from CVS.  Still crashes, but stackptr 
does not go out-of-bounds.  At some point, _sigbe tries to ret with the 
top of stack ($esp) value set to 0.

Some additional data points:

1.  I moved the test .exe file to a Win2000 box running an old 
cygwin1.dll (file version 1005.5.0.0, product version 1.5.5-cr-0x9b).
No crash.  The test seems to run fine.

Sorry.  The fact that this worked in 1.5.5 is uninteresting.


Actually it _is_ interesting because it means that the crash is not due to some
bogus use of longjmp/setjmp in my test program.

I did ask for it by commenting in another message that I would like to know the
regression points but that is more for someone who says, out of the blue, The
snapshot is broken! with no hint of when something stopped working.

2.  I moved the new 1.5.8 cygwin1.dll back to that Win2000 box.  Test 
crashes.

So, if you use the version that is known not to work, it crashes.  Um, er...


This eliminates a variable in the test: the possibility that cygwin crashes only
in WinXP and not in Win2000.  Debugging isn't science, but we can try for some
logic.

It is not feasible for me to put together a simple test program, unless 
you want load and build RTEMS so you can link to it.

Huh?  I don't understand.  Isn't RTEMS an OS?

RTEMS is an OS but it can be built to run in an emulation mode that requires a
posix interface.  Normally people do this under Unix, but I figure cygwin should
work too.  And it almost does.

Have you actually tried to build a test case using the stub from your original
message?

No, the crash occurs deep down in the RTEMS context switching that uses the code
fragment I showed you before.

If you trust me, I can push you the test .exe file.  I can uuencode it 
to probably get past your filters.  But that seems like a poor thing to 
post to this list.  Do you want me to email it or push it somewhere else?

Please advise.

If the .exe is not too large then send it to the mailing list so that it can be
archived.

Okay, you asked for it...
uudecode, gunzip, (chmod maybe) then ./ticker.exe
It should type a message every 5 seconds for 30 seconds.
But it crashes after the 2nd message.


cgf

Good luck and thanks for looking into this,

Cliff Geschke

-- cut here ---
begin 644 ticker.exe.gz
M'XL(!%,-4```W1I8VMEBYE4`[#H+=%/'E2/S;`LC(Q%D8H()#R(2.P5J
M9$L!$B$Q3,;$RQ#23$?$*`LK'Q1(D6R:%6J8OJK5YD!+MDEJ5:1EFV;C
M+)\(R%R3!%LDM8E],2)6,0L:[EMAIL PROTECTED]:^V],T^V+#GIJIRS9WM.W['?
MO'?GSKUW[MS?S%/)PUXRC!`BP7\D0DB`B,M_OQ5_\C)YP:28X-?WMB0%?\
M]L3R;VZNEJMV;-^T8]U6?VZ;=NV.^1'[EMAIL PROTECTED]:5E\M;MCVV8EIF9
M8=%H+%4(*=9)[EMAIL PROTECTED]YE)ODN(!R`?U/,?YTF'3ZG+EU
MFOS\:A(OE;G\'D1(@MO)D$BBEV$D%@(9'_\VN:8\/[EMAIL PROTECTED]X.=;
MW[3'UCG6P7,5S)7/'7^/QC/!K.8]FAU-3[7C\3;T#QK$6^S(,CG'(1_T#=Y
M.I'7S2IOUU_=5%_=#5H?1AMQ!QVZM]ZKZ3.^JO1-#G9(ANIPE\R'P1/
MPI?WMO:%)([EMAIL PROTECTED]:$=E(XRO;-]E(,0KKHR,^^]5[87E]H7R^4+\::4
MEL`(YX3C^/LG5443G6_2TLCTWR*A`P-=;%AO%G]:K(1M?(2RP0V#6]
MZZK.W)8%5*:SZ83XE:0\IEX$E2ML$WEP;SAM-,AFDYLJ1A*P11?6G
MRST4R`2R_.(RJ'1VER:(86V%D+]WX,[EMAIL PROTECTED]/#UNHUZ[=L7_^M-9LV
M.`!O)YC=^.(R=63\^_;XKP_YB[+,F^_'KU/W^*7$V\0UZH/67)?+FT[EMAIL PROTECTED]
MKG^SJY87K:WXWLX.Y0518^9U7^-(P26[2Q5#OML)T/MGQUJ9Q7=CCN#N*
MY%'.PU)C\AQ%5S9+QJ29!$T)*N`J@:@$##]8--16/75J+:`.VD70W,
M-!GR!:Q.-E7JC=:C[5TT[71SKC#\[-[KV,[EMAIL PROTECTED]V/0TQ\+9K;7RCIW
MB]%M1[(ES[HO-W9\.CN-KIQO=P1X[[S9$`4CU(?(P?[S]\2\X?!?-2SJN5
M]8AX'[P!5HZJ-(QH/D``P8-FJ\A8T9E6Y#(U)59JA,:C*):3*^O8S??V
MAG!4%KA$0SM:T!B-?2$2[VS3L`0SF:I%J=4V(:090^\M]DB`H+^,-9SI
M(@X0+L'NH_%=F=!=WMV)!)AJS3NGR,GXYDWD/C?`ZS]R!.N]ELK9_W*L]B
M=S9VOPG=GIV$C1O47X?]/;707S=(MF[EMAIL PROTECTED])_K8WQ,4-40G]M
M[[EMAIL PROTECTED](B[EMAIL PROTECTED].BJRI,%9,V_X.C(![*IL
M].*PK\;?EB3^`TGBCTP2OW5L+/Y?,/^Q2[_%OE-2Y)?7W9R^+].$O_Y)/W
M)8G_0)+X(Y/$;[T].?Q_2Q)_3Y+X2VZ_-?L8F22_UC%)SC])_#U)XB\9XOS
M3Y)?:]8M^G]6DO:?)/X#2*/3!*_U9SD^B)O\=\:_I]($E^(Y/$;QV=Y/R3
MQ-^3)/Z2T:([EMAIL PROTECTED]:@I%ZZIQ0L+%MCM*_[NOJE*T=2R16+IBXH
[EMAIL PROTECTED]+IF,V$EDJ5ZB\(WRLP;IA[V`A+KZC[U$H]W6V1
MZ)6N%T/#\@'F(SX;=DM4/Q$0G;)=A!J-[O99ZI'J#X_!XJ2+#U'R4U[[
M)'BE95.H/5[EMAIL PROTECTED]@-^9[HG]]*ZNSA(M:7MC%C%=/6H-+^N]O6=,0#D!.;!
MY:EI/IF.TU=P]0$A3-6=%\U;[EMAIL PROTECTED]$ZG3X'G_
[EMAIL PROTECTED]/5,)S+.SD/V]'71U2!O=0:/[NT*_.%7VZUU03P;I..^6B*V(IQJIMN
M8;O(8#NN!^7AL.*KZ*=\%06$8Z`^?E*93\A+=ZOPQM^QT10:8$L%2`#
M`!BA#,'U6/(\PCR/A^QDH!.ZZ_(H`;*/KABE-H$,O+7!V/P(H-V(_[_5?F
M.5-6;_./([F+1$Y\*A7IJSFLZX0J-5PS4SW_DE43=73+?38+WHV7#
M-JU:O::R$64?!0-G-=//[EMAIL PROTECTED]@(@1KFU!38QN+G1/[EMAIL PROTECTED]
M3^)$#:`Y*YBQT3#VIWYP;F.4:AJ#=L_.=([EMAIL PROTECTED]/`N-`Y_)QQFI3L3YS]@
MSTC^$U@7!9N86S3A*_35M6KI24D1C_0GL'#W-=ZZ25/6CLSE[5:6`2#6?
M.D'P\:;C0'L@3MK3']Q9X,=[[EMAIL PROTECTED]W\^L/=5:3(LS(2A\YW]
MFY*%3MQ/\'#OL_=X$.ZD:U!UD./SD3Q[_V+I/K'9SO-TB2JG*

Re: Assembler

2004-02-19 Thread Krzysztof Duleba
Krzysztof Duleba wrote:

  Googling brought me to http://line.sourceforge.net,
  which may be more along the lines of what you seek.

 I tried it out, with no success. Binary version fails to run it's own
hello
 and rawhello programs and source produces so many serious errors during
the
 compilation that I have no hope to fix them all. Which doesn't mean that
I'm
 not trying to :-)

I gave up. I see no chance to compile Line at all. And even if I succeed,
Line will probably bail out.
However, my own code already can change int 0x80-like system calls to
appropriate function calls, if only the function has fixed number of
arguments. I still don't have handling functions that can have different
number of arguments, but it doesn't seem to be difficult too.
I wanted to try out my app with some deassembler, but I haven't found
anything interesting. Which one do you use (in Linux)?

Regards
Krzysztof Duleba



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Repeatable crash with CVS version of cygwin1 DLL

2004-02-19 Thread Christopher Faylor
On Thu, Feb 19, 2004 at 05:58:59PM -0600, Cliff Geschke wrote:
From: Christopher Faylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 19, 2004 12:05 AM
Subject: Re: Repeatable crash with CVS version of cygwin1 DLL

On Wed, Feb 18, 2004 at 11:03:21PM -0600, Cliff Geschke wrote:
I have tried the latest update from CVS.  Still crashes, but stackptr 
does not go out-of-bounds.  At some point, _sigbe tries to ret with the 
top of stack ($esp) value set to 0.

Some additional data points:

1.  I moved the test .exe file to a Win2000 box running an old 
cygwin1.dll (file version 1005.5.0.0, product version 1.5.5-cr-0x9b).
No crash.  The test seems to run fine.

Sorry.  The fact that this worked in 1.5.5 is uninteresting.

Actually it _is_ interesting because it means that the crash is not due to some
bogus use of longjmp/setjmp in my test program.

It doesn't necessarily mean that.  Just because something worked in
1.5.5 doesn't mean that your app uses setjmp correctly.

In fact, on rereading the code snippet that you posted, it actually is
using setjmp incorrectly.  It calls setjmp in a function and then
(potentially) returns.  When it doesn't return it jumps to another
thread context which almost has to invalidate the setjmp context by
default.  That invalidates the jmp_buf argument to setjmp.  I don't know
if this is really an actual code sample but, if it is, it doesn't seem
to be compliant with this sentence from the setjmp man page:

The stack context will be invalidated  if  the  function  which  called
setjmp() returns.

Okay, you asked for it...
uudecode, gunzip, (chmod maybe) then ./ticker.exe
It should type a message every 5 seconds for 30 seconds.
But it crashes after the 2nd message.

Ok.  I'll look at it.

Thanks,
cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: search and replace tool

2004-02-19 Thread Igor Pechtchanski
On Fri, 20 Feb 2004, Reini Urban wrote:

 Larry Hall schrieb:
  At 02:59 PM 2/18/2004, dAniel hAhler you wrote:
 I'm looking for a search and replace tool to replace a text portion in
 a bunch (3500+) of files.
 
 That should be an easy one.. :)
 
  This isn't really Cywgin-specific.  As a result, it's off-topic for this
  list.

 But fixing perl's long-standing inability to do direct inline editing
 via perl -i would be cygwin specific.
 Anyone investigated this lately?

What on Earth are you talking about?  What inability?  WFM (see below).
Igor

$ cygcheck -cd perl
Cygwin Package Information
Package  Version
perl 5.8.2-1
$ ls
$ cat EOF  sometext
 blah
 blah and more blah
 still blah
 ok, done with blah
 EOF
$ ls
sometext
$ cat sometext
blah
blah and more blah
still blah
ok, done with blah
$ perl -i -pe 's/blah/stuff/g' sometext
$ ls
sometext  sometext.bak
$ cat sometext
stuff
stuff and more stuff
still stuff
ok, done with stuff
$

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: search and replace tool

2004-02-19 Thread Yitzchak Scott-Thoennes
On Fri, Feb 20, 2004 at 12:47:45AM +0100, Reini Urban [EMAIL PROTECTED] wrote:
 Larry Hall schrieb:
 At 02:59 PM 2/18/2004, dAniel hAhler you wrote:
 I'm looking for a search and replace tool to replace a text portion in
 a bunch (3500+) of files.
 
 That should be an easy one.. :)
 
 This isn't really Cywgin-specific.  As a result, it's off-topic for this 
 list.  
 
 But fixing perl's long-standing inability to do direct inline editing 
 via perl -i would be cygwin specific.
 Anyone investigated this lately?

That's just a matter of allowing unlinking an open file and creating a
new one with the same name...

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: search and replace tool

2004-02-19 Thread Brian Dessent
Igor Pechtchanski wrote:

 On Fri, 20 Feb 2004, Reini Urban wrote:

  But fixing perl's long-standing inability to do direct inline editing
  via perl -i would be cygwin specific.
  Anyone investigated this lately?
 
 What on Earth are you talking about?  What inability?  WFM (see below).
 ...
 $ perl -i -pe 's/blah/stuff/g' sometext
 $ ls
 sometext  sometext.bak

It didn't do the editing inline, it created a new file and renamed the
old one .bak.  In other words, on Cygwin -i is really -i.bak.  If
you try the above sequence on linux you don't get a .bak file and the
changes are truly done in-place.  I assume this relates to differences
in filesystem semantics.

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



[Auto tool wrappers] The usage for ifnames ??

2004-02-19 Thread Alvyn Liang
I read the book GCC: The complete reference by Arthur Griffith...
In this book it says no example about how to actually use the autoconf
package..

There is a line says about how to execute the command ifnames and the
functionality of it. I also read the manpage of ifnames
but still get confused.

When I input

$ ifnames *.c *.h

it comes

ifnames: invalid number of arguments
Try `ifnames --help' for more information.

And if I input

$ ifnames

becomes

ifnames: Couldn't find configure.ac nor configure.in file
run /usr/auto*/bin/ifnames directly

Can somebody give me an example about how to use it and what kind of
requisite is it for the usage?

Thanks

Alvyn




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Strange symlink and mv interaction

2004-02-19 Thread Igor Pechtchanski
On Thu, 19 Feb 2004, Parker, Ron wrote:

 From inside of ~/src/myprojects I did a:

   mv -- --1.2 ~/tla--escapes--1.2

 where --1.2 was a directory in ~/src/myprojects.  This did not move
 ~/src/myprojects/--1.2 to ~/src/tla--escapes--1.2.  What it did do was move
 it to /cygdrive/c/tla--escapes--1.2.

Tilde expansion is usually done by the shell.  However, judging from the
rest of your message, you meant the above to say

mv -- --1.2 ../tla--escapes--1.2

More below.

 Here are the pertinent paths:

 / is a binary system mount of C:\cygwin
 /cis a binary system mount of C:\
 /home is a binary system mount of C:\home
 ~ is  /home/rdparker
 ~/src is a directory, /home/rdparker/src
 ~/src/myprojects  is a symlink to /c/MyProjects

 The symlink is just intended to graft my Windows source into my preferred
 ~/src working location for use with reasonable tools.

 It appears that when mv did a .. from ~/src/myprojects, it actually did a
 .. from /c/MyProjects not from ~/src/myprojects.  Is this the expected
 behavior?

This is the expected behavior.  The symlink takes you to the directory,
but the .. uses the actual parent directory entry, which points to /c.
If you want this to work seamlessly, create an actual ~/src/myprojects
directory, and use 'mount' to map /c/MyProjects to
/home/rdparker/src/myprojects.

 I don't have a *nix system handy to check out how .. works with
 symlinked directories.

The above is rather logical if you think about it.  FWIW, it does work the
same way on Linux (not surprisingly).

 I left my laptop at home today and my wife shut off my ssh box at home
 because the fan was scaring her rabbit.  (Hmm... how do small pets
 respond to contact with an Athlon?  I smell hasenpfeffer.  Sorry PETA,
 it's been a _long_ day.)

Just keep the rabbit out of the fan... :-)
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: search and replace tool

2004-02-19 Thread Igor Pechtchanski
On Thu, 19 Feb 2004, Brian Dessent wrote:

 Igor Pechtchanski wrote:

  On Fri, 20 Feb 2004, Reini Urban wrote:
 
   But fixing perl's long-standing inability to do direct inline editing
   via perl -i would be cygwin specific.
   Anyone investigated this lately?
 
  What on Earth are you talking about?  What inability?  WFM (see below).
  ...
  $ perl -i -pe 's/blah/stuff/g' sometext
  $ ls
  sometext  sometext.bak

 It didn't do the editing inline, it created a new file and renamed the
 old one .bak.  In other words, on Cygwin -i is really -i.bak.  If
 you try the above sequence on linux you don't get a .bak file and the
 changes are truly done in-place.  I assume this relates to differences
 in filesystem semantics.

 Brian

I stand corrected.  Thanks for the explanation.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Tk usage with / from perl in Cygwin env

2004-02-19 Thread linda w
Has anyone tried using Tk from perl?

I was using a simple script example that used Tk for graphics interaction.
It wouldn't run because it wanted Tk, so I cpanned / downloaded the Tk perl
libs and ran an a make and got:
/bin/perl.exe /usr/lib/perl5/5.8.2/ExtUtils/xsubpp  -typemap 
/usr/lib/perl5/5.8.
2/ExtUtils/typemap -typemap 
//ishtar/share/CPAN/build-win/Tk-804.025_beta14/Tk/t
ypemap  Xlib.xs  Xlib.xsc  mv Xlib.xsc Xlib.c
gcc -c  -I.. -I../pTk/mTk/xlib -DPERL_USE_SAFE_PUTENV 
-fno-strict-aliasing -DUSE
IMPORTLIB -O2   -DVERSION=\804.025\ -DXS_VERSION=\804.025\  
-I/usr/lib/perl
5/5.8.2/cygwin-thread-multi-64int/CORE  -D__WIN32__ -D_WIN32 -Wall 
-Wno-implici
t-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ Xlib.c
Xlib.xs:13: error: syntax error before '*' token
Xlib.xs:13: warning: data definition has no type or storage class
Xlib.xs: In function `boot_Tk__Xlib':
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: warning: cast to pointer from integer of different size
Xlib.xs:378: error: `XlibVtab' undeclared (first use in this function)
Xlib.xs:378: error: (Each undeclared identifier is reported only once
Xlib.xs:378: error: for each function it appears in.)
Xlib.xs:378: error: syntax error before ')' token
make[1]: *** [Xlib.o] Error 1
make[1]: Leaving directory 
`//ishtar/share/CPAN/build-win/Tk-804.025_beta14/Xlib
'
make: *** [subdirs] Error 2
 /usr/bin/make  -- NOT OK
Running make test
 Can't test without successful make
Running make install
 make had returned bad status, install seems impossible

My perl -V shows:
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
 Platform:
   osname=cygwin, osvers=1.5.5(0.9432), archname=cygwin-thread-multi-64int
   uname='cygwin_nt-5.0 troubardix 1.5.5(0.9432) 2003-09-20 16:31 i686 
unknown
unknown cygwin '
   config_args='-de -Dmksymlinks -Duse64bitint -Dusethreads 
-Doptimize=-O2 -Dma
n3ext=3pm'
   hint=recommended, useposix=true, d_sigaction=define
   usethreads=define use5005threads=undef useithreads=define 
usemultiplicity=de
fine
   useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
   use64bitint=define use64bitall=undef uselongdouble=undef
   usemymalloc=y, bincompat5005=undef
 Compiler:
   cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing',
   optimize='-O2',
   cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing'
   ccversion='', gccversion='3.3.1 (cygming special)', gccosandvers=''
   intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
   d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
   ivtype='long long', ivsize=8, nvtype='double', nvsize=8, 
Off_t='off_t', lsee
ksize=8
   alignbytes=8, prototype=define
 Linker and Libraries:
   ld='ld2', ldflags =' -s -L/usr/local/lib'
   libpth=/usr/local/lib /usr/lib /lib
   libs=-lgdbm -ldb -lcrypt -lgdbm_compat
   perllibs=-lcrypt -lgdbm_compat
   libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
   gnulibc_version=''
 Dynamic Linking:
   dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
   cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'

Characteristics of this binary (from libperl):
 Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT 
USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
 Built under cygwin
 Compiled at Nov  7 2003 12:06:28
 %ENV:
   PERL5LIB=/usr/local/lib/perl/5.8
   CYGWIN=
 @INC:
   /usr/local/lib/perl/5.8
   /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int
   /usr/lib/perl5/5.8.2
   /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int
   /usr/lib/perl5/site_perl/5.8.2
   /usr/lib/perl5/site_perl
   .

--
   In the marketplace of Real goods, capitalism is limited by safety
   regulations, consumer protection laws, and product liability.  In
   the computer industry, what protects the consumer?   


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Repeatable crash with CVS version of cygwin1 DLL

2004-02-19 Thread Christopher Faylor
On Thu, Feb 19, 2004 at 07:10:02PM -0500, Christopher Faylor wrote:
On Thu, Feb 19, 2004 at 05:58:59PM -0600, Cliff Geschke wrote:
From: Christopher Faylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 19, 2004 12:05 AM
Subject: Re: Repeatable crash with CVS version of cygwin1 DLL

On Wed, Feb 18, 2004 at 11:03:21PM -0600, Cliff Geschke wrote:
I have tried the latest update from CVS.  Still crashes, but stackptr 
does not go out-of-bounds.  At some point, _sigbe tries to ret with the 
top of stack ($esp) value set to 0.

Some additional data points:

1.  I moved the test .exe file to a Win2000 box running an old 
cygwin1.dll (file version 1005.5.0.0, product version 1.5.5-cr-0x9b).
No crash.  The test seems to run fine.

Sorry.  The fact that this worked in 1.5.5 is uninteresting.

Actually it _is_ interesting because it means that the crash is not due to some
bogus use of longjmp/setjmp in my test program.

It doesn't necessarily mean that.  Just because something worked in
1.5.5 doesn't mean that your app uses setjmp correctly.

In fact, on rereading the code snippet that you posted, it actually is
using setjmp incorrectly.  It calls setjmp in a function and then
(potentially) returns.  When it doesn't return it jumps to another
thread context which almost has to invalidate the setjmp context by
default.  That invalidates the jmp_buf argument to setjmp.  I don't know
if this is really an actual code sample but, if it is, it doesn't seem
to be compliant with this sentence from the setjmp man page:

The stack context will be invalidated  if  the  function  which  called
setjmp() returns.

Okay, you asked for it...
uudecode, gunzip, (chmod maybe) then ./ticker.exe
It should type a message every 5 seconds for 30 seconds.
But it crashes after the 2nd message.

Ok.  I'll look at it.

As it turns out, your test program does exactly what I mentioned above.
It uses longjmp to jump to a position in the stack that is essentially
out-of-date.  The signal stack has since been cleared so it ends up
jumping to location 0.

I'm not sure how this would work on linux or any other OS.  Is there
code that does some stack magic or something?

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: search and replace tool

2004-02-19 Thread Larry Hall
At 06:47 PM 2/19/2004, Reini Urban you wrote:
Larry Hall schrieb:
At 02:59 PM 2/18/2004, dAniel hAhler you wrote:
I'm looking for a search and replace tool to replace a text portion in
a bunch (3500+) of files.

That should be an easy one.. :)
This isn't really Cywgin-specific.  As a result, it's off-topic for this list.  

But fixing perl's long-standing inability to do direct inline editing via perl -i 
would be cygwin specific.
Anyone investigated this lately?


Huh.  Interesting way to open a new subject.  Since the text you 
quoted above makes absolutely no mention whatsoever about Perl but later
responses to this thread do, I'm going to assume that you at least read
further along, saw the subsequent suggestions about using Perl for the 
above, and then decided to reply to my post, which doesn't mention Perl,
bringing up the new topic of how -i does or doesn't work with Cygwin's
Perl.  I guess this just goes to show there are a thousand different ways
to look at things.  I never would have imagined this would seem like a 
straight line to anyone.

Anyway, as mentioned later in the thread, the problem is the implied 
semantics of unlink() which isn't supported by the Windows API.  So 
this long-standing inability for Perl is likely to remain for the 
foreseeable future AFAICS.

This list prefers that you start new threads for new subjects, just for
future reference.


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


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: [Auto tool wrappers] The usage for ifnames ??

2004-02-19 Thread Charles Wilson
Alvyn Liang wrote:

Can somebody give me an example about how to use it and what kind of
requisite is it for the usage?
I can do better: see http://www.

http://sources.redhat.com/autobook/

It's a little out of date, especially with respect to cygwin, but only 
because cygwin is much more similar to Unix now than it was.  This book 
is still the best reference on the autotools extant.

--
Chuck
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


daylight saving

2004-02-19 Thread King Lung Chiu
Hi,

'date' on cygwin shows time that's 1 hour behind my machine's local time 
(Win2K). I am on daylight saving right now (ie. 1 hour ealirer than 
usual).

What can I do to fix the cygwin time so it recognises the daylight saving?

regards

King Lung Chiu


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: search and replace tool

2004-02-19 Thread Egor Duda
On Thu, 19 Feb 2004, Brian Dessent wrote:
What on Earth are you talking about?  What inability?  WFM (see below).
...
$ perl -i -pe 's/blah/stuff/g' sometext
$ ls
sometext  sometext.bak
It didn't do the editing inline, it created a new file and renamed the
old one .bak.  In other words, on Cygwin -i is really -i.bak.  If
you try the above sequence on linux you don't get a .bak file and the
changes are truly done in-place.  I assume this relates to differences
in filesystem semantics.
huh? what do you mean in-place? linux writes new file to new place, it 
just deletes .bak file afterwards, unlike cygwin.

[EMAIL PROTECTED]:~$ echo aaa xxx
[EMAIL PROTECTED]:~$ ls -i xxx
 408096 xxx
[EMAIL PROTECTED]:~$ perl -i -pe 's/aaa//' xxx
[EMAIL PROTECTED]:~$ ls -i xxx
 408074 xxx
[EMAIL PROTECTED]:~$ cat xxx

egor.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


main thread of a process

2004-02-19 Thread borota
I want to send messages to the main thread of a Win process created with 
'spawn'. Is there a way to do that in 'pure Cygwin'? 

The Windows sequence would be:
CreateProcess(NULL, cmd, NULL, NULL, FALSE, 0, NULL, NULL, si, pi);
...
PostThreadMessage(pi.dwThreadId, WM_QUIT, 0, 0); //or whatever
... 

'spawn' returns the 'pid' of the new process. Is that always equal to 
pi.dwProcessId? Is there a way to get from this 'pid' to sending messages to 
the main thread? Is there a place where pi.dwThreadId is saved?
(global structure, etc.) 

Thanks,
Greg
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: two text/binary oddities (Users Guide Alert)

2004-02-19 Thread Joshua Daniel Franklin
On Thu, Feb 19, 2004 at 06:21:55PM -0500, Christopher Faylor wrote:
 On Thu, Feb 19, 2004 at 06:37:12PM +, Robert R Schneck wrote:
 Short form:
 1) cat  foo creates foo with DOS line endings... no matter what.
 2) A control-Z in a file doesn't act as end-of-file in text mode, 
 despite what the Cygwin User's Guide says.
 
 Joshua, could you remove anything which indicates that CTRL-Z is
 equivalent to an EOF from the user's guide?

Done. The CYGWIN=tty section now reads, Defaults to not set, in which case the
tty is opened in text mode. Note that this has been changed such that ^D works
as expected instead of ^Z, and is settable via stty. Does this sound accurate?

I also removed the sentence On reading in text mode, a CR followed by an NL is
deleted and a ^Z character signals the end of file from the Using Text and
Binary Modes section, the whole of which seems somewhat outdated. Ah,
(volunteer) job security.

I also changed all mentions of ^M to ^S, just to be mean. (Just kidding.)

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: search and replace tool

2004-02-19 Thread Yitzchak Scott-Thoennes
On Fri, Feb 20, 2004 at 10:02:03AM +0300, Egor Duda wrote:
 huh? what do you mean in-place? linux writes new file to new place, it 
 just deletes .bak file afterwards, unlike cygwin.
 
 [EMAIL PROTECTED]:~$ echo aaa xxx
 [EMAIL PROTECTED]:~$ ls -i xxx
  408096 xxx
 [EMAIL PROTECTED]:~$ perl -i -pe 's/aaa//' xxx
 [EMAIL PROTECTED]:~$ ls -i xxx
  408074 xxx
 [EMAIL PROTECTED]:~$ cat xxx
 

That doesn't ever create a backup file or a temporary file.  It opens
xxx for read, unlinks it, opens xxx for writing, then reads from the
original handle and writes to the second handle.  This is AFAIUI
impossible on windows, but possible on things like unix and VMS (where
the unlink is skipped because of the automatic versioning).

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/