Re: compilig error: storage size of `st' isn't known
Hi Jari: Of course your code cannot be compiled. You should declare struct stat before you use it. The declaration of struct stat may be in one of these files. #include sys/types.h #include sys/stat.h #include unistd.h Good luck. Edward L. Fox 2004-10-06 From: [EMAIL PROTECTED] On Fri, 03 Sep 2004 10:29:45 +0300, Jari Aalto [EMAIL PROTECTED] wrote: I'm trying to compile Linux program that starts like this: int main(int argc, char **argv) { char **dirname = NULL; int i,j,n,p,q,dtotal,ftotal,colored = FALSE; struct stat64 st; But the compiler says: tree.c: In function `main': tree.c:204: error: storage size of `st' isn't known tree.c:204: warning: unused variable `st' What needs to be done in Cygwin to see struct stat ? Jari -- 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: How to prepend a directory to the PATH to accommodate CVSNT?
Just Do It! On Wed, 6 Oct 2004 11:18:31 -0600, Siegfried Heintze [EMAIL PROTECTED] wrote: I looked in c:\Cygwin\home\Administrator and could not find a .profile file using emacs. There was a .bash_profile file. Should I create a .profile file? Thanks, Siegfried -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, October 05, 2004 5:38 PM To: Siegfried Heintze Cc: [EMAIL PROTECTED] Subject: RE: How to prepend a directory to the PATH to accommodate CVSNT? On 5 Oct, Siegfried Heintze wrote: Anyway, in your case it should be as simple as this: PATH=/cygdrive/c/Program Files/cvsnt/bin:$PATH Where do I put this statement? .bashrc? You could, but why not put it in ~/.profile so it's read just once by the login shell, and any child shells then have it in the environment, instead of having to do it themselves? FRom memory, bash will look for ~/.bash_login, ~/.profile, ~/.login, (not sure if it's in that order), and use the first one it finds. But it won't do this if $HOME was created by Cygwin mkdir instead of by Windows Explorer, due to some mysterious access permissions problem. BTW, I use .profile because it's usable regardless of what (Bourne-like) shell you use. luke -- 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/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to prepend a directory to the PATH to accommodate CVSNT?
Hi, Siegfried: In my opinion, I don't think it a good idea to use native Windows program in cygwin. Yes, you can remove your cygwin version of cvs.exe in /usr/bin and create a symbolic link there, pointing to /cygdrive/.../cvsnt/bin/cvs.exe. And it in fact will run instead of cygwin version. But the native Windows program will not recognize the strange path offered by cygwin's shell. If you are always using relative path, I think the native Windows program will work as well. Or you can write a simple wrapper to translate the cygwin path into native Windows path. Who knows? Who cares? Good luck! Edward L. Fox 2004-10-05 From: [EMAIL PROTECTED] On Mon, 4 Oct 2004 23:12:05 -0600, Siegfried Heintze [EMAIL PROTECTED] wrote: I notice that Cygwin manipulates the path by prepending /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin: to the windows PATH environment variable. This is a problem for me because I'm using CVSNT and I need my cvs client to be /cygdrive/c/Program Files/cvsnt/bin which it never sees because it finds cvs.exe in /usr/bin instead and this is not the cvsnt client! How do I prepend /cygdrive/c/Program Files/cvsnt/bin to the path? Thanks Siegfried -- 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: (De)activating network connection
Hi Thiers, You may try netsh.exe. It's a built in utility in Windows. Good luck! Edward L. Fox 2004-10-06 From: [EMAIL PROTECTED] On Tue, 5 Oct 2004 17:42:37 -0300, Thiers Botelho [EMAIL PROTECTED] wrote: Hi all, After searching google and cygwin.com I couldn't find what follows (well, maybe didn't search thoroughly enough, but then I couldn't make the search terms very much objective . . .) I wish to use some command within a script to activate / deactivate an Ethernet connection. In WinXP this would normally be done thru Settings / Network Connections / Local Connection / right-click . I found _rasdial.exe_ but it seems to deal only with dial-up connections. There's got to be some simple cmdline on/off switch somewhere (hope that won't be regedit . . .) Any hints on that are welcome. Thnx all Thiers Botelho -- 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: SSH + CVS But no login.
Hi Mike, I guess you can modify the /etc/passwd to disable the shell of the other people. Just have a try. :-) Edward L. Fox 2004-10-06 From: [EMAIL PROTECTED] On Tue, 5 Oct 2004 19:38:07 +0100, Michael Jervis [EMAIL PROTECTED] wrote: Hi, I've run cygwin SSHD a fair bit for my personal use. I've run CVSNT on the same box for some time to hold my source code. Now I'm in a position where I need to grant a couple of other people access to my CVS. I only allow CVS on :ext: for security, however, this means that if I want to grant these users CVS access, then they have an SSH shell on my machine. How can I allow CVS access but not shell access? Cheers, Mike -- 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: g++ 3.4.x library issue
What do you mean? string and string.h are two different header files. On Wed, 06 Oct 2004 04:05:21 +0200, Sven Köhler [EMAIL PROTECTED] wrote: #include string int main(){return 0;} how about including string.h instead of a file called string? -- 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/