]> git.proxmox.com Git - ceph.git/blame - ceph/src/include/win32/fs_compat.h
import ceph pacific 16.2.5
[ceph.git] / ceph / src / include / win32 / fs_compat.h
CommitLineData
f67539c2
TL
1/*
2 * Ceph - scalable distributed file system
3 *
4 * Copyright (C) 2021 SUSE LINUX GmbH
5 *
6 * This is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License version 2.1, as published by the Free Software
9 * Foundation. See file COPYING.
10 *
11 */
12
13// Those definitions allow handling information coming from Ceph and should
14// not be passed to Windows functions.
15
16#define S_IFLNK 0120000
17
18#define S_ISTYPE(m, TYPE) ((m & S_IFMT) == TYPE)
19#define S_ISLNK(m) S_ISTYPE(m, S_IFLNK)
20#define S_ISUID 04000
21#define S_ISGID 02000
22#define S_ISVTX 01000
23
24#define LOCK_SH 1
25#define LOCK_EX 2
26#define LOCK_NB 4
27#define LOCK_UN 8
28#define LOCK_MAND 32
29#define LOCK_READ 64
30#define LOCK_WRITE 128
31#define LOCK_RW 192
32
33#define AT_SYMLINK_NOFOLLOW 0x100
b3b6e05e 34#define AT_REMOVEDIR 0x200
f67539c2
TL
35
36#define MAXSYMLINKS 65000