po: Update German man pages translation
[dpkg.git] / lib / dpkg / path.h
blob3479a8b3ab894538f4d1a4ea4de386ce39cd6a25
1 /*
2 * libdpkg - Debian packaging suite library routines
3 * path.h - path handling routines
5 * Copyright © 2008-2012, 2015 Guillem Jover <guillem@debian.org>
7 * This is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
21 #ifndef LIBDPKG_PATH_H
22 #define LIBDPKG_PATH_H
24 #include <sys/stat.h>
26 #include <stddef.h>
28 #include <dpkg/macros.h>
30 DPKG_BEGIN_DECLS
32 /**
33 * @defgroup path Path handling
34 * @ingroup dpkg-internal
35 * @{
38 size_t path_trim_slash_slashdot(char *path);
39 const char *path_skip_slash_dotslash(const char *path);
40 const char *path_basename(const char *path);
41 char *path_quote_filename(char *dst, const char *src, size_t size);
43 char *path_make_temp_template(const char *suffix);
45 int secure_unlink_statted(const char *pathname, const struct stat *stab);
46 int secure_unlink(const char *pathname);
47 int secure_remove(const char *pathname);
49 void path_remove_tree(const char *pathname);
51 /** @} */
53 DPKG_END_DECLS
55 #endif /* LIBDPKG_PATH_H */