X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:mime-version:message-id:date :content-transfer-encoding:content-type; q=dns; s=default; b=fFT IMC0v+x/dme0oLvI2BqVxxN/l/EapUQtH80z1LosvS7rWRyCnDPmQCc7ySzlGxVn M9eRTFnsBD947XjZ39NcZCG1Y4NzYyhOc0jEDHH6wpNiA0Eg1lXl5P39mu+ze7TJ dcRmqNgmJ9VHSoBFRm2ojEfIlHo/3yMXqpu8LCwY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:mime-version:message-id:date :content-transfer-encoding:content-type; s=default; bh=Tt/ZV0mZJ Rqg5nDhr8L6hD5MLCA=; b=LqleOAAWnXapdKK05CHOtm9mzHv0NYVnWRlqIwkEj /oFYG+zhsfeeoX7NZkmLw9xh27EGEqtoHOJrBxusZ9LmW0wWvGyXu8ftfMpZNk+U xj667xoZ33RGUYxnLYuK3lFSuw/f93g5GR65EW1PBeyCf1+gJuuAjge2Xot+U63I Vo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.1 required=5.0 tests=AFFECTIONATE_BODY,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*MI:yandex, H*F:D*yandex.ru, H*x:5.0, dear X-HELO: forward13o.cmail.yandex.net Authentication-Results: mxback3o.mail.yandex.net; dkim=pass header.i=@yandex.ru From: =?utf-8?B?0JHQsNCx0LXQvdC60L4g0JLRj9GH0LXRgdC70LDQsg==?= To: cygwin AT cygwin DOT com Subject: The function ioctl bug MIME-Version: 1.0 Message-Id: <1444291467350465@web23o.yandex.ru> Date: Fri, 01 Jul 2016 15:21:05 +1000 Content-Transfer-Encoding: 7bit Content-Type: text/plain 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.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple