[ANNOUNCEMENT] New package: wtf-0.0.3-1

2003-08-18 Thread Igor Pechtchanski
wtf(6) is a utility provided by some UNIX and UNIX-like systems including
Slackware Linux and NetBSD.  It translates acronyms and filename suffixes
by looking up the definition of a term in various databases.

I've added the OLOCA () to the database
directory, so the acronyms from the Cygwin lists will be found (yes, you
can now really ask "wtf is cgf" ;-) ).  There's a perl script in the
source package to update the OLOCA database from the web version of the
OLOCA for those who can't wait for regular package updates (also requires
wget).  See the README file for details.


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.
Once you've downloaded setup.exe, run it and select "Publishing" or
"Graphics" and then click on the appropriate field until the above
announced version number appears if it is not displayed already.

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

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

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

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

cygwin-announce-unsubscribe-you=yourdomain dot com at cygwin dot com

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.

I implore you to READ this information before sending email about how you
"tried everything" to unsubscribe.  In 100% of the cases where people were
unable to unsubscribe, the problem was that they hadn't actually read and
comprehended the unsubscribe instructions.

If you need to unsubscribe from cygwin-announce or any other mailing list,
reading the instructions at the above URL is guaranteed to provide you with
the info that you need.

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

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



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



Re: Newbie: Where's ed, vi, more (or less), man?

2003-08-18 Thread Corinna Vinschen
On Sun, Aug 17, 2003 at 07:32:51PM -0400, Andy Civil wrote:
> Well, I managed to install vim, but I couldn't get it to emulate vi 
> successfully, I read all the help stuff, and tried "vi -v file", but it 
> was still showing the "~" signs in blue.

:set compatible

> that people write free software (I mean that) but I have to say that the 
> whole experience of vim, namely being forced to use an "improved" 
> version of a program and then spending ages trying to make it behave 
> like the old version, is one of the reasons that people flee from 
> Windows in the first place.

Yeah, and since vim is installed as the default vi replacement on most,
if not all Linux systems, that's exactly the kind of reason which let
people flee from Linux.  Sure.

Corinna

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

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



Fw: make 1332 proc_subproc: Couldn't duplicate my handle<0x3D8> for pid 1240, Win32 error 6

2003-08-18 Thread 김미진


make 1332 proc_subproc: Couldn't duplicate my handle<0x3D8> for pid 1240, Win32 error 6

Detail error state is :
--
./HEXBIN2  QCM710TI.hex QCM710TI.bin H 0 FFF 2
  9 [main] make 1332 proc_subproc: Couldn't duplicate my handle<0x3D8> for pid 
1240, Win32 error 6
--
./FONTCOPY   QCM710TI.bin IMG/img.bin   0x58 0x495578#auto-change
   3388 [main] sh 680 proc_subproc: Couldn't duplicate my handle<0x3D0> for pid 0, 
Win32 error 6
./FONTCOPY: error 0
make: *** [QCM710TI.bin] Error 1
--

I am getting this PID error while running a make script.
And each time the No. of PID error and the No. in front of proc_subproc is changed.

Does anyone have a solution or clue as to why I would get this?

I am running a version of GNU make 3.79.1 .  
And I patched 'windows2000 service pack 4' because of warm virus on Aug 13.
After that, I am getting this error!

-
INTERCUBE.CO.,LTD
1 S.B.U / R&D Team
Mi-Jin Kim 
Tel : +82-31-600-3000
Fax : +82-31-600-3099
E-mail : [EMAIL PROTECTED] 

Re: Question about large file support

2003-08-18 Thread Corinna Vinschen
On Sun, Aug 17, 2003 at 02:59:13PM -0700, ColinB wrote:
> Thanks Corinna, fseeko is new to me!
> 
> So for 64 bit file offsets I can use either:
> 
>open/lseek/close
> 
> or
> 
>fopen/fseeko/ftello/fclose
> 
> But in both cases do I have to specify #define _FILE_OFFSET_BITS 64 to
> make off_t 64 bit, or will off_t be 64 bits by default in cygwin 1.5.0
> ?

It's transparent.  If you build an application using the 1.5.x headers
and libs, the affected types like off_t or fpos_t are 64 bit types
automagically.  The same goes for uid_t/gid_t becoming 32 bit instead of
16 bit.  To quote a mail I've sent to the cygwin-apps ML a month ago:

  [...] please note that the new datatypes are used automatically.
  There isn't any choice between e.g. a off_t with 32 bit and a off64_t
  with 64 bit and no corresponding functions as stat and stat64.
  Building under 1.5.0 means, off_t is 64 bit now.  stat is expecting
  a struct stat with 64 bit off_t.  Full stop.  No compile time
  options.  All or nothing.  Well, you got the idea, I guess...


Corinna

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

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



RE: New package: wtf-0.0.3-1

2003-08-18 Thread Morrison, John
Igor Pechtchanski wrote:
> wtf(6) is a utility provided by some UNIX and UNIX-like systems
> including Slackware Linux and NetBSD.  It translates acronyms and
> filename suffixes by looking up the definition of a term in various
> databases. 
> 
> I've added the OLOCA () to the database
> directory, so the acronyms from the Cygwin lists will be found (yes,
> you can now really ask "wtf is cgf" ;-) ).  There's a perl script in
> the source package to update the OLOCA database from the web version
> of the OLOCA for those who can't wait for regular package updates
> (also requires wget).  See the README file for details.

Yay! :)

J.


==
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission. There is no intention to
create any legally binding contract or other binding commitment through
the use of this electronic communication unless it is issued in accordance
with the Experian Limited standard terms and conditions of purchase or
other express written agreement between Experian Limited and the recipient
Experian Limited (registration number 653331)
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF


--
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: New package: wft-0.0.3-l

2003-08-18 Thread James Spinks
Great package btw, loving it so far...

Slight problem though, if I have a $HOME/.wtf directory with databases and indexes in 
it then the wtf program no longer searches the databases in the /usr/share/wtf 
directory.  If I rename my .wtf directory then the system databases are searched once 
more.

Any chance that this could be fixed so that both directories are searched -- or is 
this a 'feature'   ;-)

Additionally, the wtfindex program cores if you attempt to index a database with only 
one entry.  Not many of those in real usage I guess, but if foxed me for a while 
during testing.

-- 
James Spinks

--
Protect yourself from spam, 
use http://sneakemail.com

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



patch unusable to apply patches to binary files

2003-08-18 Thread Max Bowsher
Because patch always reads its input in textmode, it cannot be used to apply
patches to binary files - e.g. gcc-core-3.3-3.3.1.diff, which updates binary
.gmo files.

I recall previous threads about patch and textmode/binmode issues, but
searching for "patch textmode" failed to find them.

Can anyone point me to mails explaining the current behaviour of patch?


Thanks,

Max.


--
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: Driver help

2003-08-18 Thread Marcel Telka
Hi Kiran.

On 2003.08.18 07:43, Kiran Bacche wrote:
The ioperm package was very helpful. Thanks for that.
U was now able to compile a sample driver into a .sys file.
I used the SCOpenManager and CreateProcess to get it loaded.
Try use CreateService() to install the driver and StartService() to 
start it. And please see admin directory in ioperm sources.

So in effeect, when a write an application program
││hPort = CreateFile(
│   "\\DosDevices\\mydevice",
│   0,
│   0,
│   NULL,
│   0,
│   0,
│   NULL);
│
│if (hPort == (HANDLE)-1)
│{
│printf("Open failed :%lx\n",hCommPort);
│return -1;
│}
I thought it would succeed. But CreateFile failed!

What may be the reason? A snippet of the CYGWIN code for win driver is
as follows:
 RtlInitUnicodeString( &DeviceName, L"\\Device\\mydevice" );
 RtlInitUnicodeString( &SymbolicLinkName, L"\\DosDevices\
\mydevice" );
 IoCreateDevice( DriverObject, 0, &DeviceName, ...
 IoCreateSymbolicLink( &SymbolicLinkName, &DeviceName...


Regards.

--
+---+
| Marcel Telka   e-mail:   [EMAIL PROTECTED]  |
|homepage: http://telka.sk/ |
|jabber:   [EMAIL PROTECTED] |
+---+
--
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 strangeness

2003-08-18 Thread Igor Pechtchanski
On Sun, 17 Aug 2003, Robert McNulty Junior wrote:

> I'm getting the following after setting up the installation.
> Every file is there.
>
> C:\cygwin>chdir C:\cygwin\bin
>
> C:\cygwin\bin>bash --login -i
> Error (2): The system cannot find the file specified.
>
>
> [EMAIL PROTECTED] ~
> $

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

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


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



Re: Newbie: Where's ed, vi, more (or less), man?

2003-08-18 Thread Andy Civil
Corinna Vinschen wrote:

:set compatible
Ok, I assumed that would be the same as -v but I'll try it and search 
the help and web to see if there's a way to do that permanently; thanks.

Yeah, and since vim is installed as the default vi replacement on most,
if not all Linux systems, that's exactly the kind of reason which let
people flee from Linux.  Sure.
I'm not sure I follow your logic but your tone is coming through crystal 
clear. Given that everyone else appears to accept vim and that the link 
I posted earlier was to a port that was seriously buggy, and that even 
"elvis" seems to be "improved" these days, I'll leave vim installed for 
my friend and see if she accepts it.

Thanks for your help.

--
Andy


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


du.exe v3.5/4.1 or v3.16/4.0: where is the bug?

2003-08-18 Thread Elisabetta Flamini
Hello.
My problem is about different versions of du.exe that work in a different
way.

Details:
the argument is executing du against a file owned by a different user than
the one running du.

first case:
du 
   

du --version
GNU fileutils 3.5
GNU fileutils 4.1



second case:
du 
: Permission denied

du --version
GNU fileutils 3.16
GNU fileutils 4.0

In other words, using version 3.16 or 4.0 du fails to execute due to
restricted permissions on the file.
What I wonder is why the behaviour changed through all those du.exe
versions and finally what should be the right way of working.

Many thanks,
Elisabetta




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



emacs look

2003-08-18 Thread Sal
I just downloaded the latest version of cygwin, along with emacs 21.2 and
it's respective X11 libraries. It's  been a year or so since I've used emacs
and this is not the version I remember. This version looks more like
"Xemacs" than the GNU emacs I remember using. Namely, there were no cute
little (and totally redundant) "buttons" for 'cut', 'paste' etc... is there
any way to get rid of or "turn off" this button toolbar? Thanks

-Sal




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

2003-08-18 Thread Robert McNulty Junior
That was is it. My printer was turned off. Turned back on, went to the
Cygwin icon, started Cygwin, with printer on, and it started just fine
(Cygwin).
Thanks
Robert

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Igor Pechtchanski
Sent: Monday, August 18, 2003 8:11 AM
To: Robert McNulty Junior
Cc: [EMAIL PROTECTED]
Subject: Re: Setup strangeness


On Sun, 17 Aug 2003, Robert McNulty Junior wrote:

> I'm getting the following after setting up the installation.
> Every file is there.
>
> C:\cygwin>chdir C:\cygwin\bin
>
> C:\cygwin\bin>bash --login -i
> Error (2): The system cannot find the file specified.
>
>
> [EMAIL PROTECTED] ~
> $

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

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


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


--
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: patch unusable to apply patches to binary files

2003-08-18 Thread Corinna Vinschen
On Mon, Aug 18, 2003 at 12:52:09PM +0100, Max Bowsher wrote:
> Because patch always reads its input in textmode, it cannot be used to apply
> patches to binary files - e.g. gcc-core-3.3-3.3.1.diff, which updates binary
> .gmo files.

Bummer.  I guess I have to patch patch once more.  I'll recycle the
--binary option again for this kind of situation as soon as I find some
spare time to do that.

Corinna

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

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



Re: cron and network drives

2003-08-18 Thread Andrew DeFaria
Andrew DeFaria wrote:

Larry Hall wrote:

Hard to say exactly with the information given.  My WAG is that the 
user from whom you're running the cron job for is logged in and 
authenticated by Windows on the second machine when cron runs but not 
on the first machine.  
Only one user is in use on both machines. In fact I accessed both 
machines using remote desktop logged in as that user. The crontab is 
that same user, etc.

This is assuming the share is not public, which would mean you have a 
completely different (network) problem on the first machine. 
Could you please describe exactly what is a "public" share, what is 
not a public share (I assume that would be a private share) and how 
does one tell the difference? Also, assuming that in the case that 
works it works because it's a public share and in the case that 
doesn't work it fails because it's a private share then how do I go 
about changing the private share to a public share? 
I really wish that somebody would address this issue once and for all. I 
often here such things as a "public mount" but to date nobody has 
ventured a guess as to what a "public mount" would be and how it would 
differ from a "non public mount". I think I have a situation here that 
clearly shows that something is odd whereas on one machine a mounted 
drive is available via cron and on another machine it is not. Both 
machines are setup nearly identically with the same user (in the same 
domain though geographically separated by thousands of miles). The only 
difference I see is that the versions of Cygwin and cron are different.

The situation is this: There are two machines: hosta and hostb. The user 
in question is the same, userc. Now on hosta the T drive is mounted from 
//hosta/share. On hostb the T drive is mounted from //hostb/share (The 
share is replicated on both machines and has bascially the same stuff - 
Tools. This is done because of the thousands of miles of seperation 
between the two machines).

A cronjob is setup for userc on both hosta and hostb doing merely:

* * * * * net use > /tmp/netuse

On hosta it shows the T drive is OK while on hostb it shows the T drive 
is unavailable.

hosta and hostb are both Windows 2000 servers. hosta is running Cygwin 
1.3.20, cron 3.0.1-7. hostb is running Cygwin 1.3.22, cron 3.0.1-10.

Can somebody explain why this works on hosta and not on hostb? And if 
that explaination is "because the share on hosta is public and on hostb 
it is not" then please let me know what a "public mount" is and how can 
I make the mount on hostb public.

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: cron and network drives

2003-08-18 Thread Elfyn McBratney
Andrew DeFaria <[EMAIL PROTECTED]> wrote:
> Andrew DeFaria wrote:
> 
> >Larry Hall wrote:
> >
> >>Hard to say exactly with the information given.  My WAG is that the 
> >>user from whom you're running the cron job for is logged in and 
> >>authenticated by Windows on the second machine when cron runs but not 
> >>on the first machine.  
> >
> >Only one user is in use on both machines. In fact I accessed both 
> >machines using remote desktop logged in as that user. The crontab is 
> >that same user, etc.
> >
> >>This is assuming the share is not public, which would mean you have a 
> >>completely different (network) problem on the first machine. 
> >
> >Could you please describe exactly what is a "public" share, what is 
> >not a public share (I assume that would be a private share) and how 
> >does one tell the difference? Also, assuming that in the case that 
> >works it works because it's a public share and in the case that 
> >doesn't work it fails because it's a private share then how do I go 
> >about changing the private share to a public share? 
> 
> I really wish that somebody would address this issue once and for all. I 
> often here such things as a "public mount" but to date nobody has 
> ventured a guess as to what a "public mount" would be and how it would 
> differ from a "non public mount". I think I have a situation here that 
> clearly shows that something is odd whereas on one machine a mounted 
> drive is available via cron and on another machine it is not. Both 
> machines are setup nearly identically with the same user (in the same 
> domain though geographically separated by thousands of miles). The only 
> difference I see is that the versions of Cygwin and cron are different.

I think Larry is actually speaking shares here, not mounts.

The reason people might not be explaining this is perhaps because it's just
a case of common sense. Public meaning access-to-all, share, in this case,
meaning a file share ...It really shouldn't need explaining.

FYI, this could have been answered by looking at the Windows help, Microsoft
KB, Google, ...

> The situation is this: There are two machines: hosta and hostb. The user 
> in question is the same, userc. Now on hosta the T drive is mounted from 
> //hosta/share. On hostb the T drive is mounted from //hostb/share (The 
> share is replicated on both machines and has bascially the same stuff - 
> Tools. This is done because of the thousands of miles of seperation 
> between the two machines).
> 
> A cronjob is setup for userc on both hosta and hostb doing merely:
> 
> * * * * * net use > /tmp/netuse
> 
> On hosta it shows the T drive is OK while on hostb it shows the T drive 
> is unavailable.
> 
> hosta and hostb are both Windows 2000 servers. hosta is running Cygwin 
> 1.3.20, cron 3.0.1-7. hostb is running Cygwin 1.3.22, cron 3.0.1-10.

Double check the following

  1) Your /etc/passwd and /etc/group are fully up-to-date (for domain &
 local access)
  2) The cron service is running as the same user

It might also be a good idea to cut Cygwin out of the equastion, and make
sure you're able to do all of this from within Windows (trying your `net use'
from a remote-telnet session would be a good place to start).

There's also a trick you can do with `at' that might help. Type:

  at /interactive HH:MM cmd

at the (Windows) command line. At (no pun intended) HH:MM a LocalSystem owned
command prompt should pop-up, where you can try out `net use'. If it doesn't
work (`net use'), it's a problem with your Windows configuration.

> Can somebody explain why this works on hosta and not on hostb? And if 
> that explaination is "because the share on hosta is public and on hostb 
> it is not" then please let me know what a "public mount" is and how can 
> I make the mount on hostb public.

I wouldn't even want to venture a guess. If you haven't already supplied
cygcheck output from both machines, that would make a good data point.

-- Elfyn

--
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: Various shell problems

2003-08-18 Thread Dr.D.J.Picton
> From: "John Morrison"  
> To:  
>
> Date: Sun, 17 Aug 2003 10:18:56 +0100 
> Subject: RE: Various shell problems 

> > From: Dr.D.J.Picton

> Hi :)

> Thanks for the feedback,

[snip]

> > Unfortunately, I did notice problems with /etc/profile:
> >
> >Firstly, it sets
> >stty erase ^?
> >
> >In my view the correct setting is definitely ^h (backspace).

> *GRIN* before we get into this discussion, I'd like to note
> the "in my view" :)

> To quote:

> "Both keys essentially do the same thing, with one major
> difference. The backspace key deletes to the left of the
> cursor, and the delete key deletes to the right of the cursor.

See below.  I wasn't talking about bash shell input which does indeed work
as described!

> >Setting the erase character to ^? (delete) causes problems
> >when 'normal' terminal i/o is used.

> What's a 'normal' terminal?  Do you mean the one you start from
> the cygwin shortcut?  If so, it works for me; what version of bash
> are you running? (it only gets set for bash atm)  I'm using:
> GNU bash, version 2.05b.0(9)-release (i686-pc-cygwin)

Unfortunately there has been a slight misunderstanding here.  I did mean the
cygwin shortcut, and I am using the above version of bash.  However...

By 'normal' input I meant the 'dumb' input to programs which
issue simple terminal reads, e.g. cat or ftp (as opposed to shells which
do complex line editing.)  I'll refer to this type of input as  
'simple' input.  For example, if I create a file using the cat command:

cat > test

the line editing facilities are very limited.  I find I can't reposition the
cursor using the arrow keys.  This moves the cursor, but the cursor key
escape sequences are stored in the file!  The only way to correct the
input is to backspace from the end of the line, and the backspace key
is the logical choice - I'm removing the character to the left of the cursor.
This works if the stty erase character is ^h.  However, if it's been set
to ^?, things tend to break:

1.  In a window started by the cygwin shortcut, I can't backspace input
in simple terminal reads.  The delete key does nothing, and the backspace
key actually generates a ^h character!

2.  In an xterm window without the resource 
*VT100*deleteIsDel: true

Bash input works as advertised, but setting stty erase ^? completely breaks
character deletion in 'simple' input.  The backspace key generates an actual ^h 
character, and the  key produces an escape sequence ...

3.  In an xterm window with the resource
*VT100*deleteIsDel: true

Again, there's no problem with bash input.  I can now set stty erase ^? and
use the delete key as the character erase key in simple input.  But this is
all very counter-intuitive, for the reasons given above.

Another thing I've noticed is that stty echoctl is set in an xterm session, but
it doesn't actually seem to do anything.  I would expect control characters
to be echoed in 'caret' notation in simple input (e.g. ^a for control-A), and
on other systems I find this very useful because it lets me know when I'm
entering control characters.  Is this a known limitation of the terminal
emulation under Cygwin?

> inetutils (of which ftp is part) is at version 1.4.2 on GNU,
> cygwin's ftp is (GNU inetutils) 1.3.2.  Could you try this version
> and, if it fixes the bug, lobby to get cygwin updated?

I'll look into this when I have the time (which isn't right now!)  In the
meantime, the /etc/profile kludge will keep the users happy.

> But of cause, it's *your* /etc/profile now, feel free to hack it :)

> Thanks again for taking the time,

> J.


--
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: Various shell problems

2003-08-18 Thread Christopher Faylor
On Mon, Aug 18, 2003 at 07:37:35PM +0100, Dr.D.J.Picton wrote:
>By 'normal' input I meant the 'dumb' input to programs which
>issue simple terminal reads, e.g. cat or ftp (as opposed to shells which
>do complex line editing.)  I'll refer to this type of input as  
>'simple' input.  For example, if I create a file using the cat command:
>
>cat > test
>
>the line editing facilities are very limited.  I find I can't reposition the
>cursor using the arrow keys.  This moves the cursor, but the cursor key
>escape sequences are stored in the file!

i.e., "Cygwin is a Linux-like environment for Windows"

>Another thing I've noticed is that stty echoctl is set in an xterm session, but
>it doesn't actually seem to do anything.  I would expect control characters
>to be echoed in 'caret' notation in simple input (e.g. ^a for control-A), and
>on other systems I find this very useful because it lets me know when I'm
>entering control characters.  Is this a known limitation of the terminal
>emulation under Cygwin?

Yes.

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: cron and network drives

2003-08-18 Thread Larry Hall
Elfyn McBratney wrote:
Andrew DeFaria <[EMAIL PROTECTED]> wrote:

Andrew DeFaria wrote:


Larry Hall wrote:


Hard to say exactly with the information given.  My WAG is that the 
user from whom you're running the cron job for is logged in and 
authenticated by Windows on the second machine when cron runs but not 
on the first machine.  
Only one user is in use on both machines. In fact I accessed both 
machines using remote desktop logged in as that user. The crontab is 
that same user, etc.


This is assuming the share is not public, which would mean you have a 
completely different (network) problem on the first machine. 
Could you please describe exactly what is a "public" share, what is 
not a public share (I assume that would be a private share) and how 
does one tell the difference? Also, assuming that in the case that 
works it works because it's a public share and in the case that 
doesn't work it fails because it's a private share then how do I go 
about changing the private share to a public share? 
I really wish that somebody would address this issue once and for all. I 
often here such things as a "public mount" but to date nobody has 
ventured a guess as to what a "public mount" would be and how it would 
differ from a "non public mount". I think I have a situation here that 
clearly shows that something is odd whereas on one machine a mounted 
drive is available via cron and on another machine it is not. Both 
machines are setup nearly identically with the same user (in the same 
domain though geographically separated by thousands of miles). The only 
difference I see is that the versions of Cygwin and cron are different.


I think Larry is actually speaking shares here, not mounts.


Quite right.  I don't know where Andrew got "public mount".  The text
he quoted from my response to his original inquiry uses "public share",
not "public mount".
A "public share" is a 'Windows thing'.  It isn't a 'Cygwin thing'.  It's a
share that allows unprivileged/unauthenticated users access.  Setting it up
simply means adding users of this type (i.e. 'Guest') to the share's
permission list.  I don't know if this explains Andrew's situation or not.
I'm still a bit mystified though why he's so hung up on this "public
share" issue.  I thought it was put to bed the last time he asked in
this thread:


If none of this resolves the issue though, Elfyn's suggestion of comparing
the output of cygcheck for the two machines is a good one.  Or his general
thoughts on debugging of cron is also worthwhile.  Otherwise, I guess the
only other option is to fire up the debugger and see what's going on.
--
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/


No output from DOS commands via telnet using xinetd

2003-08-18 Thread Brian . Kelly
I've noticed that running most DOS commands via telnet using *xinetd*
produced no output. Runing DOS commands via telnet using *inetd* works as
expected and DOES produce the expected output. For instance, in telnet via
inetd, typing:

  net help

produces the following output:

-

[EMAIL PROTECTED] ~
 - net help
The syntax of this command is:


NET HELP command
  -or-
NET command /HELP

   Commands available are:

   NET ACCOUNTS NET HELP  NET SHARE
   NET COMPUTER NET HELPMSG   NET START
   NET CONFIG   NET LOCALGROUPNET STATISTICS
   NET CONFIG SERVERNET NAME  NET STOP
   NET CONFIG WORKSTATION   NET PAUSE NET TIME
   NET CONTINUE NET PRINT NET USE
   NET FILE NET SEND  NET USER
   NET GROUPNET SESSION   NET VIEW

   NET HELP SERVICES lists the network services you can start.
   NET HELP SYNTAX explains how to read NET HELP syntax lines.
   NET HELP command | MORE displays Help one screen at a time.
[EMAIL PROTECTED] ~
 -
---

In telnet via xinetd, their is NO output from the same command:

---

[EMAIL PROTECTED] ~
 - net help
[EMAIL PROTECTED] ~
 -
---

Also, if you run a DOS shell via telnet through inetd, you can see the output
of unix/cygwin commands:



[EMAIL PROTECTED] ~
 - cmd
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

e:\temp>pwd
pwd
/cygdrive/e/temp

e:\temp>exit
exit
[EMAIL PROTECTED] ~



Output of same pwd command when run via telnet through xinetd:


[EMAIL PROTECTED] ~
 - cmd
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

e:\temp>pwd
pwd

e:\temp>exit
exit
[EMAIL PROTECTED] ~
 -
_


Is this a known issue? Is this a bug? or is there some configuration thing I
have to do??

Brian Kelly





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


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



RE: Beeing general. -- postinstall / preremove --

2003-08-18 Thread Hannu E K Nevalainen \(garbage mail\)

 As I have no "sources" for the webpage I cannot create patches.
I don't know if this text appears elsewhere...

Please, do a "PTC" analysis on this anyway!

Corrections may be necessary, as always - I'm a lazy scribbler.
In contrary to others on this list I'm not perfect.

/Hannu E K Nevalainen, B.Sc. EE Microcomputer systems - 59?14'N, 17?12'E



 Reformatted paragraphs, to adhere to <80 chars per line.

-- Excerpt from -- http://cygwin.com/setup.html --

Creating a package postinstall script

If your package requires certain commands to be executed after the files
in the package are installed, include them in a file in the package
called /etc/postinstall/package.sh or /etc/postinstall/package.bat.

If the file's name ends in ".sh", it is executed with the Cygwin shell;
if it ends in ".bat", it is executed with the DOS command interpreter.
If it doesn't end with either of these suffixes, it is ignored.

After the script has been run it is renamed by appending the suffix
".done" to its previous name, to prevent it from being run again the
next time the user runs the setup program.

Note that the setup program runs all the postinstall scripts after all
desired packages have been installed, that is, it does not run each
package's postinstall script immediately after installing that package.
Note, furthermore, that the order in which the scripts are run is not
guaranteed. Therefore, if your package depends on others which have
their own postinstall scripts, you cannot assume in your script that the
other packages' scripts have already been run.

-- END of excerpt -- http://cygwin.com/setup.html --
-- Addition to be appended here --

Before you create anything that alters things that might be subject to
user preference - think it over very thoroughly! Adjust as much as
possible to what the user has set as his preference.

An example: The Start-menu

The user might have reordered his/hers Start-menu in an "advanced"
manner, then adding multiple shortcuts to the menu in a way that
disobeys "the rules" is just plain irritating.

If you still feel that you should add things to the Start-menu, then
first check if there is a "Cygwin" folder there. If there is one, then
add your stuff in there, using a new folder named after the package
you're maintaining.

 Here is an example of a postinstall script that checks for the existanse of
the Cygwin start-menu folder. If it isn't there it does "exit"

$ head -15 cygwin-doc-postinstall.sh.done
#!/bin/sh
# cygwin-doc.sh
# requires "mkshortcut" from cygutils

# determine if there is a Start Menu "Cygwin" directory, put links in place
if so
CYGWIN_ASM="$(cygpath -AP)/Cygwin"
CYGWIN_SM="$(cygpath -P)/Cygwin"
if [ -d "$CYGWIN_ASM" ]; then
CYG_USER_FLAGS="-AP"
elif [ -d "$CYGWIN_SM" ]; then
CYG_USER_FLAGS="-P"
else
exit 0
fi

As you have created a postinstall script, it is strongly urged that you
should also consider creating a script that reverses the actions.

This is called a preremove script and should be included in the package
analogous to the postinstall scripts, just replacing the path with
/etc/preremove/package.sh or /etc/preremove/package.bat.

-- END of addition --

--END OF MESSAGE--


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



openssl-0.9.7-1

2003-08-18 Thread Mai, Vinh
Hi There,

I've read your document regarding this version of openssl.  I noticed that
this version now supports Windows CE platform.  I developed an application
using Embedded Visual C++ (Windows CE 3.0).  I am looking for an open source
to use in my program regarding cryptography.  I have a couple of questions
regarding the use of this openssl.

1. Can I use this version of openssl and implement it into my application?
2. if so, then how do I go about using it? I've downloaded the entire
openssl, and have no earthly idea where to start. The readme text files do
not provide me any great help.
3. if I can't implement this into my application, do you know of any other
open source cryptography that I can use?


Any comments or suggestions would be greatly appreciative.

Many Thanks,
Vin

--
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: openssl-0.9.7-1

2003-08-18 Thread Elfyn McBratney
Mai, Vinh wrote:
> Hi There,
> 
> I've read your document regarding this version of openssl.  I noticed that
> this version now supports Windows CE platform.  I developed an application
> using Embedded Visual C++ (Windows CE 3.0).  I am looking for an open source
> to use in my program regarding cryptography.  I have a couple of questions
> regarding the use of this openssl.

What document? A *Cygwin* release announcement? Either way, Cygwin doesn't
support Windows CE, and thus OpenSSL w/ Cygwin won't work for you.

> 1. Can I use this version of openssl and implement it into my application?
> 2. if so, then how do I go about using it? I've downloaded the entire
> openssl, and have no earthly idea where to start. The readme text files do
> not provide me any great help.
> 3. if I can't implement this into my application, do you know of any other
> open source cryptography that I can use?
>
>
> Any comments or suggestions would be greatly appreciative.

Please take your questions to the OpenSSL () people, their
off-topic here.

-- Elfyn

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

2003-08-18 Thread Elfyn McBratney
Sal wrote:
> I just downloaded the latest version of cygwin, along with emacs 21.2 and
> it's respective X11 libraries. It's  been a year or so since I've used emacs
> and this is not the version I remember. This version looks more like
> "Xemacs" than the GNU emacs I remember using. Namely, there were no cute
> little (and totally redundant) "buttons" for 'cut', 'paste' etc... is there
> any way to get rid of or "turn off" this button toolbar? Thanks

Are you looking for the console version of emacs? Is so, call emacs with the
`-nw' switch.

-- Elfyn

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

2003-08-18 Thread Sal
No not the console version (which can also be invoked with "emacs-nox").

"Elfyn McBratney" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Sal wrote:
> > I just downloaded the latest version of cygwin, along with emacs 21.2
and
> > it's respective X11 libraries. It's  been a year or so since I've used
emacs
> > and this is not the version I remember. This version looks more like
> > "Xemacs" than the GNU emacs I remember using. Namely, there were no cute
> > little (and totally redundant) "buttons" for 'cut', 'paste' etc... is
there
> > any way to get rid of or "turn off" this button toolbar? Thanks
>
> Are you looking for the console version of emacs? Is so, call emacs with
the
> `-nw' switch.
>
> -- Elfyn
>




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



-x weirdness

2003-08-18 Thread Benoit Rochefort
When I installed cygwin, permissions on all the distribution looks like:

###
$ ls -al /usr/bin/bash
-rwx--+   1 Administ Domain U   531968 Mar 13 04:29 /usr/bin/bash*
###

As you can see, even if I am:

###
$ id 
uid=17199(benoitr) gid=10513(Domain Users) groups=10513(Domain Users),11121(Exceed 
Users)
###

I can however run bash and every other programs. I suppose
it is a Windoze weirdness. But, what is interesting is "How
can I know if a program can be executed"? Often, I write
scripts where the flow of control depend on the availability
of a particular program.

So check this out:

###
$ [ -x /usr/bin/bash ]; echo $?
0
$ /usr/bin/test -x /usr/bin/bash; echo $?
1
$ perl -e 'print -x "/usr/bin/bash" ? 0 : 1 , "\n"'
1
###

I guess only bash is correct...

Looking at the source code of bash (in test.c), we discover
what seems to be the "correct" way of guessing if a program
can be executed:

case 'x':   /* File is executable? */
  return (EACCESS (arg, X_OK) == 0);

where EACCESS is:

#if defined (AFS) || defined (__CYGWIN__)
#  define EACCESS(path, mode)   access(path, mode)
#else
#  define EACCESS(path, mode)   test_eaccess(path, mode)
#endif /* AFS */


I'd like to know if:

Someone will notice and eventually correct the bug

- or -

I'm wrong, this is not a bug

- or -

Tell me a way to interprete these results.

Do I have to mail this problem to a perl mailing list?

Thanks

-- 
   *º¤., ¸¸,.¤º*¨¨¨*¤  Benoit Rochefort  *º¤., ¸¸,.¤º*¨¨¨*¤


--
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: HLDS and Cygwin

2003-08-18 Thread Elfyn McBratney
GDN_Cygwin wrote:
> 
> There seems to be a problem running HLDS (half-life dedicated server) for 
> windows and Cygwin and possible other similar apps.
> 
> The setup:
> 
> 1) Full install of HLDS, lets call it hlds1
> 2) Second complete install of HLDS in separate directory, call hlds2
> 
> I have no problem executing the hlds1 or hlds2 by themselves.  But when I 
> try to run both at the same time the 2nd one does not run at all.

Sorry, I do not know what HLDS is or what it does, apart from it being of the
server variety of applications. Is HLDS a free software project, an open source
project, a commercial thing?

> If I kill hlds1 and run hlds2 it starts right up.
> 
> If I run either hlds1 or hlds2 and try to even execute the other one from 
> file explorer I get an error "Unable to load engine, image is corrupt."
> 
> Although if I run hlds1 and hlds2 from file explorer they both run fine.

This doesn't really sound like a Cygwin issue. Is HLDS a Cygwin app or Mingw
app [read: native windows app] ?

> I have seen on the net claims that cygwin has:
> 
> "NOTE: There are issues with the cygwin.dll and separating simultaneous 
> user space. Use with caution!" 

There *are* issues when running multiple versions of the Cygwin dll
(cygwin1.dll), but not when running two Cygwin programs on a single
installation.

> They suggest using SSH.COM's SSH solution for this issue.

Who does? And if this entity suggests using ssh.com's solution for this "problem"
then perhaps you should goto ssh.com for help.

> Has anyone else run into this? 
> 
> I tried to even run firedaemon from cygwin but cannot do it without admin 
> so thats out.  I also tried to run psexec but it does not work under 
> cygwin either apprently.  This approach was to try and get cygwin to start 
> hlds as services by a non Admin user to get around the problem.
> 
> The main thing I am trying to do is have a normal (non Admin) user run 
> hlds.exe and have multiple copies of it run on the same machine.  
> 
> Any help would be greatly appreciated.

I'm sorry but, although you have provided a lot of information, it's not really
useful. You seem to have a problem with a *Windows* program, and I'm not too sure
how Cygwin fits into this at all.

Please take a gander at , if you think this
really is a Cygwin issue.

-- Elfyn

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

2003-08-18 Thread Elfyn McBratney
Sal wrote:
> No not the console version (which can also be invoked with "emacs-nox").

So, you want an X version (emacs-x11 / XEmacs) ? If so, you might want to ask
on the cygwin-xfree list, cf  or search both
the cygwin and cygwin-xfree archives (URL's above ^).

Would try and help, but I've now turned to vim. 

-- Elfyn

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



rebuilding mod_php4 4.2.0-2 problem

2003-08-18 Thread Edmond Gradin
Hi everybody,

The original binary package mod_php4 4.2.0-2 works
fine with postgresql support.
Now I want to rebuild mod_php in order to use the
"Calendar functions", with the option
"--enable-calendar".

I followed the indications from the file
"\usr\doc\Cygwin\php-4.2.0-2.README"

So I apply the cygwin patch:
$ cd /usr/src
$ patch -p0 <
php-4.2.0-2/CYGWIN-PATCHES/php-4.2.0-2.patch
patching file php-4.2.0-2/ext/openssl/openssl.c
patching file php-4.2.0-2/ext/pgsql/config.m4
patching file php-4.2.0-2/ext/xml/expat/expat.h

Then I run autoconf:
$ cd /usr/src/php-4.2.0-2
$ autoconf
configure.in:40: warning: do not use m4_patsubst: use
patsubst or m4_bpatsubst
configure.in:187: warning: AC_PROG_LEX invoked
multiple times
configure.in:1259: warning: do not use m4_regexp: use
regexp or m4_bregexp

Rem: I don't understand the above warnings.

Then when I run:
configure --with-apxs=/usr/sbin/apxs --without-mysql
--with-pgsql --enable-calendar

I got:
.
configure: error: Cannot find libpq.so. Please specify
correct PostgreSQL installation path

Actually "autoconf" program generates the "configure"
file with this code:
.
  if test -f "$i/$j/libpq.so"; then
.

But it should use this file ?
/usr/lib/libpq.a

Do I have to change "configure.in" file manually to
consider the file .../ext/pgsql/config.m4 ? How ?

I would like also to know what are the original
paramenters for configure used to build the original
binary package.

My OS is Windows 2000 profesional.
autoconf2.54-1
cygwin  1.3.22-1
postgresql  7.3.3-1
apache  1.3.24-5

Thanks.


__ 
Post your free ad now! http://personals.yahoo.ca

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

2003-08-18 Thread Joe Buehler
Sal wrote:

I just downloaded the latest version of cygwin, along with emacs 21.2 and
it's respective X11 libraries. It's  been a year or so since I've used emacs
and this is not the version I remember. This version looks more like
"Xemacs" than the GNU emacs I remember using. Namely, there were no cute
little (and totally redundant) "buttons" for 'cut', 'paste' etc... is there
any way to get rid of or "turn off" this button toolbar? Thanks
Put in your .emacs:

(tool-bar-mode 0)
(menu-bar-mode 0)
--
Joe Buehler


--
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: du.exe v3.5/4.1 or v3.16/4.0: where is the bug?

2003-08-18 Thread Gerrit P. Haase
Hallo Elisabetta,

Am Montag, 18. August 2003 um 17:16 schriebst du:

> Hello.
> My problem is about different versions of du.exe that work in a different
> way.

> Details:
> the argument is executing du against a file owned by a different user than
> the one running du.

> first case:
> du 
>

> du --version
> GNU fileutils 3.5
> GNU fileutils 4.1



> second case:
> du 
> : Permission denied

> du --version
> GNU fileutils 3.16
> GNU fileutils 4.0

> In other words, using version 3.16 or 4.0 du fails to execute due to
> restricted permissions on the file.

What kind of permission makes the 3.16/4.0 versions fail?


> What I wonder is why the behaviour changed through all those du.exe
> versions and finally what should be the right way of working.

Maybe an old 3.16 bug was 'reintroduced by accident' with 4.0?


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: emacs look

2003-08-18 Thread Sal
(tool-bar-mode 0) did the trick thanks. However, is it me, or does the menu
bar seem a little too fat?

"Joe Buehler" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Sal wrote:
>
> > I just downloaded the latest version of cygwin, along with emacs 21.2
and
> > it's respective X11 libraries. It's  been a year or so since I've used
emacs
> > and this is not the version I remember. This version looks more like
> > "Xemacs" than the GNU emacs I remember using. Namely, there were no cute
> > little (and totally redundant) "buttons" for 'cut', 'paste' etc... is
there
> > any way to get rid of or "turn off" this button toolbar? Thanks
>
> Put in your .emacs:
>
> (tool-bar-mode 0)
> (menu-bar-mode 0)
> --
> Joe Buehler
>
>
>




--
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: -x weirdness

2003-08-18 Thread Gerrit P. Haase
Hallo Benoit,

you wrote:
> When I installed cygwin, permissions on all the distribution looks like:

> ###
> $ ls -al /usr/bin/bash
> -rwx--+   1 Administ Domain U   531968 Mar 13 04:29 /usr/bin/bash*
> ###

> As you can see, even if I am:

> ###
> $ id 
> uid=17199(benoitr) gid=10513(Domain Users) groups=10513(Domain Users),11121(Exceed 
> Users)
> ###

> I can however run bash and every other programs. I suppose
> it is a Windoze weirdness. But, what is interesting is "How
> can I know if a program can be executed"? Often, I write
> scripts where the flow of control depend on the availability
> of a particular program.

> So check this out:

> ###
> $ [ -x /usr/bin/bash ]; echo $?
> 0
> $ /usr/bin/test -x /usr/bin/bash; echo $?
> 1
> $ perl -e 'print -x "/usr/bin/bash" ? 0 : 1 , "\n"'
> 1
> ###

> I guess only bash is correct...

> Looking at the source code of bash (in test.c), we discover
> what seems to be the "correct" way of guessing if a program
> can be executed:

> case 'x':   /* File is executable? */
>   return (EACCESS (arg, X_OK) == 0);

> where EACCESS is:

> #if defined (AFS) || defined (__CYGWIN__)
> #  define EACCESS(path, mode)   access(path, mode)
> #else
> #  define EACCESS(path, mode)   test_eaccess(path, mode)
> #endif /* AFS */


> I'd like to know if:

> Someone will notice and eventually correct the bug

> - or -

> I'm wrong, this is not a bug

> - or -

> Tell me a way to interprete these results.

> Do I have to mail this problem to a perl mailing list?

Nope. Seems to be a bug in your perl version.  Which version are you
using right now?  I consider the 5.8.0 series will be removed from the
mirrors soon, I was not very happy with it.  5.6.1-2 will stay and
eventually be updated to use cygwin-1.5.2 and probably also some day
in future there will be a 5.6.2 release, I'll look into this issue if
it is a bug in 5.6.x, and my 5.8.1-tobe snapshot with cygwin 1.5.2
does it the correct way: 

$ perl -e 'print -x "/usr/bin/bash" ? 0 : 1 , "\n"'
0
$ perl -e 'print -x "/usr/bin/bash.exe" ? 0 : 1 , "\n"'
0
$ perl -v

This is perl, v5.8.1 built for cygwin-multi-64int
(with 1 registered patch, see perl -V for more detail)
...


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: cron and network drives

2003-08-18 Thread Andrew DeFaria
Elfyn McBratney wrote:

I really wish that somebody would address this issue once and for 
all. I  often here such things as a "public mount" but to date nobody 
has  ventured a guess as to what a "public mount" would be and how it 
would  differ from a "non public mount". I think I have a situation 
here that clearly shows that something is odd whereas on one machine 
a mounted drive is available via cron and on another machine it is 
not. Both machines are setup nearly identically with the same user 
(in the same domain though geographically separated by thousands of 
miles). The only difference I see is that the versions of Cygwin and 
cron are different.
I think Larry is actually speaking shares here, not mounts.
Sorry for the incorrect terminology. Substitute "public share" for 
"public mount".

The reason people might not be explaining this is perhaps because it's 
just a case of common sense. Public meaning access-to-all, share, in 
this case, meaning a file share ...It really shouldn't need explaining.
AFAICT it is a public, access-to-all, share. Tools from hostb appears to 
be the same style of share as Tools from hosta.

in question is the same, userc. Now on hosta the T drive is mounted from
//hosta/share. On hostb the T drive is mounted from //hostb/share (The
share is replicated on both machines and has bascially the same stuff -
Tools. This is done because of the thousands of miles of seperation
between the two machines).
A cronjob is setup for userc on both hosta and hostb doing merely:

* * * * * net use > /tmp/netuse

On hosta it shows the T drive is OK while on hostb it shows the T drive
is unavailable.
hosta and hostb are both Windows 2000 servers. hosta is running Cygwin
1.3.20, cron 3.0.1-7. hostb is running Cygwin 1.3.22, cron 3.0.1-10.
The situation is this: There are two machines: hosta and hostb. The user

Double check the following

1) Your /etc/passwd and /etc/group are fully up-to-date (for domain & 
local access)
They are up to date, WRT to userc.

2) The cron service is running as the same user
Cron is installed identically - running as SYSTEM.

It might also be a good idea to cut Cygwin out of the equastion, and 
make sure you're able to do all of this from within Windows (trying 
your `net use' from a remote-telnet session would be a good place to 
start).
I assure you the share is indeed in use everyday by everyone at the site.

My understanding of accessing mount points (shares that have been 
mounted to a drive letter) is that if you telnet or login (or 
switchuser) in such a way as to have a passwordless login then mount 
points are marked as unavailable. Further I understand that cron runs as 
SYSTEM and switches user to the owner of the crontab. Thus a 
passwordless login has occurred therefore mount points are unavailable. 
Yet on hosta it works but on hostb it fails.

There's also a trick you can do with `at' that might help. Type:

at /interactive HH:MM cmd

at the (Windows) command line. At (no pun intended) HH:MM a 
LocalSystem owned
command prompt should pop-up, where you can try out `net use'. If it 
doesn't
work (`net use'), it's a problem with your Windows configuration.
But I thought, and perhaps I'm wrong, that is it not SYSTEM that I need 
worry about rather whether or not userc has access to the mounted drive 
(OK) or not (Unavaliable).

I've tried the at command to no avail. No window is popped up. Yes I 
included /interactive. Problem is perhaps that hostb, the machine where 
the problem is, is in China and I'm accessing it via Remote Desktop. A 
cmd process runs, as SYSTEM, but there is no window. Apparently 
/interactive and Remote Desktop do not like each other! :-(

that explaination is "because the share on hosta is public and on hostb
it is not" then please let me know what a "public mount" is and how can
I make the mount on hostb public.
Can somebody explain why this works on hosta and not on hostb? And if

I wouldn't even want to venture a guess. If you haven't already supplied
cygcheck output from both machines, that would make a good data point.
Attached.

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Aug 18 14:05:59 2003

Windows 2000 Server Ver 5.0 Build 2195 Service Pack 4

Path:   .
\\sonscentral\users\ccadmin\bin
E:\Views\official\Tools\adm\bin
E:\Views\official\Tools\bin
\\sons-clearcase\Tools\Perl\bin
C:\Cygwin\bin
C:\Cygwin\bin
C:\Cygwin\usr\local\bin
C:\Cygwin\usr\sbin
c:\WINNT\System32
c:\WINNT
c:\WINNT\System32\Wbem
c:\Program Files\Rational\Common
c:\Program Files\Rational\Rational Test
c:\Program Files\Rational\ClearQuest
c:\Program Files\Rational\ClearCase\bin

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

CYGWIN = `ntsec'
HOME = `\\sonscentral\users\ccadmin'
MAKE_MODE = `unix'
PWD = `/us/ccadmin'
USER = `ccadmin'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
AVENGINE = `C:\PROGRA~1\

opening attachments from emacs/gnus under cygwin

2003-08-18 Thread Jason Dufair
In the event this helps anyone...

I'm running GNU Emacs 21.2.1 and gnus 5.10.1 under Cygwin 1.3.22.  I got
tired of having to save attachments and then open a dired buffer and
then launch via shellex.  So I created a .mailcap and put the following
in there:

application/msword; cmd /c winword.exe "`cygpath -aw "%s"`"

Lo and behold, MS Word attachments now launch.  Lather, rinse, and
repeat for other MIME types.

-- 
Jason Dufair - [EMAIL PROTECTED]
http://www.dufair.org/
"Give a man fire and he will be warm for a day.
Set a man on fire and he will be warm for the rest of his life."
-- Terry Pratchett


--
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: -x weirdness

2003-08-18 Thread Pierre A. Humblet
On Mon, Aug 18, 2003 at 11:28:42PM +0200, Gerrit P. Haase wrote:
> 
> Nope. Seems to be a bug in your perl version.  Which version are you
> using right now?  I consider the 5.8.0 series will be removed from the
> mirrors soon, I was not very happy with it.  5.6.1-2 will stay and
> eventually be updated to use cygwin-1.5.2 and probably also some day
> in future there will be a 5.6.2 release, I'll look into this issue if
> it is a bug in 5.6.x, and my 5.8.1-tobe snapshot with cygwin 1.5.2
> does it the correct way: 
> 
> $ perl -e 'print -x "/usr/bin/bash" ? 0 : 1 , "\n"'
> 0
> $ perl -e 'print -x "/usr/bin/bash.exe" ? 0 : 1 , "\n"'
> 0
> $ perl -v
> 
> This is perl, v5.8.1 built for cygwin-multi-64int
> (with 1 registered patch, see perl -V for more detail)
> ...
Gerritt,

FWIW, your test above is not conclusive (which doesn't mean
that your 5.8.1-tobe is incorrect).
You need to setup a situation as described by Benoit
where ls -l appears to show that the file isn't executable
although it really is. Using the access function is the way
to go.

This is what I observe (with perl from setup)

$ perl -v
This is perl, v5.8.0 built for cygwin-multi-64int
$ perl -e 'print -x "/usr/bin/bash" ? 0 : 1 , "\n"'
1
$ [ -x /usr/bin/bash ]; echo $?
0

Pierre



--
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: -x weirdness

2003-08-18 Thread Benoit Rochefort
But you tested on *YOUR* /usr/bin/bash, what is your id and
the permissions setted on your /usr/bin/bash program? Read
carefully the output I sent (especially file
mode/owner/group). May be you can make a similar test on
another program that you set the permissions/owner/group as
I have?

As pointed out, that doesn't explain the matter with
/usr/bin/test which is also reporting /usr/bin/bash as
beeing non-executable.

To help you help me:

###
$ perl -v

This is perl, v5.8.0 built for cygwin-multi-64int

Copyright 1987-2002, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
###

This is the latest perl I got from "setup" on cygwin.com.
ftp%3a%2f%2farchive.progeny.com%2fcygwin/release/perl/perl-5.8.0-3.tar.bz2


Gerrit P. Haase wrote:
 > Hallo Benoit,
 > 
 > you wrote:
 > > When I installed cygwin, permissions on all the distribution looks like:
 > 
 > > ###
 > > $ ls -al /usr/bin/bash
 > > -rwx--+   1 Administ Domain U   531968 Mar 13 04:29 /usr/bin/bash*
 > > ###
 > 
 > > As you can see, even if I am:
 > 
 > > ###
 > > $ id 
 > > uid=17199(benoitr) gid=10513(Domain Users) groups=10513(Domain 
 > > Users),11121(Exceed Users)
 > > ###
 > 
 > > I can however run bash and every other programs. I suppose
 > > it is a Windoze weirdness. But, what is interesting is "How
 > > can I know if a program can be executed"? Often, I write
 > > scripts where the flow of control depend on the availability
 > > of a particular program.
 > 
 > > So check this out:
 > 
 > > ###
 > > $ [ -x /usr/bin/bash ]; echo $?
 > > 0
 > > $ /usr/bin/test -x /usr/bin/bash; echo $?
 > > 1
 > > $ perl -e 'print -x "/usr/bin/bash" ? 0 : 1 , "\n"'
 > > 1
 > > ###
 > 
 > > I guess only bash is correct...
 > 
 > > Looking at the source code of bash (in test.c), we discover
 > > what seems to be the "correct" way of guessing if a program
 > > can be executed:
 > 
 > > case 'x':   /* File is executable? */
 > >   return (EACCESS (arg, X_OK) == 0);
 > 
 > > where EACCESS is:
 > 
 > > #if defined (AFS) || defined (__CYGWIN__)
 > > #  define EACCESS(path, mode)   access(path, mode)
 > > #else
 > > #  define EACCESS(path, mode)   test_eaccess(path, mode)
 > > #endif /* AFS */
 > 
 > 
 > > I'd like to know if:
 > 
 > > Someone will notice and eventually correct the bug
 > 
 > > - or -
 > 
 > > I'm wrong, this is not a bug
 > 
 > > - or -
 > 
 > > Tell me a way to interprete these results.
 > 
 > > Do I have to mail this problem to a perl mailing list?
 > 
 > Nope. Seems to be a bug in your perl version.  Which version are you
 > using right now?  I consider the 5.8.0 series will be removed from the
 > mirrors soon, I was not very happy with it.  5.6.1-2 will stay and
 > eventually be updated to use cygwin-1.5.2 and probably also some day
 > in future there will be a 5.6.2 release, I'll look into this issue if
 > it is a bug in 5.6.x, and my 5.8.1-tobe snapshot with cygwin 1.5.2
 > does it the correct way: 
 > 
 > $ perl -e 'print -x "/usr/bin/bash" ? 0 : 1 , "\n"'
 > 0
 > $ perl -e 'print -x "/usr/bin/bash.exe" ? 0 : 1 , "\n"'
 > 0
 > $ perl -v
 > 
 > This is perl, v5.8.1 built for cygwin-multi-64int
 > (with 1 registered patch, see perl -V for more detail)
 > ...
 > 
 > 
 > Gerrit
 > -- 
 > =^..^=

-- 
   *º¤., ¸¸,.¤º*¨¨¨*¤  Benoit Rochefort  *º¤., ¸¸,.¤º*¨¨¨*¤


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



finding out how much memory is available with malloc, gcc, cygwin

2003-08-18 Thread Jim Holder
A program similar to the one listed below works for me on Linux but not under
Cygwin.  The idea is to find out how memory I can allocate on the machine.  The
Cygwin version keeps going (past 700MB), reporting that it has allocated more
memory than the machine has.  What am I doing wrong?  Thanks.

#include 
#include 
int main(void)
{
char *p;
int loop = 1;
long allocated = 0L;
const long PIECE = 1000L;
const long TENMB = 1000L;
long nextTenMB = TENMB;

while(loop)
{
p = (char*)malloc(PIECE);
if(p == NULL)
{
printf("p == NULL\n");
loop = 0;
}
if(p == (char*)0)
{
printf("p == (char*)0\n");
loop = 0;
}
if(loop == 0)
break;
allocated += PIECE;
if(allocated >= nextTenMB)
{
printf("%ld\n", allocated);
nextTenMB += TENMB;
}
}
printf("final:  %ld\n", allocated);
return 0;
}

Some environment particulars:

-  cygwin 1.3.19-1
-  gcc 3.2-3
-  windows 2000, version 5.0, service pack 4

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: -x weirdness

2003-08-18 Thread Pierre A. Humblet
On Mon, Aug 18, 2003 at 05:50:58PM -0400, Benoit Rochefort wrote:
> 
> As pointed out, that doesn't explain the matter with
> /usr/bin/test which is also reporting /usr/bin/bash as
> beeing non-executable.
>
That's because /bin/test is still using stat() instead of access().
Care to fix it?

Pierre

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



mod_auth_mysql

2003-08-18 Thread Bill McCormick
Hey all,

I would like to build, CYGwin style, the latest mod_auth_mysql (ver 2.20)
for Apache. The Apache directives have been updated in this version along
with a number of encryption bug fixes. I've got the source from MySQL but
there doesn't seem to be any info for CYGwin build. The CYGwin setup source
download only provides a .c file. Can I simply implement the same changes
from that to the new source? How about any special configure options? Could
someone point me in the right direction with this?

Thanks,

Bill
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003


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



gdb and STATUS_ACCESS_VIOLATION

2003-08-18 Thread Jim Holder
I can neither run gdb without any parameters --

gdb

-- nor with a compiled program name (in the current directory) as an argument
--

gdb a.exe

Though I can run --

gdb --help

With "gdb" or "gdb a.exe" I get a segmentation fault.  The core dump reveals
"Exception:  STATUS_ACCESS_VIOLATION at..."  I added my user ID to /etc/passwd,
but that didn't help.

I am running cygwin 1.3.19-1, gdb 20030303-1, windows 2000 version 5.0 sp 4.

What do I need?

Thanks.


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: gdb and STATUS_ACCESS_VIOLATION

2003-08-18 Thread Elfyn McBratney
Jim Holder wrote:
> I can neither run gdb without any parameters --
> 
> gdb
> 
> -- nor with a compiled program name (in the current directory) as an argument
> --
> 
> gdb a.exe
> 
> Though I can run --
> 
> gdb --help
> 
> With "gdb" or "gdb a.exe" I get a segmentation fault.  The core dump reveals
> "Exception:  STATUS_ACCESS_VIOLATION at..."  I added my user ID to /etc/passwd,
> but that didn't help.

Have you tried re-installing gdb to see if that fixes your problem?

> I am running cygwin 1.3.19-1, gdb 20030303-1, windows 2000 version 5.0 sp 4.
> 
> What do I need?

That should be sufficient, though, an upgrade wouldn't go a miss. I'd try upgrading
Cygwin and/or GDB, and see it if helps.

-- Elfyn

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

2003-08-18 Thread Bill McCormick
I launched missiles before I was really ready here.

After looking at the 1.11 source, I really don't find any obvious changes
for cygwin.

Actually, I'm not even exactly sure how Apache mod's work.

LoadModule mysql_auth_module  lib/apache/mod_auth_mysql.dll

This dll is built from the source? i.e. when I configure;make;make install
I'll get a dll? (assuming I use the correct configure options - which would
be ... what)?

AddModule mod_auth_mysql.c

I wouldn't imagine that I can just copy the new .c file to the right place
and be happy. Or can that be all I need to do?

Thanks


>
> I would like to build, CYGwin style, the latest mod_auth_mysql (ver 2.20)
> for Apache. The Apache directives have been updated in this version along
> with a number of encryption bug fixes. I've got the source from MySQL but
> there doesn't seem to be any info for CYGwin build. The CYGwin
> setup source
> download only provides a .c file. Can I simply implement the same changes
> from that to the new source? How about any special configure
> options? Could
> someone point me in the right direction with this?
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003


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



auto tab complete

2003-08-18 Thread jwaterbrook
I can't seem to get any tab completion during sftp.  Is there anything I 
have to do special to get it going?

Thanks,
Johnny
--
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: -x weirdness

2003-08-18 Thread Gerrit P. Haase
Hallo Benoit,

Am Montag, 18. August 2003 um 23:50 schriebst du:

> But you tested on *YOUR* /usr/bin/bash, what is your id and
> the permissions setted on your /usr/bin/bash program? Read
> carefully the output I sent (especially file
> mode/owner/group). May be you can make a similar test on
> another program that you set the permissions/owner/group as
> I have?

I see, sorry.

> As pointed out, that doesn't explain the matter with
> /usr/bin/test which is also reporting /usr/bin/bash as
> beeing non-executable.

>>> $ ls -al /usr/bin/bash
>>> -rwx--+   1 Administ Domain U   531968 Mar 13 04:29 /usr/bin/bash*

>>> As you can see, even if I am:
>>> $ id
>>> uid=17199(benoitr) gid=10513(Domain Users) groups=10513(Domain Users),11121(Exceed 
>>> Users)

[EMAIL PROTECTED] /tmp/perl/perl-5.8.1
$ ls -al .patch
-rwx--1 #gerrit  Domänen-Admins6 Aug 15 18:51 .patch*

$ [ -x .patch ]; echo $?
0

$ /usr/bin/test -x .patch; echo $?
0

$ perl -e 'print -x ".patch" ? 0 : 1 , "\n"'
0

Hmm, the file is mine, I'm the domain-admin, I get '0', your file is
owned by Administrastor and domain user is the group, you're not
Administrator so you get 1 from this perl snippet, what is wrong about
this?

Well, you said you still can execute bash.exe, test reports it as
executable.  Since Windows ACLs are very fine grained you may have the
permission to execute it, regardless what Cygwin ls displays , there
is just a subset of the windows ACLs displayed, e.g. a file may be
accessed by several groups and you may set the ACL different for each
group.

What are the bash.exe permissions beyond what ls is displaying?  Which
Windows version do you use?  What says getfacl about your bash.exe?


If I login as another user I get '1' and it is consistently:

[EMAIL PROTECTED] /tmp/perl/perl-5.8.1
$ id
uid=1008(ismene2) gid=513(Domänen-Benutzer) 
groups=513(Domänen-Benutzer),545(Benutzer),10513(Domänen-Benutzer)

$ ls -al .patch
-rwx--1 #gerrit  Domänen-Admins6 Aug 15 18:51 .patch

$ [ -x .patch ]; echo $?
1

$ /usr/bin/test -x .patch; echo $?
1

$ perl -e 'print -x ".patch" ? 0 : 1 , "\n"'
1

If I try to execute as the other user I get:
$ ./.patch
-bash: ./.patch: Permission denied

$ getfacl .patch
# file: .patch
# owner: #gerrit
# group: Domänen-Admins
user::rwx
group::---
mask:rwx
other:---

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/



php.exe for cygwin

2003-08-18 Thread Aurangzeb M. Agha
I've got mod_php/apache-php installed and running on my cygwin dist, but
one of the things I want to do is run php scripts from the command line.

Is there a way for me to obtain php in the bin dir so I can execute it
from the command line like I call Perl?  I've looked in the archives, but
not found any such info.

Thanks in Advance,
Zeb

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



vi startup problem

2003-08-18 Thread Aurangzeb M. Agha
When I try to start up vi, I get the following:

Terminal entry not found in terminfo
'cygwin' not known. Available builtin terminals are:
builtin_ansi
builtin_xterm
builtin_iris-ansi
builtin_dumb
defaulting to 'ansi'

What's causing this, and how do I resolve it?

Thx,
Zeb

--
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: -x weirdness

2003-08-18 Thread Christopher Faylor
On Mon, Aug 18, 2003 at 06:14:26PM -0400, Pierre A. Humblet wrote:
>On Mon, Aug 18, 2003 at 05:50:58PM -0400, Benoit Rochefort wrote:
>> 
>> As pointed out, that doesn't explain the matter with
>> /usr/bin/test which is also reporting /usr/bin/bash as
>> beeing non-executable.
>>
>That's because /bin/test is still using stat() instead of access().
>Care to fix it?

FWIW, the test version of sh-utils (the package that contains /bin/test)
for cygwin 1.5.2 should now be using access(), not stat.

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: vi startup problem

2003-08-18 Thread Larry Hall
Aurangzeb M. Agha wrote:
When I try to start up vi, I get the following:

Terminal entry not found in terminfo
'cygwin' not known. Available builtin terminals are:
builtin_ansi
builtin_xterm
builtin_iris-ansi
builtin_dumb
defaulting to 'ansi'
What's causing this, and how do I resolve it?
See .



--
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: Setup strangeness

2003-08-18 Thread Sal
I had that same problem. Turning the printer off would give me the problem
but so would disabling spoolsv.exe even when I had no printer.

"Robert McNulty Junior" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> That was is it. My printer was turned off. Turned back on, went to the
> Cygwin icon, started Cygwin, with printer on, and it started just fine
> (Cygwin).
> Thanks
> Robert
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
> Of Igor Pechtchanski
> Sent: Monday, August 18, 2003 8:11 AM
> To: Robert McNulty Junior
> Cc: [EMAIL PROTECTED]
> Subject: Re: Setup strangeness
>
>
> On Sun, 17 Aug 2003, Robert McNulty Junior wrote:
>
> > I'm getting the following after setting up the installation.
> > Every file is there.
> >
> > C:\cygwin>chdir C:\cygwin\bin
> >
> > C:\cygwin\bin>bash --login -i
> > Error (2): The system cannot find the file specified.
> >
> >
> > [EMAIL PROTECTED] ~
> > $
>
> Take a look at .
> HTH,
> Igor
> --
> http://cs.nyu.edu/~pechtcha/
>   |\  _,,,---,,_ [EMAIL PROTECTED]
> ZZZzz /,`.-'`'-.  ;-;;,_ [EMAIL PROTECTED]
>  |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski, Ph.D.
> '---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
>
> "I have since come to realize that being between your mentor and his route
> to the bathroom is a major career booster."  -- Patrick Naughton
>
>
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
>
>




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



Security Issues found by Microsoft's Application Verifier

2003-08-18 Thread Brant Langer Gurganus
Microsoft's Application Verifier (free) software identified this issue 
in just about every Cygwin executable:
The application assigned an object (file, registry key, etc.) an 
excessively permissive security descriptor.  Depending on the 
permissions granted (detailed in the log entry), an unauthorized user 
could perform illegitimate actions on the object (for example, delete 
it).  This could disrupt application operation in different ways, 
depending on the permissions granted and what they mean for the object 
in question.

called from cygpath.exe, make.exe, and just about every other binary 
executable
(cygwin1.dll:00056726) Object created/set by CreateFileMapping: 
cygpid.7BC has a NULL DACL - grants full access to all users

Please send replies directly to me also as I am not a list subscriber.

--
Brant Langer Gurganus
Take control, use Firebird.
http://www.mozilla.org/products/firebird


--
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: vi startup problem

2003-08-18 Thread Aurangzeb M. Agha
My apologies for not posting properly.

Using Cygwin 1.3.22 on W2K.

I've looked at the archives (extensively) and not found a solution to
this.

One thing I _did_ do is extapolate from other postings that the problem
might be non-compatible versions cygwin with vi.  To remedy this, I re-ran
setup.exe and got all the "curr" packages.  This seemed to do the trick.

Was my assessment correct?

Rgs,
Zeb

On Mon, 18 Aug 2003, Larry Hall wrote:

:Aurangzeb M. Agha wrote:
:> When I try to start up vi, I get the following:
:>
:> Terminal entry not found in terminfo
:> 'cygwin' not known. Available builtin terminals are:
:> builtin_ansi
:> builtin_xterm
:> builtin_iris-ansi
:> builtin_dumb
:> defaulting to 'ansi'
:>
:> What's causing this, and how do I resolve it?
:
:See .


Cygwin Win95/NT Configuration Diagnostics

Current System Time: Mon Aug 18 22:25:27 2003



Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4



Path:   D:\cygwin\usr\local\bin

D:\cygwin\bin

D:\cygwin\bin

d:\javalib\lib

d:\javalib\Jikes\bin

d:\jdk1.4\bin

d:\Misc\WinCvs

d:\Perl\bin\

D:\cygwin\bin

D:\cygwin\usr\X11R6\bin

c:\WINNT\system32

c:\WINNT

c:\WINNT\System32\Wbem

c:\PROGRA~1\ULTRAE~1

d:\Misc\bugseeker2\bin

d:\javalib\j2sdkee1.2.1\bin

d:\Misc\SSH Secure Shell

d:\javalib\Jakarta\jakarta-ant\bin

c:\Program Files\Executive Software\DiskeeperServer\

c:\TEMP\downloads\jreversepro-1.4.1-bin\jreversepro-1.4.1\bin

d:\javalib\jrevpro\bin

d:\vslick\win



D:\cygwin\bin\id.exe output (nontsec)

UID: 1000(aagha)  GID: 513(None)

513(None)



D:\cygwin\bin\id.exe output (ntsec)

UID: 1000(aagha) GID: 513(None)

513(None)544(Administrators)  

545(Users)



SysDir: C:\WINNT\system32

WinDir: C:\WINNT



HOME = `D:\cygwin\home\aagha'

LIBRARY_PATH = `//d/cygwin/lib'

MAKE_MODE = `unix'

PWD = `/home/aagha'

USER = `aagha'



ALLUSERSPROFILE = `C:\Documents and Settings\All Users'

ANT_HOME = `D:\javalib\Jakarta\jakarta-ant'

APPDATA = `C:\Documents and Settings\aagha\Application Data'

APP_ROOT = `D:\dev\dev_Avedo\app'

CLASSPATH = 
`.;D:\dev\classes;D:\javalib\lib\pgjdbc2.jar;D:\dev\dev_G101\App\build;D:\dev\dev_G101\App\lib'

CLASSPATH_DEV_G101 = `D:\dev\dev_G101\App\build;D:\dev\dev_G101\App\lib'

CLASSPATH_MISC = `D:\dev\classes;D:\javalib\lib\pgjdbc2.jar;'

COMMONPROGRAMFILES = `C:\Program Files\Common Files'

COMPUTERNAME = `SUNTZU'

COMSPEC = `C:\WINNT\system32\cmd.exe'

CVSROOT = `:pserver:[EMAIL PROTECTED]:/usr/local/cvsroot'

CVS_RSH = `ssh'

DISKEEPERICON = `C:\Program Files\Executive Software\DiskeeperServer\'

DISPLAY = `127.0.0.1:0.0'

HOMEDRIVE = `C:'

HOMEPATH = `\'

J2EE_HOME = `D:\j2sdkee1.3.1'

JAVA_HOME = `D:\j2sdk1.4.1'

JREVERSE_HOME = `D:\javalib\jrevpro'

LOGONSERVER = `\\SUNTZU'

MANPATH = `:/usr/ssl/man'

NUMBER_OF_PROCESSORS = `1'

OLDPWD = `/usr/bin'

OS2LIBPATH = `C:\WINNT\system32\os2\dll;'

OS = `Windows_NT'

PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'

PROCESSOR_ARCHITECTURE = `x86'

PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 3, GenuineIntel'

PROCESSOR_LEVEL = `6'

PROCESSOR_REVISION = `0803'

PROGRAMFILES = `C:\Program Files'

PROMPT = `$P$G'

PS1 = `\[\033]0;\w\007

[EMAIL PROTECTED] \[\033[33m\w\033[0m\]

$ '

RESIN_HOME = `D:\javalib\resin'

SHLVL = `1'

SYSTEMDRIVE = `C:'

SYSTEMROOT = `C:\WINNT'

TEMP = `c:\tmp'

TERM = `cygwin'

TMP = `c:\tmp'

TOMCAT_HOME = `d:\javalib\Jakarta\jakarta-tomcat'

UNISON = `D:\cygwin\home\aagha\.unison'

USERDOMAIN = `SUNTZU'

USERNAME = `aagha'

USERPROFILE = `C:\Documents and Settings\aagha'

VSLICKCONFIG = `d:\vslick\config'

WINDIR = `C:\WINNT'

_ = `/usr/bin/cygcheck'



HKEY_CURRENT_USER\Software\Cygnus Solutions

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2

  (default) = `/cygdrive'

  cygdrive flags = 0x0020

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/

  (default) = `D:\cygwin'

  flags = 0x

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin

  (default) = `D:\cygwin/bin'

  flags = 0x

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib

  (default) = `D:\cygwin/lib'

  flags = 0x

HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options

HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup

HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0

HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts

HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00

HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01

HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02

HKEY_CURRENT_USER\Software\Cygnus Solutions

RE: Security Issues found by Microsoft's Application Verifier

2003-08-18 Thread Bill McCormick
Death to sales guys

> Microsoft's Application Verifier (free) software identified this issue 
> in just about every Cygwin executable:
> The application assigned an object (file, registry key, etc.) an 
> excessively permissive security descriptor.  Depending on the 
> permissions granted (detailed in the log entry), an unauthorized user 
> could perform illegitimate actions on the object (for example, delete 
> it).  This could disrupt application operation in different ways, 
> depending on the permissions granted and what they mean for the object 
> in question.
> 
> called from cygpath.exe, make.exe, and just about every other binary 
> executable
> (cygwin1.dll:00056726) Object created/set by CreateFileMapping: 
> cygpid.7BC has a NULL DACL - grants full access to all users
> 
> Please send replies directly to me also as I am not a list subscriber.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003
 


--
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: vi startup problem

2003-08-18 Thread Igor Pechtchanski
Well, not quite.  The Cygwin version of vim is, of course, compatible with
Cygwin.  You could have been missing one of the packages that vim require
(in this instance, looks like it was terminfo).  However, since your
cygcheck output shows all updated packages, it's not very informative in
diagnosing your original problem, so I guess we'll never know.
Igor

On Mon, 18 Aug 2003, Aurangzeb M. Agha wrote:

> My apologies for not posting properly.
>
> Using Cygwin 1.3.22 on W2K.
>
> I've looked at the archives (extensively) and not found a solution to
> this.
>
> One thing I _did_ do is extapolate from other postings that the problem
> might be non-compatible versions cygwin with vi.  To remedy this, I re-ran
> setup.exe and got all the "curr" packages.  This seemed to do the trick.
>
> Was my assessment correct?
>
> Rgs,
> Zeb
>
> On Mon, 18 Aug 2003, Larry Hall wrote:
>
> :Aurangzeb M. Agha wrote:
> :> When I try to start up vi, I get the following:
> :>
> :> Terminal entry not found in terminfo
> :> 'cygwin' not known. Available builtin terminals are:
> :> builtin_ansi
> :> builtin_xterm
> :> builtin_iris-ansi
> :> builtin_dumb
> :> defaulting to 'ansi'
> :>
> :> What's causing this, and how do I resolve it?
> :
> :See .
>

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

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


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



Re: emacs look

2003-08-18 Thread Jee Chung
I believe you are referring to the "tool bar".  Try including the following in your .emacs file:

;; Disable the annoying tool-bar, it's a toggle switch
(tool-bar-mode)
JC

Sal wrote:

I just downloaded the latest version of cygwin, along with emacs 21.2 and
it's respective X11 libraries. It's  been a year or so since I've used emacs
and this is not the version I remember. This version looks more like
"Xemacs" than the GNU emacs I remember using. Namely, there were no cute
little (and totally redundant) "buttons" for 'cut', 'paste' etc... is there
any way to get rid of or "turn off" this button toolbar? Thanks
-Sal






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


Be my Investor Trustee

2003-08-18 Thread Mrs Jumai Abdul Azad.
From: Mrs. Jumai A. Azad
E-mail: [EMAIL PROTECTED]

Dear Sir,

I wish to write you pleading with you to be my Investor trustee over
$12.5million.My late Husband was a rich oil Contractor in South Africa, But before his 
death in July 29th 1999. He deposited the sum of ($12,500,000.00) USD in a safe 
keeping company in Europe through Debt
Reconciliation Committee(DRC).

The money which he made from oil contract and he left an instruction with the (DRC) to 
release the money to me his wife and his son Ali who at that time was studying, that 
an Investor should accompany us before the $12.5Million will be released to us for 
proper investment, and also for the welfare of the children which he left behind for 
me.

I plead with you to accept to help me and act as my investor trustee to manage the 
$12.5Million for me. We can both arrange on how to invest
this money into your company. We have agreed to give you 20% of the $12.5Million for 
your own assistance.

All the relevant documents shall be forwarded to you upon your indications to assist 
me in this project.

May the Almighty God bless you, if you will of trust and faithful to assist me.Please 
contact me on the above e-mail address or my Son Ali on his e-mail address ([EMAIL 
PROTECTED] )for more Informations.

Looking forward to hearing from you.

Sincerely Yours,

Mrs Jumai Abdul Azad.




--
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: Be my Investor Trustee

2003-08-18 Thread Bill McCormick
> I wish to write you pleading with you to be my Investor trustee over
> $12.5million.My late Husband was a rich oil Contractor in South 
> Africa, But before his death in July 29th 1999. He deposited the 
> sum of ($12,500,000.00) USD in a safe keeping company in Europe 
> through Debt
> Reconciliation Committee(DRC).

Oh how I do like acronyms ... how about this one: FOAD!!!


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003


--
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: Driver help

2003-08-18 Thread Kiran Bacche

Thanks Marcel Telka,
I am now able to successfully do CreateFile(...)..with my loaded driver.

Cheers
  Kiran

-Original Message-
From: Marcel Telka [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 18, 2003 6:19 PM
To: [EMAIL PROTECTED]
Cc: Kiran Bacche
Subject: Re: Driver help


Hi Kiran.

On 2003.08.18 07:43, Kiran Bacche wrote:
> The ioperm package was very helpful. Thanks for that.
> U was now able to compile a sample driver into a .sys file.
> I used the SCOpenManager and CreateProcess to get it loaded.

Try use CreateService() to install the driver and StartService() to 
start it. And please see admin directory in ioperm sources.

> 
> So in effeect, when a write an application program
> ││hPort = CreateFile(
> │   "\\DosDevices\\mydevice",
> │   0,
> │   0,
> │   NULL,
> │   0,
> │   0,
> │   NULL);
> │
> │if (hPort == (HANDLE)-1)
> │{
> │printf("Open failed :%lx\n",hCommPort);
> │return -1;
> │}
> 
> I thought it would succeed. But CreateFile failed!
> 
> What may be the reason? A snippet of the CYGWIN code for win driver is
> as follows:
> 
>  RtlInitUnicodeString( &DeviceName, L"\\Device\\mydevice" );
>  RtlInitUnicodeString( &SymbolicLinkName, L"\\DosDevices\
> \mydevice" );
>  IoCreateDevice( DriverObject, 0, &DeviceName, ...
>  IoCreateSymbolicLink( &SymbolicLinkName, &DeviceName...


Regards.

-- 
+---+
| Marcel Telka   e-mail:   [EMAIL PROTECTED]  |
|homepage: http://telka.sk/ |
|jabber:   [EMAIL PROTECTED] |
+---+

**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

--
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: finding out how much memory is available with malloc, gcc, cygwin

2003-08-18 Thread Kiran Bacche

Hi Jim
   Well in almost all current Oses, each application is allocated a
virtual memory of 2^32 Bytes. This block is divided into many segments
like data, text, bss, stack and heap. 
The max. size of heap depends varies from one application to another as
the other segments vary from one application to another. And also it is
OS dependent. Some OS may restrict it's heap from  growing beyond some
MBs, and some may allow applications to readjust the heap size. (thru
calls similar to unix brk() call).

  OK that's some theory. Coming to your applciation, if the intent is to
find out the "physical memory" present, I think some kernel level
programming is required. Please refer "Linux Device Drivers" By Rubini
of the O'Reilly Team.

But if the intent is to really find out how many bytes can be malloced
by an application, I think the answer will be different on different
Oses.

Hope this helps.

Cheers
  Kiran



-Original Message-
From: Jim Holder [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 19, 2003 3:25 AM
To: [EMAIL PROTECTED]
Subject: finding out how much memory is available with malloc, gcc,
cygwin


A program similar to the one listed below works for me on Linux but not
under
Cygwin.  The idea is to find out how memory I can allocate on the
machine.  The
Cygwin version keeps going (past 700MB), reporting that it has allocated
more
memory than the machine has.  What am I doing wrong?  Thanks.

#include 
#include 
int main(void)
{
char *p;
int loop = 1;
long allocated = 0L;
const long PIECE = 1000L;
const long TENMB = 1000L;
long nextTenMB = TENMB;

while(loop)
{
p = (char*)malloc(PIECE);
if(p == NULL)
{
printf("p == NULL\n");
loop = 0;
}
if(p == (char*)0)
{
printf("p == (char*)0\n");
loop = 0;
}
if(loop == 0)
break;
allocated += PIECE;
if(allocated >= nextTenMB)
{
printf("%ld\n", allocated);
nextTenMB += TENMB;
}
}
printf("final:  %ld\n", allocated);
return 0;
}

Some environment particulars:

-  cygwin 1.3.19-1
-  gcc 3.2-3
-  windows 2000, version 5.0, service pack 4

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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

2003-08-18 Thread Bill McCormick
So I went ahead and tried to rebuild Apache (the build on mod_auth_mysql)
said that I needed to. I'm stuck here:

modules/auth_mysql/libauth_mysql.a(mod_auth_mysql.o.b)(.text+0xc4b):mod_auth
_mysql.c: undefined reference to `_mysql_connect'
/usr/local/mysql/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x8b):my_co
mpress.c: undefined reference to `_compress'
/usr/local/mysql/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x16d):my_c
ompress.c: undefined reference to `_compress'
/usr/local/mysql/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x210):my_c
ompress.c: undefined reference to `_uncompress'
collect2: ld returned 1 exit status
make: *** [target_static] Error 1

By the way, I'm running a Win32 MySQL server (on the sme box) and trying to
link against the standard unix mysql binaries.

Ideas?

Thanks,


Bill

>
> I launched missiles before I was really ready here.
>
> After looking at the 1.11 source, I really don't find any obvious changes
> for cygwin.
>
> Actually, I'm not even exactly sure how Apache mod's work.
>
>   LoadModule mysql_auth_module  lib/apache/mod_auth_mysql.dll
>
> This dll is built from the source? i.e. when I configure;make;make install
> I'll get a dll? (assuming I use the correct configure options -
> which would
> be ... what)?
>
>   AddModule mod_auth_mysql.c
>
> I wouldn't imagine that I can just copy the new .c file to the right place
> and be happy. Or can that be all I need to do?
>
> Thanks
>
>
> >
> > I would like to build, CYGwin style, the latest mod_auth_mysql
> (ver 2.20)
> > for Apache. The Apache directives have been updated in this
> version along
> > with a number of encryption bug fixes. I've got the source from
> MySQL but
> > there doesn't seem to be any info for CYGwin build. The CYGwin
> > setup source
> > download only provides a .c file. Can I simply implement the
> same changes
> > from that to the new source? How about any special configure
> > options? Could
> > someone point me in the right direction with this?
> >
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003
>
>
> --
> 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/
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003


--
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: HLDS and Cygwin

2003-08-18 Thread Jörg Schaible
Hi Russel,

> 1) Full install of HLDS, lets call it hlds1
> 2) Second complete install of HLDS in separate directory, call hlds2
> 
> I have no problem executing the hlds1 or hlds2 by themselves. 
>  But when I 
> try to run both at the same time the 2nd one does not run at all.

Guess, they both install a local cygwin1.dll. This won't work.
See archives.

OTOH I am asking myself, what kind of license this software is, since
it obviously is depending on Cygwin.

Regrads,
Jörg

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



How to add root user?

2003-08-18 Thread Jiang zhou
In cygwin windows, when I use su command, it shows:
su: user root does not exist.

How to add root user?


-- 
Best Regards
Jiangzhou




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