Please upload: xterm-202

2005-05-31 Thread Harold L Hunt II


http://homer.starnet.com/~hunth/cygwin/release/X11/xterm/setup.hint
(unchanged)

http://homer.starnet.com/~hunth/cygwin/release/X11/xterm/xterm-202-1.tar.bz2
ed44f5b81dfda95bf4f3a4a330e30445

http://homer.starnet.com/~hunth/cygwin/release/X11/xterm/xterm-202-1-src.tar.bz2
eee866895118a4b9af5ed040099ffed0


It's been about seven months, so lets give this a try and see how it goes.

Harold


Please upload distcc-2.18.3-1

2005-05-31 Thread Harold L Hunt II


http://homer.starnet.com/~hunth/cygwin/release/distcc/setup.hint
(unchanged)

http://homer.starnet.com/~hunth/cygwin/release/distcc/distcc-2.18.3-1.tar.bz2
c5b9509fb5dfd30d2d76d3846832d771

http://homer.starnet.com/~hunth/cygwin/release/distcc/distcc-2.18.3-1-src.tar.bz2
134a64b97ea4613bba3bf0a42fd61856


On a side note, I don't have distcc setup right now, so this release is 
untested... I would greatly appreciate it if someone that uses distcc 
took five minutes to try out this version and give an up/down report. 
For your convenience, there is a setup.ini at the following url, so you 
can just point setup.exe to it:


http://homer.starnet.com/~hunth/cygwin/

[Watch out though, it'll upgrade your xterm too :) ]


Harold


Re: Please upload distcc-2.18.3-1

2005-05-31 Thread Harold L Hunt II

I should clarify my intentions:

I think this should be uploaded now and allowed to be curr.

If there are problems, I'll fix them immediately, and the sooner that 
somebody gives a positive or negative review, the better I will feel. 
However, I don't think we should wait for a positive or negative review 
to post this, since it is all minor bug fixes and extremely unlikely to 
break anything.


Harold

Harold L Hunt II wrote:


http://homer.starnet.com/~hunth/cygwin/release/distcc/setup.hint
(unchanged)

http://homer.starnet.com/~hunth/cygwin/release/distcc/distcc-2.18.3-1.tar.bz2 


c5b9509fb5dfd30d2d76d3846832d771

http://homer.starnet.com/~hunth/cygwin/release/distcc/distcc-2.18.3-1-src.tar.bz2 


134a64b97ea4613bba3bf0a42fd61856


On a side note, I don't have distcc setup right now, so this release is 
untested... I would greatly appreciate it if someone that uses distcc 
took five minutes to try out this version and give an up/down report. 
For your convenience, there is a setup.ini at the following url, so you 
can just point setup.exe to it:


http://homer.starnet.com/~hunth/cygwin/

[Watch out though, it'll upgrade your xterm too :) ]


Harold



Ctrl got stuck

2005-05-31 Thread Tobias Polzin
Hi,

first of all: Thanks for the great cygwin-xfree!

I have one major problem with it: Occasionly (approx every 2 hours,
sometimes every 5 minutes) it feels like the CTRL-modifier got stuck. I used
cat and emacs to see, that in this situations pressing an a is
interpreted as CTRL-a. If I press CTRL, the situation is back to normal,
but pressing AltGr-something does not give the desired result and makes
CTRL got stuck again. Using the funny Show Cursor option of the
X-tray-icon repairs the behaviour... for some minutes or hours. Also
starting a new xterm -window and closing it repaired the behaviour recently.

I conjecture that it has something to do with AltGr. As I use the german
keyboard-layout, I have to use AltGr a lot of times while programming C++.

I start Xwin with:

XWin -dpi 92 -multiwindow -clipboard -multiplemonitors -xkbvariant
nodeadkeys -ac

I mostly work with a Win2K (with desktop-twister) on a remote linux or
colinux maschine.

The AltGr hints in the FAQ did not help me, as they turn of AltGr completely
and the problem is not the AltGr does not work correctly. In most cases it
works.

Any ideas?

Regards,
  Tobias Polzin

-- 
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl


Re: Emacs problem with Cygwin 1.5.17-1

2005-05-31 Thread Christopher Faylor
On Sun, May 29, 2005 at 02:49:31PM +0200, Angelo Graziosi wrote:
--- Here is some answer to
---
--- http://cygwin.com/ml/cygwin-xfree/2005-05/msg00261.html
---
---
--- With TASKMANAGER Emacs takes from 97% to 99% of CPU.
---
--- Using your hints I have noted that if I do not start Emacs 
--- the command
---
---procps auwx
---
--- prints the data an returns to prompt.
---
--- If I start Emacs the result is:
---
---
[EMAIL PROTECTED] ~
$ emacs
[1] 1492

[EMAIL PROTECTED] ~
$ ps
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
 1448   11448   1448  con  500 13:05:15
/usr/X11R6/bin/XWin
 1364   11364   1364  con  500 13:05:19 /usr/bin/xterm
 138413641384   14360  500 13:05:22 /usr/bin/bash
 149213841492   14160  500 13:06:27 /usr/bin/emacs
 158013841580   15720  500 13:06:30 /usr/bin/ps

[EMAIL PROTECTED] ~
$ procps auwx
USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
500   1448  1.4  4.2   6812 11068 tty0 Ss   13:05   0:01
/usr/X11R6/bin/XWin -multiwindow -clipboard -silent-dup-error +bs
500   1364  0.6  2.8   4296  7376 tty0 Rs   13:05   0:00
/usr/bin/xterm -e /usr/bin/bash -l  -ms red -fg lightgray -bg black
500   1384  0.2  1.5   1620  4016 tty0 Ss   13:05   0:00
/usr/bin/bash -l
---
--- ... and after many minutes (i.e. after I lunched!):
---
500   1492  107  2.9   7320  7752 tty0 R13:06   0:10 defunct
500   1564  1.0  1.4   2260  3676 tty0 R13:06   0:00 procps

This shows that emacs wasn't spinning although it was using some CPU.

Other than that, there is nothing here which helps figure out why you
are having problems.

Is there anything in the X log file?

--- What does WJFFM mean?

http://cygwin.com/acronyms/#WJFFM

cgf


Re: Ctrl got stuck

2005-05-31 Thread Alexander Gottwald
On Tue, 31 May 2005, Tobias Polzin wrote:

 Hi,
 
 first of all: Thanks for the great cygwin-xfree!
 
 I have one major problem with it: Occasionly (approx every 2 hours,
 sometimes every 5 minutes) it feels like the CTRL-modifier got stuck. I used
 cat and emacs to see, that in this situations pressing an a is
 interpreted as CTRL-a. If I press CTRL, the situation is back to normal,
 but pressing AltGr-something does not give the desired result and makes
 CTRL got stuck again. Using the funny Show Cursor option of the
 X-tray-icon repairs the behaviour... for some minutes or hours. Also
 starting a new xterm -window and closing it repaired the behaviour recently.
 
 I conjecture that it has something to do with AltGr. As I use the german
 keyboard-layout, I have to use AltGr a lot of times while programming C++

It seems to appear more often under high load. But unfortunatly there is not 
much we can do about it. 

Windows reports alt-gr as simultanious presses of ctrl and alt and we have to 
detect whether it is alt-gr or the keys are really pressed together. Under heavy
load the timeouts (and timestamps) of the events may differ between press and 
release events. That way you get a control press and an alt-gr release so 
control
gets stuck.

the only solution is making the detection more robust.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: Ctrl got stuck

2005-05-31 Thread Jean-Claude Gervais
Tobias,

if you were to type lots of AltGr key combinations, could you reproduce
the problem every time?


On Tue, 2005-05-31 at 16:21 +0200, Tobias Polzin wrote:
 Hi,
 
 first of all: Thanks for the great cygwin-xfree!
 
 I have one major problem with it: Occasionly (approx every 2 hours,
 sometimes every 5 minutes) it feels like the CTRL-modifier got stuck. I used
 cat and emacs to see, that in this situations pressing an a is
 interpreted as CTRL-a. If I press CTRL, the situation is back to normal,
 but pressing AltGr-something does not give the desired result and makes
 CTRL got stuck again. Using the funny Show Cursor option of the
 X-tray-icon repairs the behaviour... for some minutes or hours. Also
 starting a new xterm -window and closing it repaired the behaviour recently.
 
 I conjecture that it has something to do with AltGr. As I use the german
 keyboard-layout, I have to use AltGr a lot of times while programming C++.
 
 I start Xwin with:
 
 XWin -dpi 92 -multiwindow -clipboard -multiplemonitors -xkbvariant
 nodeadkeys -ac
 
 I mostly work with a Win2K (with desktop-twister) on a remote linux or
 colinux maschine.
 
 The AltGr hints in the FAQ did not help me, as they turn of AltGr completely
 and the problem is not the AltGr does not work correctly. In most cases it
 works.
 
 Any ideas?
 
 Regards,
   Tobias Polzin
 



xstart fails

2005-05-31 Thread Catherine Beauheim


Must be my day for frustrations.  I have reloaded, rebooted, loaded, 
rebooted,cleaned out, reloaded, rebooted and still can't get the xwin to 
start.  the message says to email this  address with the version

6.8.2.0-2 with xwin command line as
XWin - multiwindow -clipboard -silent-dup-error. 


I using XP.  the XWin.log is:

Vendor: The Cygwin/X Project
Release: 6.8.2.0-2


Contact: cygwin-xfree@cygwin.com


XWin was started with the following command line:


XWin -multiwindow -clipboard -silent-dup-error


ddxProcessArgument - Initializing default screens

winInitializeDefaultScreens - w 1280 h 1024

inInitializeDefaultScreens - Returning

_XSERVTransmkdir: Cannot create /tmp/.X11-unix with root ownership

(II) XF86Config is not supported

(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information

(==) FontPath set to 
/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per 
pixel
winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 1024 
depth: 32
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 
bpp 32

null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init

InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello

winMultiWindowXMsgProc - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()

winMultiWindowXMsgProc - Calling pthread_mutex_lock ()

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=500, rate=31
(--) winConfigKeyboard - Layout: 0409 (0409)
(--) Using preset keyboard for English (USA) (409), type 4
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing 
from list!


Fatal server error:
could not open default font 'fixed'
winDeinitMultiWindowWM - Noting shutdown in progress




Re: Emacs problem with Cygwin 1.5.17-1

2005-05-31 Thread Angelo Graziosi

I remember you, that reinstalling Cygwin 1.5-16-1 (and keeping coreutils
5.3.0-6)  Emacs works fine.

I would keep 1.5.17-1 because it allow me to build CERNLIB-2005 with a
limited number of patches (with 1.5.16-1 there is something more to
patch)

I have also tried XEmacs 21.4.17-1. It starts and the window shows itself,
apparently without problems.

Now XWin.log
Thanks 
angelo.


Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.2.0-2

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

/usr/X11R6/bin/XWin -multiwindow -clipboard -silent-dup-error 
+bs 

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 800 h 600
winInitializeDefaultScreens - Returning
_XSERVTransmkdir: Cannot create /tmp/.X11-unix with root ownership
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more
information
(==) FontPath set to
/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per
pixel
winAllocateFBShadowGDI - Creating DIB with width: 800 height: 600
depth: 32
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24
bpp 32
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winMultiWindowXMsgProc - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
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: 0410 (0410) 
(--) Using preset keyboard for Italian (410), type 4
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing
from list!
winInitMultiWindowWM - pthread_mutex_lock () returned.
winProcEstablishConnection - Hello
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened
the display.
winClipboardProc - XOpenDisplay () returned and successfully opened the
display.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened
the display.





KDE Desktop Size is Larger than Cygwin/X Server Window

2005-05-31 Thread Ross MacGillivray
I am using Cygwin/X to access a KDE 3.3.0 desktop running on top of  Debian 
and a Colinux 0.6.2 Kernel.


The viewing area of the KDE desktop is larger than the visible screen area 
within the Cygwin/X server window.


However, I am getting no scrolling bar that lets me move around the entire 
KDE desktop.
Unfortunately, at least one application window when opened on the KDE 
desktop is not completely visible

because I cannot see the entire KDE desktop.

Basically the KDE desktop is not being scaled into the Cygwin/X window and I 
can also not scroll around the desktop.


What is the problem?

Is there a feature I need to enable for either desktop scaling or a 
scrolling bar (similar to what VNC offers)?


I am getting the following error in the Cygwin/X console window when it 
starts up:
 Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, 
removing from list!


Could the above error message be the cause of the problem described above?

/Ross


BEGIN:VCARD
VERSION:2.1
N:MacGillivray;Ross
FN:Ross MacGillivray
NOTE:Sip Phone:  1-747-244-0663
TEL;HOME;VOICE:250-545-7607
ADR;HOME:;;4012 19th Street;Vernon;B.C.;V1T 7Y3;Canada
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:4012 19th Street=0D=0AVernon, B.C. V1T 7Y3=0D=0ACanada
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
EMAIL;INTERNET:[EMAIL PROTECTED]
REV:20050601T013654Z
END:VCARD


winsup/cygwin ChangeLog child_info.h cygheap.c ...

2005-05-31 Thread cgf
CVSROOT:/cvs/uberbaum
Module name:winsup
Changes by: [EMAIL PROTECTED]   2005-06-01 03:46:57

Modified files:
cygwin : ChangeLog child_info.h cygheap.cc cygheap.h 
 cygwin.sc dcrt0.cc dtable.cc dtable.h 
 fhandler.h fork.cc sigproc.cc spawn.cc 
 syscalls.cc winsup.h 

Log message:
* child_info.h (child_info::cygheap_h): Delete.
(child_info::dwProcessId): New field.
* cygheap.cc (init_cheap): Delete.
(dup_now): Ditto.
(cygheap_setup_for_child): Ditto.
(cygheap_setup_for_child_cleanup): Ditto.
(cygheap_fixup_in_child): Simplify.  Use new child_copy function to 
copy heap
from parent.
(_csbrk): Don't attempt allocation if within cygheap section.  Fix so 
that more
than one allocation will succeed.
(cygheap_init): Reset possibly-nonzero region to zero.
* cygheap.h (cygheap_setup_for_child): Delete declaration.
(cygheap_setup_for_child_cleanup): Ditto.
(cygheap_start): Define as an array.
* cygwin.sc: Modernize.  Remove unneeded sections.  Define cygheap here.
* dcrt0.cc (do_exit): Reflect argument change to close_all_files.
* dtable.cc (dtable::vfork_parent_restore): Ditto.
* dtable.h: Ditto.
* fhandler.h: Ditto.
* fork.cc (fork_copy): Call ReadProcessMemory if there is no thread
(indicating that we're execing).
(fork_child): Don't mess with hParent.
(fork_parent): Remove hParent stuff.  It happens earlier now.  Remove 
call to
cygheap_setup_for_child* stuff.
(fork): Put child_info_stuff in grouped structure.  Issue error if 
parent
handle is not set.
(child_copy): New function.
* sigproc.cc (child_info::child_info): Put cygheap settings here.  Set 
parent
handle.
(child_info::~child_info): Close parent handle if it exists.
* spawn.cc (spawn_guts): Reorganize so that ciresrv is allocated at 
only the
last minute so that cygheap changes are reflected.  Delete 
cygheap_setup*
calls.
* syscalls.cc (close_all_files): Add an argument to flag when the fd 
entry
should be released.
* winsup.h (close_all_files): Add an argument to close_all_files 
declaration.
Declare child_copy.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaumr1=1.2927r2=1.2928
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/child_info.h.diff?cvsroot=uberbaumr1=1.54r2=1.55
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/cygheap.cc.diff?cvsroot=uberbaumr1=1.109r2=1.110
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/cygheap.h.diff?cvsroot=uberbaumr1=1.104r2=1.105
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/cygwin.sc.diff?cvsroot=uberbaumr1=1.8r2=1.9
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/dcrt0.cc.diff?cvsroot=uberbaumr1=1.241r2=1.242
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/dtable.cc.diff?cvsroot=uberbaumr1=1.152r2=1.153
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/dtable.h.diff?cvsroot=uberbaumr1=1.33r2=1.34
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/fhandler.h.diff?cvsroot=uberbaumr1=1.250r2=1.251
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/fork.cc.diff?cvsroot=uberbaumr1=1.152r2=1.153
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/sigproc.cc.diff?cvsroot=uberbaumr1=1.225r2=1.226
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/spawn.cc.diff?cvsroot=uberbaumr1=1.172r2=1.173
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/syscalls.cc.diff?cvsroot=uberbaumr1=1.377r2=1.378
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/winsup.h.diff?cvsroot=uberbaumr1=1.157r2=1.158



winsup/cygwin ChangeLog cygheap.cc cygwin.sc

2005-05-31 Thread cgf
CVSROOT:/cvs/uberbaum
Module name:winsup
Changes by: [EMAIL PROTECTED]   2005-06-01 04:00:40

Modified files:
cygwin : ChangeLog cygheap.cc cygwin.sc 

Log message:
* cygheap.cc (cygheap_end): Remove bogus section attribute.
* cygwin.sc: Make __cygheap_mid absolute.  Remove unused _cygheap_foo.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaumr1=1.2928r2=1.2929
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/cygheap.cc.diff?cvsroot=uberbaumr1=1.110r2=1.111
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/cygwin.sc.diff?cvsroot=uberbaumr1=1.9r2=1.10



winsup/cygwin ChangeLog cygwin.sc

2005-05-31 Thread cgf
CVSROOT:/cvs/uberbaum
Module name:winsup
Changes by: [EMAIL PROTECTED]   2005-06-01 04:42:44

Modified files:
cygwin : ChangeLog cygwin.sc 

Log message:
* cygwin.sc: Don't output .reloc or .rsrc sections.  Clean up stuff 
around
.cygheap and use a workaround to get things working with newer
(broken?) binutils.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaumr1=1.2929r2=1.2930
http://sources.redhat.com/cgi-bin/cvsweb.cgi/winsup/cygwin/cygwin.sc.diff?cvsroot=uberbaumr1=1.10r2=1.11



Re: link(2) fails on mounted network shares

2005-05-31 Thread Martin Koeppe
 On Tue, May 31, 2005 at 01:39:04AM +0200, Martin Koeppe wrote:
 Hello,
 
 I recently found out that you cannot create hardlinks
 on mounted network shares with cygwin
 (error: No such file or directory),
 but you can do it with the ln.exe from Interix.
 
 So I looked at it and found that the Windows API
 function CreateHardLink() causes the trouble, it apparently
 only works for local drives.
 
 There is another API function, however, which creates hardlinks
 correctly on local and network drives (tested on Win2003 shares
 and Samba shares):
 
 MoveFileEx() with parameter:
 #define MOVEFILE_CREATE_HARDLINK 16
 
 I've found two references to this in MSDN.  Both say:
 
 MOVEFILE_CREATE_HARDLINK  Reserved for future use.
 
 That doesn't sound too encouraging as far as compatibility is concerned.

Ok, but what do you think is better:
Failing with inappropiate error: no such file or directory
or using a not fully documented API function, but getting the
link right?
If you do (with the current cygwin version) on a network drive:

$ ln -s source symdest

works ok, but

$ ln source harddest
ln: creating hard link `harddest' to `source': No such file or directory

One could consider this as incompatibility, too,
because the source file is definitely there.
It would be somewhat better, if it noted, that cygwin doesn't
support creating hardlinks on network shares, and then copy the file.

But for me, even copying would be bad, as I need the link semantic
in my case. So copying may be considered incompatible as well.

I did another test: I used MoveFileExA() on Win98 on a
Win2000 mounted share. But there, instead of a hardlink, an
ordinary move is done, i.e. source gets deleted.

Then I made a third test: A Win98 share mounted on Win2K:
With cygwin's ln (i.e. CreateHardLink()) I get
no such file or diectory, whereas with MoveFileEx()
I get ERROR_UNEXP_NET_ERR (59), which Interix translates to
Network is down.

Both error conditions are not meaningful,
but at least MoveFileEx() doesn't do unexpected actions,
but aborts with error code.

When the cygwin workaround of copying the file is concerned,
it should be done in this case, as the real situation is:
hardlink not supported.

Or maybe, when running on =Win2K, the copy workaround
should be completely disabled. Would probably mean, that
cygwin must be installed on a NTFS drive with these OSes
(because the cygwin OS may rely on having hardlinks
available), but does that matter nowadays?

If you don't like to completely replace CreateHardLink(),
one maybe could do something like this:

BOOL ok = false;
DWORD err;

if (this OS is Win2K/XP/2K3) {
  ok = CreateHardLink();
  err = GetLastError();
  if (err == ERROR_INVALID_NAME /* 123 */) {
// retry with MoveFileEx()
ok = MoveFileEx();
err = GetLastError();
  }
}

if (! ok) {
  // do workaround or error handling
}

I tested MoveFileEx() successfully on Win2K, Win2K3 (both server and client)
and Samba3 (only as server).


Martin


Re: link(2) fails on mounted network shares

2005-05-31 Thread Christopher Faylor
On Tue, May 31, 2005 at 04:04:58PM +0200, Martin Koeppe wrote:
 On Tue, May 31, 2005 at 01:39:04AM +0200, Martin Koeppe wrote:
 Hello,
 
 I recently found out that you cannot create hardlinks
 on mounted network shares with cygwin
 (error: No such file or directory),
 but you can do it with the ln.exe from Interix.
 
 So I looked at it and found that the Windows API
 function CreateHardLink() causes the trouble, it apparently
 only works for local drives.
 
 There is another API function, however, which creates hardlinks
 correctly on local and network drives (tested on Win2003 shares
 and Samba shares):
 
 MoveFileEx() with parameter:
 #define MOVEFILE_CREATE_HARDLINK 16
 
 I've found two references to this in MSDN.  Both say:
 
 MOVEFILE_CREATE_HARDLINK Reserved for future use.
 
 That doesn't sound too encouraging as far as compatibility is concerned.

Ok, but what do you think is better:
Failing with inappropiate error: no such file or directory
or using a not fully documented API function, but getting the
link right?
If you do (with the current cygwin version) on a network drive:

$ ln -s source symdest

works ok, but

$ ln source harddest
ln: creating hard link `harddest' to `source': No such file or directory

One could consider this as incompatibility, too,
because the source file is definitely there.
It would be somewhat better, if it noted, that cygwin doesn't
support creating hardlinks on network shares, and then copy the file.

But for me, even copying would be bad, as I need the link semantic
in my case. So copying may be considered incompatible as well.

I did another test: I used MoveFileExA() on Win98 on a
Win2000 mounted share. But there, instead of a hardlink, an
ordinary move is done, i.e. source gets deleted.

This is what I mean about compatibility.

If you want to discuss this further, please use the cygwin list.  This
list is for actual patches, not enhancement requests.

cgf


winbase.h (ilockexch)

2005-05-31 Thread Vaclav Haisman

I think that ilockexch() in winbase.h should look like what is in my patch.
Explicit lock prefix is not needed because xchg instruction sets LOCK# signal
implicitly.

VH.Index: winbase.h
===
RCS file: /cvs/src/src/winsup/cygwin/winbase.h,v
retrieving revision 1.12
diff -c -p -d -r1.12 winbase.h
*** winbase.h   4 Jun 2004 23:55:44 -   1.12
--- winbase.h   31 May 2005 22:40:01 -
*** ilockexch (long *t, long v)
*** 40,48 
  {
register int __res;
__asm__ __volatile__ (\n\
! 1:lockcmpxchgl %3,(%1)\n\
!   jne 1b\n\
!   : =a (__res), =q (t): 1 (t), q (v), 0 (*t): cc);
return __res;
  }
  
--- 40,47 
  {
register int __res;
__asm__ __volatile__ (\n\
! xchgl %3, %2\n\
! : =r (__res), =m (*t): m (*t), 0 (v));
return __res;
  }
  


Re: winbase.h (ilockexch)

2005-05-31 Thread Vaclav Haisman
I should have googled a bit more before I sent the patch. It seems that even
though xchg could be used it is not being used becasue it is slower than
cmpxchg imlementation of InterlockedExchange. I thus withdraw the patch.

VH.


On Tue, 31 May 2005, Christopher Faylor wrote:

 On Wed, Jun 01, 2005 at 12:52:26AM +0200, Vaclav Haisman wrote:
 I think that ilockexch() in winbase.h should look like what is in my
 patch.  Explicit lock prefix is not needed because xchg instruction
 sets LOCK# signal implicitly.

 A similar implementation in the linux kernel seems to disagree with you.

 cgf



Re: Using Perl to access serial ports

2005-05-31 Thread Jason Pearce

This is just a bit of an update.

I have got Win32::SerialPort working, at least a limited capacity.

After taking a look at the source for it, I discovered that this module 
is actually just straight Perl, and it relies on Win32::API. I have 
already been using /Reini's cut down version of this for some time, and 
so I thought this might work. And it does, at least for the simple 
functions.
ie I can set the baud rates, parity etc. Write a few bytes and read them 
back after waiting enough time for the external device to reply. This 
functionality is actually all I needed to read my precision thermometer.


Since Reini's Win32:API module does not support call backs any 
Win32::SerialPort functions that utilise the call backs will not work. I 
have not had the chance to delve into exactly what functions that is 
yet. I plan to look further into that, but I have limited time to devote 
to this - especially now main goal is achieved.


Regards,
Jason

ps. I was never able to get the /dev/com1 or /dev/ttyS1 devices working. 
I expected that I would be able to echo commands into /dev/com1 and cat 
replies from it.

///

--
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: Serious performance problems (new snapshot has some performance improvement)

2005-05-31 Thread Gerrit P. Haase

[EMAIL PROTECTED] wrote:

Am Montag, 30. Mai 2005 22:33 schrieb Gerrit P. Haase:


Anonymous wrote:



My System:
#Set-up:

$ g++ cygspd.cc -o cygspd-basic
$ g++ -O7 cygspd.cc -o cygspd-o7
$ g++ -fno-exceptions cygspd.cc -o cygspd-ne
$ g++ -O7 -fno-exceptions cygspd.cc -o cygspd-ne-o7
$ g++ -mno-cygwin cygspd.cc -o cygspd-mingw
$ g++ -O7 -mno-cygwin cygspd.cc -o cygspd-mingw-o7
$ g++ -fno-exceptions -mno-cygwin cygspd.cc -o cygspd-mingw-ne
$ g++ -O7 -fno-exceptions -mno-cygwin cygspd.cc -o cygspd-mingw-ne-o7

# cygwin.dll 1.5.17


[...]


$ /bin/time -f %E %S %U cygspd-mingw cygspd.dat
0:03.11 0.00 0.02
$ /bin/time -f %E %S %U cygspd-mingw-o7 cygspd.dat
0:01.50 0.01 0.02
$ /bin/time -f %E %S %U cygspd-mingw-ne cygspd.dat
0:02.60 0.00 0.02
$ /bin/time -f %E %S %U cygspd-mingw-ne-o7 cygspd.dat
0:01.50 0.01 0.01

#Snapshot DLL (No changes were made except swapping the dll.


[...]


$ /bin/time -f %E %S %U cygspd-mingw cygspd.dat
0:02.78 0.00 0.01
$ /bin/time -f %E %S %U cygspd-mingw-o7 cygspd.dat
0:01.51 0.01 0.01
$ /bin/time -f %E %S %U cygspd-mingw-ne cygspd.dat
0:02.52 0.00 0.02
$ /bin/time -f %E %S %U cygspd-mingw-ne-o7 cygspd.dat
0:01.45 0.00 0.01


Interesting, why is it faster when running a binary that doesn't
depend on cygwin1.dll after swapping the DLL?  Some Win caching mechanism?



I recognized this caching behavior with KDE/cygwin too. Under  
http://cvs.sourceforge.net/viewcvs.py/kde-cygwin/tools/fillmem/ there is a 
tool, which could be used to minimize this influcence by clearing this cache. 
See the README for more informations. 


GlobalMemoryStatusEx is only available on Win2k and WinXP.


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: Serious performance problems (new snapshot has some performance improvement)

2005-05-31 Thread Ralf Habacker
Am Dienstag, 31. Mai 2005 12:05 schrieb Gerrit P. Haase:
 [EMAIL PROTECTED] wrote:
  Am Montag, 30. Mai 2005 22:33 schrieb Gerrit P. Haase:
  
 Anonymous wrote:
 
 
 My System:
 #Set-up:
 
 $ g++ cygspd.cc -o cygspd-basic
 $ g++ -O7 cygspd.cc -o cygspd-o7
 $ g++ -fno-exceptions cygspd.cc -o cygspd-ne
 $ g++ -O7 -fno-exceptions cygspd.cc -o cygspd-ne-o7
 $ g++ -mno-cygwin cygspd.cc -o cygspd-mingw
 $ g++ -O7 -mno-cygwin cygspd.cc -o cygspd-mingw-o7
 $ g++ -fno-exceptions -mno-cygwin cygspd.cc -o cygspd-mingw-ne
 $ g++ -O7 -fno-exceptions -mno-cygwin cygspd.cc -o cygspd-mingw-ne-o7
 
 # cygwin.dll 1.5.17
 
 [...]
 
 $ /bin/time -f %E %S %U cygspd-mingw cygspd.dat
 0:03.11 0.00 0.02
 $ /bin/time -f %E %S %U cygspd-mingw-o7 cygspd.dat
 0:01.50 0.01 0.02
 $ /bin/time -f %E %S %U cygspd-mingw-ne cygspd.dat
 0:02.60 0.00 0.02
 $ /bin/time -f %E %S %U cygspd-mingw-ne-o7 cygspd.dat
 0:01.50 0.01 0.01
 
 #Snapshot DLL (No changes were made except swapping the dll.
 
 [...]
 
 $ /bin/time -f %E %S %U cygspd-mingw cygspd.dat
 0:02.78 0.00 0.01
 $ /bin/time -f %E %S %U cygspd-mingw-o7 cygspd.dat
 0:01.51 0.01 0.01
 $ /bin/time -f %E %S %U cygspd-mingw-ne cygspd.dat
 0:02.52 0.00 0.02
 $ /bin/time -f %E %S %U cygspd-mingw-ne-o7 cygspd.dat
 0:01.45 0.00 0.01
 
 Interesting, why is it faster when running a binary that doesn't
 depend on cygwin1.dll after swapping the DLL?  Some Win caching mechanism?
  
  
  I recognized this caching behavior with KDE/cygwin too. Under  
  http://cvs.sourceforge.net/viewcvs.py/kde-cygwin/tools/fillmem/ there is a 
  tool, which could be used to minimize this influcence by clearing this 
cache. 
  See the README for more informations. 
 
 GlobalMemoryStatusEx is only available on Win2k and WinXP.
 
Does anyone know a similar function under win9x  ? 

Ralf 

--
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: Serious performance problems (new snapshot has some performance improvement)

2005-05-31 Thread Gerrit P. Haase

Ralf Habacker wrote:



Interesting, why is it faster when running a binary that doesn't
depend on cygwin1.dll after swapping the DLL?  Some Win caching mechanism?



I recognized this caching behavior with KDE/cygwin too. Under  
http://cvs.sourceforge.net/viewcvs.py/kde-cygwin/tools/fillmem/ there is a 
tool, which could be used to minimize this influcence by clearing this 


cache. 

See the README for more informations. 


GlobalMemoryStatusEx is only available on Win2k and WinXP.



Does anyone know a similar function under win9x  ? 


Danny Smith wrote a replacement:

http://gcc.gnu.org/ml/gcc-patches/2003-02/msg02045.html


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: Serious performance problems (new snapshot has some performance improvement)

2005-05-31 Thread Ralf Habacker
Am Dienstag, 31. Mai 2005 12:42 schrieb Gerrit P. Haase:
 Ralf Habacker wrote:
 
 
 Interesting, why is it faster when running a binary that doesn't
 depend on cygwin1.dll after swapping the DLL?  Some Win caching 
mechanism?
 
 
 I recognized this caching behavior with KDE/cygwin too. Under  
 http://cvs.sourceforge.net/viewcvs.py/kde-cygwin/tools/fillmem/ there is 
a 
 tool, which could be used to minimize this influcence by clearing this 
  
  cache. 
  
 See the README for more informations. 
 
 GlobalMemoryStatusEx is only available on Win2k and WinXP.
 
  
  Does anyone know a similar function under win9x  ? 
 
 Danny Smith wrote a replacement:
 
 http://gcc.gnu.org/ml/gcc-patches/2003-02/msg02045.html
 
Thanks for this pointer. I've incorporated this function into fillmem. 

Ralf 



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



Setup.exe deletes cygwin1.dll before man uninstall script runs

2005-05-31 Thread stephen_powell
Tonight I ran setup.exe with a month or so worth of updates.

This is an extract from the log:

[...]

2005/05/31 18:53:46 Uninstalling cygwin

[...]

unlink e:\cygwin/bin//cygwin1.dll

[...]

2005/05/31 18:54:19 Uninstalling man
2005/05/31 18:54:19 running: e:\cygwin\bin\sh.exe -c /etc/preremove/man.sh

[...]


As you can see cygwin1.dll was deleted at 18:53, then at 18:54 the
preremove script for man ran which failed with cygwin1.dll not found.

-- 
Robot, n.:
University administrator.

--
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: Using Perl to access serial ports

2005-05-31 Thread Igor Pechtchanski
On Tue, 31 May 2005, Jason Pearce wrote:

 ps. I was never able to get the /dev/com1 or /dev/ttyS1 devices working.
 I expected that I would be able to echo commands into /dev/com1 and cat
 replies from it.

Just FYI: /dev/ttyS* devices are numbered from 0, so /dev/com1 corresponds
to /dev/ttyS0...  Also, if you have a sequence of shell commands that
should work but don't (e.g., stty followed by echo followed by read/cat),
could you please post them, along with an equivalent program (whether perl
or C) that does work?
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: Setup.exe deletes cygwin1.dll before man uninstall script runs

2005-05-31 Thread Dave Korn
Original Message
From: stephen_powell
Sent: 31 May 2005 12:29

 Tonight I ran setup.exe with a month or so worth of updates.

 As you can see cygwin1.dll was deleted at 18:53, then at 18:54 the
 preremove script for man ran which failed with cygwin1.dll not found.


  There's a new version of setup on the way RSN that will solve this and
many other problems.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: Setup.exe deletes cygwin1.dll before man uninstall script runs

2005-05-31 Thread Igor Pechtchanski
On Tue, 31 May 2005, stephen_powell wrote:

 Tonight I ran setup.exe with a month or so worth of updates.

 This is an extract from the log:

You're missing a very important part of the log: i.e., the first line
which tells you the version of setup you're running.

 [...]
 2005/05/31 18:53:46 Uninstalling cygwin
 [...]
 unlink e:\cygwin/bin//cygwin1.dll
 [...]
 2005/05/31 18:54:19 Uninstalling man
 2005/05/31 18:54:19 running: e:\cygwin\bin\sh.exe -c /etc/preremove/man.sh
 [...]
 As you can see cygwin1.dll was deleted at 18:53, then at 18:54 the
 preremove script for man ran which failed with cygwin1.dll not found.

AFAICS, the latest setup release won't suffer from this particular problem
(http://cygwin.com/setup-snapshots/setup-2.497-alpha.exe).  There may
still be issues with preremove script ordering in the future, but all of
the packages in the current distribution should be ok.
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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: Using Perl to access serial ports

2005-05-31 Thread Jason Pearce

Igor Pechtchanski wrote:


Just FYI: /dev/ttyS* devices are numbered from 0, so /dev/com1 corresponds
to /dev/ttyS0...  Also, if you have a sequence of shell commands that
should work but don't (e.g., stty followed by echo followed by read/cat),
could you please post them, along with an equivalent program (whether perl
or C) that does work?
Igor
 

Ahh. That explains why /dev/com3 did nothing but /dev/ttyS3 gave me 
permission denied (I have an internal modem on COM3, but no COM4 port). 
I'll have another go at using the /dev method again then and let you 
know what I find.


Jason






--
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: man-1.5p-1

2005-05-31 Thread Dr. Volker Zell
 TX  writes:

 However, it seems that this said version (1.5p) erroneously restored two
 lines in /usr/share/misc/man.conf

Not for me.

Ciao
  Volker


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

2005-05-31 Thread Hecksel, Phillip \(P.J.\)


  -Original Message-
 From: Hecksel, Phillip (P.J.)  
 Sent: Tuesday, May 31, 2005 11:26 AM
 To:   'cygwin@cygwin.com'
 Subject:  OLOCA
 
 ROFL - rolling on floor laughing
 ROFLMAO - ... my ass off
 ROFLMAOMSH - ... my sides hurt
 
 Phil Hecksel
 W414 Program Management
 Building 3 1G031
 (313)39-05278
 

--
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: I have user mounts instead of system ones.

2005-05-31 Thread Larry Hall
At 01:13 AM 5/31/2005, you wrote:
Larry Hall lh-no-personal-replies-please at cygwin.com writes:

 
 Unless you installed these services with a particular user specified (see
 the '-u' flag of 'cygrunsrv'), none of the services should be using any 
 user mount.  All services started by 'cygrunsrv', by default, run as 
 SYSTEM.  If you did install the services (manually) specifying a particular 
 user account, you'll want to uninstall and reinstall those services and use
 the default (SYSTEM) account.  The fork error you reported here is not the
 one I would have expected to see in the case where your services were being
 run as a certain user but it may be the cause.  You should also look at the
 log files in /var/log to see if there is more information that will help 
 you determine what the cause of this error is.  If you need to follow-up
 with this list again on this issue, please read and follow the problem 
 reporting guidelines at http://cygwin.com/problems.html.


First,


$ telnet ito2
Trying 192.168.0.122...
Connected to ITO2.
Escape character is '^]'.

CYGWIN_NT-5.1 1.5.16(0.128/4/2) (ITO2) (tty2)

login: 

all the services work when I was still using 1.5.16 as shown above.

Second, I didn't do any manual installation of the services but used
the init-config, exim-config, nfs-server-config and cygserver-config 
to install the services. And I did it by administrator a/c. I've 
never done any user mount at all.


User mounts will be created by 'setup.exe' if you select the installation
option Just for Me.  See:

http://cygwin.com/cygwin-ug-net/setup-net.html#id4740599

If you have them, they were either created this way or explicitly through
your action using 'mount'.  Sorry, I cannot say which.


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

2005-05-31 Thread Dave Korn
Original Message
From: Hecksel, Phillip (P.J.)
Sent: 31 May 2005 16:34

  -Original Message-
 From:Hecksel, Phillip (P.J.)
 Sent:Tuesday, May 31, 2005 11:26 AM
 To:  'cygwin OOOPS cygwin DOTBOMB'

  http://cygwin.com/acronyms#PCYMTNQREAIYR

 Subject: OLOCA
 
 ROFL - rolling on floor laughing
 ROFLMAO - ... my ass off
 ROFLMAOMSH - ... my sides hurt
 
 Phil Hecksel
 W414 Program Management
 Building 3 1G031
 (313)39-05278


  http://cygwin.com/acronyms#RTFM!


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: pthreads, cygwin and pthread_mutex_lock not blocking

2005-05-31 Thread Peter Rehley
Well, here is a simple test case, but turns out I wasn't using the 
latest version.  I was having the problem on 1.5.12,  I haven't been 
able to get a good build with cygwin 1.5.17-1.  It builds and I can run 
the install script, but when I put the dll in place I see the message 
cygheap magic number mismatch detected, and gcc doesn't want to work.


I followed the instructions on the FAQ page for building cygwin.  Also 
the only line that I changed was in winsup/cygwin/include/pthread.h, 
line 56


from
#define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_ERRORCHECK
to
#define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_NORMAL

On the unmodified cygwin 1.5.17, the parent lock returns 45 (EDEADLK)

On May 28, 2005, at 9:15 AM, Christopher Faylor wrote:


On Fri, May 27, 2005 at 04:35:39PM -0700, Peter Rehley wrote:

On May 27, 2005, at 1:28 PM, Christopher Faylor wrote:


On Fri, May 27, 2005 at 10:57:34AM -0700, Peter Rehley wrote:

I'm trying to use pthread in cygwin, and I'm expecting the function
pthread_mutex_lock to block when used.  However it is returning 
error
45 (EDEADLK).I'm using a static initializer for the thread so 
the

mutex is type PTHREAD_MUTEX_DEFAULT.
When I look through the pthread code I see that 
PTHREAD_MUTEX_DEFAULT

is set to PTHREAD_MUTEX_ERRORCHECK,
When I do the same on linux or soloris, the pthread_mutex_lock 
blocks,

and looking in the pthread.h file on those systems see that  the
default is set to PTHREAD_MUTEX_NORMAL.

Why is cygwin using PTHREAD_MUTEX_ERRORCHECK as the default?  And 
what

problems might occur if PTHREAD_MUTEX_DEFAULT is set to
PTHREAD_MUTEX_NORMAL?


Why not just try it and report the results?

Done.  Hangs at WaitForSingleObject.


Can you provide a STC(tm) (simple test case) which demonstrates the
problem both with and without PTHREAD_MUTEX_ERRORCHECK?

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/




Enjoy,
Peter
---
A Møøse once bit my sister
#include stdio.h
#include signal.h
#include pthread.h

pthread_mutex_t mutex;

void signal_rec(int sig_num)
  {
  printf(The child is done\n);
  pthread_mutex_unlock(mutex);
  }

int main(int argc, char *argv[])
  {
  int ret_value;

  signal(SIGCHLD, signal_rec);

  mutex=PTHREAD_MUTEX_INITIALIZER;
  ret_value=pthread_mutex_lock(mutex);
  printf(thread locked %d\n,ret_value);
  ret_value=fork();
  if (ret_value==0)
{
printf(I'm the child\n);
sleep(5);
printf(ahh, what a good nap\n);
}
  else
{
printf(I'm the parent\n);
//sleep(10);
ret_value = pthread_mutex_lock(mutex);
printf(heh, I'm done %d\n,ret_value);
}

  return 0;
  }



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

2005-05-31 Thread Igor Pechtchanski
On Tue, 31 May 2005, Hecksel, Phillip (P.J.) wrote:

   -Original Message-
  From:   Hecksel, Phillip (P.J.)
  Sent:   Tuesday, May 31, 2005 11:26 AM
  To: '[EMAIL PROTECTED]'
  Subject:OLOCA

http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

  ROFL - rolling on floor laughing
  ROFLMAO - ... my ass off
  ROFLMAOMSH - ... my sides hurt

Quoting from the bottom of the OLOCA:

I will add more acronyms as I encounter them on the list. If you
see an acronym not listed here *on one of the Cygwin lists*,
please send comments and suggestions to the main Cygwin list.

IOW, if I see it (actively) used, I'll add it.  If you see it actively
used, and I haven't added it, please send a ping to the main list.  Until
then, the first two of the above are on AcronymFinder.com, and the last
one doesn't seem to be in existence anywhere.
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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

2005-05-31 Thread Dave Korn
Original Message
From: Igor Pechtchanski
Sent: 31 May 2005 18:44


 Quoting from the bottom of the OLOCA:


  Maybe you should move that bit up to the top?


  And perhaps you should make the *on one of the Cygwin lists* text a bit
bigger and more eye-catching.


  Like about 36 miles on a side and bright pink and flashing, for instance.



cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
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: pthreads, cygwin and pthread_mutex_lock not blocking

2005-05-31 Thread David Rothenberger

On 5/31/2005 10:15 AM, Peter Rehley wrote:
Well, here is a simple test case, but turns out I wasn't using the 
latest version.  I was having the problem on 1.5.12,  I haven't been 
able to get a good build with cygwin 1.5.17-1.  It builds and I can run 
the install script, but when I put the dll in place I see the message 
cygheap magic number mismatch detected, and gcc doesn't want to work.


I had a similar problem (see 
http://cygwin.com/ml/cygwin/2005-05/msg01251.html). It turned out it 
was because I was using the latest release of binutils. Try rolling back 
to the previous release.


--
David Rothenbergerspammer? - [EMAIL PROTECTED]
GPG/PGP: 0x7F67E734, C233 365A 25EF 2C5F C8E1 43DF B44F BA26 7F67 E734

Whip it, whip it good!


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

2005-05-31 Thread Igor Pechtchanski
On Tue, 31 May 2005, Dave Korn wrote:

 Original Message
 From: Igor Pechtchanski
 Sent: 31 May 2005 18:44

  Quoting from the bottom of the OLOCA:

   Maybe you should move that bit up to the top?

I doubt it matters where it is.  That's the only place on the page that
says to send suggestions to the main Cygwin list.  The words *on one of
the Cygwin lists* are *in the same sentense*.  That should suffice, no?
:-)

   And perhaps you should make the *on one of the Cygwin lists* text a
 bit bigger and more eye-catching.

   Like about 36 miles on a side and bright pink and flashing, for
 instance.

I'll leave that to script kiddies.  A couple more inquiries like that,
though, and I'll consider making that bit bold...
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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

2005-05-31 Thread Dave Korn
Original Message
From: Igor Pechtchanski
Sent: 31 May 2005 19:08

 On Tue, 31 May 2005, Dave Korn wrote:
 
 Original Message
 From: Igor Pechtchanski
 Sent: 31 May 2005 18:44
 
 Quoting from the bottom of the OLOCA:
 
   Maybe you should move that bit up to the top?
 
 I doubt it matters where it is.  That's the only place on the page that
 says to send suggestions to the main Cygwin list.  The words *on one of
 the Cygwin lists* are *in the same sentense*.  That should suffice, no?
 :-)


  No.  Come on, you know better than that!  People do _not_ read the whole
thing right to the end, not ever.  If it isn't summarised in the first
paragraph, they won't take it away with them.


  If we're going to discuss this any further, bock-bock-b'gawk, you
know the score!



cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



permissions and user data backups

2005-05-31 Thread David Kim
I'm trying to set up automated rsync backups, but I'm running into some 
problems.  When I manually run my rsync script as Administrator, opening 
some user folders gives permission denied.  Is there a way to create a 
root/SYSTEM like user?  or alternatively, how would I go about acheiving 
the desired effect?  Would I have to install cron as SYSTEM instead of a 
user with administrative privileges?  If possible, I would like to find a 
solution that doesn't involve fiddling with ACL's or the permissions of the 
files in question.  Many thanks in advance for your help.

-David




#
# -- /etc/passwd --- (including a poor attempt at a root user)
#

SYSTEM:*:18:544:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-CHUPAS\Administrator,S-1-5-21-725345543-492894223-854245398-500:/home/Administrator:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-CHUPAS\Guest,S-1-5-21-725345543-492894223-854245398-501:/home/Guest:/bin/bash
HelpAssistant:unused_by_nt/2000/xp:1000:513:Remote Desktop Help Assistant 
Account,U-CHUPAS\HelpAssistant,S-1-5-21-725345543-492894223-854245398-1000:/home/HelpAssistant:/bin/bash

userB:unused_by_nt/2000/xp:1004:513:U-CHUPAS\userB,S-1-5-21-725345543-492894223-854245398-1004:/home/userB:/bin/bash
userA:unused_by_nt/2000/xp:1003:513:U-CHUPAS\userA,S-1-5-21-725345543-492894223-854245398-1003:/home/userA:/bin/bash
root:unused_by_nt/2000/xp:1006:18:root,U-CHUPAS\root,S-1-5-21-725345543-492894223-854245398-1006:/home/root:/bin/bash
sshd:unused_by_nt/2000/xp:1005:513:sshd 
privsep,U-CHUPAS\sshd,S-1-5-21-725345543-492894223-854245398-1005:/var/empty:/bin/bash
SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Microsoft 
Corporation,L=Redmond,S=Washington,C=US,U-CHUPAS\SUPPORT_388945a0,S-1-5-21-725345543-492894223-854245398-1002:/home/SUPPORT_388945a0:/bin/bash



#
# --- /etc/group ---
#

root:S-1-5-32-544:0:
SYSTEM:S-1-5-18:18:
None:S-1-5-21-725345543-492894223-854245398-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Network Configuration Operators:S-1-5-32-556:556:
Power Users:S-1-5-32-547:547:
Remote Desktop Users:S-1-5-32-555:555:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:
HelpServicesGroup:S-1-5-21-725345543-492894223-854245398-1001:1001:

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


Cygwin Configuration Diagnostics
Current System Time: Tue May 31 14:16:28 2005

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:   D:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\windows\system32
c:\windows
c:\windows\System32\Wbem
C:\cygwin
c:\Program Files\ATI Technologies\ATI Control Panel
D:\cygwin\home\userA\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1003(userA) GID: 513(None)
0(root) 513(None)   544(Administrators) 545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1003(userA) GID: 513(None)
0(root) 513(None)   544(Administrators) 545(Users)

SysDir: C:\windows\system32
WinDir: C:\windows

USER = `userA'
PWD = `/var/cron/tabs'
HOME = `/home/userA'
MAKE_MODE = `unix'

HOMEPATH = `\Documents and Settings\userA'
MANPATH = 
`/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man'

APPDATA = `C:\Documents and Settings\userA\Application Data'
SSH_AGENT_PID = `3780'
HOSTNAME = `chupas'
TERM = `cygwin'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 4 Stepping 2, AuthenticAMD'
WINDIR = `C:\windows'
WINDOWID = `4737656'
OLDPWD = `/var/cron'
USERDOMAIN = `CHUPAS'
OS = `Windows_NT'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
!:: = `::\'
TEMP = `/cygdrive/c/DOCUME~1/userA/LOCALS~1/Temp'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
SSH_AUTH_SOCK = `/tmp/ssh-PbExza3752/agent.3752'
USERNAME = `userA'
PROCESSOR_LEVEL = `6'
FP_NO_HOST_CHECK = `NO'
SYSTEMDRIVE = `C:'
USERPROFILE = `C:\Documents and Settings\userA'
CLIENTNAME = `Console'
PS1 = `\[\e]0;[EMAIL PROTECTED] \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = `\\CHUPAS'
PROCESSOR_ARCHITECTURE = `x86'
!C: = `C:\cygwin\bin'
SHLVL = `1'
COLORFGBG = `15;default;0'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = `C:'
!D: = `D:\Desktop'
PROMPT = `$P$G'
COMSPEC = `C:\windows\system32\cmd.exe'
TMP = `/cygdrive/c/DOCUME~1/userA/LOCALS~1/Temp'
SYSTEMROOT = `C:\windows'
PRINTER = `HP LaserJet 4 Plus'
CVS_RSH = `/bin/ssh'
PROCESSOR_REVISION = `0402'
INFOPATH = 
`/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'

PROGRAMFILES = `C:\Program Files'
DISPLAY = `:0'
NUMBER_OF_PROCESSORS = `1'
SESSIONNAME = `Console'
COMPUTERNAME = `CHUPAS'
COLORTERM = `rxvt-xpm'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus 

How to have libpcap

2005-05-31 Thread Alireza Ghasemi
Hello,
Many programs need LibPcap to be built.But when compiling it,it says things
about packet capture type that I don't know how to port them to cygwin.
Is any way to solve this problem and compile libpcap or a ported version of
this?
Thanks.


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



STDIN problem

2005-05-31 Thread Alireza Ghasemi
When configuring many programs I get messages like can not open STDIN : no
such file or directory and when building perl, it stopped the Configure.
What's wrong with STDIN and what should I do?
Thanks.


--
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: How to have libpcap

2005-05-31 Thread Igor Pechtchanski
On Sun, 29 May 2005, Alireza Ghasemi wrote:

 Hello,
 Many programs need LibPcap to be built.But when compiling it,it says things
 about packet capture type that I don't know how to port them to cygwin.
 Is any way to solve this problem and compile libpcap or a ported version of
 this?

The first step is to check whether there's an official libpcap package for
Cygwin.  The Cygwin Package search page at http://cygwin.com/packages/
doesn't return any useful matches for pcap, so the answer to that is
no.

The second step is to do a Google search for cygwin libpcap and notice
that the first result refers to something called WinPcap.  Scrolling
down on that same Google results page gets you to the WinPcap ChangeLog
page, which states, among other things:

wpcap.dll has been updated to libpcap 0.8.3 from
http://www.tcpdump.org.

The third step is to build WinPcap under Cygwin.  If your application
works correctly, and modulo any license issues, you may want to offer to
maintain a Cygwin libpcap package.  See http://cygwin.com/setup.html for
information on how to contribute.
Igor
P.S. Your spacebar key seems to be malfunctioning again...
-- 
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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

2005-05-31 Thread Christopher Faylor
On Tue, May 31, 2005 at 02:08:22PM -0400, Igor Pechtchanski wrote:
On Tue, 31 May 2005, Dave Korn wrote:

 Original Message
 From: Igor Pechtchanski
 Sent: 31 May 2005 18:44

  Quoting from the bottom of the OLOCA:

   Maybe you should move that bit up to the top?

I doubt it matters where it is.  That's the only place on the page that
says to send suggestions to the main Cygwin list.  The words *on one of
the Cygwin lists* are *in the same sentense*.  That should suffice, no?
:-)

   And perhaps you should make the *on one of the Cygwin lists* text a
 bit bigger and more eye-catching.

   Like about 36 miles on a side and bright pink and flashing, for
 instance.

I'll leave that to script kiddies.  A couple more inquiries like that,
though, and I'll consider making that bit bold...

I think we need an acronym to describe the problem:

Only Acronyms Used In Cygwin Lists

OAUICL

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

2005-05-31 Thread Igor Pechtchanski
On Tue, 31 May 2005, Christopher Faylor wrote:

 On Tue, May 31, 2005 at 02:08:22PM -0400, Igor Pechtchanski wrote:
 On Tue, 31 May 2005, Dave Korn wrote:
 
  Original Message
  From: Igor Pechtchanski
  Sent: 31 May 2005 18:44
 
   Quoting from the bottom of the OLOCA:
 
Maybe you should move that bit up to the top?
 
 I doubt it matters where it is.  That's the only place on the page that
 says to send suggestions to the main Cygwin list.  The words *on one of
 the Cygwin lists* are *in the same sentense*.  That should suffice, no?
 :-)
 
And perhaps you should make the *on one of the Cygwin lists* text a
  bit bigger and more eye-catching.
 
Like about 36 miles on a side and bright pink and flashing, for
  instance.
 
 I'll leave that to script kiddies.  A couple more inquiries like that,
 though, and I'll consider making that bit bold...

 I think we need an acronym to describe the problem:

 Only Acronyms Used In Cygwin Lists

 OAUICL

Agreed, except that Only Acronyms Used In The Cygwin Lists Should Be
Suggested lends itself better to prononciation:

OAUTICLSBS

(Wow tickles bs)...  Comments?
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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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

2005-05-31 Thread Igor Pechtchanski
On Tue, 31 May 2005, Igor Pechtchanski wrote:

 On Tue, 31 May 2005, Christopher Faylor wrote:

  On Tue, May 31, 2005 at 02:08:22PM -0400, Igor Pechtchanski wrote:
  On Tue, 31 May 2005, Dave Korn wrote:
  
   Original Message
   From: Igor Pechtchanski
   Sent: 31 May 2005 18:44
  
Quoting from the bottom of the OLOCA:
  
 Maybe you should move that bit up to the top?
  
  I doubt it matters where it is.  That's the only place on the page that
  says to send suggestions to the main Cygwin list.  The words *on one of
  the Cygwin lists* are *in the same sentense*.  That should suffice, no?
  :-)
  
 And perhaps you should make the *on one of the Cygwin lists* text a
   bit bigger and more eye-catching.
  
 Like about 36 miles on a side and bright pink and flashing, for
   instance.
  
  I'll leave that to script kiddies.  A couple more inquiries like that,
  though, and I'll consider making that bit bold...
 
  I think we need an acronym to describe the problem:
 
  Only Acronyms Used In Cygwin Lists
 
  OAUICL

 Agreed, except that Only Acronyms Used In The Cygwin Lists Should Be
 Suggested

Umm, make that Only Acronyms Used Twice-or-more In Cygwin Lists Should Be
Suggested...

 lends itself better to prononciation:

 OAUTICLSBS

 (Wow tickles bs)...  Comments?
   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!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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



Size of CygWin Display Font

2005-05-31 Thread Khadhrawi, Mohammad
Dear Sir/Madam,

I am a new user of CygWin.  I've just finished installing it. Now, I want to 
change (enlarge) the size of the CygWin display font.

I did some readings on your web site and others.  I found that I need .profile 
or .bashrc files.  However, I cannot find either of these files.

Is there another way to accomplish the change I want?  How?

Please let me know if you have a direct way to affect this change or if you 
know of a site that described the method.

 
Many thanks in advance.

Cheers,
Mohammad Khadhrawi


--
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: Size of CygWin Display Font

2005-05-31 Thread Gary R. Van Sickle
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Khadhrawi, Mohammad
 Sent: Tuesday, May 31, 2005 3:25 PM
 To: cygwin@cygwin.com
 Subject: Size of CygWin Display Font
 
 Dear Sir/Madam,
 
 I am a new user of CygWin.  I've just finished installing it. 
 Now, I want to change (enlarge) the size of the CygWin display font.
 
 I did some readings on your web site and others.  I found 
 that I need .profile or .bashrc files.  However, I cannot 
 find either of these files.


You have to create them in your $HOME directory.
 
 Is there another way to accomplish the change I want?  How?
 
 Please let me know if you have a direct way to affect this 
 change or if you know of a site that described the method.
 
  

The super-short answer:

- Install Cygwin's rxvt.
- Create a Windows shortcut to it.
- In the shortcut's Properties-Shortcut-Target, make it look something
like this:

C:\unix\bin\rxvt.exe -tn rxvt-cygwin-native -sr -sl 1000 -fn Lucida
Console-bold-14 -e bash --login -I

The '-fn Lucida Console-bold-14' part sets the font and its size.

 Many thanks in advance.
 
 Cheers,
 Mohammad Khadhrawi
 

-- 
Gary R. Van Sickle
 


--
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: permissions and user data backups

2005-05-31 Thread Larry Hall
At 02:36 PM 5/31/2005, you wrote:
I'm trying to set up automated rsync backups, but I'm running into some 
problems.  When I manually run my rsync script as Administrator, opening some 
user folders gives permission denied.  Is there a way to create a 
root/SYSTEM like user?  or alternatively, how would I go about acheiving the 
desired effect?  Would I have to install cron as SYSTEM instead of a user with 
administrative privileges?  If possible, I would like to find a solution that 
doesn't involve fiddling with ACL's or the permissions of the files in 
question.  Many thanks in advance for your help.


snip


#
# --- /etc/group ---
#

root:S-1-5-32-544:0:


snip


Creating a 'root' group doesn't endow anything that has this group with 
any special privileges above and beyond 'Administrator'.  So I'm not sure
what you're trying to accomplish here.  Actually, that's true in general.  
You really haven't described in any detail what you're attempting to do and
how you're going about doing it.  You refer to 'cron' and 'rsync' and 
automated backups, as well as permission denied errors you get on some 
folders, but you haven't told us anything about the folders and what you're 
actually invoking to get these errors.  Nor do we know the permissions (rwx and 
ACL) on these folders.  If I had to guess, I'd say they are probably
owned by SYSTEM and not Administrator, which would be at least one reason 
why you would see such an error.  I can't imagine any magic would allow a 
user access to a file when none exists though so beyond adding the 
permissions needed to the files/folders in question, any other solution 
would be a bug.


--
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: STDIN problem

2005-05-31 Thread Larry Hall
At 02:51 PM 5/31/2005, you wrote:
When configuring many programs I get messages like can not open STDIN : no
such file or directory and when building perl, it stopped the Configure.
What's wrong with STDIN and what should I do?
Thanks.

Start by reading and following the problem reporting guidelines at:

Problem reports:   http://cygwin.com/problems.html


This should give readers of the list the minimum information necessary to
help you with your problem.


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



1.5.17 regression - 'printer name is invalid' is back

2005-05-31 Thread bill . welch
$ export PRINTER='\\NNYCC003PPS2\P100091409'
$ echo | lpr -D
Windows printer name = ''
isWindows9x = 0, isWindows2K_NT4 = 1
Printer name: 'Acrobat Distiller', Port name: 'C:\Documents and Settings\All 
Users\Desktop\*.pdf'
Printer name: '\\NNYCC003PPS2\P100091409', Port name: 'P100091409'
lpr: printer error: can't open '' for writing: The printer name is invalid.
$ uname -a
CYGWIN_NT-5.1 wnyc0121913 1.5.17(0.129/4/2) 2005-05-25 19:38 i686 unknown 
unknown Cygwin

The 2005-05-10 snapshot is fine:

$ echo | lpr -D
Windows printer name = '\\NNYCC003PPS2\P100091409'
isWindows9x = 0, isWindows2K_NT4 = 1
Printer name: 'Acrobat Distiller', Port name: 'C:\Documents and Settings\All 
Users\Desktop\*.pdf'
Printer name: '\\NNYCC003PPS2\P100091409', Port name: 'P100091409'
$ uname -a
CYGWIN_NT-5.1 wnyc0121913 1.5.17s(0.128/4/2) 20050510 12:11:42 i686 unknown 
unknown Cygwin

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


--
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: Re: 1.5.16: DuplicateHandle(Out) failed (e=6)

2005-05-31 Thread Nathan L Mullen
Thank you for your willingness to help.

 I recently upgraded from Cygwin 1.5.6-1 to 1.5.16-1.  

Does it still happen with 1.5.17-1?

Yes.

 showProb.sh: ###
 #!/bin/sh
 perl -S showProb.pl

That's not a bash script.
Is the -S necessary?  (= search for perl script on your path)

No, the -S is not necessary.  I removed the -S and recieved the same error.

 I used cl to compile showProb.c: cl showProb.c -o showProb.exe.

Does it fail for you compiled with:

 gcc -o showProb.exe -mno-cygwin showProb.c

It doesn't for me, on cygwin 1.5.17-1.

DuplicateHandle works for me as well if compiled with gcc.  Only when it is 
compiled with cl (Microsoft's C compiler) do I have this problem.  As Gerrit 
Haase mentioned, the problem is possibly a quirk with cl.

Again, I only have the DuplicateHandle if the showProb.pl script is called from 
showProb.sh.  Otherwise, DuplicateHandle works when compiled with cl.

Thanks again for your assistance.  I appreciate it.

Nathan




--
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: Emacs problem with Cygwin 1.5.17-1

2005-05-31 Thread Angelo Graziosi

I remember you, that reinstalling Cygwin 1.5-16-1 (and keeping coreutils
5.3.0-6)  Emacs works fine.

I would keep 1.5.17-1 because it allow me to build CERNLIB-2005 with a
limited number of patches (with 1.5.16-1 there is something more to
patch)

I have also tried XEmacs 21.4.17-1. It starts and the window shows itself,
apparently without problems.

Now XWin.log
Thanks 
angelo.


Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.2.0-2

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

/usr/X11R6/bin/XWin -multiwindow -clipboard -silent-dup-error 
+bs 

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 800 h 600
winInitializeDefaultScreens - Returning
_XSERVTransmkdir: Cannot create /tmp/.X11-unix with root ownership
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more
information
(==) FontPath set to
/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per
pixel
winAllocateFBShadowGDI - Creating DIB with width: 800 height: 600
depth: 32
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24
bpp 32
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winMultiWindowXMsgProc - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
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: 0410 (0410) 
(--) Using preset keyboard for Italian (410), type 4
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing
from list!
winInitMultiWindowWM - pthread_mutex_lock () returned.
winProcEstablishConnection - Hello
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened
the display.
winClipboardProc - XOpenDisplay () returned and successfully opened the
display.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened
the display.




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



[ANNOUNCEMENT] Updated: distcc-2.18.3-1

2005-05-31 Thread Harold L Hunt II

The distcc-2.18.3-1 package has been updated in the Cygwin distribution.

Changes
===
1) Resync with upstream release.

--
Harold Hunt

***

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

If you have questions or comments, please send them to the Cygwin
mailing list at: cygwin@cygwin.com .

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

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

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

***


--
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: slow windows foreground operation after installing cygwin-1.5.17-1

2005-05-31 Thread Charles D. Russell

   *   /From/: Mark Hadfield m dot hadfield at niwa dot co dot nz
   * /To/: cygwin at cygwin dot com
   * /Date/: Mon, 30 May 2005 12:07:28 +1200
   * /Subject/: Re: slow windows foreground operation after installing
 cygwin-1.5.17-1
   * /References/: [EMAIL PROTECTED]
 http://sources.redhat.com/ml/cygwin/2005-05/msg01325.html


Mark Hadfield wrote:

Charles D. Russell wrote:

   The new cygwin1.dll (1.5.17-1) now lets me run fortran programs with
   large
   static arrays that occupy most of the available memory, but it is no
   longer
   possible to run Windows programs (MSWord or even Windows Explorer)
   in the foreground while a big math problem is chugging along in the
   background. The foreground Windows process appears not to get enough
   priority in the
   time sharing allocation to function at a usable speed.

   _
   The problem disappeared after a clean reinstallation using setup to
   re-download everything. (My actual intent was to have a smaller set
   of download files in order to back up the current cygwin
   installation to CD, but it happened to fix the problem.) 



This may be flogging a dead horse (since you say the problem has gone 
away) but you didn't say what priority were you running the background 
program at. Since you didn't say--and it's obviously relevant--I wonder 
if you know about the facilities for setting program priorities. These 
include the Cygwin nice command and the Set Priority item in Task 
Manager (switch to process list and right-click on the process in question).


I do a lot of CPU-intensive, RAM-hungry numerical work in Windows 2000, 
with a variety of applications, some Cygwin and some not, and I have 
found that they *normally* interfere with foreground operation unless I 
reduce the priority of the background task. Part of the problem is that 
Windows GUI operations may to spin off low-priority tasks which then 
take *forever* to execute. The DDE system seems to be particularly prone 
to this. So I find myself adjusting priorities regularly.

___

Thanks for the advice.  I didn't know how to set priorities in Windows.  
I have used nice with unix but had not looked for it in Cygwin.  
(IIRC, there is also a more precise way to set priorities in unix.) What 
struck me was the change in behavior on updating cygwin1.dll with no 
change in the Windows configuration.  Some slowdown was expected when 
running a big background problem, but not enough to prohibit examining 
directories with Windows Explorer, or doing simple text editing with MS 
Word.  Evidently I just had a corrupt installation.


I have been very happy with a four-year-old cygwin installation on a 64 
Mb Windows 98 laptop running fortran programs that use nearly four times 
the physical memory. (Having no problems, I never upgraded.)  I am glad 
to be able now, with the new cygwin1.dll, to make better use of the 512 
Mb in my desktop.




--
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: I have user mounts instead of system ones.

2005-05-31 Thread Jason FU
Larry Hall lh-no-personal-replies-please at cygwin.com writes:

 If you have them, they were either created this way or explicitly through
 your action using 'mount'.  Sorry, I cannot say which.
 


[EMAIL PROTECTED] ~
$ mount -m
mount -f -s -b C:/cygwin/usr/X11R6/lib/X11/fonts /usr/X11R6/lib/X11/fonts
mount -f -s -b C:/cygwin/bin /usr/bin
mount -f -s -b C:/cygwin/lib /usr/lib
mount -f -s -b C:/cygwin /
mount -f -s -b a: /a
mount -f -s -b c: /c
mount -f -s -b d: /d
mount -f -s -b e: /e
mount -f -s -b f: /f
mount -f -s -b g: /g
mount -f -s -b h: /h
mount -f -s -b i: /i
mount -f -s -b j: /j
mount -s -b --change-cygdrive-prefix /cygdrive

[EMAIL PROTECTED] ~
$ mount -m
mount -f -s -b C:/cygwin/usr/X11R6/lib/X11/fonts /usr/X11R6/lib/X11/fonts
mount -f -s -b C:/cygwin/bin /usr/bin
mount -f -s -b C:/cygwin/lib /usr/lib
mount -f -s -b C:/cygwin /
mount -f -s -b a: /a
mount -f -s -b c: /c
mount -f -s -b d: /d
mount -f -s -b e: /e
mount -f -s -b f: /f
mount -f -s -b g: /g
mount -f -s -b h: /h
mount -f -s -b i: /i
mount -f -s -b j: /j
mount -s -b --change-cygdrive-prefix /cygdrive

[EMAIL PROTECTED] ~
$ ps -e
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
 1548   11548   1548?   18 08:53:04 /usr/bin/cygrunsrv
 168815481688   1724?   18 08:53:05 /usr/sbin/cygserver
 1844   11844   1844?   18 08:53:05 /usr/bin/cygrunsrv
 1920   11920   1920?   18 08:53:06 /usr/bin/cygrunsrv
  492   1 492492?   18 08:53:10 /usr/bin/cygrunsrv
 1068   11068   1068?   18 08:53:11 /usr/bin/cygrunsrv
 1488   11488   1488  con 1004 08:53:14 /usr/bin/bash
I 896   1 896896  con  500 08:55:15 /usr/bin/bash
  6001488 600604  con 1004 08:58:38 /usr/bin/ps

[EMAIL PROTECTED] ~
$


NOW, I just reinstalled the latest cygwin 1.5.17-1

[EMAIL PROTECTED] ~
$ ls -la Shared\ Documents/ftp/Cygwin\ World/complete/cygwin/ftp%3a%2f%2fmirror
s.rcn.net%2fpub%2fsourceware%2fcygwin/release/cygwin
total 1208
drwxrwxrwt+   2 tsfu Users   0 Jun  1 08:36 .
drwxrwxrwt+ 275 tsfu Users   0 May 18 08:31 ..
-rwxrwxrwx1 tsfu Users 1236430 May 27 08:40 cygwin-1.5.17-1.tar.bz2

and the same problem persists and none of the services go up again.

I've done umount -U in all user accounts and the administrator accounts.

Thanks.


Jason


--
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: I have user mounts instead of system ones.

2005-05-31 Thread Larry Hall
At 08:58 PM 5/31/2005, you wrote:
Larry Hall lh-no-personal-replies-please at cygwin.com writes:

 If you have them, they were either created this way or explicitly through
 your action using 'mount'.  Sorry, I cannot say which.
 


[EMAIL PROTECTED] ~
$ mount -m
mount -f -s -b C:/cygwin/usr/X11R6/lib/X11/fonts /usr/X11R6/lib/X11/fonts
mount -f -s -b C:/cygwin/bin /usr/bin
mount -f -s -b C:/cygwin/lib /usr/lib
mount -f -s -b C:/cygwin /
mount -f -s -b a: /a
mount -f -s -b c: /c
mount -f -s -b d: /d
mount -f -s -b e: /e
mount -f -s -b f: /f
mount -f -s -b g: /g
mount -f -s -b h: /h
mount -f -s -b i: /i
mount -f -s -b j: /j
mount -s -b --change-cygdrive-prefix /cygdrive

[EMAIL PROTECTED] ~
$ mount -m
mount -f -s -b C:/cygwin/usr/X11R6/lib/X11/fonts /usr/X11R6/lib/X11/fonts
mount -f -s -b C:/cygwin/bin /usr/bin
mount -f -s -b C:/cygwin/lib /usr/lib
mount -f -s -b C:/cygwin /
mount -f -s -b a: /a
mount -f -s -b c: /c
mount -f -s -b d: /d
mount -f -s -b e: /e
mount -f -s -b f: /f
mount -f -s -b g: /g
mount -f -s -b h: /h
mount -f -s -b i: /i
mount -f -s -b j: /j
mount -s -b --change-cygdrive-prefix /cygdrive

[EMAIL PROTECTED] ~
$ ps -e
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
 1548   11548   1548?   18 08:53:04 /usr/bin/cygrunsrv
 168815481688   1724?   18 08:53:05 /usr/sbin/cygserver
 1844   11844   1844?   18 08:53:05 /usr/bin/cygrunsrv
 1920   11920   1920?   18 08:53:06 /usr/bin/cygrunsrv
  492   1 492492?   18 08:53:10 /usr/bin/cygrunsrv
 1068   11068   1068?   18 08:53:11 /usr/bin/cygrunsrv
 1488   11488   1488  con 1004 08:53:14 /usr/bin/bash
I 896   1 896896  con  500 08:55:15 /usr/bin/bash
  6001488 600604  con 1004 08:58:38 /usr/bin/ps

[EMAIL PROTECTED] ~
$


NOW, I just reinstalled the latest cygwin 1.5.17-1

[EMAIL PROTECTED] ~
$ ls -la Shared\ Documents/ftp/Cygwin\ World/complete/cygwin/ftp%3a%2f%2fmirror
s.rcn.net%2fpub%2fsourceware%2fcygwin/release/cygwin
total 1208
drwxrwxrwt+   2 tsfu Users   0 Jun  1 08:36 .
drwxrwxrwt+ 275 tsfu Users   0 May 18 08:31 ..
-rwxrwxrwx1 tsfu Users 1236430 May 27 08:40 cygwin-1.5.17-1.tar.bz2

and the same problem persists and none of the services go up again.

I've done umount -U in all user accounts and the administrator accounts.


Sorry but I don't know what this shows.  You seem to be implying that 
installing cygwin 1.5.17 causes user mounts that never appeared previously
to suddenly appear.  Or perhaps I am misunderstanding you.  I don't know.
I can say this however.  What you have shown above gives no indication of 
a user mount on your system.  Both invocations of 'mount -m' that you've
included show that you have system mounts only.  Your 'ps -e' output shows
that you have 5 services running, successfully/usefully or otherwise.  So 
while I wouldn't presume to debate you on whether or not you're having 
problems using these services in the way that you want, the information 
that you've provided thus far does not indicate any problem or source of 
your problem.  I would again invite you to review and follow the problem
reporting guidelines at http://cygwin.com/problems.html if you'd like to
pursue this issue further with the help of those here on this list.




--
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: 1.5.17 regression - 'printer name is invalid' is back

2005-05-31 Thread Tim Beuman
This problem probably is a result of the modifications in 
src/winsup/cywin/path.cc introduced in version 3.373.


lpr.exe uses cygwin_conv_to_win32_path() which now is forced to check 
for non-absolute pathnames only:


version 1.373:
path_conv p (path, PC_SYM_FOLLOW | PC_NO_ACCESS_CHECK | PC_NOFULL);

version 1.372:
path_conv p (path, PC_SYM_FOLLOW | PC_NO_ACCESS_CHECK);

lpr.exe probably should use cygwin_conv_to_full_win32_path() for a 
remote printer (and a local printer too?).


Tim


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



[Fwd: Re: 1.5.17 regression - 'printer name is invalid' is back]

2005-05-31 Thread Tim Beuman
I tried using cygwin_conv_to_full_win32_path() in lpr.cc but it comes 
back with errno=136 (ENOSHARE).

I tried cygwin_conv_to_win32_path() and it comes back with errno=136 too.

Tim

 Original Message 
Subject: Re: 1.5.17 regression - 'printer name is invalid' is back
Date: Tue, 31 May 2005 18:39:51 -0700
From: Tim Beuman [EMAIL PROTECTED]
To: cygwin@cygwin.com

This problem probably is a result of the modifications in
src/winsup/cywin/path.cc introduced in version 3.373.

lpr.exe uses cygwin_conv_to_win32_path() which now is forced to check
for non-absolute pathnames only:

version 1.373:
path_conv p (path, PC_SYM_FOLLOW | PC_NO_ACCESS_CHECK | PC_NOFULL);

version 1.372:
path_conv p (path, PC_SYM_FOLLOW | PC_NO_ACCESS_CHECK);

lpr.exe probably should use cygwin_conv_to_full_win32_path() for a
remote printer (and a local printer too?).

Tim



--
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: I have user mounts instead of system ones.

2005-05-31 Thread Jason FU
Larry Hall lh-no-personal-replies-please at cygwin.com writes:

 
 Sorry but I don't know what this shows.  You seem to be implying that 
 installing causes user mounts that never appeared previously
 to suddenly appear.  Or perhaps I am misunderstanding you.  I don't know.
 I can say this however.  What you have shown above gives no indication of 
 a user mount on your system.  Both invocations of 'mount -m' that you've
 included show that you have system mounts only.  Your 'ps -e' output shows
 that you have 5 services running, successfully/usefully or otherwise.  So 
 while I wouldn't presume to debate you on whether or not you're having 
 problems using these services in the way that you want, the information 
 that you've provided thus far does not indicate any problem or source of 
 your problem.  I would again invite you to review and follow the problem
 reporting guidelines at http://cygwin.com/problems.html if you'd like to
 pursue this issue further with the help of those here on this list.
 

Look here, Larry.

==
[EMAIL PROTECTED] ~
$ ps -e
  PIDPPIDPGID WINPID  TTY  UIDSTIME COMMAND
  288   1 288288?   18 09:06:33 /usr/bin/cygrunsrv
  452 288 452476?   18 09:06:35 /usr/sbin/cygserver
  520   1 520520?   18 09:06:35 /usr/bin/cygrunsrv
  652   1 652652?   18 09:06:36 /usr/bin/cygrunsrv
  624 520 624684?   18 09:06:38 /usr/bin/exim-4.50-1
 1064 6521064   1088  con   18 09:06:37 /sbin/init
 2060   12060   2060?   18 09:06:46 /usr/bin/cygrunsrv
 215620602156   2236?   18 09:06:47 /usr/sbin/portmap
 2272   12272   2272?   18 09:06:47 /usr/bin/cygrunsrv
 230422722304   2328?   18 09:06:49 /usr/sbin/sshd
 2972   12972   2972?   18 09:07:38 /usr/bin/cygrunsrv
 3048   13048   3048?   18 09:07:40 /usr/sbin/xinetd
 3084   13084   3084?   18 09:07:41 /usr/bin/cygrunsrv
 315629723156   3232?   18 09:07:46 /usr/sbin/rpc.mountd
 318830843188   3256?   18 09:07:47 /usr/sbin/rpc.nfsd
 3424   13424   3424  con 1004 09:07:57 /usr/bin/bash
  3843424 384   1672  con 1004 09:09:50 /usr/bin/sh
 2536 384 384   3332  con 1004 09:09:58 /usr/X11R6/bin/xinit
 369625363696   3708  con 1004 09:10:00 /usr/X11R6/bin/XWin
 408025364080   2900  con 1004 09:10:26 /usr/bin/xterm
I 8964080 896   34080 1004 09:10:27 /usr/bin/bash
 1960 89619602360 1004 09:29:25 /usr/bin/xterm
I 7001960 700   18281 1004 09:29:28 /usr/bin/bash
 106034241060496  con 1004 10:13:55 /usr/bin/ps
==

If cygwin 1.5.17 works, I should have these services up. The former dumps showed
you that they didn't work with cygwin 1.5.17 at all. The dump above is what I
could have after rolling back to cygwin 1.5.16 but keeping all other latest
packages installed.

This is not a debate. I've no time to debate with you. I am just reporting the
problem after the installation of  cygwin 1.5.17. That's it.

Thanks.

Jason



--
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: 1.5.17 regression - 'printer name is invalid' is back

2005-05-31 Thread Christopher Faylor
On Tue, May 31, 2005 at 06:39:51PM -0700, Tim Beuman wrote:
This problem probably is a result of the modifications in 
src/winsup/cywin/path.cc introduced in version 3.373.

lpr.exe uses cygwin_conv_to_win32_path() which now is forced to check 
for non-absolute pathnames only:

version 1.373:
path_conv p (path, PC_SYM_FOLLOW | PC_NO_ACCESS_CHECK | PC_NOFULL);

version 1.372:
path_conv p (path, PC_SYM_FOLLOW | PC_NO_ACCESS_CHECK);

lpr.exe probably should use cygwin_conv_to_full_win32_path() for a 
remote printer (and a local printer too?).

Corinna fixed this problem on Saturday but I neglected to produce a new
snapshot.  I'll do that now.

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/



Need help

2005-05-31 Thread jagath kumara
Mr who help me

I am trying create win 32 dll for php I need run this
command---: ext_skel_win32.php and
command---: phpize this also cygwin refuse to run
this 

please help me 

I am looking forward hear form you

Thanks



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



Updated: distcc-2.18.3-1

2005-05-31 Thread Harold L Hunt II

The distcc-2.18.3-1 package has been updated in the Cygwin distribution.

Changes
===
1) Resync with upstream release.

--
Harold Hunt

***

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

If you have questions or comments, please send them to the Cygwin
mailing list at: cygwin@cygwin.com .

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

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

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

***