Re: ftell() fails on files in shared folders

2012-03-22 Thread Yuri Gribov
> Sorry, but I really don't know how to help here. I can't reproduce > the problem and apparently nobody else can. Fair enough. Let's see if someone else comments on this. I'm thinking about Perhaps I'll get time to write a plain WinAPI app which repros this and then ask MS. -- Best regards, Y

Re: ftell() fails on files in shared folders

2012-03-21 Thread Yuri Gribov
Corinna, > or it's the native NT equivalent NtQueryInformationFile function > with the FileStandardInformation info class. Cygwin uses the latter. My idea was that this was a known error but I did not find anything useful in google. > Is it possible that some kind of virus checker influences th

Re: ftell() fails on files in shared folders

2012-03-20 Thread Yuri Gribov
Corinna, > the problem is obviously that your remote filesystem returns 0 as the current > file size. Which WinAPI does that? I can try searching it. > What OS are your remote filesystems running on? That's Windows Server 2008 SP1. -- Best regards, Yuri -- Problem reports: http://cygw

Re: ftell() fails on files in shared folders

2012-03-20 Thread Yuri Gribov
Corinna, > No, it doesn't change that often.  1.7.9 is actually a year old, > though.  Updating *might* help. > > Btw., assuming you call lseek(fileno(p), SEEK_CUR, 0) rather than > ftell(p), what position does it return? I have rewritten my program to use only low-level API (open, write, lseek)

Re: ftell() fails on files in shared folders

2012-03-18 Thread Yuri Gribov
> No.  In my examples ./test.bin and > //this-machine/c\$/cygwin/home/corinna/test.bin refer to the same file, > //other-machine/c\$/cygwin/home/corinna/test.bin is a file on another > machine. Hm, I'm out of clues then. These machines have very simple setups and I did not find any app from Cygwin

Re: ftell() fails on files in shared folders

2012-03-18 Thread Yuri Gribov
Corinna, Is your $HOME shared across all your nodes? Can you try running on c$/test.bin? On Sun, Mar 18, 2012 at 8:41 PM, Yuri Gribov wrote: > Corinna, > > Thanks for your answer! > >> Wrong style. > > Yeah, I know but it worked this time and it's so handy to

ftell() fails on files in shared folders

2012-03-18 Thread Yuri Gribov
Hi all, I have recently ran into a problem with Cygwin accessing files located in shared folders. The attached program does fwrite() and then checks file size with ftell(). Ftell() returns correct results in any of following situations: 1) I access local file: c:/test.bin 2) I access file via UNC-

Re: Problem with gethostid

2012-01-27 Thread Yuri Gribov
Corinna, > did you read my replies to your original mail? I was not subscribed to the list so I was not receiving your emails (you'll probably want to "Reply all" next time...). Thanks a lot for your help! When does this change go to official cygwin1.dll? I don't dare to build Cygwin myself...

Re: Problem with gethostid

2012-01-23 Thread Yuri Gribov
> I have some problems with gethostid functions. I have checked the implementation of gethostid in syscalls.cc - it seems that it uses HKLM/Software/Microsoft/Cryptography/MachineGuid. I checked GUIDs of my machines and they are clearly different so this is not the reason for error. No idea what's

Problem with gethostid

2012-01-22 Thread Yuri Gribov
Hi all, I have some problems with gethostid functions. When I run it on some nodes of my cluster I get the same return value although hostnames and IP addresses are different. Here are the logs for 2 nodes (test program is in the attach, as well as cygcheck output). C:\Users\gribov.y>\\s-cw-head\

Re: system() not working outside of Cygwin environment

2012-01-16 Thread Yuri Gribov
Christopher, > So, if /bin/sh is not available then system() won't work. Thank you, that's precisely what I needed (you could just reply "man system", that would be enough). > Also note that if you are planning on making a program which is distributed > independent of Cygwin FYI I am installin

system() not working outside of Cygwin environment

2012-01-15 Thread Yuri Gribov
Hi all, Perhaps this is very basic but I was not able to find the answer in faq/docs. Attached is a nice small program which does system("cmd /?"); The call works pretty well when I run it from Cygwin environment. In my situation I need to run standalone Cygwin programs (i.e. simply from Windows

Re: Problem with gpc on 1.7.1

2010-01-17 Thread Yuri Gribov
Dave, Thank you for your help. -- С уважением, Юрий

Re: Problem with gpc on 1.7.1

2010-01-09 Thread Yuri Gribov
Just a note: I tried googling for this error but didn't find anything helpful. -- Best regards, Yuri -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com