Re: open(O_RDWR) and lseek() fail

2014-03-27 Thread Roy
On Fri, 28 Mar 2014 11:40:49 +0800, Eric Blake wrote: On 03/27/2014 07:29 PM, Roy wrote: Hello list, I wonder why lseek(SEEK_CUR) on open(O_RDWR) fails with errno=22, the code works on Linux: #include #include #include #include int main(int argc, char** argv){ Where's #include ? It fa

Re: open(O_RDWR) and lseek() fail

2014-03-27 Thread Eric Blake
On 03/27/2014 07:29 PM, Roy wrote: > Hello list, > > I wonder why lseek(SEEK_CUR) on open(O_RDWR) fails with errno=22, the > code works on Linux: > > #include > #include > #include > #include > int main(int argc, char** argv){ Where's #include ? It fails because you are missing the prototyp

open(O_RDWR) and lseek() fail

2014-03-27 Thread Roy
Hello list, I wonder why lseek(SEEK_CUR) on open(O_RDWR) fails with errno=22, the code works on Linux: #include #include #include #include int main(int argc, char** argv){ int f,v1,v2; v1 = 1234; close(creat("1.bin", 0600)); f = open("1.bin", O_RDWR); printf("wrote %d bytes.\n",write

[ANNOUNCEMENT] Updated: Cygwin 32<->64 binutils

2014-03-27 Thread Yaakov (Cygwin/X)
The following packages has been updated for the Cygwin x86 distribution: * cygwin64-binutils-2.24.51.20140326-1 And for the x86_64 distribution: * cygwin32-binutils-2.24.51.20140326-1 These toolchains allow cross-compiling 64-bit Cygwin software from 32-bit Cygwin and vice-versa. These rele

Re: [ANNOUNCEMENT] Updated: binutils-2.24.51-2 (x86/x86_64)

2014-03-27 Thread Christopher Faylor
On Thu, Mar 27, 2014 at 09:55:39AM +0100, Angelo Graziosi wrote: >CGF wrote >> I don't support those packages so there >> is no need to pollute the thread with pointless observations > >It was just to remember thet Cygwin distro needs alsot those upgrades... > >I suppose that JonY reads also this t

RE: LPR problem ?

2014-03-27 Thread Nellis, Kenneth
David Masterson wrote: > H. Where (on Windows 8.1) is this 'lpr' command (or where is it > supposed to be)? ... This shows where it is on my XP machine. YMMV. $ which -a lpr | cygpath -w -f- C:\cygwin\bin\lpr C:\WINDOWS\system32\lpr $ --Ken Nellis -- Problem reports: http://cygwin.c

Re: [ANNOUNCEMENT] Updated: binutils-2.24.51-2 (x86/x86_64)

2014-03-27 Thread JonY
On 3/27/2014 16:55, Angelo Graziosi wrote: > CGF wrote >> I don't support those packages so there >> is no need to pollute the thread with pointless observations > > It was just to remember thet Cygwin distro needs alsot those upgrades... > > I suppose that JonY reads also this thread.. > I'll

Re: LPR problem ?

2014-03-27 Thread Andrey Repin
Greetings, David Masterson! >>> Windows has an 'lpr' command?!? >> >> Since the moment it gained TCP/IP support. Part of standard protocol >> stack. Along with ftp, telnet and other stuff. And not to disappoint >> anyone, but I've found that windows LPR works better in certain cases. > H.

[ANNOUNCEMENT] Updated: file-5.18-1

2014-03-27 Thread Corinna Vinschen
I've updated the Cygwin version of file to 5.18-1. This is an update to the latest official upstream version. The package is now split into 4 subpackages: file Base package containing file(1) and the cygmagic DLL. file-develLibraries and header files for file development

Re: [ANNOUNCEMENT] Updated: binutils-2.24.51-2 (x86/x86_64)

2014-03-27 Thread Angelo Graziosi
CGF wrote I don't support those packages so there is no need to pollute the thread with pointless observations It was just to remember thet Cygwin distro needs alsot those upgrades... I suppose that JonY reads also this thread.. Ciao, Angelo. -- Problem reports: http://cygwin.com/pro

remote desktop /session bus woes...(was Re: problem with opengl (glxgears) running on cygwin ....)

2014-03-27 Thread Linda Walsh
Yaakov (Cygwin/X) wrote: On 2014-03-25 09:05, Jon TURNEY wrote: On 20/03/2014 08:41, Linda Walsh wrote: When I try to run glxgears locally, it displays the initial gears, but now they are just frozen. It doesn't work remotely, either, which was what I tried initially. It *used* to work -- rem

Re: LPR problem ?

2014-03-27 Thread David Masterson
Andrey Repin writes: > Greetings, David Masterson! >> Windows has an 'lpr' command?!? > > Since the moment it gained TCP/IP support. Part of standard protocol > stack. Along with ftp, telnet and other stuff. And not to disappoint > anyone, but I've found that windows LPR works better in certain