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: 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-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 Date: Fri, 19 Jul 2019 13:53:34 +0530 Message-ID: Subject: Function call difference between cygwin and Windows To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" 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