dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions | Variables
Trigger deferred file handling
Collaboration diagram for Trigger deferred file handling:

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
 

Detailed Description

Enumeration Type Documentation

◆ trigdef_update_status

Enumerator
TDUS_ERROR_NO_DIR 
TDUS_ERROR_EMPTY_DEFERRED 
TDUS_ERROR_NO_DEFERRED 
TDUS_NO_DEFERRED 
TDUS_OK 

Function Documentation

◆ trigdef_parse()

int trigdef_parse ( void  )

References _, fgets_checked(), ohshit(), trigdefmeths::package, trigdefmeths::trig_begin, and trigdefmeths::trig_end.

Referenced by trig_incorporate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ trigdef_process_done()

void trigdef_process_done ( void  )

References _, varbuf::buf, dir_sync_path(), ehflag_normaltidy, ohshite(), and pop_cleanup().

Referenced by trig_incorporate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ trigdef_set_methods()

void trigdef_set_methods ( const struct trigdefmeths methods)

Referenced by trig_incorporate().

Here is the caller graph for this function:

◆ trigdef_update_printf()

void trigdef_update_printf ( const char *  format,
  ... 
)

◆ trigdef_update_start()

enum trigdef_update_status trigdef_update_start ( enum trigdef_update_flags  uf)

Start processing of the triggers deferred file.

Return values
-1Lock ENOENT with O_CREAT (directory does not exist).
-2Unincorp empty, TDUF_WRITE_IF_EMPTY unset.
-3Unincorp ENOENT, TDUF_WRITE_IF_ENOENT unset.
1Unincorp ENOENT, TDUF_WRITE_IF_ENOENT set.
2Ok.

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().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ trigdef_update_flags

enum DPKG_ATTR_ENUM_FLAGS trigdef_update_flags

Referenced by trig_incorporate().