diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
commit | 464df1d5e5ab1322e2dd0a7796939fff1aeefa9a (patch) | |
tree | 6a403684e0978f0287d7f0ec0e5aab1fd31a59e1 /include/mingw/sys | |
parent | Initial commit. (diff) | |
download | e2fsprogs-464df1d5e5ab1322e2dd0a7796939fff1aeefa9a.tar.xz e2fsprogs-464df1d5e5ab1322e2dd0a7796939fff1aeefa9a.zip |
Adding upstream version 1.47.0.upstream/1.47.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/mingw/sys')
-rw-r--r-- | include/mingw/sys/stat.h | 20 | ||||
-rw-r--r-- | include/mingw/sys/sysmacros.h | 5 | ||||
-rw-r--r-- | include/mingw/sys/types.h | 9 |
3 files changed, 34 insertions, 0 deletions
diff --git a/include/mingw/sys/stat.h b/include/mingw/sys/stat.h new file mode 100644 index 0000000..0ca1d1b --- /dev/null +++ b/include/mingw/sys/stat.h @@ -0,0 +1,20 @@ + +#pragma once + +#if HAVE_SYS_STAT_H +#include_next <sys/stat.h> +#endif + +#ifndef lstat +#define lstat stat +#endif + +#ifndef S_ISLNK +#ifdef __S_IFLNK +#define S_ISLNK(mode) __S_ISTYPE((mode), __S_IFLNK) +#else +#define S_ISLNK(mode) 0 +#endif +#endif + +#define link(a, b) CreateHardLink((a), (b), NULL) diff --git a/include/mingw/sys/sysmacros.h b/include/mingw/sys/sysmacros.h new file mode 100644 index 0000000..a790cb2 --- /dev/null +++ b/include/mingw/sys/sysmacros.h @@ -0,0 +1,5 @@ +#pragma once + +#ifndef makedev +#define makedev(maj, min) (((maj) << 8) + (min)) +#endif diff --git a/include/mingw/sys/types.h b/include/mingw/sys/types.h new file mode 100644 index 0000000..9d048fc --- /dev/null +++ b/include/mingw/sys/types.h @@ -0,0 +1,9 @@ + +#pragma once + +#include_next <sys/types.h> + +#include <linux/types.h> + +typedef unsigned short __uid_t; +typedef unsigned short __gid_t; |