This is the mail archive of the cygwin-patches@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]
Other format: [Raw text]

Re: Cleanup of ntdll.h


On Thu, May 30, 2002 at 09:03:06PM +1000, Robert Collins wrote:
> It was my understandinf that the NtXXX calls cannot be used from user
> mode. 

That's a misunderstanding.  They are intentionally identical in user mode.

> We should be using the Zw calls.

...because...???

Anyway, they *are* identical from the Cygwin DLL point of view.  The
calls are the same.  They don't point to different entry points in user
mode.  So it's just a point of taste how to call these functions.

The following is my taste:

IMHO, we should use the Nt calls.  When I first introduced usage of
native NT calls I called them NtXXX since that the name of the function
is sort of self explaining.  IMHO.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


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