delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/07/11:49:03

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <4.3.1.2.20010307114115.017bd0a0@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Wed, 07 Mar 2001 11:42:22 -0500
To: Kurt Schwartz <kurt AT whdl DOT com>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Where is GetCurrentFiber?
In-Reply-To: <5.0.2.1.2.20010306194750.00ab9010@mail.whdl.com>
References: <4 DOT 3 DOT 1 DOT 2 DOT 20010306105222 DOT 017a2140 AT pop DOT ma DOT ultranet DOT com>
<4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20010305213208 DOT 00d20c80 AT 198 DOT 107 DOT 4 DOT 166>
Mime-Version: 1.0

Hm, maybe a new .a needs to be generated for user32.dll.  Want to take a 
stab at it?

Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



At 10:49 PM 3/6/2001, Kurt Schwartz wrote:

>No, it is not in user32.a.  Some other fiber routines are in kernel32.a.
>
>
>At 10:57 AM 3/6/2001 -0500, Larry Hall (RFK Partners, Inc) wrote:
>>At 12:37 AM 3/6/2001, Kurt Schwartz wrote:
>> >There is a function declaration in the cygwin headers for GetCurrentFiber, but there is no symbol in any library file, and I get unresolved link errors when using this function.
>> >
>> >In the VC++ header, this function is an inline assembly function:
>> >
>> >_inline PVOID GetCurrentFiber( void ) { __asm mov eax, fs:[0x10] }
>> >
>> >Also, the same problem exists with GetFiberData, defined in MSVC as
>> >
>> >_inline PVOID GetFiberData( void ) { __asm {
>> >                                         mov eax, fs:[0x10]
>> >                                         mov eax,[eax]
>> >                                         }
>> >                                      }
>> >
>> >
>> >Now, I know gcc uses a different asm syntax, but I have no clue how to write the above functions legally for gcc.
>> >
>> >Did these functions slip through the cracks??
>>
>>
>>I don't think so.  GetCurrentFiber() and GetFiberData() are in user32.dll
>>according to the MSDN.  As a result, I would expect them to show up in
>>libuser32.a.  Are you saying they don't?
>>
>>
>>
>>Larry Hall                              lhall AT rfk DOT com
>>RFK Partners, Inc.                      http://www.rfk.com
>>118 Washington Street                   (508) 893-9779 - RFK Office
>>Holliston, MA 01746                     (508) 893-9889 - FAX


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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