delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/07/19/04:24:26

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:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=DxBkpJ0sy/FzM2H7cIwyFlNdDSn9H
KwQqN6ZZzlR1PwzgyDTMoSDIIv7K26re2uiZjaM/Rj0vfj3ysPP7XT4v4euYGtKw
fhune+qQQ0YgMGOgd7sj0QaTlOnH38kG+A5CppgjVBQMw8+wcuaiVz9sw85gMrxO
7iVNy5KPLtpgt4=
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:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=N7KSRUVlA8w4Ie/8dN4sO3FwVmE=; b=CNK
jLFeO4BP61Bbk6g/4CRIAkWWSJSUnNxHEZVkMwDSOmnWROr3jNDSzvML/wNotLAE
JdRE24/rQ7ecB+nMaH1AxiG08bu3bFFOHlR4dy6KvCkCJUpYcdCXTbd5r6BQbfDQ
+jhh1yj/JyB33zmM56JRRYBV0ET0TW1Ps6h595Dw=
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-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=subroutine, H*c:alternative
X-HELO: mail-io1-f47.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=gA8fX/XyrRpKySyCrKvUX5kHZiP3ErMbJHgrzpYUo10=; b=aHuPtrt9iE3B/Gx1oCx10yO/36ivBgPukUTFcBLffE3YdAHJLXF3CJx3FcvJEutZg+ JpBC/v2gS8K7Lh78/GG/h+OyUZJgJzXFvNVcXVb3lilyY45zzPfu386/iKol6XEL29Zy VHsiVowV8C1FhaAiBUGG2K//TCa2x+3/86K4PThn65NYDXGZDv+IGQVy7c/+iwtFY/Ou b0vCO+gI74eC5MI2uR7wMWubsOMJRfkizSgNQrRRSC9WJHgkhPnASKDec2Zj3L1fwThF VbrXITTpTJXDlU29Gq0K0jaGRBqCi+Dh9nwjvgcpRcHzO+jLBYL0asJCkt41WS09UCnE m8rA==
MIME-Version: 1.0
From: Biswapriyo Nath <nathbappai AT gmail DOT com>
Date: Fri, 19 Jul 2019 13:53:34 +0530
Message-ID: <CALK-3mLHN3sVi5JRqsuiarkpsD5f_LLDHdSMQwR_wDpZ7nXwPw@mail.gmail.com>
Subject: Function call difference between cygwin and Windows
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

If a function calls both cygwin and Windows functions the binary creates
extra subroutine (in assembly) for cygwin ones. Example:

* Windows function:

   call cs:CreatePipe

* cygwin function:

   call ioctl

   ioctl proc near
   jmp cs:__imp_ioctl
   endp

The binary is statically compiled. Why there are extra subroutines? Is this
"by-design"? Or am I missing something?

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