delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/19/02:15:09

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
From: "Kurt Schwartz" <kurt AT whdl DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Where is GetCurrentFiber?
Date: Wed, 18 Apr 2001 23:11:57 -0700
Message-ID: <NEBBKDKNCLKKMGAAALNKMEANCAAA.kurt@whdl.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

I can find the declaration for this Win32 API function in
/usr/include/w32api/winnt.h, but I cannot find the implementation in any
library file.  The other fiber calls are in /usr/lib/libkernel32.a

In the Visual Studio header file WINNT.H, this function is defined as:

_inline PVOID GetCurrentFiber( void ) { __asm mov eax, fs:[0x10] }

This uses Visual C++ specific assembler syntax.

However, in /usr/lib/w32api/winnt.h it is defined as:

PVOID GetCurrentFiber(void);

Here it is not inlined, so it should appear in a library somewhere, right??

Was this function (Also GetFiberData) just overlooked??

How can I write the above inlined function in a gcc-compatible way?

Thanks for any help,

Kurt Schwartz
Willamette HDL, Inc.


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