aboutsummaryrefslogtreecommitdiff
path: root/lib/compat/mockups.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-01-31 11:21:30 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-01-31 13:51:49 +0100
commitcdccc69c62579b0c13b35fad0728079652b8f3c9 (patch)
tree9fa54c710f73c5e08a9c8466e7a712eb63ee07ac /lib/compat/mockups.c
parent2182129c8f359c4fa1390eaba7a65b595ccd4182 (diff)
Move library source into src sub-directory
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/compat/mockups.c')
-rw-r--r--lib/compat/mockups.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/lib/compat/mockups.c b/lib/compat/mockups.c
deleted file mode 100644
index 4c396ec..0000000
--- a/lib/compat/mockups.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
-/*
- * mockups.c
- *
- * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
- */
-#include "config.h"
-#include "compat.h"
-
-#include <stdio.h>
-
-#ifdef _WIN32
-int fchownat(int dirfd, const char *path, int uid, int gid, int flags)
-{
- if (dirfd != AT_FDCWD) {
- fputs("[FIXME] fchownat stub only supports AT_FDCWD!\n",
- stderr);
- return -1;
- }
-
- if (flags != 0 && flags != AT_SYMLINK_NOFOLLOW) {
- fputs("[FIXME] fchownat stub used with an unknown flag!\n",
- stderr);
- return -1;
- }
-
- (void)path;
- (void)uid;
- (void)gid;
- return 0;
-}
-
-int fchmodat(int dirfd, const char *path, int mode, int flags)
-{
- if (dirfd != AT_FDCWD) {
- fputs("[FIXME] fchmodat stub only supports AT_FDCWD!\n",
- stderr);
- return -1;
- }
-
- if (flags != 0 && flags != AT_SYMLINK_NOFOLLOW) {
- fputs("[FIXME] fchmodat stub used with an unknown flag!\n",
- stderr);
- return -1;
- }
-
- (void)path;
- (void)mode;
- return 0;
-}
-#endif