event.libpath
/usr/local/lib/event
) will be used. Note that tilde expansion is not performed on this variable.event.modlist
s
(socket), i
(signal), and t
(timer). If not specified, a compiled-in default will be used.envpath
argument, which is presumed to be passed in by the application from the environment. If the envpath
contains an empty field (i.e., "::"), envpath is passed as NULL
, or the EV_INIT_SECURE flag is passed to event_init(), then a default path will be searched. Note that the EV_INIT_SECURE flag will also cause files containing the %n
or ~
expandos to be skipped for security reasons.
In addition to the ~
expandos (~
expands to the current user's home directory; ~user
expands to the home directory of user
), the library also defines the %n
and %p
expandos, which expand to the user name and the application name, respectively. (The application name is passed as the prog
argument to the event_init() function. If NULL
is passed for prog
, file names containing the %p
expando will be omitted.)
By default, the default search path contains "event.tc"
from the system package configuration directory (often /usr/local/etc/event
); ".event.tc"
from the user's home directory; "%p.tc"
from the system configuration directory; and ".%p.tc"
from the user's home directory. This default may be overridden by passing event_init() an ev_attr_t object which has been modified by a call to event_attr_confpath().
Any variables passed in an ev_attr_t (modified by a call to the event_attr_confvar() function) will override any values found in any of the configuration files loaded by event_init().