dpkg 1.21.11
Functions
path.h File Reference

(f85e380f6)

#include <sys/stat.h>
#include <stddef.h>
#include <dpkg/macros.h>
Include dependency graph for path.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

size_t path_trim_slash_slashdot (char *path)
 Trim ‘/’ and ‘/. More...
 
const char * path_skip_slash_dotslash (const char *path)
 Skip ‘/’ and ‘. More...
 
const char * path_basename (const char *path)
 Return the last component of a pathname. More...
 
char * path_quote_filename (char *dst, const char *src, size_t size)
 Escape characters in a pathname for safe locale printing. More...
 
char * path_make_temp_template (const char *suffix)
 Create a template for a temporary pathname. More...
 
int secure_unlink_statted (const char *pathname, const struct stat *stab)
 
int secure_unlink (const char *pathname)
 Securely unlink a pathname. More...
 
int secure_remove (const char *pathname)
 Securely remove a pathname. More...
 
void path_remove_tree (const char *pathname)
 Remove a pathname and anything below it. More...