This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Where is GetCurrentFiber?


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@rfk.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]