delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/07/01/01:38:37

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=KUbu1GVbLsdIdUwq
Y6Fcc1kvW5hcc3BrbYG4xx0mD4jUD47+B8JMw3KrVPJcVIxJ2exT8w8Q1MfMYG4i
KCQpjo/Xrh9NPiY3fM4h8RGA4cQFOXLKuEdXGJYZlL3q9qoVlIwm/iSMdCHQNRiE
8cXFTVN5rWbx1hHFs4q/tXUpwxY=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=B9KT9h42JEdB3JCzw2C5pi
RajsI=; b=nnJv9KVu7MtyJ+MmmkAimuHFQztKDFJQDIBRHNuSugJik7fhxOdIDY
/A4WGFZbVsGT+82R6FEAJGzY1Qa1GSo6lRrEbi1M6zCz6iGjW9Ql4+elDKbPhNha
EY4HCGxbbtZ0t51if/Zule1SREjgOl/eOa/Z1dwz5GEU6HY1GxdPY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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: =?ISO-8859-1?Q?Yes, score=7.1 required=5.0 tests=AFFECTIONATE_BODY,BAYES_50,BODY_8BITS,FREEMAIL_FROM,GARBLED_BODY,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy==d0=b5=d1, ioctl, AF_INET, cygwin-x86?=
X-HELO: mail-wm0-f54.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=jKnKqBAfvFs/9kTocBkh4vPh9zbZeOQD5YxuWc20r2g=; b=lj1FLiXWTca1x3+szAM/3C8abPXHIRi97+XgetwbqulzF11MngvRotQZzvjA7T6U0G zc628igSuFGxwA9vXrDyVS+MwZoKZotx9H4wxASCHPPp/c9WyBrftrMfIB+5dppDDElh VrI3lIjwDcxx6nDVYQHVLzv3nq+/Kn/prRLqVEhcHrIZKUGn0KxAssobAcIbSyLocatQ T45Usu68ngWPridZtvJwxPIXsFwtrzRqBjTZ+sKdJqjqpGDAOrrn1FXKokKDXoXl1nUe n92diswLCGEPHwaTGmGcnGwn3bVb0Kcol53YrcJtEzxs42hqpMaCP2pUJQMYiug3STTk xzBg==
X-Gm-Message-State: ALyK8tIiwL+XMSvNRmRfRnXKNdTfFdjZmoIZn2INQiDwI/o1+qxCn4GKJAEDKiz9E9bJGQ==
X-Received: by 10.194.25.135 with SMTP id c7mr1523452wjg.63.1467351495954; Thu, 30 Jun 2016 22:38:15 -0700 (PDT)
Subject: Re: The function ioctl bug
To: cygwin AT cygwin DOT com
References: <1444291467350465 AT web23o DOT yandex DOT ru>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <d6bdbe5a-8707-db02-38f8-7daa18fb670e@gmail.com>
Date: Fri, 1 Jul 2016 07:38:09 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
MIME-Version: 1.0
In-Reply-To: <1444291467350465@web23o.yandex.ru>
X-IsSubscribed: yes
Note-from-DJ: This may be spam


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 cygwin-x86.
>
>

the test case must be a complete minimal program that anyone could build.



--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019