GNU Direvent |
|
Directory event monitoring daemon |
Sergey Poznyakoff |
5.2 Macro Expansion
Arguments of some statements undergo macro expansion before use. During the macro expansion any occurrence of ‘$name’ is replaced by the value of the macro variable name. Variable names follow the usual convention: they begin with a letter and contain letters, digits and underscores. Curly braces around the name are optional. They are required only if the macro reference is followed by a character that is not to be interpreted as part of its name, as in ‘${command}string’.
The following macros are defined:
- file
Name of the file that triggered the event.
- genev_code
Generic (system-independent) event code. It is a bitwise OR of the event codes represented as a decimal number.
- genev_name
Generic event name. If several generic events are reported simultaneously, the value of this variable is a list of event names separated by space characters. Each name corresponds to a bit in ‘$genev_code’.
- self_test_pid
The PID of the external command started with the --self-test option (see self-test mode). If
direvent
is started without this option, this variable is not defined.- sysev_code
A system-dependent event code. It is a bitwise OR of the event codes represented as a decimal number.
- sysev_name
A system-dependent event name. If several events are reported, the value of this variable is a list of event names separated by space characters. Each name corresponds to a bit in ‘sysev_code’. See System dependencies, for a list of system-dependent event names.
This document was generated on July 13, 2019 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.