stat-util: add statx() flavours of stat_verify_regular() + stat_verify_socket()

This commit is contained in:
Lennart Poettering
2026-03-03 08:48:01 +01:00
parent 36d7e177ad
commit 97fe03e12f
2 changed files with 48 additions and 25 deletions
+2
View File
@@ -7,6 +7,7 @@
#include "basic-forward.h"
int stat_verify_regular(const struct stat *st);
int statx_verify_regular(const struct statx *stx);
int verify_regular_at(int fd, const char *path, bool follow);
int fd_verify_regular(int fd);
@@ -21,6 +22,7 @@ int fd_verify_symlink(int fd);
int is_symlink(const char *path);
int stat_verify_socket(const struct stat *st);
int statx_verify_socket(const struct statx *stx);
int is_socket(const char *path);
int stat_verify_linked(const struct stat *st);