[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diskfs micro-optimisation

From: Roland McGrath
Subject: Re: diskfs micro-optimisation
Date: Fri, 3 Dec 2004 04:42:21 -0500 (EST)

%d format is canonical for the /servers/socket/ file names.
That code presumes the PF_LOCAL macro will be defined that way.  It could
be any constant expression, an enum, hex, arithmetic, whatever.  Don't
assume the headers won't change in ways they are permitted to.  The
compiler may optimize away sprintf when the format and arguments are all
constant.  That will have to be enough.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]