[OpenAFS-devel] Re: Avoid mixed use of Win32/CRTL in the servers

Rod Widdowson rdw@steadingsoftware.com
Fri, 21 Jan 2011 08:44:37 -0000


> > 1) Redirect IO through the afs_XXXX operations.
> 
> Not OS_OPEN &co?

Good point.  I'll do that.

Meantime I've also spelunked through the code some more...

What is the expectation about afs_open and friends - such as afs_stat which is used in some places to mean both the function and the
struct..

I would like to leave afs_open defined as "use the c run time library" and reserve it logging and so forth;  then use OS_XXX for
[meta]data IO.  Converting logging to Win32 CamelCase code would be tedious to say the least and would not affect the issues that we
have between mixing io between the c run time library and the windows one.

Equally I'm slightly nervous about wholesale conversion of afs_open to OS_OPEN.  Maybe it safest to just do it in the paths which
are compiled for the Windows build?

Also, for my information, why are OS_XXXX defined in ihandles.h? historical?

Rod