dpkg 1.22.7-3-g89f48
|
Data Structures | |
struct | trigdefmeths |
Enumerations | |
enum | trigdef_update_status { TDUS_ERROR_NO_DIR = -1 , TDUS_ERROR_EMPTY_DEFERRED = -2 , TDUS_ERROR_NO_DEFERRED = -3 , TDUS_NO_DEFERRED = 1 , TDUS_OK = 2 } |
Functions | |
void | trigdef_set_methods (const struct trigdefmeths *methods) |
enum trigdef_update_status | trigdef_update_start (enum trigdef_update_flags uf) |
Start processing of the triggers deferred file. | |
void | trigdef_update_printf (const char *format,...) DPKG_ATTR_PRINTF(1) |
int | trigdef_parse (void) |
void | trigdef_process_done (void) |
Variables | |
enum DPKG_ATTR_ENUM_FLAGS | trigdef_update_flags |
int trigdef_parse | ( | void | ) |
References _, fgets_checked(), ohshit(), trigdefmeths::package, trigdefmeths::trig_begin, and trigdefmeths::trig_end.
Referenced by trig_incorporate().
void trigdef_process_done | ( | void | ) |
References _, varbuf::buf, dir_sync_path(), ehflag_normaltidy, ohshite(), and pop_cleanup().
Referenced by trig_incorporate().
void trigdef_set_methods | ( | const struct trigdefmeths * | methods | ) |
void trigdef_update_printf | ( | const char * | format, |
... | |||
) |
enum trigdef_update_status trigdef_update_start | ( | enum trigdef_update_flags | uf | ) |
Start processing of the triggers deferred file.
-1 | Lock ENOENT with O_CREAT (directory does not exist). |
-2 | Unincorp empty, TDUF_WRITE_IF_EMPTY unset. |
-3 | Unincorp ENOENT, TDUF_WRITE_IF_ENOENT unset. |
1 | Unincorp ENOENT, TDUF_WRITE_IF_ENOENT set. |
2 | Ok. |
For positive return values the caller must call trigdef_update_done!
References _, varbuf::buf, dpkg_db_get_path(), ehflag_normaltidy, file_lock(), FILE_LOCK_WAIT, ohshite(), pop_cleanup(), setcloexec(), TDUF_NO_LOCK_OK, TDUF_WRITE, TDUF_WRITE_IF_EMPTY, TDUF_WRITE_IF_ENOENT, TDUS_ERROR_EMPTY_DEFERRED, TDUS_ERROR_NO_DEFERRED, TDUS_ERROR_NO_DIR, TDUS_NO_DEFERRED, TDUS_OK, TRIGGERSDEFERREDFILE, TRIGGERSDIR, and TRIGGERSLOCKFILE.
Referenced by trig_incorporate().
enum DPKG_ATTR_ENUM_FLAGS trigdef_update_flags |
Referenced by trig_incorporate().