-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrno.d
2042 lines (1996 loc) · 98.4 KB
/
errno.d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* D header file for C99.
*
* $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_errno.h.html, _errno.h)
*
* Copyright: Copyright Sean Kelly 2005 - 2009.
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
* (See accompanying file LICENSE)
* Authors: Sean Kelly, Alex Rønne Petersen
* Source: https://github.com/dlang/druntime/blob/master/src/core/stdc/errno.d
* Standards: ISO/IEC 9899:1999 (E)
*/
version (OSX)
version = Darwin;
else version (iOS)
version = Darwin;
else version (TVOS)
version = Darwin;
else version (WatchOS)
version = Darwin;
version (ARM) version = ARM_Any;
version (AArch64) version = ARM_Any;
version (HPPA) version = HPPA_Any;
version (MIPS32) version = MIPS_Any;
version (MIPS64) version = MIPS_Any;
version (PPC) version = PPC_Any;
version (PPC64) version = PPC_Any;
version (RISCV32) version = RISCV_Any;
version (RISCV64) version = RISCV_Any;
version (S390) version = IBMZ_Any;
version (SPARC) version = SPARC_Any;
version (SPARC64) version = SPARC_Any;
version (SystemZ) version = IBMZ_Any;
version (X86) version = X86_Any;
version (X86_64) version = X86_Any;
@trusted: // Only manipulates errno.
nothrow:
@nogc:
version (CRuntime_DigitalMars)
{
extern (C)
{
ref int _errno();
alias errno = _errno;
}
}
else version (CRuntime_Microsoft)
{
extern (C)
{
ref int _errno();
alias errno = _errno;
}
}
// else version (CRuntime_Glibc)
// {
// extern (C)
// {
// ref int __errno_location();
// alias errno = __errno_location;
// }
// }
// else version (CRuntime_Musl)
// {
// extern (C)
// {
// ref int __errno_location();
// alias errno = __errno_location;
// }
// }
else version (OpenBSD)
{
// https://github.com/openbsd/src/blob/master/include/errno.h
extern (C)
{
ref int __errno();
alias errno = __errno;
}
}
else version (NetBSD)
{
// https://github.com/NetBSD/src/blob/trunk/include/errno.h
extern (C)
{
ref int __errno();
alias errno = __errno;
}
}
else version (FreeBSD)
{
extern (C)
{
ref int __error();
alias errno = __error;
}
}
else version (DragonFlyBSD)
{
extern (C)
{
pragma(mangle, "errno") int __errno;
ref int __error() {
return __errno;
}
alias errno = __error;
}
}
else version (CRuntime_Bionic)
{
extern (C)
{
ref int __errno();
alias errno = __errno;
}
}
else version (CRuntime_UClibc)
{
extern (C)
{
ref int __errno_location();
alias errno = __errno_location;
}
}
else version (Darwin)
{
extern (C)
{
ref int __error();
alias errno = __error;
}
}
else version (Solaris)
{
extern (C)
{
ref int ___errno();
alias errno = ___errno;
}
}
else version (Haiku)
{
// https://github.com/haiku/haiku/blob/master/headers/posix/errno.h
extern (C)
{
ref int _errnop();
alias errno = _errnop;
}
}
else
{
///
@property int errno() { return getErrno(); }
///
@property int errno(int n) { return setErrno(n); }
int __erno;
extern (C)
{
private int getErrno() { return __erno; } // for internal use
private int setErrno(int e) { return errno = e; } // for internal use
}
}
extern (C):
version (Windows)
{
enum EPERM = 1; /// Operation not permitted
enum ENOENT = 2; /// No such file or directory
enum ESRCH = 3; /// No such process
enum EINTR = 4; /// Interrupted system call
enum EIO = 5; /// I/O error
enum ENXIO = 6; /// No such device or address
enum E2BIG = 7; /// Argument list too long
enum ENOEXEC = 8; /// Exec format error
enum EBADF = 9; /// Bad file number
enum ECHILD = 10; /// No child processes
enum EAGAIN = 11; /// Try again
enum ENOMEM = 12; /// Out of memory
enum EACCES = 13; /// Permission denied
enum EFAULT = 14; /// Bad address
enum EBUSY = 16; /// Device or resource busy
enum EEXIST = 17; /// File exists
enum EXDEV = 18; /// Cross-device link
enum ENODEV = 19; /// No such device
enum ENOTDIR = 20; /// Not a directory
enum EISDIR = 21; /// Is a directory
enum EINVAL = 22; /// Invalid argument
enum ENFILE = 23; /// File table overflow
enum EMFILE = 24; /// Too many open files
enum ENOTTY = 25; /// Not a typewriter
enum EFBIG = 27; /// File too large
enum ENOSPC = 28; /// No space left on device
enum ESPIPE = 29; /// Illegal seek
enum EROFS = 30; /// Read-only file system
enum EMLINK = 31; /// Too many links
enum EPIPE = 32; /// Broken pipe
enum EDOM = 33; /// Math argument out of domain of func
enum ERANGE = 34; /// Math result not representable
enum EDEADLK = 36; /// Resource deadlock would occur
enum ENAMETOOLONG = 38; /// File name too long
enum ENOLCK = 39; /// No record locks available
enum ENOSYS = 40; /// Function not implemented
enum ENOTEMPTY = 41; /// Directory not empty
enum EILSEQ = 42; /// Illegal byte sequence
enum EDEADLOCK = EDEADLK; /// Resource deadlock would occur
}
else version (linux)
{
enum EPERM = 1; ///
enum ENOENT = 2; ///
enum ESRCH = 3; ///
enum EINTR = 4; ///
enum EIO = 5; ///
enum ENXIO = 6; ///
enum E2BIG = 7; ///
enum ENOEXEC = 8; ///
enum EBADF = 9; ///
enum ECHILD = 10; ///
enum EAGAIN = 11; ///
enum ENOMEM = 12; ///
enum EACCES = 13; ///
enum EFAULT = 14; ///
enum ENOTBLK = 15; ///
enum EBUSY = 16; ///
enum EEXIST = 17; ///
enum EXDEV = 18; ///
enum ENODEV = 19; ///
enum ENOTDIR = 20; ///
enum EISDIR = 21; ///
enum EINVAL = 22; ///
enum ENFILE = 23; ///
enum EMFILE = 24; ///
enum ENOTTY = 25; ///
enum ETXTBSY = 26; ///
enum EFBIG = 27; ///
enum ENOSPC = 28; ///
enum ESPIPE = 29; ///
enum EROFS = 30; ///
enum EMLINK = 31; ///
enum EPIPE = 32; ///
enum EDOM = 33; ///
enum ERANGE = 34; ///
version (X86_Any)
{
enum EDEADLK = 35; ///
enum ENAMETOOLONG = 36; ///
enum ENOLCK = 37; ///
enum ENOSYS = 38; ///
enum ENOTEMPTY = 39; ///
enum ELOOP = 40; ///
enum EWOULDBLOCK = EAGAIN; ///
enum ENOMSG = 42; ///
enum EIDRM = 43; ///
enum ECHRNG = 44; ///
enum EL2NSYNC = 45; ///
enum EL3HLT = 46; ///
enum EL3RST = 47; ///
enum ELNRNG = 48; ///
enum EUNATCH = 49; ///
enum ENOCSI = 50; ///
enum EL2HLT = 51; ///
enum EBADE = 52; ///
enum EBADR = 53; ///
enum EXFULL = 54; ///
enum ENOANO = 55; ///
enum EBADRQC = 56; ///
enum EBADSLT = 57; ///
enum EDEADLOCK = EDEADLK; ///
enum EBFONT = 59; ///
enum ENOSTR = 60; ///
enum ENODATA = 61; ///
enum ETIME = 62; ///
enum ENOSR = 63; ///
enum ENONET = 64; ///
enum ENOPKG = 65; ///
enum EREMOTE = 66; ///
enum ENOLINK = 67; ///
enum EADV = 68; ///
enum ESRMNT = 69; ///
enum ECOMM = 70; ///
enum EPROTO = 71; ///
enum EMULTIHOP = 72; ///
enum EDOTDOT = 73; ///
enum EBADMSG = 74; ///
enum EOVERFLOW = 75; ///
enum ENOTUNIQ = 76; ///
enum EBADFD = 77; ///
enum EREMCHG = 78; ///
enum ELIBACC = 79; ///
enum ELIBBAD = 80; ///
enum ELIBSCN = 81; ///
enum ELIBMAX = 82; ///
enum ELIBEXEC = 83; ///
enum EILSEQ = 84; ///
enum ERESTART = 85; ///
enum ESTRPIPE = 86; ///
enum EUSERS = 87; ///
enum ENOTSOCK = 88; ///
enum EDESTADDRREQ = 89; ///
enum EMSGSIZE = 90; ///
enum EPROTOTYPE = 91; ///
enum ENOPROTOOPT = 92; ///
enum EPROTONOSUPPORT = 93; ///
enum ESOCKTNOSUPPORT = 94; ///
enum EOPNOTSUPP = 95; ///
enum ENOTSUP = EOPNOTSUPP; ///
enum EPFNOSUPPORT = 96; ///
enum EAFNOSUPPORT = 97; ///
enum EADDRINUSE = 98; ///
enum EADDRNOTAVAIL = 99; ///
enum ENETDOWN = 100; ///
enum ENETUNREACH = 101; ///
enum ENETRESET = 102; ///
enum ECONNABORTED = 103; ///
enum ECONNRESET = 104; ///
enum ENOBUFS = 105; ///
enum EISCONN = 106; ///
enum ENOTCONN = 107; ///
enum ESHUTDOWN = 108; ///
enum ETOOMANYREFS = 109; ///
enum ETIMEDOUT = 110; ///
enum ECONNREFUSED = 111; ///
enum EHOSTDOWN = 112; ///
enum EHOSTUNREACH = 113; ///
enum EALREADY = 114; ///
enum EINPROGRESS = 115; ///
enum ESTALE = 116; ///
enum EUCLEAN = 117; ///
enum ENOTNAM = 118; ///
enum ENAVAIL = 119; ///
enum EISNAM = 120; ///
enum EREMOTEIO = 121; ///
enum EDQUOT = 122; ///
enum ENOMEDIUM = 123; ///
enum EMEDIUMTYPE = 124; ///
enum ECANCELED = 125; ///
enum ENOKEY = 126; ///
enum EKEYEXPIRED = 127; ///
enum EKEYREVOKED = 128; ///
enum EKEYREJECTED = 129; ///
enum EOWNERDEAD = 130; ///
enum ENOTRECOVERABLE = 131; ///
enum ERFKILL = 132; ///
enum EHWPOISON = 133; ///
}
else version (ARM_Any)
{
enum EDEADLK = 35; ///
enum ENAMETOOLONG = 36; ///
enum ENOLCK = 37; ///
enum ENOSYS = 38; ///
enum ENOTEMPTY = 39; ///
enum ELOOP = 40; ///
enum EWOULDBLOCK = EAGAIN; ///
enum ENOMSG = 42; ///
enum EIDRM = 43; ///
enum ECHRNG = 44; ///
enum EL2NSYNC = 45; ///
enum EL3HLT = 46; ///
enum EL3RST = 47; ///
enum ELNRNG = 48; ///
enum EUNATCH = 49; ///
enum ENOCSI = 50; ///
enum EL2HLT = 51; ///
enum EBADE = 52; ///
enum EBADR = 53; ///
enum EXFULL = 54; ///
enum ENOANO = 55; ///
enum EBADRQC = 56; ///
enum EBADSLT = 57; ///
enum EDEADLOCK = EDEADLK; ///
enum EBFONT = 59; ///
enum ENOSTR = 60; ///
enum ENODATA = 61; ///
enum ETIME = 62; ///
enum ENOSR = 63; ///
enum ENONET = 64; ///
enum ENOPKG = 65; ///
enum EREMOTE = 66; ///
enum ENOLINK = 67; ///
enum EADV = 68; ///
enum ESRMNT = 69; ///
enum ECOMM = 70; ///
enum EPROTO = 71; ///
enum EMULTIHOP = 72; ///
enum EDOTDOT = 73; ///
enum EBADMSG = 74; ///
enum EOVERFLOW = 75; ///
enum ENOTUNIQ = 76; ///
enum EBADFD = 77; ///
enum EREMCHG = 78; ///
enum ELIBACC = 79; ///
enum ELIBBAD = 80; ///
enum ELIBSCN = 81; ///
enum ELIBMAX = 82; ///
enum ELIBEXEC = 83; ///
enum EILSEQ = 84; ///
enum ERESTART = 85; ///
enum ESTRPIPE = 86; ///
enum EUSERS = 87; ///
enum ENOTSOCK = 88; ///
enum EDESTADDRREQ = 89; ///
enum EMSGSIZE = 90; ///
enum EPROTOTYPE = 91; ///
enum ENOPROTOOPT = 92; ///
enum EPROTONOSUPPORT = 93; ///
enum ESOCKTNOSUPPORT = 94; ///
enum EOPNOTSUPP = 95; ///
enum ENOTSUP = EOPNOTSUPP; ///
enum EPFNOSUPPORT = 96; ///
enum EAFNOSUPPORT = 97; ///
enum EADDRINUSE = 98; ///
enum EADDRNOTAVAIL = 99; ///
enum ENETDOWN = 100; ///
enum ENETUNREACH = 101; ///
enum ENETRESET = 102; ///
enum ECONNABORTED = 103; ///
enum ECONNRESET = 104; ///
enum ENOBUFS = 105; ///
enum EISCONN = 106; ///
enum ENOTCONN = 107; ///
enum ESHUTDOWN = 108; ///
enum ETOOMANYREFS = 109; ///
enum ETIMEDOUT = 110; ///
enum ECONNREFUSED = 111; ///
enum EHOSTDOWN = 112; ///
enum EHOSTUNREACH = 113; ///
enum EALREADY = 114; ///
enum EINPROGRESS = 115; ///
enum ESTALE = 116; ///
enum EUCLEAN = 117; ///
enum ENOTNAM = 118; ///
enum ENAVAIL = 119; ///
enum EISNAM = 120; ///
enum EREMOTEIO = 121; ///
enum EDQUOT = 122; ///
enum ENOMEDIUM = 123; ///
enum EMEDIUMTYPE = 124; ///
enum ECANCELED = 125; ///
enum ENOKEY = 126; ///
enum EKEYEXPIRED = 127; ///
enum EKEYREVOKED = 128; ///
enum EKEYREJECTED = 129; ///
enum EOWNERDEAD = 130; ///
enum ENOTRECOVERABLE = 131; ///
enum ERFKILL = 132; ///
enum EHWPOISON = 133; ///
}
else version (HPPA_Any)
{
enum ENOMSG = 35; ///
enum EIDRM = 36; ///
enum ECHRNG = 37; ///
enum EL2NSYNC = 38; ///
enum EL3HLT = 39; ///
enum EL3RST = 40; ///
enum ELNRNG = 41; ///
enum EUNATCH = 42; ///
enum ENOCSI = 43; ///
enum EL2HLT = 44; ///
enum EDEADLK = 45; ///
enum EDEADLOCK = EDEADLK; ///
enum ENOLCK = 46; ///
enum EILSEQ = 47; ///
enum ENONET = 50; ///
enum ENODATA = 51; ///
enum ETIME = 52; ///
enum ENOSR = 53; ///
enum ENOSTR = 54; ///
enum ENOPKG = 55; ///
enum ENOLINK = 57; ///
enum EADV = 58; ///
enum ESRMNT = 59; ///
enum ECOMM = 60; ///
enum EPROTO = 61; ///
enum EMULTIHOP = 64; ///
enum EDOTDOT = 66; ///
enum EBADMSG = 67; ///
enum EUSERS = 68; ///
enum EDQUOT = 69; ///
enum ESTALE = 70; ///
enum EREMOTE = 71; ///
enum EOVERFLOW = 72; ///
enum EBADE = 160; ///
enum EBADR = 161; ///
enum EXFULL = 162; ///
enum ENOANO = 163; ///
enum EBADRQC = 164; ///
enum EBADSLT = 165; ///
enum EBFONT = 166; ///
enum ENOTUNIQ = 167; ///
enum EBADFD = 168; ///
enum EREMCHG = 169; ///
enum ELIBACC = 170; ///
enum ELIBBAD = 171; ///
enum ELIBSCN = 172; ///
enum ELIBMAX = 173; ///
enum ELIBEXEC = 174; ///
enum ERESTART = 175; ///
enum ESTRPIPE = 176; ///
enum EUCLEAN = 177; ///
enum ENOTNAM = 178; ///
enum ENAVAIL = 179; ///
enum EISNAM = 180; ///
enum EREMOTEIO = 181; ///
enum ENOMEDIUM = 182; ///
enum EMEDIUMTYPE = 183; ///
enum ENOKEY = 184; ///
enum EKEYEXPIRED = 185; ///
enum EKEYREVOKED = 186; ///
enum EKEYREJECTED = 187; ///
enum ENOSYM = 215; ///
enum ENOTSOCK = 216; ///
enum EDESTADDRREQ = 217; ///
enum EMSGSIZE = 218; ///
enum EPROTOTYPE = 219; ///
enum ENOPROTOOPT = 220; ///
enum EPROTONOSUPPORT = 221; ///
enum ESOCKTNOSUPPORT = 221; ///
enum EOPNOTSUPP = 223; ///
enum EPFNOSUPPORT = 224; ///
enum EAFNOSUPPORT = 225; ///
enum EADDRINUSE = 226; ///
enum EADDRNOTAVAIL = 227; ///
enum ENETDOWN = 228; ///
enum ENETUNREACH = 229; ///
enum ENETRESET = 230; ///
enum ECONNABORTED = 231; ///
enum ECONNRESET = 232; ///
enum ENOBUFS = 233; ///
enum EISCONN = 234; ///
enum ENOTCONN = 235; ///
enum ESHUTDOWN = 236; ///
enum ETOOMANYREFS = 237; ///
enum ETIMEDOUT = 238; ///
enum ECONNREFUSED = 239; ///
enum EREFUSED = ECONNREFUSED; ///
enum EREMOTERELEASE = 240; ///
enum EHOSTDOWN = 241; ///
enum EHOSTUNREACH = 242; ///
enum EALREADY = 244; ///
enum EINPROGRESS = 245; ///
enum EWOULDBLOCK = EAGAIN; ///
enum ENOTEMPTY = 247; ///
enum ENAMETOOLONG = 248; ///
enum ELOOP = 249; ///
enum ENOSYS = 251; ///
enum ECANCELLED = 253; ///
enum ECANCELED = ECANCELLED; ///
enum EOWNERDEAD = 254; ///
enum ENOTRECOVERABLE = 255; ///
enum ERFKILL = 256; ///
enum EHWPOISON = 257; ///
}
else version (MIPS_Any)
{
enum ENOMSG = 35; ///
enum EIDRM = 36; ///
enum ECHRNG = 37; ///
enum EL2NSYNC = 38; ///
enum EL3HLT = 39; ///
enum EL3RST = 40; ///
enum ELNRNG = 41; ///
enum EUNATCH = 42; ///
enum ENOCSI = 43; ///
enum EL2HLT = 44; ///
enum EDEADLK = 45; ///
enum ENOLCK = 46; ///
enum EBADE = 50; ///
enum EBADR = 51; ///
enum EXFULL = 52; ///
enum ENOANO = 53; ///
enum EBADRQC = 54; ///
enum EBADSLT = 55; ///
enum EDEADLOCK = 56; ///
enum EBFONT = 59; ///
enum ENOSTR = 60; ///
enum ENODATA = 61; ///
enum ETIME = 62; ///
enum ENOSR = 63; ///
enum ENONET = 64; ///
enum ENOPKG = 65; ///
enum EREMOTE = 66; ///
enum ENOLINK = 67; ///
enum EADV = 68; ///
enum ESRMNT = 69; ///
enum ECOMM = 70; ///
enum EPROTO = 71; ///
enum EDOTDOT = 73; ///
enum EMULTIHOP = 74; ///
enum EBADMSG = 77; ///
enum ENAMETOOLONG = 78; ///
enum EOVERFLOW = 79; ///
enum ENOTUNIQ = 80; ///
enum EBADFD = 81; ///
enum EREMCHG = 82; ///
enum ELIBACC = 83; ///
enum ELIBBAD = 84; ///
enum ELIBSCN = 85; ///
enum ELIBMAX = 86; ///
enum ELIBEXEC = 87; ///
enum EILSEQ = 88; ///
enum ENOSYS = 89; ///
enum ELOOP = 90; ///
enum ERESTART = 91; ///
enum ESTRPIPE = 92; ///
enum ENOTEMPTY = 93; ///
enum EUSERS = 94; ///
enum ENOTSOCK = 95; ///
enum EDESTADDRREQ = 96; ///
enum EMSGSIZE = 97; ///
enum EPROTOTYPE = 98; ///
enum ENOPROTOOPT = 99; ///
enum EPROTONOSUPPORT = 120; ///
enum ESOCKTNOSUPPORT = 121; ///
enum EOPNOTSUPP = 122; ///
enum ENOTSUP = EOPNOTSUPP; ///
enum EPFNOSUPPORT = 123; ///
enum EAFNOSUPPORT = 124; ///
enum EADDRINUSE = 125; ///
enum EADDRNOTAVAIL = 126; ///
enum ENETDOWN = 127; ///
enum ENETUNREACH = 128; ///
enum ENETRESET = 129; ///
enum ECONNABORTED = 130; ///
enum ECONNRESET = 131; ///
enum ENOBUFS = 132; ///
enum EISCONN = 133; ///
enum ENOTCONN = 134; ///
enum EUCLEAN = 135; ///
enum ENOTNAM = 137; ///
enum ENAVAIL = 138; ///
enum EISNAM = 139; ///
enum EREMOTEIO = 140; ///
enum EINIT = 141; ///
enum EREMDEV = 142; ///
enum ESHUTDOWN = 143; ///
enum ETOOMANYREFS = 144; ///
enum ETIMEDOUT = 145; ///
enum ECONNREFUSED = 146; ///
enum EHOSTDOWN = 147; ///
enum EHOSTUNREACH = 148; ///
enum EWOULDBLOCK = EAGAIN; ///
enum EALREADY = 149; ///
enum EINPROGRESS = 150; ///
enum ESTALE = 151; ///
enum ECANCELED = 158; ///
enum ENOMEDIUM = 159; ///
enum EMEDIUMTYPE = 160; ///
enum ENOKEY = 161; ///
enum EKEYEXPIRED = 162; ///
enum EKEYREVOKED = 163; ///
enum EKEYREJECTED = 164; ///
enum EOWNERDEAD = 165; ///
enum ENOTRECOVERABLE = 166; ///
enum ERFKILL = 167; ///
enum EHWPOISON = 168; ///
enum EDQUOT = 1133; ///
}
else version (PPC_Any)
{
enum EDEADLK = 35; ///
enum ENAMETOOLONG = 36; ///
enum ENOLCK = 37; ///
enum ENOSYS = 38; ///
enum ENOTEMPTY = 39; ///
enum ELOOP = 40; ///
enum EWOULDBLOCK = EAGAIN; ///
enum ENOMSG = 42; ///
enum EIDRM = 43; ///
enum ECHRNG = 44; ///
enum EL2NSYNC = 45; ///
enum EL3HLT = 46; ///
enum EL3RST = 47; ///
enum ELNRNG = 48; ///
enum EUNATCH = 49; ///
enum ENOCSI = 50; ///
enum EL2HLT = 51; ///
enum EBADE = 52; ///
enum EBADR = 53; ///
enum EXFULL = 54; ///
enum ENOANO = 55; ///
enum EBADRQC = 56; ///
enum EBADSLT = 57; ///
enum EDEADLOCK = 58; ///
enum EBFONT = 59; ///
enum ENOSTR = 60; ///
enum ENODATA = 61; ///
enum ETIME = 62; ///
enum ENOSR = 63; ///
enum ENONET = 64; ///
enum ENOPKG = 65; ///
enum EREMOTE = 66; ///
enum ENOLINK = 67; ///
enum EADV = 68; ///
enum ESRMNT = 69; ///
enum ECOMM = 70; ///
enum EPROTO = 71; ///
enum EMULTIHOP = 72; ///
enum EDOTDOT = 73; ///
enum EBADMSG = 74; ///
enum EOVERFLOW = 75; ///
enum ENOTUNIQ = 76; ///
enum EBADFD = 77; ///
enum EREMCHG = 78; ///
enum ELIBACC = 79; ///
enum ELIBBAD = 80; ///
enum ELIBSCN = 81; ///
enum ELIBMAX = 82; ///
enum ELIBEXEC = 83; ///
enum EILSEQ = 84; ///
enum ERESTART = 85; ///
enum ESTRPIPE = 86; ///
enum EUSERS = 87; ///
enum ENOTSOCK = 88; ///
enum EDESTADDRREQ = 89; ///
enum EMSGSIZE = 90; ///
enum EPROTOTYPE = 91; ///
enum ENOPROTOOPT = 92; ///
enum EPROTONOSUPPORT = 93; ///
enum ESOCKTNOSUPPORT = 94; ///
enum EOPNOTSUPP = 95; ///
enum ENOTSUP = EOPNOTSUPP; ///
enum EPFNOSUPPORT = 96; ///
enum EAFNOSUPPORT = 97; ///
enum EADDRINUSE = 98; ///
enum EADDRNOTAVAIL = 99; ///
enum ENETDOWN = 100; ///
enum ENETUNREACH = 101; ///
enum ENETRESET = 102; ///
enum ECONNABORTED = 103; ///
enum ECONNRESET = 104; ///
enum ENOBUFS = 105; ///
enum EISCONN = 106; ///
enum ENOTCONN = 107; ///
enum ESHUTDOWN = 108; ///
enum ETOOMANYREFS = 109; ///
enum ETIMEDOUT = 110; ///
enum ECONNREFUSED = 111; ///
enum EHOSTDOWN = 112; ///
enum EHOSTUNREACH = 113; ///
enum EALREADY = 114; ///
enum EINPROGRESS = 115; ///
enum ESTALE = 116; ///
enum EUCLEAN = 117; ///
enum ENOTNAM = 118; ///
enum ENAVAIL = 119; ///
enum EISNAM = 120; ///
enum EREMOTEIO = 121; ///
enum EDQUOT = 122; ///
enum ENOMEDIUM = 123; ///
enum EMEDIUMTYPE = 124; ///
enum ECANCELED = 125; ///
enum ENOKEY = 126; ///
enum EKEYEXPIRED = 127; ///
enum EKEYREVOKED = 128; ///
enum EKEYREJECTED = 129; ///
enum EOWNERDEAD = 130; ///
enum ENOTRECOVERABLE = 131; ///
enum ERFKILL = 132; ///
enum EHWPOISON = 133; ///
}
else version (RISCV_Any)
{
enum EDEADLK = 35; ///
enum ENAMETOOLONG = 36; ///
enum ENOLCK = 37; ///
enum ENOSYS = 38; ///
enum ENOTEMPTY = 39; ///
enum ELOOP = 40; ///
enum EWOULDBLOCK = EAGAIN; ///
enum ENOMSG = 42; ///
enum EIDRM = 43; ///
enum ECHRNG = 44; ///
enum EL2NSYNC = 45; ///
enum EL3HLT = 46; ///
enum EL3RST = 47; ///
enum ELNRNG = 48; ///
enum EUNATCH = 49; ///
enum ENOCSI = 50; ///
enum EL2HLT = 51; ///
enum EBADE = 52; ///
enum EBADR = 53; ///
enum EXFULL = 54; ///
enum ENOANO = 55; ///
enum EBADRQC = 56; ///
enum EBADSLT = 57; ///
enum EDEADLOCK = EDEADLK; ///
enum EBFONT = 59; ///
enum ENOSTR = 60; ///
enum ENODATA = 61; ///
enum ETIME = 62; ///
enum ENOSR = 63; ///
enum ENONET = 64; ///
enum ENOPKG = 65; ///
enum EREMOTE = 66; ///
enum ENOLINK = 67; ///
enum EADV = 68; ///
enum ESRMNT = 69; ///
enum ECOMM = 70; ///
enum EPROTO = 71; ///
enum EMULTIHOP = 72; ///
enum EDOTDOT = 73; ///
enum EBADMSG = 74; ///
enum EOVERFLOW = 75; ///
enum ENOTUNIQ = 76; ///
enum EBADFD = 77; ///
enum EREMCHG = 78; ///
enum ELIBACC = 79; ///
enum ELIBBAD = 80; ///
enum ELIBSCN = 81; ///
enum ELIBMAX = 82; ///
enum ELIBEXEC = 83; ///
enum EILSEQ = 84; ///
enum ERESTART = 85; ///
enum ESTRPIPE = 86; ///
enum EUSERS = 87; ///
enum ENOTSOCK = 88; ///
enum EDESTADDRREQ = 89; ///
enum EMSGSIZE = 90; ///
enum EPROTOTYPE = 91; ///
enum ENOPROTOOPT = 92; ///
enum EPROTONOSUPPORT = 93; ///
enum ESOCKTNOSUPPORT = 94; ///
enum EOPNOTSUPP = 95; ///
enum EPFNOSUPPORT = 96; ///
enum EAFNOSUPPORT = 97; ///
enum EADDRINUSE = 98; ///
enum EADDRNOTAVAIL = 99; ///
enum ENETDOWN = 100; ///
enum ENETUNREACH = 101; ///
enum ENETRESET = 102; ///
enum ECONNABORTED = 103; ///
enum ECONNRESET = 104; ///
enum ENOBUFS = 105; ///
enum EISCONN = 106; ///
enum ENOTCONN = 107; ///
enum ESHUTDOWN = 108; ///
enum ETOOMANYREFS = 109; ///
enum ETIMEDOUT = 110; ///
enum ECONNREFUSED = 111; ///
enum EHOSTDOWN = 112; ///
enum EHOSTUNREACH = 113; ///
enum EALREADY = 114; ///
enum EINPROGRESS = 115; ///
enum ESTALE = 116; ///
enum EUCLEAN = 117; ///
enum ENOTNAM = 118; ///
enum ENAVAIL = 119; ///
enum EISNAM = 120; ///
enum EREMOTEIO = 121; ///
enum EDQUOT = 122; ///
enum ENOMEDIUM = 123; ///
enum EMEDIUMTYPE = 124; ///
enum ECANCELED = 125; ///
enum ENOKEY = 126; ///
enum EKEYEXPIRED = 127; ///
enum EKEYREVOKED = 128; ///
enum EKEYREJECTED = 129; ///
enum EOWNERDEAD = 130; ///
enum ENOTRECOVERABLE = 131; ///
enum ERFKILL = 132; ///
enum EHWPOISON = 133; ///
}
else version (SPARC_Any)
{
enum EWOULDBLOCK = EAGAIN; ///
enum EINPROGRESS = 36; ///
enum EALREADY = 37; ///
enum ENOTSOCK = 38; ///
enum EDESTADDRREQ = 39; ///
enum EMSGSIZE = 40; ///
enum EPROTOTYPE = 41; ///
enum ENOPROTOOPT = 42; ///
enum EPROTONOSUPPORT = 43; ///
enum ESOCKTNOSUPPORT = 44; ///
enum EOPNOTSUPP = 45; ///
enum ENOTSUP = EOPNOTSUPP; ///
enum EPFNOSUPPORT = 46; ///
enum EAFNOSUPPORT = 47; ///
enum EADDRINUSE = 48; ///
enum EADDRNOTAVAIL = 49; ///
enum ENETDOWN = 50; ///
enum ENETUNREACH = 51; ///
enum ENETRESET = 52; ///
enum ECONNABORTED = 53; ///
enum ECONNRESET = 54; ///
enum ENOBUFS = 55; ///
enum EISCONN = 56; ///
enum ENOTCONN = 57; ///
enum ESHUTDOWN = 58; ///
enum ETOOMANYREFS = 59; ///
enum ETIMEDOUT = 60; ///
enum ECONNREFUSED = 61; ///
enum ELOOP = 62; ///
enum ENAMETOOLONG = 63; ///
enum EHOSTDOWN = 64; ///
enum EHOSTUNREACH = 65; ///
enum ENOTEMPTY = 66; ///
enum EPROCLIM = 67; ///
enum EUSERS = 68; ///
enum EDQUOT = 69; ///
enum ESTALE = 70; ///
enum EREMOTE = 71; ///
enum ENOSTR = 72; ///
enum ETIME = 73; ///
enum ENOSR = 74; ///
enum ENOMSG = 75; ///
enum EBADMSG = 76; ///
enum EIDRM = 77; ///
enum EDEADLK = 78; ///
enum ENOLCK = 79; ///
enum ENONET = 80; ///
enum ERREMOTE = 81; ///
enum ENOLINK = 82; ///
enum EADV = 83; ///
enum ESRMNT = 84; ///
enum ECOMM = 85; ///
enum EPROTO = 86; ///
enum EMULTIHOP = 87; ///
enum EDOTDOT = 88; ///
enum EREMCHG = 89; ///
enum ENOSYS = 90; ///
enum ESTRPIPE = 91; ///
enum EOVERFLOW = 92; ///
enum EBADFD = 93; ///
enum ECHRNG = 94; ///
enum EL2NSYNC = 95; ///
enum EL3HLT = 96; ///
enum EL3RST = 97; ///
enum ELNRNG = 98; ///
enum EUNATCH = 99; ///
enum ENOCSI = 100; ///
enum EL2HLT = 101; ///
enum EBADE = 102; ///
enum EBADR = 103; ///
enum EXFULL = 104; ///
enum ENOANO = 105; ///
enum EBADRQC = 106; ///
enum EBADSLT = 107; ///
enum EDEADLOCK = 108; ///
enum EBFONT = 109; ///
enum ELIBEXEC = 110; ///
enum ENODATA = 111; ///
enum ELIBBAD = 112; ///
enum ENOPKG = 113; ///
enum ELIBACC = 114; ///
enum ENOTUNIQ = 115; ///
enum ERESTART = 116; ///
enum EUCLEAN = 117; ///
enum ENOTNAM = 118; ///
enum ENAVAIL = 119; ///
enum EISNAM = 120; ///
enum EREMOTEIO = 121; ///
enum EILSEQ = 122; ///
enum ELIBMAX = 123; ///
enum ELIBSCN = 124; ///
enum ENOMEDIUM = 125; ///
enum EMEDIUMTYPE = 126; ///
enum ECANCELED = 127; ///
enum ENOKEY = 128; ///
enum EKEYEXPIRED = 129; ///
enum EKEYREVOKED = 130; ///
enum EKEYREJECTED = 131; ///
enum EOWNERDEAD = 132; ///
enum ENOTRECOVERABLE = 133; ///
enum ERFKILL = 134; ///
enum EHWPOISON = 135; ///
}
else version (IBMZ_Any)
{
enum EDEADLK = 35; ///
enum ENAMETOOLONG = 36; ///
enum ENOLCK = 37; ///
enum ENOSYS = 38; ///
enum ENOTEMPTY = 39; ///
enum ELOOP = 40; ///
enum EWOULDBLOCK = EAGAIN; ///
enum ENOMSG = 42; ///
enum EIDRM = 43; ///
enum ECHRNG = 44; ///
enum EL2NSYNC = 45; ///
enum EL3HLT = 46; ///
enum EL3RST = 47; ///
enum ELNRNG = 48; ///
enum EUNATCH = 49; ///
enum ENOCSI = 50; ///
enum EL2HLT = 51; ///
enum EBADE = 52; ///
enum EBADR = 53; ///
enum EXFULL = 54; ///
enum ENOANO = 55; ///