]> git.proxmox.com Git - ceph.git/blame - ceph/src/include/win32/win32_errno.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / include / win32 / win32_errno.h
CommitLineData
f67539c2
TL
1// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2// vim: ts=8 sw=2 smarttab
3/*
4 * Ceph - scalable distributed file system
5 *
6 * Copyright (C) 2020 SUSE LINUX GmbH
7 *
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
12 *
13 */
14
15// We're going to preserve the error numbers defined by the Windows SDK but not
16// by Mingw headers. For others, we're going to use numbers greater than 256 to
17// avoid unintended overlaps.
18
19#ifndef WIN32_ERRNO_H
20#define WIN32_ERRNO_H 1
21
22#include <errno.h>
23
24#include "include/int_types.h"
25
26#ifndef EBADMSG
27#define EBADMSG 104
28#endif
29
30#ifndef ENODATA
31#define ENODATA 120
32#endif
33
34#ifndef ENOLINK
35#define ENOLINK 121
36#endif
37
38#ifndef ENOMSG
39#define ENOMSG 122
40#endif
41
42#ifndef ENOTRECOVERABLE
43#define ENOTRECOVERABLE 127
44#endif
45
46#ifndef ETIME
47#define ETIME 137
48#endif
49
50#ifndef ETXTBSY
51#define ETXTBSY 139
52#endif
53
54#ifndef ENODATA
55#define ENODATA 120
56#endif
57
58#define ESTALE 256
59#define EREMOTEIO 257
60
61#ifndef EBADE
62#define EBADE 258
63#endif
64
65#define EUCLEAN 259
66#define EREMCHG 260
67#define EKEYREJECTED 261
68#define EREMOTE 262
69
70// Not used at moment. Full coverage ensures that remote errors will be
71// converted and handled properly.
72#define EADV 263
73#define EBADFD 264
74#define EBADR 265
75#define EBADRQC 266
76#define EBADSLT 267
77#define EBFONT 268
78#define ECHRNG 269
79#define ECOMM 270
80#define EDOTDOT 271
81#define EHOSTDOWN 272
82#define EHWPOISON 273
83// Defined by Boost.
84#ifndef EIDRM
85#define EIDRM 274
86#endif
87#define EISNAM 275
88#define EKEYEXPIRED 276
89#define EKEYREVOKED 277
90#define EL2HLT 278
91#define EL2NSYNC 279
92#define EL3HLT 280
93#define EL3RST 281
94#define ELIBACC 282
95#define ELIBBAD 283
96#define ELIBEXEC 284
97#define ELIBMAX 285
98#define ELIBSCN 286
99#define ELNRNG 287
100#define EMEDIUMTYPE 288
101#define EMULTIHOP 289
102#define ENAVAIL 290
103#define ENOANO 291
104#define ENOCSI 292
105#define ENOKEY 293
106#define ENOMEDIUM 294
107#define ENONET 295
108#define ENOPKG 296
109#ifndef ENOSR
110#define ENOSR 297
111#endif
112#ifndef ENOSTR
113#define ENOSTR 298
114#endif
115#define ENOTNAM 299
116#define ENOTUNIQ 300
117#define EPFNOSUPPORT 301
118#define ERFKILL 302
119#define ESOCKTNOSUPPORT 303
120#define ESRMNT 304
121#define ESTRPIPE 305
122#define ETOOMANYREFS 306
123#define EUNATCH 307
124#define EUSERS 308
125#define EXFULL 309
126#define ENOTBLK 310
127
128#ifndef EDQUOT
129#define EDQUOT 311
130#endif
131
132#define ESHUTDOWN 312
133
134#ifdef __cplusplus
135extern "C" {
136#endif
137
138__s32 wsae_to_errno(__s32 r);
139__u32 errno_to_ntstatus(__s32 r);
1e59de90 140__u32 cephfs_errno_to_ntstatus_map(int cephfs_errno);
f67539c2
TL
141
142#ifdef __cplusplus
143}
144#endif
145
146#endif // WIN32_ERRNO_H