Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Dec 2006 13:56:31 +0300
From:      Yar Tikhiy <yar@comp.chem.msu.su>
To:        freebsd-rc@freebsd.org
Subject:   rc.d namespace
Message-ID:  <20061227105630.GB21493@comp.chem.msu.su>

next in thread | raw e-mail | index | archive | help

Hi folks,

My attention has been drawn by the fact that rc.subr and rc.d/*
don't seem to follow uniform namespace rules.  Namely both rc.subr
and rc.d use global identifiers starting with an underscore.
Fortunately, rc.subr doesn't seem to use global identifiers not
starting with an underscore besides the names exported to scripts
on purpose.

What do you think about adopting the following rule: "_foo" names
are for the rc.subr internals while just "foo" names are for rc.d
scripts?  Another possible way is: __foo or even __rc_foo for
rc.subr, _foo for scripts, foo for the documented rc.subr interface.

Comments?

-- 
Yar



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061227105630.GB21493>