www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/04/12/23:30:14

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: FW: Special Filenames AUX, CON, etc.
12 Apr 1998 23:30:14 -0700 :
Message-ID: <01BD66C4.A711D9B0.cygnus.cygwin32.developers@drs>
To: "'Christopher G. Faylor'" <cgf AT cygnus DOT com>
Cc: "cygwin32-developers AT cygnus DOT com" <cygwin32-developers AT cygnus DOT com>

Christopher G. Faylor wrote:
> > Opening a file in posix mode is just NtCreateFile() (ZwCreateFile()) 
with
> > OBJ_CASE_INSENSITIVE in object attribute structure unset.
>
> Hmm.  Have you actually managed to trace the system call?  I don't have
> a debugger which allows that although I know that there are such things
> available.
>

No, of course :-) I can't set a breakpoint in csrss.exe :-) But it's not 
neccessary - it's enough to read a description of ZwCreateFile() in NT DDK 
to understand how csrss (called by kernel32.dll) works. With this kernel 
call I can create/delete files and directories case-sensitively. But it's 
impossible to chdir case sensitively - "current directory" is just a 
per-process environment option, maintained by csrss in insensetiv way :-(

PS. csrss - Client-Server Runtime Subsystem, the heart of Win32 api's base 
services implementation.

--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia.

- Raw text -


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