Re: The function ioctl bug

2016-07-01 Thread Corinna Vinschen
Hi Viacheslav, On Jul 1 23:38, Бабенко Вячеслав wrote: > Dear friends! > > The function ioctl return -1 (errno equal 95) if I use cygwin-x86_64 but > return 0 if I use cygwin-x86. > > #include > #include > #include > #include > #include > > int main() > { > int c; > int fd = sock

Re: The function ioctl bug

2016-07-01 Thread Бабенко Вячеслав
Dear friends! The function ioctl return -1 (errno equal 95) if I use cygwin-x86_64 but return 0 if I use cygwin-x86. #include #include #include #include #include int main() { int c; int fd = socket(AF_INET, SOCK_STREAM, 0); if (ioctl(fd, FIONREAD, &c) == -1) printf("err

Re: The function ioctl bug

2016-06-30 Thread Marco Atzeri
On 01/07/2016 07:21, Бабенко Вячеслав wrote: Dear friends! The function ioctl return -1 (errno equal 95) if I use cygwin-x86_64. See my code: ... int fd = socket(AF_INET, SOCK_STREAM, 0); if (ioctl(fd, FIONREAD, &c) == -1) printf("%u", errno); ... The function ioctl return 0 if I use cygw

The function ioctl bug

2016-06-30 Thread Бабенко Вячеслав
Dear friends! The function ioctl return -1 (errno equal 95) if I use cygwin-x86_64. See my code: ... int fd = socket(AF_INET, SOCK_STREAM, 0); if (ioctl(fd, FIONREAD, &c) == -1) printf("%u", errno); ... The function ioctl return 0 if I use cygwin-x86. -- Problem reports: http://cygwin