authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-03-04 09:01:19-05:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-03-04 09:01:19-05:00
log1cf3209cb8c03227987b6f4fe43838bf224c4f26
tree7d5e763f466c2f047c90ed894b0614ca7f3324e0
parentcd33c5bfe8e1901bba625d5048029de38e703dd6
parent447a89cd4db37b3d184bc05a46bf330066e677ab
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #4623 from ziglang/update-glibc

Update glibc to 2.31 Closes #4459.

1106 files changed, 5763 insertions(+), 5318 deletions(-)

lib/libc/glibc/abi.txt+250-235
...@@ -2735,6 +2735,7 @@ aarch64-linux-gnu aarch64_be-linux-gnu...@@ -2735,6 +2735,7 @@ aarch64-linux-gnu aarch64_be-linux-gnu
273529273529
273629273629
273729273729
273841
273829273929
273940274040
274029274129
...@@ -3420,22 +3421,22 @@ aarch64-linux-gnu aarch64_be-linux-gnu...@@ -3420,22 +3421,22 @@ aarch64-linux-gnu aarch64_be-linux-gnu
342029342129
342129342229
342229342329
342335342435 41
342435342535 41
342537342637 41
342637342737 41
342737342837 41
342837342937 41
342937343037 41
343035343135 41
343135343235 41
343235343335 41
343337343437 41
343437343537 41
343537343637 41
343637343737 41
343737343837 41
343835343935 41
343929344029
344029344129
344129344229
...@@ -4240,7 +4241,7 @@ s390x-linux-gnu...@@ -4240,7 +4241,7 @@ s390x-linux-gnu
4240542415
4241542425
4242542435
4243424411
424427424527
42454246
424627424727
...@@ -6461,6 +6462,7 @@ s390x-linux-gnu...@@ -6461,6 +6462,7 @@ s390x-linux-gnu
6461564625
6462564635
6463564645
646541
64645 1364665 13
646540646740
64665 1364685 13
...@@ -7146,22 +7148,22 @@ s390x-linux-gnu...@@ -7146,22 +7148,22 @@ s390x-linux-gnu
7146571485
7147571495
714812715012
714935715135 41
715035715235 41
715137715337 41
715237715437 41
715337715537 41
715437715637 41
715537715737 41
715635715835 41
715735715935 41
715835716035 41
715937716137 41
716037716237 41
716137716337 41
716237716437 41
716337716537 41
716435716635 41
7165571675
716612716812
7167571695
...@@ -10187,6 +10189,7 @@ arm-linux-gnueabi armeb-linux-gnueabi arm-linux-gnueabihf armeb-linux-gnueabihf...@@ -10187,6 +10189,7 @@ arm-linux-gnueabi armeb-linux-gnueabi arm-linux-gnueabihf armeb-linux-gnueabihf
10187161018916
10188161019016
10189161019116
1019241
10190161019316
10191401019440
10192161019516
...@@ -10872,22 +10875,22 @@ arm-linux-gnueabi armeb-linux-gnueabi arm-linux-gnueabihf armeb-linux-gnueabihf...@@ -10872,22 +10875,22 @@ arm-linux-gnueabi armeb-linux-gnueabi arm-linux-gnueabihf armeb-linux-gnueabihf
10872161087516
10873161087616
10874161087716
10875351087835 41
10876351087935 41
1087710880
10878371088137 41
10879371088237 41
10880371088337 41
1088110884
10882351088535 41
10883351088635 41
10884351088735 41
1088510888
10886371088937 41
10887371089037 41
10888371089137 41
1088910892
10890351089335 41
10891161089416
10892161089516
10893161089616
...@@ -11692,7 +11695,7 @@ sparc-linux-gnu sparcel-linux-gnu...@@ -11692,7 +11695,7 @@ sparc-linux-gnu sparcel-linux-gnu
116921116951
116930116960
116940116970
116953116983 11
11696271169927
1169711700
11698271170127
...@@ -13913,6 +13916,7 @@ sparc-linux-gnu sparcel-linux-gnu...@@ -13913,6 +13916,7 @@ sparc-linux-gnu sparcel-linux-gnu
139135139165
139145139175
139150139180
1391941
139160 13139200 13
13917401392140
139180 13139220 13
...@@ -14598,22 +14602,22 @@ sparc-linux-gnu sparcel-linux-gnu...@@ -14598,22 +14602,22 @@ sparc-linux-gnu sparcel-linux-gnu
145980146020
145990146030
14600121460412
14601351460535 41
14602351460635 41
14603371460737 41
14604371460837 41
14605371460937 41
14606371461037 41
14607371461137 41
14608351461235 41
14609351461335 41
14610351461435 41
14611371461537 41
14612371461637 41
14613371461737 41
14614371461837 41
14615371461937 41
14616351462035 41
146170146210
14618121462212
146190146230
...@@ -15418,7 +15422,7 @@ sparcv9-linux-gnu...@@ -15418,7 +15422,7 @@ sparcv9-linux-gnu
154185154225
154195154235
154205154245
154211542511
15422271542627
1542315427
15424271542827
...@@ -17639,6 +17643,7 @@ sparcv9-linux-gnu...@@ -17639,6 +17643,7 @@ sparcv9-linux-gnu
176395176435
176405176445
176415176455
1764641
176425 13176475 13
17643401764840
176445 13176495 13
...@@ -18324,22 +18329,22 @@ sparcv9-linux-gnu...@@ -18324,22 +18329,22 @@ sparcv9-linux-gnu
183245183295
183255183305
18326121833112
18327351833235 41
18328351833335 41
18329371833437 41
18330371833537 41
18331371833637 41
18332371833737 41
18333371833837 41
18334351833935 41
18335351834035 41
18336351834135 41
18337371834237 41
18338371834337 41
18339371834437 41
18340371834537 41
18341371834637 41
18342351834735 41
183435183485
18344121834912
183455183505
...@@ -19144,7 +19149,7 @@ mips64el-linux-gnuabi64 mips64-linux-gnuabi64...@@ -19144,7 +19149,7 @@ mips64el-linux-gnuabi64 mips64-linux-gnuabi64
191445191495
191450191500
191460191510
191471915211
19148271915327
1914919154
19150271915527
...@@ -21365,6 +21370,7 @@ mips64el-linux-gnuabi64 mips64-linux-gnuabi64...@@ -21365,6 +21370,7 @@ mips64el-linux-gnuabi64 mips64-linux-gnuabi64
213655213705
213665213715
213670213720
2137341
213680 13213740 13
21369402137540
213700 13213760 13
...@@ -22050,22 +22056,22 @@ mips64el-linux-gnuabi64 mips64-linux-gnuabi64...@@ -22050,22 +22056,22 @@ mips64el-linux-gnuabi64 mips64-linux-gnuabi64
220500220560
220510220570
22052122205812
22053352205935 41
22054352206035 41
22055372206137 41
22056372206237 41
22057372206337 41
22058372206437 41
22059372206537 41
22060352206635 41
22061352206735 41
22062352206835 41
22063372206937 41
22064372207037 41
22065372207137 41
22066372207237 41
22067372207337 41
22068352207435 41
220690220750
22070122207612
220710220770
...@@ -22870,7 +22876,7 @@ mips64el-linux-gnuabin32 mips64-linux-gnuabin32...@@ -22870,7 +22876,7 @@ mips64el-linux-gnuabin32 mips64-linux-gnuabin32
228705228765
228710228770
228720228780
228732287911
22874272288027
2287522881
22876272288227
...@@ -25091,6 +25097,7 @@ mips64el-linux-gnuabin32 mips64-linux-gnuabin32...@@ -25091,6 +25097,7 @@ mips64el-linux-gnuabin32 mips64-linux-gnuabin32
250915250975
250925250985
250930250990
2510041
250940 13251010 13
25095402510240
250960 13251030 13
...@@ -25776,22 +25783,22 @@ mips64el-linux-gnuabin32 mips64-linux-gnuabin32...@@ -25776,22 +25783,22 @@ mips64el-linux-gnuabin32 mips64-linux-gnuabin32
257760257830
257770257840
25778122578512
25779352578635 41
25780352578735 41
25781372578837 41
25782372578937 41
25783372579037 41
25784372579137 41
25785372579237 41
25786352579335 41
25787352579435 41
25788352579535 41
25789372579637 41
25790372579737 41
25791372579837 41
25792372579937 41
25793372580037 41
25794352580135 41
257950258020
25796122580312
257970258040
...@@ -26596,7 +26603,7 @@ mipsel-linux-gnueabihf mips-linux-gnueabihf...@@ -26596,7 +26603,7 @@ mipsel-linux-gnueabihf mips-linux-gnueabihf
265965266035
265970266040
265980266050
265992660611
26600272660727
2660126608
26602272660927
...@@ -28817,6 +28824,7 @@ mipsel-linux-gnueabihf mips-linux-gnueabihf...@@ -28817,6 +28824,7 @@ mipsel-linux-gnueabihf mips-linux-gnueabihf
288175288245
288185288255
288190288260
2882741
288200 13288280 13
28821402882940
288220 13288300 13
...@@ -29502,22 +29510,22 @@ mipsel-linux-gnueabihf mips-linux-gnueabihf...@@ -29502,22 +29510,22 @@ mipsel-linux-gnueabihf mips-linux-gnueabihf
295020295100
295030295110
29504122951212
29505352951335 41
29506352951435 41
2950729515
29508372951637 41
29509372951737 41
29510372951837 41
2951129519
29512352952035 41
29513352952135 41
29514352952235 41
2951529523
29516372952437 41
29517372952537 41
29518372952637 41
2951929527
29520352952835 41
295210295290
29522122953012
295230295310
...@@ -30322,7 +30330,7 @@ mipsel-linux-gnueabi mips-linux-gnueabi...@@ -30322,7 +30330,7 @@ mipsel-linux-gnueabi mips-linux-gnueabi
303225303305
303230303310
303240303320
303253033311
30326273033427
3032730335
30328273033627
...@@ -32543,6 +32551,7 @@ mipsel-linux-gnueabi mips-linux-gnueabi...@@ -32543,6 +32551,7 @@ mipsel-linux-gnueabi mips-linux-gnueabi
325435325515
325445325525
325450325530
3255441
325460 13325550 13
32547403255640
325480 13325570 13
...@@ -33228,22 +33237,22 @@ mipsel-linux-gnueabi mips-linux-gnueabi...@@ -33228,22 +33237,22 @@ mipsel-linux-gnueabi mips-linux-gnueabi
332280332370
332290332380
33230123323912
33231353324035 41
33232353324135 41
3323333242
33234373324337 41
33235373324437 41
33236373324537 41
3323733246
33238353324735 41
33239353324835 41
33240353324935 41
3324133250
33242373325137 41
33243373325237 41
33244373325337 41
3324533254
33246353325535 41
332470332560
33248123325712
332490332580
...@@ -34048,7 +34057,7 @@ x86_64-linux-gnu...@@ -34048,7 +34057,7 @@ x86_64-linux-gnu
34048103405710
34049103405810
34050103405910
340513406011
34052273406127
34053363406236
34054273406327
...@@ -36269,6 +36278,7 @@ x86_64-linux-gnu...@@ -36269,6 +36278,7 @@ x86_64-linux-gnu
36269103627810
36270103627910
36271103628010
3628141
3627210 133628210 13
36273403628340
3627410 133628410 13
...@@ -36954,22 +36964,22 @@ x86_64-linux-gnu...@@ -36954,22 +36964,22 @@ x86_64-linux-gnu
36954103696410
36955103696510
36956123696612
36957353696735 41
36958353696835 41
36959363696936 41
36960373697037 41
36961373697137 41
36962373697237 41
36963373697337 41
36964353697435 41
36965353697535 41
36966353697635 41
36967363697736 41
36968373697837 41
36969373697937 41
36970373698037 41
36971373698137 41
36972353698235 41
36973103698310
36974123698412
36975103698510
...@@ -38600,11 +38610,11 @@ x86_64-linux-gnux32...@@ -38600,11 +38610,11 @@ x86_64-linux-gnux32
38600283861028
38601283861128
38602283861228
3860329 283861328 29
3860429 283861428 29
3860529 283861528 29
3860629 283861628 29
3860729 283861728 29
38608283861828
38609283861928
38610283862028
...@@ -39995,6 +40005,7 @@ x86_64-linux-gnux32...@@ -39995,6 +40005,7 @@ x86_64-linux-gnux32
39995284000528
39996284000628
39997284000728
4000841
39998284000928
39999404001040
40000284001128
...@@ -40680,22 +40691,22 @@ x86_64-linux-gnux32...@@ -40680,22 +40691,22 @@ x86_64-linux-gnux32
40680284069128
40681284069228
40682284069328
40683354069435 41
40684354069535 41
40685364069636 41
40686374069737 41
40687374069837 41
40688374069937 41
40689374070037 41
40690354070135 41
40691354070235 41
40692354070335 41
40693364070436 41
40694374070537 41
40695374070637 41
40696374070737 41
40697374070837 41
40698354070935 41
40699284071028
40700284071128
40701284071228
...@@ -41500,7 +41511,7 @@ i386-linux-gnu...@@ -41500,7 +41511,7 @@ i386-linux-gnu
415001415111
415010415120
415020415130
415033415143 11
41504274151527
41505364151636
41506274151727
...@@ -43721,6 +43732,7 @@ i386-linux-gnu...@@ -43721,6 +43732,7 @@ i386-linux-gnu
437215437325
437225437335
437230437340
4373541
437240 13437360 13
43725404373740
437260 13437380 13
...@@ -44406,22 +44418,22 @@ i386-linux-gnu...@@ -44406,22 +44418,22 @@ i386-linux-gnu
444060444180
444070444190
44408124442012
44409354442135 41
44410354442235 41
44411364442336 41
44412374442437 41
44413374442537 41
44414374442637 41
44415374442737 41
44416354442835 41
44417354442935 41
44418354443035 41
44419364443136 41
44420374443237 41
44421374443337 41
44422374443437 41
44423374443537 41
44424354443635 41
444250444370
44426124443812
444270444390
...@@ -47447,6 +47459,7 @@ powerpc64le-linux-gnu...@@ -47447,6 +47459,7 @@ powerpc64le-linux-gnu
47447294745929
47448294746029
47449294746129
4746241
47450294746329
47451404746440
47452294746529
...@@ -48132,22 +48145,22 @@ powerpc64le-linux-gnu...@@ -48132,22 +48145,22 @@ powerpc64le-linux-gnu
48132294814529
48133294814629
48134294814729
48135354814835 41
48136354814935 41
48137364815036 41
48138374815137 41
48139374815237 41
48140374815337 41
48141374815437 41
48142354815535 41
48143354815635 41
48144354815735 41
48145364815836 41
48146374815937 41
48147374816037 41
48148374816137 41
48149374816237 41
48150354816335 41
48151294816429
48152294816529
48153294816629
...@@ -51173,6 +51186,7 @@ powerpc64-linux-gnu...@@ -51173,6 +51186,7 @@ powerpc64-linux-gnu
51173125118612
51174125118712
51175125118812
5118941
5117612 135119012 13
51177405119140
5117812 135119212 13
...@@ -51858,22 +51872,22 @@ powerpc64-linux-gnu...@@ -51858,22 +51872,22 @@ powerpc64-linux-gnu
51858125187212
51859125187312
51860125187412
51861355187535 41
51862355187635 41
5186351877
51864375187837 41
51865375187937 41
51866375188037 41
5186751881
51868355188235 41
51869355188335 41
51870355188435 41
5187151885
51872375188637 41
51873375188737 41
51874375188837 41
5187551889
51876355189035 41
51877125189112
51878125189212
51879125189312
...@@ -52678,7 +52692,7 @@ powerpc-linux-gnueabi powerpc-linux-gnueabihf...@@ -52678,7 +52692,7 @@ powerpc-linux-gnueabi powerpc-linux-gnueabihf
526781526921
526790526930
526800526940
526813526953 11
52682275269627
5268352697
52684275269827
...@@ -54899,6 +54913,7 @@ powerpc-linux-gnueabi powerpc-linux-gnueabihf...@@ -54899,6 +54913,7 @@ powerpc-linux-gnueabi powerpc-linux-gnueabihf
548995549135
549005549145
549010549150
5491641
549020 13549170 13
54903405491840
549040 13549190 13
...@@ -55584,22 +55599,22 @@ powerpc-linux-gnueabi powerpc-linux-gnueabihf...@@ -55584,22 +55599,22 @@ powerpc-linux-gnueabi powerpc-linux-gnueabihf
555840555990
555850556000
55586125560112
55587355560235 41
55588355560335 41
5558955604
55590375560537 41
55591375560637 41
55592375560737 41
5559355608
55594355560935 41
55595355561035 41
55596355561135 41
5559755612
55598375561337 41
55599375561437 41
55600375561537 41
5560155616
55602355561735 41
556030556180
55604125561912
556050556200
lib/libc/glibc/fns.txt+1
...@@ -2734,6 +2734,7 @@ pthread_barrierattr_getpshared pthread...@@ -2734,6 +2734,7 @@ pthread_barrierattr_getpshared pthread
2734pthread_barrierattr_init pthread2734pthread_barrierattr_init pthread
2735pthread_barrierattr_setpshared pthread2735pthread_barrierattr_setpshared pthread
2736pthread_cancel pthread2736pthread_cancel pthread
2737pthread_clockjoin_np pthread
2737pthread_cond_broadcast c2738pthread_cond_broadcast c
2738pthread_cond_clockwait pthread2739pthread_cond_clockwait pthread
2739pthread_cond_destroy c2740pthread_cond_destroy c
lib/libc/glibc/vers.txt+1
...@@ -39,3 +39,4 @@ GLIBC_2.27...@@ -39,3 +39,4 @@ GLIBC_2.27
39GLIBC_2.2839GLIBC_2.28
40GLIBC_2.2940GLIBC_2.29
41GLIBC_2.3041GLIBC_2.30
42GLIBC_2.31
lib/libc/include/aarch64-linux-gnu/bits/endian.h deleted-30
...@@ -1,30 +0,0 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
2
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _ENDIAN_H
20# error "Never use <bits/endian.h> directly; include <endian.h> instead."
21#endif
22
23/* AArch64 can be either big or little endian. */
24#ifdef __AARCH64EB__
25# define __BYTE_ORDER __BIG_ENDIAN
26#else
27# define __BYTE_ORDER __LITTLE_ENDIAN
28#endif
29
30#define __FLOAT_WORD_ORDER __BYTE_ORDER
\ No newline at end of file
lib/libc/include/aarch64-linux-gnu/bits/endianness.h created+15
...@@ -0,0 +1,15 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* AArch64 has selectable endianness. */
9#ifdef __AARCH64EB__
10# define __BYTE_ORDER __BIG_ENDIAN
11#else
12# define __BYTE_ORDER __LITTLE_ENDIAN
13#endif
14
15#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/aarch64-linux-gnu/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for the AArch64 Linux ABI.1/* O_*, F_*, FD_* bit values for the AArch64 Linux ABI.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _FCNTL_H20#ifndef _FCNTL_H
21# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."21# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/aarch64-linux-gnu/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FENV_H19#ifndef _FENV_H
20# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."20# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -73,7 +73,7 @@ fenv_t;...@@ -73,7 +73,7 @@ fenv_t;
73# define FE_NOMASK_ENV ((const fenv_t *) -2)73# define FE_NOMASK_ENV ((const fenv_t *) -2)
74#endif74#endif
7575
76#if __GLIBC_USE (IEC_60559_BFP_EXT)76#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
77/* Type representing floating-point control modes. */77/* Type representing floating-point control modes. */
78typedef unsigned int femode_t;78typedef unsigned int femode_t;
7979
lib/libc/include/aarch64-linux-gnu/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.1/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/aarch64-linux-gnu/bits/fp-fast.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define FP_FAST_* macros. AArch64 version.1/* Define FP_FAST_* macros. AArch64 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."20# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."
lib/libc/include/aarch64-linux-gnu/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP. AArch64 Linux version.1/* Defines for bits in AT_HWCAP. AArch64 Linux version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined (_SYS_AUXV_H)19#if !defined (_SYS_AUXV_H)
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/aarch64-linux-gnu/bits/ipc.h deleted-54
...@@ -1,54 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23
24/* Mode bits for `msgget', `semget', and `shmget'. */
25#define IPC_CREAT 01000 /* Create key if key does not exist. */
26#define IPC_EXCL 02000 /* Fail if key exists. */
27#define IPC_NOWAIT 04000 /* Return error on wait. */
28
29/* Control commands for `msgctl', `semctl', and `shmctl'. */
30#define IPC_RMID 0 /* Remove identifier. */
31#define IPC_SET 1 /* Set `ipc_perm' options. */
32#define IPC_STAT 2 /* Get `ipc_perm' options. */
33#ifdef __USE_GNU
34# define IPC_INFO 3 /* See ipcs. */
35#endif
36
37/* Special key values. */
38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
39
40
41/* Data structure used to pass permission information to IPC operations. */
42struct ipc_perm
43 {
44 __key_t __key; /* Key. */
45 __uid_t uid; /* Owner's user ID. */
46 __gid_t gid; /* Owner's group ID. */
47 __uid_t cuid; /* Creator's user ID. */
48 __gid_t cgid; /* Creator's group ID. */
49 unsigned int mode; /* Read/write permission. */
50 unsigned short int __seq; /* Sequence number. */
51 unsigned short int __pad1;
52 __syscall_ulong_t __glibc_reserved1;
53 __syscall_ulong_t __glibc_reserved2;
54 };
\ No newline at end of file
lib/libc/include/aarch64-linux-gnu/bits/link.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _LINK_H19#ifndef _LINK_H
20# error "Never include <bits/link.h> directly; use <link.h> instead."20# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/aarch64-linux-gnu/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. Linux version.1/* Minimum guaranteed maximum values for system limits. Linux version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20/* The kernel header pollutes the namespace with the NR_OPEN symbol20/* The kernel header pollutes the namespace with the NR_OPEN symbol
21 and defines LINK_MAX although filesystems have different maxima. A21 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/aarch64-linux-gnu/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. ldbl-128 version.1/* Properties of long double type. ldbl-128 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,8 @@...@@ -14,7 +14,8 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* long double is distinct from double, so there is nothing to19/* long double is distinct from double, so there is nothing to
20 define here. */
\ No newline at end of file
20 define here. */
21#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/aarch64-linux-gnu/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. AArch64 version.1/* Types for registers for sys/procfs.h. AArch64 version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/aarch64-linux-gnu/bits/pthreadtypes-arch.h+3-27
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,12 +14,12 @@...@@ -14,12 +14,12 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_PTHREADTYPES_ARCH_H19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 120#define _BITS_PTHREADTYPES_ARCH_H 1
2121
22#include <endian.h>22#include <bits/endian.h>
2323
24#ifdef __ILP32__24#ifdef __ILP32__
25# define __SIZEOF_PTHREAD_ATTR_T 3225# define __SIZEOF_PTHREAD_ATTR_T 32
...@@ -41,31 +41,7 @@...@@ -41,31 +41,7 @@
41#define __SIZEOF_PTHREAD_COND_T 4841#define __SIZEOF_PTHREAD_COND_T 48
42#define __SIZEOF_PTHREAD_RWLOCKATTR_T 842#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
4343
44/* Definitions for internal mutex struct. */
45#define __PTHREAD_COMPAT_PADDING_MID
46#define __PTHREAD_COMPAT_PADDING_END
47#define __PTHREAD_MUTEX_LOCK_ELISION 0
48#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 0
49#define __PTHREAD_MUTEX_USE_UNION 0
50
51#define __LOCK_ALIGNMENT44#define __LOCK_ALIGNMENT
52#define __ONCE_ALIGNMENT45#define __ONCE_ALIGNMENT
5346
54struct __pthread_rwlock_arch_t
55{
56 unsigned int __readers;
57 unsigned int __writers;
58 unsigned int __wrphase_futex;
59 unsigned int __writers_futex;
60 unsigned int __pad3;
61 unsigned int __pad4;
62 int __cur_writer;
63 int __shared;
64 unsigned long int __pad1;
65 unsigned long int __pad2;
66 unsigned int __flags;
67};
68
69#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
70
71#endif /* bits/pthreadtypes.h */47#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/aarch64-linux-gnu/bits/semaphore.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SEMAPHORE_H19#ifndef _SEMAPHORE_H
20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/aarch64-linux-gnu/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SETJMP_H19#ifndef _BITS_SETJMP_H
20#define _BITS_SETJMP_H 120#define _BITS_SETJMP_H 1
lib/libc/include/aarch64-linux-gnu/bits/sigstack.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* sigstack, sigaltstack definitions.1/* sigstack, sigaltstack definitions.
2 Copyright (C) 2015-2019 Free Software Foundation, Inc.2 Copyright (C) 2015-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGSTACK_H19#ifndef _BITS_SIGSTACK_H
20#define _BITS_SIGSTACK_H 120#define _BITS_SIGSTACK_H 1
lib/libc/include/aarch64-linux-gnu/bits/stat.h+7-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined _SYS_STAT_H && !defined _FCNTL_H19#if !defined _SYS_STAT_H && !defined _FCNTL_H
20# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."20# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
...@@ -23,7 +23,7 @@...@@ -23,7 +23,7 @@
23#ifndef _BITS_STAT_H23#ifndef _BITS_STAT_H
24#define _BITS_STAT_H 124#define _BITS_STAT_H 1
2525
26#include <endian.h>26#include <bits/endian.h>
27#include <bits/wordsize.h>27#include <bits/wordsize.h>
2828
29/* 64-bit libc uses the kernel's 'struct stat', accessed via the29/* 64-bit libc uses the kernel's 'struct stat', accessed via the
...@@ -42,7 +42,10 @@...@@ -42,7 +42,10 @@
4242
43#if defined __USE_FILE_OFFSET6443#if defined __USE_FILE_OFFSET64
44# define __field64(type, type64, name) type64 name44# define __field64(type, type64, name) type64 name
45#elif __WORDSIZE == 6445#elif __WORDSIZE == 64 || defined __INO_T_MATCHES_INO64_T
46# if defined __INO_T_MATCHES_INO64_T && !defined __OFF_T_MATCHES_OFF64_T
47# error "ino_t and off_t must both be the same type"
48# endif
46# define __field64(type, type64, name) type name49# define __field64(type, type64, name) type name
47#elif __BYTE_ORDER == __LITTLE_ENDIAN50#elif __BYTE_ORDER == __LITTLE_ENDIAN
48# define __field64(type, type64, name) \51# define __field64(type, type64, name) \
lib/libc/include/aarch64-linux-gnu/bits/statfs.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
44
...@@ -14,13 +14,13 @@...@@ -14,13 +14,13 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_STATFS_H19#ifndef _SYS_STATFS_H
20# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."20# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
21#endif21#endif
2222
23#include <endian.h>23#include <bits/endian.h>
24#include <bits/types.h>24#include <bits/types.h>
25#include <bits/wordsize.h>25#include <bits/wordsize.h>
2626
...@@ -34,7 +34,7 @@...@@ -34,7 +34,7 @@
3434
35#if defined __USE_FILE_OFFSET6435#if defined __USE_FILE_OFFSET64
36# define __field64(type, type64, name) type64 name36# define __field64(type, type64, name) type64 name
37#elif __WORDSIZE == 6437#elif __WORDSIZE == 64 || __STATFS_MATCHES_STATFS64
38# define __field64(type, type64, name) type name38# define __field64(type, type64, name) type name
39#elif __BYTE_ORDER == __LITTLE_ENDIAN39#elif __BYTE_ORDER == __LITTLE_ENDIAN
40# define __field64(type, type64, name) \40# define __field64(type, type64, name) \
lib/libc/include/aarch64-linux-gnu/bits/struct_rwlock.h created+41
...@@ -0,0 +1,41 @@
1/* AArch64 internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20#ifndef _RWLOCK_INTERNAL_H
21#define _RWLOCK_INTERNAL_H
22
23struct __pthread_rwlock_arch_t
24{
25 unsigned int __readers;
26 unsigned int __writers;
27 unsigned int __wrphase_futex;
28 unsigned int __writers_futex;
29 unsigned int __pad3;
30 unsigned int __pad4;
31 int __cur_writer;
32 int __shared;
33 unsigned long int __pad1;
34 unsigned long int __pad2;
35 unsigned int __flags;
36};
37
38#define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
39 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
40
41#endif
\ No newline at end of file
lib/libc/include/aarch64-linux-gnu/bits/typesizes.h+7-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.1/* bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.4 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _BITS_TYPES_H20#ifndef _BITS_TYPES_H
21# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."21# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
...@@ -73,10 +73,14 @@...@@ -73,10 +73,14 @@
7373
74/* And for __rlim_t and __rlim64_t. */74/* And for __rlim_t and __rlim64_t. */
75# define __RLIM_T_MATCHES_RLIM64_T 175# define __RLIM_T_MATCHES_RLIM64_T 1
76
77/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
78# define __STATFS_MATCHES_STATFS64 1
76#else79#else
77# define __RLIM_T_MATCHES_RLIM64_T 080# define __RLIM_T_MATCHES_RLIM64_T 0
78#endif
7981
82# define __STATFS_MATCHES_STATFS64 0
83#endif
80/* Number of descriptors that can fit in an `fd_set'. */84/* Number of descriptors that can fit in an `fd_set'. */
81#define __FD_SETSIZE 102485#define __FD_SETSIZE 1024
8286
lib/libc/include/aarch64-linux-gnu/bits/wordsize.h+2-2
...@@ -1,6 +1,6 @@...@@ -1,6 +1,6 @@
1/* Determine the wordsize from the preprocessor defines.1/* Determine the wordsize from the preprocessor defines.
22
3 Copyright (C) 2016-2019 Free Software Foundation, Inc.3 Copyright (C) 2016-2020 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
6 The GNU C Library is free software; you can redistribute it and/or6 The GNU C Library is free software; you can redistribute it and/or
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifdef __LP64__20#ifdef __LP64__
21# define __WORDSIZE 6421# define __WORDSIZE 64
lib/libc/include/aarch64-linux-gnu/fpu_control.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _AARCH64_FPU_CONTROL_H19#ifndef _AARCH64_FPU_CONTROL_H
20#define _AARCH64_FPU_CONTROL_H20#define _AARCH64_FPU_CONTROL_H
lib/libc/include/aarch64-linux-gnu/ieee754.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,14 +13,14 @@...@@ -13,14 +13,14 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25__BEGIN_DECLS25__BEGIN_DECLS
2626
lib/libc/include/aarch64-linux-gnu/sys/elf.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_ELF_H19#ifndef _SYS_ELF_H
20#define _SYS_ELF_H 120#define _SYS_ELF_H 1
lib/libc/include/aarch64-linux-gnu/sys/ptrace.h+7-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/AArch64 version.1/* `ptrace' debugger support interface. Linux/AArch64 version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PTRACE_H20#ifndef _SYS_PTRACE_H
21#define _SYS_PTRACE_H 121#define _SYS_PTRACE_H 1
...@@ -136,8 +136,12 @@ enum __ptrace_request...@@ -136,8 +136,12 @@ enum __ptrace_request
136#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER136#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
137137
138 /* Get seccomp BPF filter metadata. */138 /* Get seccomp BPF filter metadata. */
139 PTRACE_SECCOMP_GET_METADATA = 0x420d139 PTRACE_SECCOMP_GET_METADATA = 0x420d,
140#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA140#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
141
142 /* Get information about system call. */
143 PTRACE_GET_SYSCALL_INFO = 0x420e
144#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
141};145};
142146
143147
lib/libc/include/aarch64-linux-gnu/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* System V/AArch64 ABI compliant context switching support. */19/* System V/AArch64 ABI compliant context switching support. */
2020
lib/libc/include/aarch64-linux-gnu/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2009-2019 Free Software Foundation, Inc.1/* Copyright (C) 2009-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_USER_H19#ifndef _SYS_USER_H
20#define _SYS_USER_H 120#define _SYS_USER_H 1
lib/libc/include/aarch64_be-linux-gnu/bits/endian.h deleted-30
...@@ -1,30 +0,0 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
2
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _ENDIAN_H
20# error "Never use <bits/endian.h> directly; include <endian.h> instead."
21#endif
22
23/* AArch64 can be either big or little endian. */
24#ifdef __AARCH64EB__
25# define __BYTE_ORDER __BIG_ENDIAN
26#else
27# define __BYTE_ORDER __LITTLE_ENDIAN
28#endif
29
30#define __FLOAT_WORD_ORDER __BYTE_ORDER
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/endianness.h created+15
...@@ -0,0 +1,15 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* AArch64 has selectable endianness. */
9#ifdef __AARCH64EB__
10# define __BYTE_ORDER __BIG_ENDIAN
11#else
12# define __BYTE_ORDER __LITTLE_ENDIAN
13#endif
14
15#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for the AArch64 Linux ABI.1/* O_*, F_*, FD_* bit values for the AArch64 Linux ABI.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _FCNTL_H20#ifndef _FCNTL_H
21# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."21# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/aarch64_be-linux-gnu/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FENV_H19#ifndef _FENV_H
20# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."20# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -73,7 +73,7 @@ fenv_t;...@@ -73,7 +73,7 @@ fenv_t;
73# define FE_NOMASK_ENV ((const fenv_t *) -2)73# define FE_NOMASK_ENV ((const fenv_t *) -2)
74#endif74#endif
7575
76#if __GLIBC_USE (IEC_60559_BFP_EXT)76#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
77/* Type representing floating-point control modes. */77/* Type representing floating-point control modes. */
78typedef unsigned int femode_t;78typedef unsigned int femode_t;
7979
lib/libc/include/aarch64_be-linux-gnu/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.1/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/aarch64_be-linux-gnu/bits/fp-fast.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define FP_FAST_* macros. AArch64 version.1/* Define FP_FAST_* macros. AArch64 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."20# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."
lib/libc/include/aarch64_be-linux-gnu/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP. AArch64 Linux version.1/* Defines for bits in AT_HWCAP. AArch64 Linux version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined (_SYS_AUXV_H)19#if !defined (_SYS_AUXV_H)
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/aarch64_be-linux-gnu/bits/ipc.h deleted-54
...@@ -1,54 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23
24/* Mode bits for `msgget', `semget', and `shmget'. */
25#define IPC_CREAT 01000 /* Create key if key does not exist. */
26#define IPC_EXCL 02000 /* Fail if key exists. */
27#define IPC_NOWAIT 04000 /* Return error on wait. */
28
29/* Control commands for `msgctl', `semctl', and `shmctl'. */
30#define IPC_RMID 0 /* Remove identifier. */
31#define IPC_SET 1 /* Set `ipc_perm' options. */
32#define IPC_STAT 2 /* Get `ipc_perm' options. */
33#ifdef __USE_GNU
34# define IPC_INFO 3 /* See ipcs. */
35#endif
36
37/* Special key values. */
38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
39
40
41/* Data structure used to pass permission information to IPC operations. */
42struct ipc_perm
43 {
44 __key_t __key; /* Key. */
45 __uid_t uid; /* Owner's user ID. */
46 __gid_t gid; /* Owner's group ID. */
47 __uid_t cuid; /* Creator's user ID. */
48 __gid_t cgid; /* Creator's group ID. */
49 unsigned int mode; /* Read/write permission. */
50 unsigned short int __seq; /* Sequence number. */
51 unsigned short int __pad1;
52 __syscall_ulong_t __glibc_reserved1;
53 __syscall_ulong_t __glibc_reserved2;
54 };
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/link.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _LINK_H19#ifndef _LINK_H
20# error "Never include <bits/link.h> directly; use <link.h> instead."20# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/aarch64_be-linux-gnu/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. Linux version.1/* Minimum guaranteed maximum values for system limits. Linux version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20/* The kernel header pollutes the namespace with the NR_OPEN symbol20/* The kernel header pollutes the namespace with the NR_OPEN symbol
21 and defines LINK_MAX although filesystems have different maxima. A21 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/aarch64_be-linux-gnu/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. ldbl-128 version.1/* Properties of long double type. ldbl-128 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,8 @@...@@ -14,7 +14,8 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* long double is distinct from double, so there is nothing to19/* long double is distinct from double, so there is nothing to
20 define here. */
\ No newline at end of file
20 define here. */
21#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. AArch64 version.1/* Types for registers for sys/procfs.h. AArch64 version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/aarch64_be-linux-gnu/bits/pthreadtypes-arch.h+3-27
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,12 +14,12 @@...@@ -14,12 +14,12 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_PTHREADTYPES_ARCH_H19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 120#define _BITS_PTHREADTYPES_ARCH_H 1
2121
22#include <endian.h>22#include <bits/endian.h>
2323
24#ifdef __ILP32__24#ifdef __ILP32__
25# define __SIZEOF_PTHREAD_ATTR_T 3225# define __SIZEOF_PTHREAD_ATTR_T 32
...@@ -41,31 +41,7 @@...@@ -41,31 +41,7 @@
41#define __SIZEOF_PTHREAD_COND_T 4841#define __SIZEOF_PTHREAD_COND_T 48
42#define __SIZEOF_PTHREAD_RWLOCKATTR_T 842#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
4343
44/* Definitions for internal mutex struct. */
45#define __PTHREAD_COMPAT_PADDING_MID
46#define __PTHREAD_COMPAT_PADDING_END
47#define __PTHREAD_MUTEX_LOCK_ELISION 0
48#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 0
49#define __PTHREAD_MUTEX_USE_UNION 0
50
51#define __LOCK_ALIGNMENT44#define __LOCK_ALIGNMENT
52#define __ONCE_ALIGNMENT45#define __ONCE_ALIGNMENT
5346
54struct __pthread_rwlock_arch_t
55{
56 unsigned int __readers;
57 unsigned int __writers;
58 unsigned int __wrphase_futex;
59 unsigned int __writers_futex;
60 unsigned int __pad3;
61 unsigned int __pad4;
62 int __cur_writer;
63 int __shared;
64 unsigned long int __pad1;
65 unsigned long int __pad2;
66 unsigned int __flags;
67};
68
69#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
70
71#endif /* bits/pthreadtypes.h */47#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/semaphore.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SEMAPHORE_H19#ifndef _SEMAPHORE_H
20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/aarch64_be-linux-gnu/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SETJMP_H19#ifndef _BITS_SETJMP_H
20#define _BITS_SETJMP_H 120#define _BITS_SETJMP_H 1
lib/libc/include/aarch64_be-linux-gnu/bits/sigstack.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* sigstack, sigaltstack definitions.1/* sigstack, sigaltstack definitions.
2 Copyright (C) 2015-2019 Free Software Foundation, Inc.2 Copyright (C) 2015-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGSTACK_H19#ifndef _BITS_SIGSTACK_H
20#define _BITS_SIGSTACK_H 120#define _BITS_SIGSTACK_H 1
lib/libc/include/aarch64_be-linux-gnu/bits/stat.h+7-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined _SYS_STAT_H && !defined _FCNTL_H19#if !defined _SYS_STAT_H && !defined _FCNTL_H
20# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."20# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
...@@ -23,7 +23,7 @@...@@ -23,7 +23,7 @@
23#ifndef _BITS_STAT_H23#ifndef _BITS_STAT_H
24#define _BITS_STAT_H 124#define _BITS_STAT_H 1
2525
26#include <endian.h>26#include <bits/endian.h>
27#include <bits/wordsize.h>27#include <bits/wordsize.h>
2828
29/* 64-bit libc uses the kernel's 'struct stat', accessed via the29/* 64-bit libc uses the kernel's 'struct stat', accessed via the
...@@ -42,7 +42,10 @@...@@ -42,7 +42,10 @@
4242
43#if defined __USE_FILE_OFFSET6443#if defined __USE_FILE_OFFSET64
44# define __field64(type, type64, name) type64 name44# define __field64(type, type64, name) type64 name
45#elif __WORDSIZE == 6445#elif __WORDSIZE == 64 || defined __INO_T_MATCHES_INO64_T
46# if defined __INO_T_MATCHES_INO64_T && !defined __OFF_T_MATCHES_OFF64_T
47# error "ino_t and off_t must both be the same type"
48# endif
46# define __field64(type, type64, name) type name49# define __field64(type, type64, name) type name
47#elif __BYTE_ORDER == __LITTLE_ENDIAN50#elif __BYTE_ORDER == __LITTLE_ENDIAN
48# define __field64(type, type64, name) \51# define __field64(type, type64, name) \
lib/libc/include/aarch64_be-linux-gnu/bits/statfs.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
44
...@@ -14,13 +14,13 @@...@@ -14,13 +14,13 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_STATFS_H19#ifndef _SYS_STATFS_H
20# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."20# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
21#endif21#endif
2222
23#include <endian.h>23#include <bits/endian.h>
24#include <bits/types.h>24#include <bits/types.h>
25#include <bits/wordsize.h>25#include <bits/wordsize.h>
2626
...@@ -34,7 +34,7 @@...@@ -34,7 +34,7 @@
3434
35#if defined __USE_FILE_OFFSET6435#if defined __USE_FILE_OFFSET64
36# define __field64(type, type64, name) type64 name36# define __field64(type, type64, name) type64 name
37#elif __WORDSIZE == 6437#elif __WORDSIZE == 64 || __STATFS_MATCHES_STATFS64
38# define __field64(type, type64, name) type name38# define __field64(type, type64, name) type name
39#elif __BYTE_ORDER == __LITTLE_ENDIAN39#elif __BYTE_ORDER == __LITTLE_ENDIAN
40# define __field64(type, type64, name) \40# define __field64(type, type64, name) \
lib/libc/include/aarch64_be-linux-gnu/bits/struct_rwlock.h created+41
...@@ -0,0 +1,41 @@
1/* AArch64 internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20#ifndef _RWLOCK_INTERNAL_H
21#define _RWLOCK_INTERNAL_H
22
23struct __pthread_rwlock_arch_t
24{
25 unsigned int __readers;
26 unsigned int __writers;
27 unsigned int __wrphase_futex;
28 unsigned int __writers_futex;
29 unsigned int __pad3;
30 unsigned int __pad4;
31 int __cur_writer;
32 int __shared;
33 unsigned long int __pad1;
34 unsigned long int __pad2;
35 unsigned int __flags;
36};
37
38#define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
39 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
40
41#endif
\ No newline at end of file
lib/libc/include/aarch64_be-linux-gnu/bits/typesizes.h+7-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.1/* bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.4 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _BITS_TYPES_H20#ifndef _BITS_TYPES_H
21# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."21# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
...@@ -73,10 +73,14 @@...@@ -73,10 +73,14 @@
7373
74/* And for __rlim_t and __rlim64_t. */74/* And for __rlim_t and __rlim64_t. */
75# define __RLIM_T_MATCHES_RLIM64_T 175# define __RLIM_T_MATCHES_RLIM64_T 1
76
77/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
78# define __STATFS_MATCHES_STATFS64 1
76#else79#else
77# define __RLIM_T_MATCHES_RLIM64_T 080# define __RLIM_T_MATCHES_RLIM64_T 0
78#endif
7981
82# define __STATFS_MATCHES_STATFS64 0
83#endif
80/* Number of descriptors that can fit in an `fd_set'. */84/* Number of descriptors that can fit in an `fd_set'. */
81#define __FD_SETSIZE 102485#define __FD_SETSIZE 1024
8286
lib/libc/include/aarch64_be-linux-gnu/bits/wordsize.h+2-2
...@@ -1,6 +1,6 @@...@@ -1,6 +1,6 @@
1/* Determine the wordsize from the preprocessor defines.1/* Determine the wordsize from the preprocessor defines.
22
3 Copyright (C) 2016-2019 Free Software Foundation, Inc.3 Copyright (C) 2016-2020 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
6 The GNU C Library is free software; you can redistribute it and/or6 The GNU C Library is free software; you can redistribute it and/or
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifdef __LP64__20#ifdef __LP64__
21# define __WORDSIZE 6421# define __WORDSIZE 64
lib/libc/include/aarch64_be-linux-gnu/fpu_control.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _AARCH64_FPU_CONTROL_H19#ifndef _AARCH64_FPU_CONTROL_H
20#define _AARCH64_FPU_CONTROL_H20#define _AARCH64_FPU_CONTROL_H
lib/libc/include/aarch64_be-linux-gnu/ieee754.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,14 +13,14 @@...@@ -13,14 +13,14 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25__BEGIN_DECLS25__BEGIN_DECLS
2626
lib/libc/include/aarch64_be-linux-gnu/sys/elf.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_ELF_H19#ifndef _SYS_ELF_H
20#define _SYS_ELF_H 120#define _SYS_ELF_H 1
lib/libc/include/aarch64_be-linux-gnu/sys/ptrace.h+7-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/AArch64 version.1/* `ptrace' debugger support interface. Linux/AArch64 version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PTRACE_H20#ifndef _SYS_PTRACE_H
21#define _SYS_PTRACE_H 121#define _SYS_PTRACE_H 1
...@@ -136,8 +136,12 @@ enum __ptrace_request...@@ -136,8 +136,12 @@ enum __ptrace_request
136#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER136#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
137137
138 /* Get seccomp BPF filter metadata. */138 /* Get seccomp BPF filter metadata. */
139 PTRACE_SECCOMP_GET_METADATA = 0x420d139 PTRACE_SECCOMP_GET_METADATA = 0x420d,
140#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA140#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
141
142 /* Get information about system call. */
143 PTRACE_GET_SYSCALL_INFO = 0x420e
144#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
141};145};
142146
143147
lib/libc/include/aarch64_be-linux-gnu/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* System V/AArch64 ABI compliant context switching support. */19/* System V/AArch64 ABI compliant context switching support. */
2020
lib/libc/include/aarch64_be-linux-gnu/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2009-2019 Free Software Foundation, Inc.1/* Copyright (C) 2009-2020 Free Software Foundation, Inc.
22
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_USER_H19#ifndef _SYS_USER_H
20#define _SYS_USER_H 120#define _SYS_USER_H 1
lib/libc/include/arm-linux-gnueabi/bits/endian.h deleted-10
...@@ -1,10 +0,0 @@
1#ifndef _ENDIAN_H
2# error "Never use <bits/endian.h> directly; include <endian.h> instead."
3#endif
4
5/* ARM can be either big or little endian. */
6#ifdef __ARMEB__
7#define __BYTE_ORDER __BIG_ENDIAN
8#else
9#define __BYTE_ORDER __LITTLE_ENDIAN
10#endif
\ No newline at end of file
lib/libc/include/arm-linux-gnueabi/bits/endianness.h created+15
...@@ -0,0 +1,15 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* ARM has selectable endianness. */
9#ifdef __ARMEB__
10#define __BYTE_ORDER __BIG_ENDIAN
11#else
12#define __BYTE_ORDER __LITTLE_ENDIAN
13#endif
14
15#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/arm-linux-gnueabi/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux.1/* O_*, F_*, FD_* bit values for Linux.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/arm-linux-gnueabi/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -81,7 +81,7 @@ fenv_t;...@@ -81,7 +81,7 @@ fenv_t;
81# define FE_NOMASK_ENV ((const fenv_t *) -2)81# define FE_NOMASK_ENV ((const fenv_t *) -2)
82#endif82#endif
8383
84#if __GLIBC_USE (IEC_60559_BFP_EXT)84#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
85/* Type representing floating-point control modes. */85/* Type representing floating-point control modes. */
86typedef unsigned int femode_t;86typedef unsigned int femode_t;
8787
lib/libc/include/arm-linux-gnueabi/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features.1/* Macros to control TS 18661-3 glibc features.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* Defined to 1 if the current compiler invocation provides a19/* Defined to 1 if the current compiler invocation provides a
20 floating-point type with the IEEE 754 binary128 format, and this glibc20 floating-point type with the IEEE 754 binary128 format, and this glibc
lib/libc/include/arm-linux-gnueabi/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP. ARM Linux version.1/* Defines for bits in AT_HWCAP. ARM Linux version.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)19#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/arm-linux-gnueabi/bits/link.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _LINK_H18#ifndef _LINK_H
19# error "Never include <bits/link.h> directly; use <link.h> instead."19# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/arm-linux-gnueabi/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type.1/* Properties of long double type.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This header is included by <sys/cdefs.h>.19/* This header is included by <sys/cdefs.h>.
2020
...@@ -36,4 +36,5 @@...@@ -36,4 +36,5 @@
36 ABI-compatible with double. */36 ABI-compatible with double. */
37#ifndef __NO_LONG_DOUBLE_MATH37#ifndef __NO_LONG_DOUBLE_MATH
38# define __NO_LONG_DOUBLE_MATH 138# define __NO_LONG_DOUBLE_MATH 1
39#endif
\ No newline at end of file
39#endif
40#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/arm-linux-gnueabi/bits/procfs-id.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Arm version.1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Arm version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
lib/libc/include/arm-linux-gnueabi/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. Arm version.1/* Types for registers for sys/procfs.h. Arm version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/arm-linux-gnueabi/bits/pthreadtypes-arch.h deleted-71
...@@ -1,71 +0,0 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _BITS_PTHREADTYPES_ARCH_H
19#define _BITS_PTHREADTYPES_ARCH_H 1
20
21#include <endian.h>
22
23#define __SIZEOF_PTHREAD_ATTR_T 36
24#define __SIZEOF_PTHREAD_MUTEX_T 24
25#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
26#define __SIZEOF_PTHREAD_COND_T 48
27#define __SIZEOF_PTHREAD_CONDATTR_T 4
28#define __SIZEOF_PTHREAD_RWLOCK_T 32
29#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
30#define __SIZEOF_PTHREAD_BARRIER_T 20
31#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
32
33/* Data structure for mutex handling. */
34#define __PTHREAD_COMPAT_PADDING_MID
35#define __PTHREAD_COMPAT_PADDING_END
36#define __PTHREAD_MUTEX_LOCK_ELISION 0
37#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 1
38#define __PTHREAD_MUTEX_USE_UNION 1
39
40#define __LOCK_ALIGNMENT
41#define __ONCE_ALIGNMENT
42
43struct __pthread_rwlock_arch_t
44{
45 unsigned int __readers;
46 unsigned int __writers;
47 unsigned int __wrphase_futex;
48 unsigned int __writers_futex;
49 unsigned int __pad3;
50 unsigned int __pad4;
51#if __BYTE_ORDER == __BIG_ENDIAN
52 unsigned char __pad1;
53 unsigned char __pad2;
54 unsigned char __shared;
55 /* FLAGS must stay at this position in the structure to maintain
56 binary compatibility. */
57 unsigned char __flags;
58#else
59 /* FLAGS must stay at this position in the structure to maintain
60 binary compatibility. */
61 unsigned char __flags;
62 unsigned char __shared;
63 unsigned char __pad1;
64 unsigned char __pad2;
65#endif
66 int __cur_writer;
67};
68
69#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
70
71#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/arm-linux-gnueabi/bits/semaphore.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SEMAPHORE_H18#ifndef _SEMAPHORE_H
19# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."19# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/arm-linux-gnueabi/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Define the machine-dependent type `jmp_buf'. ARM EABI version. */18/* Define the machine-dependent type `jmp_buf'. ARM EABI version. */
1919
lib/libc/include/arm-linux-gnueabi/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. ARM version.1/* Define SHMLBA. ARM version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/arm-linux-gnueabi/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/arm-linux-gnueabi/bits/struct_rwlock.h created+61
...@@ -0,0 +1,61 @@
1/* Default read-write lock implementation struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef __RWLOCK_INTERNAL_H
20#define __RWLOCK_INTERNAL_H
21
22#include <bits/endian.h>
23
24/* Generic struct for both POSIX read-write lock. New ports are expected
25 to use the default layout, however archictetures can redefine it to add
26 arch-specific extensions (such as lock-elision). The struct have a size
27 of 32 bytes on both LP32 and LP64 architectures. */
28
29struct __pthread_rwlock_arch_t
30{
31 unsigned int __readers;
32 unsigned int __writers;
33 unsigned int __wrphase_futex;
34 unsigned int __writers_futex;
35 unsigned int __pad3;
36 unsigned int __pad4;
37 /* FLAGS must stay at its position in the structure to maintain
38 binary compatibility. */
39#if __BYTE_ORDER == __BIG_ENDIAN
40 unsigned char __pad1;
41 unsigned char __pad2;
42 unsigned char __shared;
43 unsigned char __flags;
44#else
45 unsigned char __flags;
46 unsigned char __shared;
47 unsigned char __pad1;
48 unsigned char __pad2;
49#endif
50 int __cur_writer;
51};
52
53#if __BYTE_ORDER == __BIG_ENDIAN
54# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
55 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
56#else
57# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
58 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
59#endif
60
61#endif
\ No newline at end of file
lib/libc/include/arm-linux-gnueabi/bits/wordsize.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#define __WORDSIZE 3218#define __WORDSIZE 32
19#define __WORDSIZE_TIME64_COMPAT32 019#define __WORDSIZE_TIME64_COMPAT32 0
lib/libc/include/arm-linux-gnueabi/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word definitions. ARM VFP version.1/* FPU control word definitions. ARM VFP version.
2 Copyright (C) 2004-2019 Free Software Foundation, Inc.2 Copyright (C) 2004-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FPU_CONTROL_H19#ifndef _FPU_CONTROL_H
20#define _FPU_CONTROL_H20#define _FPU_CONTROL_H
lib/libc/include/arm-linux-gnueabi/sys/ptrace.h+6-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/ARM version.1/* `ptrace' debugger support interface. Linux/ARM version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -196,8 +196,12 @@ enum __ptrace_request...@@ -196,8 +196,12 @@ enum __ptrace_request
196#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER196#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
197197
198 /* Get seccomp BPF filter metadata. */198 /* Get seccomp BPF filter metadata. */
199 PTRACE_SECCOMP_GET_METADATA = 0x420d199 PTRACE_SECCOMP_GET_METADATA = 0x420d,
200#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA200#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
201
202 /* Get information about system call. */
203 PTRACE_GET_SYSCALL_INFO = 0x420e
204#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
201};205};
202206
203207
lib/libc/include/arm-linux-gnueabi/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* System V/ARM ABI compliant context switching support. */18/* System V/ARM ABI compliant context switching support. */
1919
lib/libc/include/arm-linux-gnueabi/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
19#define _SYS_USER_H 119#define _SYS_USER_H 1
lib/libc/include/arm-linux-gnueabihf/bits/endian.h deleted-10
...@@ -1,10 +0,0 @@
1#ifndef _ENDIAN_H
2# error "Never use <bits/endian.h> directly; include <endian.h> instead."
3#endif
4
5/* ARM can be either big or little endian. */
6#ifdef __ARMEB__
7#define __BYTE_ORDER __BIG_ENDIAN
8#else
9#define __BYTE_ORDER __LITTLE_ENDIAN
10#endif
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/endianness.h created+15
...@@ -0,0 +1,15 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* ARM has selectable endianness. */
9#ifdef __ARMEB__
10#define __BYTE_ORDER __BIG_ENDIAN
11#else
12#define __BYTE_ORDER __LITTLE_ENDIAN
13#endif
14
15#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux.1/* O_*, F_*, FD_* bit values for Linux.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/arm-linux-gnueabihf/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -81,7 +81,7 @@ fenv_t;...@@ -81,7 +81,7 @@ fenv_t;
81# define FE_NOMASK_ENV ((const fenv_t *) -2)81# define FE_NOMASK_ENV ((const fenv_t *) -2)
82#endif82#endif
8383
84#if __GLIBC_USE (IEC_60559_BFP_EXT)84#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
85/* Type representing floating-point control modes. */85/* Type representing floating-point control modes. */
86typedef unsigned int femode_t;86typedef unsigned int femode_t;
8787
lib/libc/include/arm-linux-gnueabihf/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features.1/* Macros to control TS 18661-3 glibc features.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* Defined to 1 if the current compiler invocation provides a19/* Defined to 1 if the current compiler invocation provides a
20 floating-point type with the IEEE 754 binary128 format, and this glibc20 floating-point type with the IEEE 754 binary128 format, and this glibc
lib/libc/include/arm-linux-gnueabihf/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP. ARM Linux version.1/* Defines for bits in AT_HWCAP. ARM Linux version.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)19#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/arm-linux-gnueabihf/bits/link.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _LINK_H18#ifndef _LINK_H
19# error "Never include <bits/link.h> directly; use <link.h> instead."19# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/arm-linux-gnueabihf/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type.1/* Properties of long double type.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This header is included by <sys/cdefs.h>.19/* This header is included by <sys/cdefs.h>.
2020
...@@ -36,4 +36,5 @@...@@ -36,4 +36,5 @@
36 ABI-compatible with double. */36 ABI-compatible with double. */
37#ifndef __NO_LONG_DOUBLE_MATH37#ifndef __NO_LONG_DOUBLE_MATH
38# define __NO_LONG_DOUBLE_MATH 138# define __NO_LONG_DOUBLE_MATH 1
39#endif
\ No newline at end of file
39#endif
40#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/procfs-id.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Arm version.1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Arm version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
lib/libc/include/arm-linux-gnueabihf/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. Arm version.1/* Types for registers for sys/procfs.h. Arm version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h deleted-71
...@@ -1,71 +0,0 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _BITS_PTHREADTYPES_ARCH_H
19#define _BITS_PTHREADTYPES_ARCH_H 1
20
21#include <endian.h>
22
23#define __SIZEOF_PTHREAD_ATTR_T 36
24#define __SIZEOF_PTHREAD_MUTEX_T 24
25#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
26#define __SIZEOF_PTHREAD_COND_T 48
27#define __SIZEOF_PTHREAD_CONDATTR_T 4
28#define __SIZEOF_PTHREAD_RWLOCK_T 32
29#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
30#define __SIZEOF_PTHREAD_BARRIER_T 20
31#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
32
33/* Data structure for mutex handling. */
34#define __PTHREAD_COMPAT_PADDING_MID
35#define __PTHREAD_COMPAT_PADDING_END
36#define __PTHREAD_MUTEX_LOCK_ELISION 0
37#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 1
38#define __PTHREAD_MUTEX_USE_UNION 1
39
40#define __LOCK_ALIGNMENT
41#define __ONCE_ALIGNMENT
42
43struct __pthread_rwlock_arch_t
44{
45 unsigned int __readers;
46 unsigned int __writers;
47 unsigned int __wrphase_futex;
48 unsigned int __writers_futex;
49 unsigned int __pad3;
50 unsigned int __pad4;
51#if __BYTE_ORDER == __BIG_ENDIAN
52 unsigned char __pad1;
53 unsigned char __pad2;
54 unsigned char __shared;
55 /* FLAGS must stay at this position in the structure to maintain
56 binary compatibility. */
57 unsigned char __flags;
58#else
59 /* FLAGS must stay at this position in the structure to maintain
60 binary compatibility. */
61 unsigned char __flags;
62 unsigned char __shared;
63 unsigned char __pad1;
64 unsigned char __pad2;
65#endif
66 int __cur_writer;
67};
68
69#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
70
71#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/semaphore.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SEMAPHORE_H18#ifndef _SEMAPHORE_H
19# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."19# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/arm-linux-gnueabihf/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Define the machine-dependent type `jmp_buf'. ARM EABI version. */18/* Define the machine-dependent type `jmp_buf'. ARM EABI version. */
1919
lib/libc/include/arm-linux-gnueabihf/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. ARM version.1/* Define SHMLBA. ARM version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/arm-linux-gnueabihf/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/arm-linux-gnueabihf/bits/struct_rwlock.h created+61
...@@ -0,0 +1,61 @@
1/* Default read-write lock implementation struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef __RWLOCK_INTERNAL_H
20#define __RWLOCK_INTERNAL_H
21
22#include <bits/endian.h>
23
24/* Generic struct for both POSIX read-write lock. New ports are expected
25 to use the default layout, however archictetures can redefine it to add
26 arch-specific extensions (such as lock-elision). The struct have a size
27 of 32 bytes on both LP32 and LP64 architectures. */
28
29struct __pthread_rwlock_arch_t
30{
31 unsigned int __readers;
32 unsigned int __writers;
33 unsigned int __wrphase_futex;
34 unsigned int __writers_futex;
35 unsigned int __pad3;
36 unsigned int __pad4;
37 /* FLAGS must stay at its position in the structure to maintain
38 binary compatibility. */
39#if __BYTE_ORDER == __BIG_ENDIAN
40 unsigned char __pad1;
41 unsigned char __pad2;
42 unsigned char __shared;
43 unsigned char __flags;
44#else
45 unsigned char __flags;
46 unsigned char __shared;
47 unsigned char __pad1;
48 unsigned char __pad2;
49#endif
50 int __cur_writer;
51};
52
53#if __BYTE_ORDER == __BIG_ENDIAN
54# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
55 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
56#else
57# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
58 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
59#endif
60
61#endif
\ No newline at end of file
lib/libc/include/arm-linux-gnueabihf/bits/wordsize.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#define __WORDSIZE 3218#define __WORDSIZE 32
19#define __WORDSIZE_TIME64_COMPAT32 019#define __WORDSIZE_TIME64_COMPAT32 0
lib/libc/include/arm-linux-gnueabihf/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word definitions. ARM VFP version.1/* FPU control word definitions. ARM VFP version.
2 Copyright (C) 2004-2019 Free Software Foundation, Inc.2 Copyright (C) 2004-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FPU_CONTROL_H19#ifndef _FPU_CONTROL_H
20#define _FPU_CONTROL_H20#define _FPU_CONTROL_H
lib/libc/include/arm-linux-gnueabihf/sys/ptrace.h+6-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/ARM version.1/* `ptrace' debugger support interface. Linux/ARM version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -196,8 +196,12 @@ enum __ptrace_request...@@ -196,8 +196,12 @@ enum __ptrace_request
196#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER196#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
197197
198 /* Get seccomp BPF filter metadata. */198 /* Get seccomp BPF filter metadata. */
199 PTRACE_SECCOMP_GET_METADATA = 0x420d199 PTRACE_SECCOMP_GET_METADATA = 0x420d,
200#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA200#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
201
202 /* Get information about system call. */
203 PTRACE_GET_SYSCALL_INFO = 0x420e
204#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
201};205};
202206
203207
lib/libc/include/arm-linux-gnueabihf/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* System V/ARM ABI compliant context switching support. */18/* System V/ARM ABI compliant context switching support. */
1919
lib/libc/include/arm-linux-gnueabihf/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
19#define _SYS_USER_H 119#define _SYS_USER_H 1
lib/libc/include/armeb-linux-gnueabi/bits/endian.h deleted-10
...@@ -1,10 +0,0 @@
1#ifndef _ENDIAN_H
2# error "Never use <bits/endian.h> directly; include <endian.h> instead."
3#endif
4
5/* ARM can be either big or little endian. */
6#ifdef __ARMEB__
7#define __BYTE_ORDER __BIG_ENDIAN
8#else
9#define __BYTE_ORDER __LITTLE_ENDIAN
10#endif
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/endianness.h created+15
...@@ -0,0 +1,15 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* ARM has selectable endianness. */
9#ifdef __ARMEB__
10#define __BYTE_ORDER __BIG_ENDIAN
11#else
12#define __BYTE_ORDER __LITTLE_ENDIAN
13#endif
14
15#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux.1/* O_*, F_*, FD_* bit values for Linux.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/armeb-linux-gnueabi/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -81,7 +81,7 @@ fenv_t;...@@ -81,7 +81,7 @@ fenv_t;
81# define FE_NOMASK_ENV ((const fenv_t *) -2)81# define FE_NOMASK_ENV ((const fenv_t *) -2)
82#endif82#endif
8383
84#if __GLIBC_USE (IEC_60559_BFP_EXT)84#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
85/* Type representing floating-point control modes. */85/* Type representing floating-point control modes. */
86typedef unsigned int femode_t;86typedef unsigned int femode_t;
8787
lib/libc/include/armeb-linux-gnueabi/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features.1/* Macros to control TS 18661-3 glibc features.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* Defined to 1 if the current compiler invocation provides a19/* Defined to 1 if the current compiler invocation provides a
20 floating-point type with the IEEE 754 binary128 format, and this glibc20 floating-point type with the IEEE 754 binary128 format, and this glibc
lib/libc/include/armeb-linux-gnueabi/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP. ARM Linux version.1/* Defines for bits in AT_HWCAP. ARM Linux version.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)19#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/armeb-linux-gnueabi/bits/link.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _LINK_H18#ifndef _LINK_H
19# error "Never include <bits/link.h> directly; use <link.h> instead."19# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/armeb-linux-gnueabi/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type.1/* Properties of long double type.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This header is included by <sys/cdefs.h>.19/* This header is included by <sys/cdefs.h>.
2020
...@@ -36,4 +36,5 @@...@@ -36,4 +36,5 @@
36 ABI-compatible with double. */36 ABI-compatible with double. */
37#ifndef __NO_LONG_DOUBLE_MATH37#ifndef __NO_LONG_DOUBLE_MATH
38# define __NO_LONG_DOUBLE_MATH 138# define __NO_LONG_DOUBLE_MATH 1
39#endif
\ No newline at end of file
39#endif
40#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/procfs-id.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Arm version.1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Arm version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
lib/libc/include/armeb-linux-gnueabi/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. Arm version.1/* Types for registers for sys/procfs.h. Arm version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/armeb-linux-gnueabi/bits/pthreadtypes-arch.h deleted-71
...@@ -1,71 +0,0 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _BITS_PTHREADTYPES_ARCH_H
19#define _BITS_PTHREADTYPES_ARCH_H 1
20
21#include <endian.h>
22
23#define __SIZEOF_PTHREAD_ATTR_T 36
24#define __SIZEOF_PTHREAD_MUTEX_T 24
25#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
26#define __SIZEOF_PTHREAD_COND_T 48
27#define __SIZEOF_PTHREAD_CONDATTR_T 4
28#define __SIZEOF_PTHREAD_RWLOCK_T 32
29#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
30#define __SIZEOF_PTHREAD_BARRIER_T 20
31#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
32
33/* Data structure for mutex handling. */
34#define __PTHREAD_COMPAT_PADDING_MID
35#define __PTHREAD_COMPAT_PADDING_END
36#define __PTHREAD_MUTEX_LOCK_ELISION 0
37#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 1
38#define __PTHREAD_MUTEX_USE_UNION 1
39
40#define __LOCK_ALIGNMENT
41#define __ONCE_ALIGNMENT
42
43struct __pthread_rwlock_arch_t
44{
45 unsigned int __readers;
46 unsigned int __writers;
47 unsigned int __wrphase_futex;
48 unsigned int __writers_futex;
49 unsigned int __pad3;
50 unsigned int __pad4;
51#if __BYTE_ORDER == __BIG_ENDIAN
52 unsigned char __pad1;
53 unsigned char __pad2;
54 unsigned char __shared;
55 /* FLAGS must stay at this position in the structure to maintain
56 binary compatibility. */
57 unsigned char __flags;
58#else
59 /* FLAGS must stay at this position in the structure to maintain
60 binary compatibility. */
61 unsigned char __flags;
62 unsigned char __shared;
63 unsigned char __pad1;
64 unsigned char __pad2;
65#endif
66 int __cur_writer;
67};
68
69#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
70
71#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/semaphore.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SEMAPHORE_H18#ifndef _SEMAPHORE_H
19# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."19# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/armeb-linux-gnueabi/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Define the machine-dependent type `jmp_buf'. ARM EABI version. */18/* Define the machine-dependent type `jmp_buf'. ARM EABI version. */
1919
lib/libc/include/armeb-linux-gnueabi/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. ARM version.1/* Define SHMLBA. ARM version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/armeb-linux-gnueabi/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/armeb-linux-gnueabi/bits/struct_rwlock.h created+61
...@@ -0,0 +1,61 @@
1/* Default read-write lock implementation struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef __RWLOCK_INTERNAL_H
20#define __RWLOCK_INTERNAL_H
21
22#include <bits/endian.h>
23
24/* Generic struct for both POSIX read-write lock. New ports are expected
25 to use the default layout, however archictetures can redefine it to add
26 arch-specific extensions (such as lock-elision). The struct have a size
27 of 32 bytes on both LP32 and LP64 architectures. */
28
29struct __pthread_rwlock_arch_t
30{
31 unsigned int __readers;
32 unsigned int __writers;
33 unsigned int __wrphase_futex;
34 unsigned int __writers_futex;
35 unsigned int __pad3;
36 unsigned int __pad4;
37 /* FLAGS must stay at its position in the structure to maintain
38 binary compatibility. */
39#if __BYTE_ORDER == __BIG_ENDIAN
40 unsigned char __pad1;
41 unsigned char __pad2;
42 unsigned char __shared;
43 unsigned char __flags;
44#else
45 unsigned char __flags;
46 unsigned char __shared;
47 unsigned char __pad1;
48 unsigned char __pad2;
49#endif
50 int __cur_writer;
51};
52
53#if __BYTE_ORDER == __BIG_ENDIAN
54# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
55 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
56#else
57# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
58 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
59#endif
60
61#endif
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabi/bits/wordsize.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#define __WORDSIZE 3218#define __WORDSIZE 32
19#define __WORDSIZE_TIME64_COMPAT32 019#define __WORDSIZE_TIME64_COMPAT32 0
lib/libc/include/armeb-linux-gnueabi/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word definitions. ARM VFP version.1/* FPU control word definitions. ARM VFP version.
2 Copyright (C) 2004-2019 Free Software Foundation, Inc.2 Copyright (C) 2004-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FPU_CONTROL_H19#ifndef _FPU_CONTROL_H
20#define _FPU_CONTROL_H20#define _FPU_CONTROL_H
lib/libc/include/armeb-linux-gnueabi/sys/ptrace.h+6-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/ARM version.1/* `ptrace' debugger support interface. Linux/ARM version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -196,8 +196,12 @@ enum __ptrace_request...@@ -196,8 +196,12 @@ enum __ptrace_request
196#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER196#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
197197
198 /* Get seccomp BPF filter metadata. */198 /* Get seccomp BPF filter metadata. */
199 PTRACE_SECCOMP_GET_METADATA = 0x420d199 PTRACE_SECCOMP_GET_METADATA = 0x420d,
200#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA200#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
201
202 /* Get information about system call. */
203 PTRACE_GET_SYSCALL_INFO = 0x420e
204#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
201};205};
202206
203207
lib/libc/include/armeb-linux-gnueabi/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* System V/ARM ABI compliant context switching support. */18/* System V/ARM ABI compliant context switching support. */
1919
lib/libc/include/armeb-linux-gnueabi/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
19#define _SYS_USER_H 119#define _SYS_USER_H 1
lib/libc/include/armeb-linux-gnueabihf/bits/endian.h deleted-10
...@@ -1,10 +0,0 @@
1#ifndef _ENDIAN_H
2# error "Never use <bits/endian.h> directly; include <endian.h> instead."
3#endif
4
5/* ARM can be either big or little endian. */
6#ifdef __ARMEB__
7#define __BYTE_ORDER __BIG_ENDIAN
8#else
9#define __BYTE_ORDER __LITTLE_ENDIAN
10#endif
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/endianness.h created+15
...@@ -0,0 +1,15 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* ARM has selectable endianness. */
9#ifdef __ARMEB__
10#define __BYTE_ORDER __BIG_ENDIAN
11#else
12#define __BYTE_ORDER __LITTLE_ENDIAN
13#endif
14
15#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux.1/* O_*, F_*, FD_* bit values for Linux.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/armeb-linux-gnueabihf/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -81,7 +81,7 @@ fenv_t;...@@ -81,7 +81,7 @@ fenv_t;
81# define FE_NOMASK_ENV ((const fenv_t *) -2)81# define FE_NOMASK_ENV ((const fenv_t *) -2)
82#endif82#endif
8383
84#if __GLIBC_USE (IEC_60559_BFP_EXT)84#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
85/* Type representing floating-point control modes. */85/* Type representing floating-point control modes. */
86typedef unsigned int femode_t;86typedef unsigned int femode_t;
8787
lib/libc/include/armeb-linux-gnueabihf/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features.1/* Macros to control TS 18661-3 glibc features.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* Defined to 1 if the current compiler invocation provides a19/* Defined to 1 if the current compiler invocation provides a
20 floating-point type with the IEEE 754 binary128 format, and this glibc20 floating-point type with the IEEE 754 binary128 format, and this glibc
lib/libc/include/armeb-linux-gnueabihf/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP. ARM Linux version.1/* Defines for bits in AT_HWCAP. ARM Linux version.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)19#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/armeb-linux-gnueabihf/bits/link.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _LINK_H18#ifndef _LINK_H
19# error "Never include <bits/link.h> directly; use <link.h> instead."19# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/armeb-linux-gnueabihf/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type.1/* Properties of long double type.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This header is included by <sys/cdefs.h>.19/* This header is included by <sys/cdefs.h>.
2020
...@@ -36,4 +36,5 @@...@@ -36,4 +36,5 @@
36 ABI-compatible with double. */36 ABI-compatible with double. */
37#ifndef __NO_LONG_DOUBLE_MATH37#ifndef __NO_LONG_DOUBLE_MATH
38# define __NO_LONG_DOUBLE_MATH 138# define __NO_LONG_DOUBLE_MATH 1
39#endif
\ No newline at end of file
39#endif
40#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/procfs-id.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Arm version.1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Arm version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
lib/libc/include/armeb-linux-gnueabihf/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. Arm version.1/* Types for registers for sys/procfs.h. Arm version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/armeb-linux-gnueabihf/bits/pthreadtypes-arch.h deleted-71
...@@ -1,71 +0,0 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _BITS_PTHREADTYPES_ARCH_H
19#define _BITS_PTHREADTYPES_ARCH_H 1
20
21#include <endian.h>
22
23#define __SIZEOF_PTHREAD_ATTR_T 36
24#define __SIZEOF_PTHREAD_MUTEX_T 24
25#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
26#define __SIZEOF_PTHREAD_COND_T 48
27#define __SIZEOF_PTHREAD_CONDATTR_T 4
28#define __SIZEOF_PTHREAD_RWLOCK_T 32
29#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
30#define __SIZEOF_PTHREAD_BARRIER_T 20
31#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
32
33/* Data structure for mutex handling. */
34#define __PTHREAD_COMPAT_PADDING_MID
35#define __PTHREAD_COMPAT_PADDING_END
36#define __PTHREAD_MUTEX_LOCK_ELISION 0
37#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 1
38#define __PTHREAD_MUTEX_USE_UNION 1
39
40#define __LOCK_ALIGNMENT
41#define __ONCE_ALIGNMENT
42
43struct __pthread_rwlock_arch_t
44{
45 unsigned int __readers;
46 unsigned int __writers;
47 unsigned int __wrphase_futex;
48 unsigned int __writers_futex;
49 unsigned int __pad3;
50 unsigned int __pad4;
51#if __BYTE_ORDER == __BIG_ENDIAN
52 unsigned char __pad1;
53 unsigned char __pad2;
54 unsigned char __shared;
55 /* FLAGS must stay at this position in the structure to maintain
56 binary compatibility. */
57 unsigned char __flags;
58#else
59 /* FLAGS must stay at this position in the structure to maintain
60 binary compatibility. */
61 unsigned char __flags;
62 unsigned char __shared;
63 unsigned char __pad1;
64 unsigned char __pad2;
65#endif
66 int __cur_writer;
67};
68
69#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
70
71#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/semaphore.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SEMAPHORE_H18#ifndef _SEMAPHORE_H
19# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."19# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/armeb-linux-gnueabihf/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Define the machine-dependent type `jmp_buf'. ARM EABI version. */18/* Define the machine-dependent type `jmp_buf'. ARM EABI version. */
1919
lib/libc/include/armeb-linux-gnueabihf/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. ARM version.1/* Define SHMLBA. ARM version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/armeb-linux-gnueabihf/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/armeb-linux-gnueabihf/bits/struct_rwlock.h created+61
...@@ -0,0 +1,61 @@
1/* Default read-write lock implementation struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef __RWLOCK_INTERNAL_H
20#define __RWLOCK_INTERNAL_H
21
22#include <bits/endian.h>
23
24/* Generic struct for both POSIX read-write lock. New ports are expected
25 to use the default layout, however archictetures can redefine it to add
26 arch-specific extensions (such as lock-elision). The struct have a size
27 of 32 bytes on both LP32 and LP64 architectures. */
28
29struct __pthread_rwlock_arch_t
30{
31 unsigned int __readers;
32 unsigned int __writers;
33 unsigned int __wrphase_futex;
34 unsigned int __writers_futex;
35 unsigned int __pad3;
36 unsigned int __pad4;
37 /* FLAGS must stay at its position in the structure to maintain
38 binary compatibility. */
39#if __BYTE_ORDER == __BIG_ENDIAN
40 unsigned char __pad1;
41 unsigned char __pad2;
42 unsigned char __shared;
43 unsigned char __flags;
44#else
45 unsigned char __flags;
46 unsigned char __shared;
47 unsigned char __pad1;
48 unsigned char __pad2;
49#endif
50 int __cur_writer;
51};
52
53#if __BYTE_ORDER == __BIG_ENDIAN
54# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
55 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
56#else
57# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
58 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
59#endif
60
61#endif
\ No newline at end of file
lib/libc/include/armeb-linux-gnueabihf/bits/wordsize.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#define __WORDSIZE 3218#define __WORDSIZE 32
19#define __WORDSIZE_TIME64_COMPAT32 019#define __WORDSIZE_TIME64_COMPAT32 0
lib/libc/include/armeb-linux-gnueabihf/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word definitions. ARM VFP version.1/* FPU control word definitions. ARM VFP version.
2 Copyright (C) 2004-2019 Free Software Foundation, Inc.2 Copyright (C) 2004-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FPU_CONTROL_H19#ifndef _FPU_CONTROL_H
20#define _FPU_CONTROL_H20#define _FPU_CONTROL_H
lib/libc/include/armeb-linux-gnueabihf/sys/ptrace.h+6-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/ARM version.1/* `ptrace' debugger support interface. Linux/ARM version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -196,8 +196,12 @@ enum __ptrace_request...@@ -196,8 +196,12 @@ enum __ptrace_request
196#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER196#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
197197
198 /* Get seccomp BPF filter metadata. */198 /* Get seccomp BPF filter metadata. */
199 PTRACE_SECCOMP_GET_METADATA = 0x420d199 PTRACE_SECCOMP_GET_METADATA = 0x420d,
200#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA200#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
201
202 /* Get information about system call. */
203 PTRACE_GET_SYSCALL_INFO = 0x420e
204#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
201};205};
202206
203207
lib/libc/include/armeb-linux-gnueabihf/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* System V/ARM ABI compliant context switching support. */18/* System V/ARM ABI compliant context switching support. */
1919
lib/libc/include/armeb-linux-gnueabihf/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
19#define _SYS_USER_H 119#define _SYS_USER_H 1
lib/libc/include/generic-glibc/aio.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO/IEC 9945-1:1996 6.7: Asynchronous Input and Output19 * ISO/IEC 9945-1:1996 6.7: Asynchronous Input and Output
lib/libc/include/generic-glibc/aliases.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _ALIASES_H18#ifndef _ALIASES_H
19#define _ALIASES_H 119#define _ALIASES_H 1
lib/libc/include/generic-glibc/alloca.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _ALLOCA_H18#ifndef _ALLOCA_H
19#define _ALLOCA_H 119#define _ALLOCA_H 1
lib/libc/include/generic-glibc/ar.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Header describing `ar' archive file format.1/* Header describing `ar' archive file format.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _AR_H19#ifndef _AR_H
20#define _AR_H 120#define _AR_H 1
lib/libc/include/generic-glibc/argp.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Hierarchial argument parsing, layered over getopt.1/* Hierarchial argument parsing, layered over getopt.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Written by Miles Bader <miles@gnu.ai.mit.edu>.4 Written by Miles Bader <miles@gnu.ai.mit.edu>.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _ARGP_H20#ifndef _ARGP_H
21#define _ARGP_H21#define _ARGP_H
lib/libc/include/generic-glibc/argz.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Routines for dealing with '\0' separated arg vectors.1/* Routines for dealing with '\0' separated arg vectors.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _ARGZ_H19#ifndef _ARGZ_H
20#define _ARGZ_H 120#define _ARGZ_H 1
lib/libc/include/generic-glibc/arpa/inet.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _ARPA_INET_H18#ifndef _ARPA_INET_H
19#define _ARPA_INET_H 119#define _ARPA_INET_H 1
lib/libc/include/generic-glibc/assert.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.2 Diagnostics <assert.h>19 * ISO C99 Standard: 7.2 Diagnostics <assert.h>
lib/libc/include/generic-glibc/bits/argp-ldbl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Redirections for argp functions for -mlong-double-64.1/* Redirections for argp functions for -mlong-double-64.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _ARGP_H19#ifndef _ARGP_H
20# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."20# error "Never include <bits/argp-ldbl.h> directly; use <argp.h> instead."
lib/libc/include/generic-glibc/bits/byteswap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros and inline functions to swap the order of bytes in integer values.1/* Macros and inline functions to swap the order of bytes in integer values.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined _BYTESWAP_H && !defined _NETINET_IN_H && !defined _ENDIAN_H19#if !defined _BYTESWAP_H && !defined _NETINET_IN_H && !defined _ENDIAN_H
20# error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."20# error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."
lib/libc/include/generic-glibc/bits/cmathcalls.h+2-2
...@@ -1,6 +1,6 @@...@@ -1,6 +1,6 @@
1/* Prototype declarations for complex math functions;1/* Prototype declarations for complex math functions;
2 helper file for <complex.h>.2 helper file for <complex.h>.
3 Copyright (C) 1997-2019 Free Software Foundation, Inc.3 Copyright (C) 1997-2020 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
6 The GNU C Library is free software; you can redistribute it and/or6 The GNU C Library is free software; you can redistribute it and/or
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20/* NOTE: Because of the special way this file is used by <complex.h>, this20/* NOTE: Because of the special way this file is used by <complex.h>, this
21 file must NOT be protected from multiple inclusion as header files21 file must NOT be protected from multiple inclusion as header files
lib/libc/include/generic-glibc/bits/confname.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `sysconf', `pathconf', and `confstr' NAME values. Generic version.1/* `sysconf', `pathconf', and `confstr' NAME values. Generic version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _UNISTD_H19#ifndef _UNISTD_H
20# error "Never use <bits/confname.h> directly; include <unistd.h> instead."20# error "Never use <bits/confname.h> directly; include <unistd.h> instead."
lib/libc/include/generic-glibc/bits/cpu-set.h+2-2
...@@ -1,6 +1,6 @@...@@ -1,6 +1,6 @@
1/* Definition of the cpu_set_t structure used by the POSIX 1003.1b-19931/* Definition of the cpu_set_t structure used by the POSIX 1003.1b-1993
2 scheduling interface.2 scheduling interface.
3 Copyright (C) 1996-2019 Free Software Foundation, Inc.3 Copyright (C) 1996-2020 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
6 The GNU C Library is free software; you can redistribute it and/or6 The GNU C Library is free software; you can redistribute it and/or
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _BITS_CPU_SET_H20#ifndef _BITS_CPU_SET_H
21#define _BITS_CPU_SET_H 121#define _BITS_CPU_SET_H 1
lib/libc/include/generic-glibc/bits/dirent.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _DIRENT_H18#ifndef _DIRENT_H
19# error "Never use <bits/dirent.h> directly; include <dirent.h> instead."19# error "Never use <bits/dirent.h> directly; include <dirent.h> instead."
lib/libc/include/generic-glibc/bits/dirent_ext.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System-specific extensions of <dirent.h>. Linux version.1/* System-specific extensions of <dirent.h>. Linux version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _DIRENT_H19#ifndef _DIRENT_H
20# error "Never include <bits/dirent_ext.h> directly; use <dirent.h> instead."20# error "Never include <bits/dirent_ext.h> directly; use <dirent.h> instead."
lib/libc/include/generic-glibc/bits/dlfcn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System dependent definitions for run-time dynamic loading.1/* System dependent definitions for run-time dynamic loading.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _DLFCN_H19#ifndef _DLFCN_H
20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
lib/libc/include/generic-glibc/bits/endian.h+45-11
...@@ -1,15 +1,49 @@...@@ -1,15 +1,49 @@
1/* The MIPS architecture has selectable endianness.1/* Endian macros for string.h functions
2 It exists in both little and big endian flavours and we2 Copyright (C) 1992-2020 Free Software Foundation, Inc.
3 want to be able to share the installed header files between3 This file is part of the GNU C Library.
4 both, so we define __BYTE_ORDER based on GCC's predefines. */
54
6#ifndef _ENDIAN_H5 The GNU C Library is free software; you can redistribute it and/or
7# error "Never use <bits/endian.h> directly; include <endian.h> instead."6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _BITS_ENDIAN_H
20#define _BITS_ENDIAN_H 1
21
22/* Definitions for byte order, according to significance of bytes,
23 from low addresses to high addresses. The value is what you get by
24 putting '4' in the most significant byte, '3' in the second most
25 significant byte, '2' in the second least significant byte, and '1'
26 in the least significant byte, and then writing down one digit for
27 each byte, starting with the byte at the lowest address at the left,
28 and proceeding to the byte with the highest address at the right. */
29
30#define __LITTLE_ENDIAN 1234
31#define __BIG_ENDIAN 4321
32#define __PDP_ENDIAN 3412
33
34/* This file defines `__BYTE_ORDER' for the particular machine. */
35#include <bits/endianness.h>
36
37/* Some machines may need to use a different endianness for floating point
38 values. */
39#ifndef __FLOAT_WORD_ORDER
40# define __FLOAT_WORD_ORDER __BYTE_ORDER
8#endif41#endif
942
10#ifdef __MIPSEB43#if __BYTE_ORDER == __LITTLE_ENDIAN
11# define __BYTE_ORDER __BIG_ENDIAN44# define __LONG_LONG_PAIR(HI, LO) LO, HI
45#elif __BYTE_ORDER == __BIG_ENDIAN
46# define __LONG_LONG_PAIR(HI, LO) HI, LO
12#endif47#endif
13#ifdef __MIPSEL
14# define __BYTE_ORDER __LITTLE_ENDIAN
15#endif
\ No newline at end of file
48
49#endif /* bits/endian.h */
\ No newline at end of file
lib/libc/include/generic-glibc/bits/endianness.h created+16
...@@ -0,0 +1,16 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* MIPS has selectable endianness. */
9#ifdef __MIPSEB
10# define __BYTE_ORDER __BIG_ENDIAN
11#endif
12#ifdef __MIPSEL
13# define __BYTE_ORDER __LITTLE_ENDIAN
14#endif
15
16#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/generic-glibc/bits/environments.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _UNISTD_H18#ifndef _UNISTD_H
19# error "Never include this file directly. Use <unistd.h> instead"19# error "Never include this file directly. Use <unistd.h> instead"
lib/libc/include/generic-glibc/bits/epoll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EPOLL_H18#ifndef _SYS_EPOLL_H
19# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."19# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."
lib/libc/include/generic-glibc/bits/err-ldbl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Redirections for err.h functions for -mlong-double-64.1/* Redirections for err.h functions for -mlong-double-64.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _ERR_H19#ifndef _ERR_H
20# error "Never include <bits/err-ldbl.h> directly; use <err.h> instead."20# error "Never include <bits/err-ldbl.h> directly; use <err.h> instead."
lib/libc/include/generic-glibc/bits/errno.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Error constants. Linux specific version.1/* Error constants. Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_ERRNO_H19#ifndef _BITS_ERRNO_H
20#define _BITS_ERRNO_H 120#define _BITS_ERRNO_H 1
lib/libc/include/generic-glibc/bits/error-ldbl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Redirections for error.h functions for -mlong-double-64.1/* Redirections for error.h functions for -mlong-double-64.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _ERROR_H19#ifndef _ERROR_H
20# error "Never include <bits/error-ldbl.h> directly; use <error.h> instead."20# error "Never include <bits/error-ldbl.h> directly; use <error.h> instead."
lib/libc/include/generic-glibc/bits/error.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Specializations for error functions.1/* Specializations for error functions.
2 Copyright (C) 2007-2019 Free Software Foundation, Inc.2 Copyright (C) 2007-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _ERROR_H19#ifndef _ERROR_H
20# error "Never include <bits/error.h> directly; use <error.h> instead."20# error "Never include <bits/error.h> directly; use <error.h> instead."
lib/libc/include/generic-glibc/bits/eventfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EVENTFD_H18#ifndef _SYS_EVENTFD_H
19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
lib/libc/include/generic-glibc/bits/fcntl-linux.h+7-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux.1/* O_*, F_*, FD_* bit values for Linux.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl-linux.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl-linux.h> directly; include <fcntl.h> instead."
...@@ -334,6 +334,11 @@ struct f_owner_ex...@@ -334,6 +334,11 @@ struct f_owner_ex
334# define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in334# define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
335 the range after performing the335 the range after performing the
336 write. */336 write. */
337/* SYNC_FILE_RANGE_WRITE_AND_WAIT ensures all pages in the range are
338 written to disk before returning. */
339# define SYNC_FILE_RANGE_WRITE_AND_WAIT (SYNC_FILE_RANGE_WRITE \
340 | SYNC_FILE_RANGE_WAIT_BEFORE \
341 | SYNC_FILE_RANGE_WAIT_AFTER)
337342
338/* Flags for SPLICE and VMSPLICE. */343/* Flags for SPLICE and VMSPLICE. */
339# define SPLICE_F_MOVE 1 /* Move pages instead of copying. */344# define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
lib/libc/include/generic-glibc/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux.1/* O_*, F_*, FD_* bit values for Linux.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/generic-glibc/bits/fcntl2.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Checking macros for fcntl functions.1/* Checking macros for fcntl functions.
2 Copyright (C) 2007-2019 Free Software Foundation, Inc.2 Copyright (C) 2007-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never include <bits/fcntl2.h> directly; use <fcntl.h> instead."20# error "Never include <bits/fcntl2.h> directly; use <fcntl.h> instead."
lib/libc/include/generic-glibc/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -104,7 +104,7 @@ fenv_t;...@@ -104,7 +104,7 @@ fenv_t;
104# define FE_NOMASK_ENV ((const fenv_t *) -2)104# define FE_NOMASK_ENV ((const fenv_t *) -2)
105#endif105#endif
106106
107#if __GLIBC_USE (IEC_60559_BFP_EXT)107#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
108/* Type representing floating-point control modes. */108/* Type representing floating-point control modes. */
109typedef unsigned int femode_t;109typedef unsigned int femode_t;
110110
lib/libc/include/generic-glibc/bits/floatn-common.h+2-2
...@@ -1,6 +1,6 @@...@@ -1,6 +1,6 @@
1/* Macros to control TS 18661-3 glibc features where the same1/* Macros to control TS 18661-3 glibc features where the same
2 definitions are appropriate for all platforms.2 definitions are appropriate for all platforms.
3 Copyright (C) 2017-2019 Free Software Foundation, Inc.3 Copyright (C) 2017-2020 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
6 The GNU C Library is free software; you can redistribute it and/or6 The GNU C Library is free software; you can redistribute it and/or
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _BITS_FLOATN_COMMON_H20#ifndef _BITS_FLOATN_COMMON_H
21#define _BITS_FLOATN_COMMON_H21#define _BITS_FLOATN_COMMON_H
lib/libc/include/generic-glibc/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on MIPS platforms.1/* Macros to control TS 18661-3 glibc features on MIPS platforms.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/generic-glibc/bits/flt-eval-method.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define __GLIBC_FLT_EVAL_METHOD.1/* Define __GLIBC_FLT_EVAL_METHOD.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."20# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."
lib/libc/include/generic-glibc/bits/fp-fast.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define FP_FAST_* macros.1/* Define FP_FAST_* macros.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."20# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."
lib/libc/include/generic-glibc/bits/fp-logb.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define __FP_LOGB0_IS_MIN and __FP_LOGBNAN_IS_MIN.1/* Define __FP_LOGB0_IS_MIN and __FP_LOGBNAN_IS_MIN.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/fp-logb.h> directly; include <math.h> instead."20# error "Never use <bits/fp-logb.h> directly; include <math.h> instead."
lib/libc/include/generic-glibc/bits/getopt_core.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Declarations for getopt (basic, portable features only).1/* Declarations for getopt (basic, portable features only).
2 Copyright (C) 1989-2019 Free Software Foundation, Inc.2 Copyright (C) 1989-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library and is also part of gnulib.3 This file is part of the GNU C Library and is also part of gnulib.
4 Patches to this file should be submitted to both projects.4 Patches to this file should be submitted to both projects.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _GETOPT_CORE_H20#ifndef _GETOPT_CORE_H
21#define _GETOPT_CORE_H 121#define _GETOPT_CORE_H 1
lib/libc/include/generic-glibc/bits/getopt_ext.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Declarations for getopt (GNU extensions).1/* Declarations for getopt (GNU extensions).
2 Copyright (C) 1989-2019 Free Software Foundation, Inc.2 Copyright (C) 1989-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library and is also part of gnulib.3 This file is part of the GNU C Library and is also part of gnulib.
4 Patches to this file should be submitted to both projects.4 Patches to this file should be submitted to both projects.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _GETOPT_EXT_H20#ifndef _GETOPT_EXT_H
21#define _GETOPT_EXT_H 121#define _GETOPT_EXT_H 1
lib/libc/include/generic-glibc/bits/getopt_posix.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Declarations for getopt (POSIX compatibility shim).1/* Declarations for getopt (POSIX compatibility shim).
2 Copyright (C) 1989-2019 Free Software Foundation, Inc.2 Copyright (C) 1989-2020 Free Software Foundation, Inc.
3 Unlike the bulk of the getopt implementation, this file is NOT part3 Unlike the bulk of the getopt implementation, this file is NOT part
4 of gnulib.4 of gnulib.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _GETOPT_POSIX_H20#ifndef _GETOPT_POSIX_H
21#define _GETOPT_POSIX_H 121#define _GETOPT_POSIX_H 1
lib/libc/include/generic-glibc/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP.1/* Defines for bits in AT_HWCAP.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_AUXV_H19#ifndef _SYS_AUXV_H
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/generic-glibc/bits/in.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Linux version. */18/* Linux version. */
1919
lib/libc/include/generic-glibc/bits/indirect-return.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definition of __INDIRECT_RETURN. Generic version.1/* Definition of __INDIRECT_RETURN. Generic version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _UCONTEXT_H19#ifndef _UCONTEXT_H
20# error "Never include <bits/indirect-return.h> directly; use <ucontext.h> instead."20# error "Never include <bits/indirect-return.h> directly; use <ucontext.h> instead."
lib/libc/include/generic-glibc/bits/inotify.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_INOTIFY_H18#ifndef _SYS_INOTIFY_H
19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
lib/libc/include/generic-glibc/bits/ioctl-types.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structure types for pre-termios terminal ioctls. Linux version.1/* Structure types for pre-termios terminal ioctls. Linux version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IOCTL_H19#ifndef _SYS_IOCTL_H
20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/generic-glibc/bits/ioctls.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_IOCTL_H18#ifndef _SYS_IOCTL_H
19# error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead."19# error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/generic-glibc/bits/ipc-perm.h created+40
...@@ -0,0 +1,40 @@
1/* struct ipc_perm definition.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _SYS_IPC_H
20# error "Never use <bits/ipc-perm.h> directly; include <sys/ipc.h> instead."
21#endif
22
23/* Data structure used to pass permission information to IPC operations.
24 It follows the kernel ipc64_perm size so the syscall can be made directly
25 without temporary buffer copy. However, since glibc defines the MODE
26 field as mode_t per POSIX definition (BZ#18231), it omits the __PAD1 field
27 (since glibc does not export mode_t as 16-bit for any architecture). */
28struct ipc_perm
29{
30 __key_t __key; /* Key. */
31 __uid_t uid; /* Owner's user ID. */
32 __gid_t gid; /* Owner's group ID. */
33 __uid_t cuid; /* Creator's user ID. */
34 __gid_t cgid; /* Creator's group ID. */
35 __mode_t mode; /* Read/write permission. */
36 unsigned short int __seq; /* Sequence number. */
37 unsigned short int __pad2;
38 __syscall_ulong_t __glibc_reserved1;
39 __syscall_ulong_t __glibc_reserved2;
40};
\ No newline at end of file
lib/libc/include/generic-glibc/bits/ipc.h+3-18
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_IPC_H18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
...@@ -37,19 +37,4 @@...@@ -37,19 +37,4 @@
37/* Special key values. */37/* Special key values. */
38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
3939
40
41/* Data structure used to pass permission information to IPC operations. */
42struct ipc_perm
43 {
44 __key_t __key; /* Key. */
45 __uid_t uid; /* Owner's user ID. */
46 __gid_t gid; /* Owner's group ID. */
47 __uid_t cuid; /* Creator's user ID. */
48 __gid_t cgid; /* Creator's group ID. */
49 unsigned short int mode; /* Read/write permission. */
50 unsigned short int __pad1;
51 unsigned short int __seq; /* Sequence number. */
52 unsigned short int __pad2;
53 __syscall_ulong_t __glibc_reserved1;
54 __syscall_ulong_t __glibc_reserved2;
55 };
\ No newline at end of file
40#include <bits/ipc-perm.h>
\ No newline at end of file
lib/libc/include/generic-glibc/bits/ipctypes.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. Generic.1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. Generic.
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * Never include <bits/ipctypes.h> directly.20 * Never include <bits/ipctypes.h> directly.
lib/libc/include/generic-glibc/bits/iscanonical.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define iscanonical macro.1/* Define iscanonical macro.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
lib/libc/include/generic-glibc/bits/libc-header-start.h+20-4
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Handle feature test macros at the start of a header.1/* Handle feature test macros at the start of a header.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This header is internal to glibc and should not be included outside19/* This header is internal to glibc and should not be included outside
20 of glibc headers. Headers including it must define20 of glibc headers. Headers including it must define
...@@ -43,22 +43,38 @@...@@ -43,22 +43,38 @@
43#endif43#endif
4444
45/* ISO/IEC TS 18661-1:2014 defines the __STDC_WANT_IEC_60559_BFP_EXT__45/* ISO/IEC TS 18661-1:2014 defines the __STDC_WANT_IEC_60559_BFP_EXT__
46 macro. */46 macro. Most but not all symbols enabled by that macro in TS
47 18661-1 are enabled unconditionally in C2X; the symbols in Annex F
48 still require that macro in C2X. */
47#undef __GLIBC_USE_IEC_60559_BFP_EXT49#undef __GLIBC_USE_IEC_60559_BFP_EXT
48#if defined __USE_GNU || defined __STDC_WANT_IEC_60559_BFP_EXT__50#if defined __USE_GNU || defined __STDC_WANT_IEC_60559_BFP_EXT__
49# define __GLIBC_USE_IEC_60559_BFP_EXT 151# define __GLIBC_USE_IEC_60559_BFP_EXT 1
50#else52#else
51# define __GLIBC_USE_IEC_60559_BFP_EXT 053# define __GLIBC_USE_IEC_60559_BFP_EXT 0
52#endif54#endif
55#undef __GLIBC_USE_IEC_60559_BFP_EXT_C2X
56#if __GLIBC_USE (IEC_60559_BFP_EXT) || __GLIBC_USE (ISOC2X)
57# define __GLIBC_USE_IEC_60559_BFP_EXT_C2X 1
58#else
59# define __GLIBC_USE_IEC_60559_BFP_EXT_C2X 0
60#endif
5361
54/* ISO/IEC TS 18661-4:2015 defines the62/* ISO/IEC TS 18661-4:2015 defines the
55 __STDC_WANT_IEC_60559_FUNCS_EXT__ macro. */63 __STDC_WANT_IEC_60559_FUNCS_EXT__ macro. Other than the reduction
64 functions, the symbols from this TS are enabled unconditionally in
65 C2X. */
56#undef __GLIBC_USE_IEC_60559_FUNCS_EXT66#undef __GLIBC_USE_IEC_60559_FUNCS_EXT
57#if defined __USE_GNU || defined __STDC_WANT_IEC_60559_FUNCS_EXT__67#if defined __USE_GNU || defined __STDC_WANT_IEC_60559_FUNCS_EXT__
58# define __GLIBC_USE_IEC_60559_FUNCS_EXT 168# define __GLIBC_USE_IEC_60559_FUNCS_EXT 1
59#else69#else
60# define __GLIBC_USE_IEC_60559_FUNCS_EXT 070# define __GLIBC_USE_IEC_60559_FUNCS_EXT 0
61#endif71#endif
72#undef __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X
73#if __GLIBC_USE (IEC_60559_FUNCS_EXT) || __GLIBC_USE (ISOC2X)
74# define __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X 1
75#else
76# define __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X 0
77#endif
6278
63/* ISO/IEC TS 18661-3:2015 defines the79/* ISO/IEC TS 18661-3:2015 defines the
64 __STDC_WANT_IEC_60559_TYPES_EXT__ macro. */80 __STDC_WANT_IEC_60559_TYPES_EXT__ macro. */
lib/libc/include/generic-glibc/bits/libm-simd-decl-stubs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Empty definitions required for __MATHCALL_VEC unfolding in mathcalls.h.1/* Empty definitions required for __MATHCALL_VEC unfolding in mathcalls.h.
2 Copyright (C) 2014-2019 Free Software Foundation, Inc.2 Copyright (C) 2014-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never include <bits/libm-simd-decl-stubs.h> directly;\20# error "Never include <bits/libm-simd-decl-stubs.h> directly;\
lib/libc/include/generic-glibc/bits/link.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _LINK_H18#ifndef _LINK_H
19# error "Never include <bits/link.h> directly; use <link.h> instead."19# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/generic-glibc/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. Linux version.1/* Minimum guaranteed maximum values for system limits. Linux version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If16 License along with the GNU C Library; see the file COPYING.LIB. If
17 not, see <http://www.gnu.org/licenses/>. */17 not, see <https://www.gnu.org/licenses/>. */
1818
19/* The kernel header pollutes the namespace with the NR_OPEN symbol19/* The kernel header pollutes the namespace with the NR_OPEN symbol
20 and defines LINK_MAX although filesystems have different maxima. A20 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/generic-glibc/bits/locale.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definition of locale category symbol values.1/* Definition of locale category symbol values.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined _LOCALE_H && !defined _LANGINFO_H19#if !defined _LOCALE_H && !defined _LANGINFO_H
20# error "Never use <bits/locale.h> directly; include <locale.h> instead."20# error "Never use <bits/locale.h> directly; include <locale.h> instead."
lib/libc/include/generic-glibc/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. MIPS version.1/* Properties of long double type. MIPS version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,10 +14,11 @@...@@ -14,10 +14,11 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#include <sgidefs.h>19#include <sgidefs.h>
2020
21#if !defined __NO_LONG_DOUBLE_MATH && _MIPS_SIM == _ABIO3221#if !defined __NO_LONG_DOUBLE_MATH && _MIPS_SIM == _ABIO32
22# define __NO_LONG_DOUBLE_MATH 122# define __NO_LONG_DOUBLE_MATH 1
23#endif
\ No newline at end of file
23#endif
24#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/generic-glibc/bits/math-finite.h deleted-197
...@@ -1,197 +0,0 @@
1/* Entry points to finite-math-only compiler runs.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _MATH_H
20# error "Never use <bits/math-finite.h> directly; include <math.h> instead."
21#endif
22
23#define __REDIRFROM(...) __REDIRFROM_X(__VA_ARGS__)
24
25#define __REDIRTO(...) __REDIRTO_X(__VA_ARGS__)
26
27#define __MATH_REDIRCALL_X(from, args, to) \
28 extern _Mdouble_ __REDIRECT_NTH (from, args, to)
29#define __MATH_REDIRCALL(function, reentrant, args) \
30 __MATH_REDIRCALL_X \
31 (__REDIRFROM (function, reentrant), args, \
32 __REDIRTO (function, reentrant))
33#define __MATH_REDIRCALL_2(from, reentrant, args, to) \
34 __MATH_REDIRCALL_X \
35 (__REDIRFROM (from, reentrant), args, \
36 __REDIRTO (to, reentrant))
37
38#define __MATH_REDIRCALL_INTERNAL(function, reentrant, args) \
39 __MATH_REDIRCALL_X \
40 (__REDIRFROM (__CONCAT (__, function), \
41 __CONCAT (reentrant, _finite)), \
42 args, __REDIRTO (function, _r))
43
44
45/* acos. */
46__MATH_REDIRCALL (acos, , (_Mdouble_));
47
48#if defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
49/* acosh. */
50__MATH_REDIRCALL (acosh, , (_Mdouble_));
51#endif
52
53/* asin. */
54__MATH_REDIRCALL (asin, , (_Mdouble_));
55
56/* atan2. */
57__MATH_REDIRCALL (atan2, , (_Mdouble_, _Mdouble_));
58
59#if defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
60/* atanh. */
61__MATH_REDIRCALL (atanh, , (_Mdouble_));
62#endif
63
64/* cosh. */
65__MATH_REDIRCALL (cosh, , (_Mdouble_));
66
67/* exp. */
68__MATH_REDIRCALL (exp, , (_Mdouble_));
69
70#if __GLIBC_USE (IEC_60559_FUNCS_EXT)
71/* exp10. */
72__MATH_REDIRCALL (exp10, , (_Mdouble_));
73#endif
74
75#ifdef __USE_ISOC99
76/* exp2. */
77__MATH_REDIRCALL (exp2, , (_Mdouble_));
78#endif
79
80/* fmod. */
81__MATH_REDIRCALL (fmod, , (_Mdouble_, _Mdouble_));
82
83#if defined __USE_XOPEN || defined __USE_ISOC99
84/* hypot. */
85__MATH_REDIRCALL (hypot, , (_Mdouble_, _Mdouble_));
86#endif
87
88#if (__MATH_DECLARING_DOUBLE && (defined __USE_MISC || defined __USE_XOPEN)) \
89 || (!__MATH_DECLARING_DOUBLE && defined __USE_MISC)
90/* j0. */
91__MATH_REDIRCALL (j0, , (_Mdouble_));
92
93/* y0. */
94__MATH_REDIRCALL (y0, , (_Mdouble_));
95
96/* j1. */
97__MATH_REDIRCALL (j1, , (_Mdouble_));
98
99/* y1. */
100__MATH_REDIRCALL (y1, , (_Mdouble_));
101
102/* jn. */
103__MATH_REDIRCALL (jn, , (int, _Mdouble_));
104
105/* yn. */
106__MATH_REDIRCALL (yn, , (int, _Mdouble_));
107#endif
108
109#ifdef __USE_MISC
110/* lgamma_r. */
111__MATH_REDIRCALL (lgamma, _r, (_Mdouble_, int *));
112#endif
113
114/* Redirect __lgammal_r_finite to __lgamma_r_finite when __NO_LONG_DOUBLE_MATH
115 is set and to itself otherwise. It also redirects __lgamma_r_finite and
116 __lgammaf_r_finite to themselves. */
117__MATH_REDIRCALL_INTERNAL (lgamma, _r, (_Mdouble_, int *));
118
119#if ((defined __USE_XOPEN || defined __USE_ISOC99) \
120 && defined __extern_always_inline)
121/* lgamma. */
122__extern_always_inline _Mdouble_
123__NTH (__REDIRFROM (lgamma, ) (_Mdouble_ __d))
124{
125# if defined __USE_MISC || defined __USE_XOPEN
126 return __REDIRTO (lgamma, _r) (__d, &signgam);
127# else
128 int __local_signgam = 0;
129 return __REDIRTO (lgamma, _r) (__d, &__local_signgam);
130# endif
131}
132#endif
133
134#if ((defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)) \
135 && defined __extern_always_inline) && !__MATH_DECLARING_FLOATN
136/* gamma. */
137__extern_always_inline _Mdouble_
138__NTH (__REDIRFROM (gamma, ) (_Mdouble_ __d))
139{
140 return __REDIRTO (lgamma, _r) (__d, &signgam);
141}
142#endif
143
144/* log. */
145__MATH_REDIRCALL (log, , (_Mdouble_));
146
147/* log10. */
148__MATH_REDIRCALL (log10, , (_Mdouble_));
149
150#ifdef __USE_ISOC99
151/* log2. */
152__MATH_REDIRCALL (log2, , (_Mdouble_));
153#endif
154
155/* pow. */
156__MATH_REDIRCALL (pow, , (_Mdouble_, _Mdouble_));
157
158#if defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99
159/* remainder. */
160__MATH_REDIRCALL (remainder, , (_Mdouble_, _Mdouble_));
161#endif
162
163#if ((__MATH_DECLARING_DOUBLE \
164 && (defined __USE_MISC \
165 || (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8))) \
166 || (!defined __MATH_DECLARE_LDOUBLE && defined __USE_MISC)) \
167 && !__MATH_DECLARING_FLOATN
168/* scalb. */
169__MATH_REDIRCALL (scalb, , (_Mdouble_, _Mdouble_));
170#endif
171
172/* sinh. */
173__MATH_REDIRCALL (sinh, , (_Mdouble_));
174
175/* sqrt. */
176__MATH_REDIRCALL (sqrt, , (_Mdouble_));
177
178#if defined __USE_ISOC99 && defined __extern_always_inline
179/* tgamma. */
180extern _Mdouble_
181__REDIRFROM (__gamma, _r_finite) (_Mdouble_, int *);
182
183__extern_always_inline _Mdouble_
184__NTH (__REDIRFROM (tgamma, ) (_Mdouble_ __d))
185{
186 int __local_signgam = 0;
187 _Mdouble_ __res = __REDIRTO (gamma, _r) (__d, &__local_signgam);
188 return __local_signgam < 0 ? -__res : __res;
189}
190#endif
191
192#undef __REDIRFROM
193#undef __REDIRTO
194#undef __MATH_REDIRCALL
195#undef __MATH_REDIRCALL_2
196#undef __MATH_REDIRCALL_INTERNAL
197#undef __MATH_REDIRCALL_X
\ No newline at end of file
lib/libc/include/generic-glibc/bits/math-vector.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Platform-specific SIMD declarations of math functions.1/* Platform-specific SIMD declarations of math functions.
2 Copyright (C) 2014-2019 Free Software Foundation, Inc.2 Copyright (C) 2014-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never include <bits/math-vector.h> directly;\20# error "Never include <bits/math-vector.h> directly;\
lib/libc/include/generic-glibc/bits/mathcalls-helper-functions.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Prototype declarations for math classification macros helpers.1/* Prototype declarations for math classification macros helpers.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
1919
20/* Classify given number. */20/* Classify given number. */
lib/libc/include/generic-glibc/bits/mathcalls-narrow.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Declare functions returning a narrower type.1/* Declare functions returning a narrower type.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never include <bits/mathcalls-narrow.h> directly; include <math.h> instead."20# error "Never include <bits/mathcalls-narrow.h> directly; include <math.h> instead."
lib/libc/include/generic-glibc/bits/mathcalls.h+17-13
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Prototype declarations for math functions; helper file for <math.h>.1/* Prototype declarations for math functions; helper file for <math.h>.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* NOTE: Because of the special way this file is used by <math.h>, this19/* NOTE: Because of the special way this file is used by <math.h>, this
20 file must NOT be protected from multiple inclusion as header files20 file must NOT be protected from multiple inclusion as header files
...@@ -109,7 +109,7 @@ __MATHCALL (log10,, (_Mdouble_ __x));...@@ -109,7 +109,7 @@ __MATHCALL (log10,, (_Mdouble_ __x));
109/* Break VALUE into integral and fractional parts. */109/* Break VALUE into integral and fractional parts. */
110__MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr)) __nonnull ((2));110__MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr)) __nonnull ((2));
111111
112#if __GLIBC_USE (IEC_60559_FUNCS_EXT)112#if __GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)
113/* Compute exponent to base ten. */113/* Compute exponent to base ten. */
114__MATHCALL (exp10,, (_Mdouble_ __x));114__MATHCALL (exp10,, (_Mdouble_ __x));
115#endif115#endif
...@@ -261,7 +261,7 @@ __MATHCALL (nextafter,, (_Mdouble_ __x, _Mdouble_ __y));...@@ -261,7 +261,7 @@ __MATHCALL (nextafter,, (_Mdouble_ __x, _Mdouble_ __y));
261__MATHCALL (nexttoward,, (_Mdouble_ __x, long double __y));261__MATHCALL (nexttoward,, (_Mdouble_ __x, long double __y));
262# endif262# endif
263263
264# if __GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN264# if __GLIBC_USE (IEC_60559_BFP_EXT_C2X) || __MATH_DECLARING_FLOATN
265/* Return X - epsilon. */265/* Return X - epsilon. */
266__MATHCALL (nextdown,, (_Mdouble_ __x));266__MATHCALL (nextdown,, (_Mdouble_ __x));
267/* Return X + epsilon. */267/* Return X + epsilon. */
...@@ -280,7 +280,7 @@ __MATHCALL (scalbn,, (_Mdouble_ __x, int __n));...@@ -280,7 +280,7 @@ __MATHCALL (scalbn,, (_Mdouble_ __x, int __n));
280__MATHDECL (int,ilogb,, (_Mdouble_ __x));280__MATHDECL (int,ilogb,, (_Mdouble_ __x));
281#endif281#endif
282282
283#if __GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN283#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X) || __MATH_DECLARING_FLOATN
284/* Like ilogb, but returning long int. */284/* Like ilogb, but returning long int. */
285__MATHDECL (long int, llogb,, (_Mdouble_ __x));285__MATHDECL (long int, llogb,, (_Mdouble_ __x));
286#endif286#endif
...@@ -335,7 +335,7 @@ __MATHCALLX (fmin,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));...@@ -335,7 +335,7 @@ __MATHCALLX (fmin,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));
335__MATHCALL (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z));335__MATHCALL (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z));
336#endif /* Use ISO C99. */336#endif /* Use ISO C99. */
337337
338#if __GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN338#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X) || __MATH_DECLARING_FLOATN
339/* Round X to nearest integer value, rounding halfway cases to even. */339/* Round X to nearest integer value, rounding halfway cases to even. */
340__MATHCALLX (roundeven,, (_Mdouble_ __x), (__const__));340__MATHCALLX (roundeven,, (_Mdouble_ __x), (__const__));
341341
...@@ -367,16 +367,20 @@ __MATHCALLX (fmaxmag,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));...@@ -367,16 +367,20 @@ __MATHCALLX (fmaxmag,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));
367/* Return value with minimum magnitude. */367/* Return value with minimum magnitude. */
368__MATHCALLX (fminmag,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));368__MATHCALLX (fminmag,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));
369369
370/* Canonicalize floating-point representation. */
371__MATHDECL_1 (int, canonicalize,, (_Mdouble_ *__cx, const _Mdouble_ *__x));
372#endif
373
374#if __GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN
370/* Total order operation. */375/* Total order operation. */
371__MATHDECL_1 (int, totalorder,, (_Mdouble_ __x, _Mdouble_ __y))376__MATHDECL_1 (int, totalorder,, (const _Mdouble_ *__x,
372 __attribute__ ((__const__));377 const _Mdouble_ *__y))
378 __attribute_pure__;
373379
374/* Total order operation on absolute values. */380/* Total order operation on absolute values. */
375__MATHDECL_1 (int, totalordermag,, (_Mdouble_ __x, _Mdouble_ __y))381__MATHDECL_1 (int, totalordermag,, (const _Mdouble_ *__x,
376 __attribute__ ((__const__));382 const _Mdouble_ *__y))
377383 __attribute_pure__;
378/* Canonicalize floating-point representation. */
379__MATHDECL_1 (int, canonicalize,, (_Mdouble_ *__cx, const _Mdouble_ *__x));
380384
381/* Get NaN payload. */385/* Get NaN payload. */
382__MATHCALL (getpayload,, (const _Mdouble_ *__x));386__MATHCALL (getpayload,, (const _Mdouble_ *__x));
lib/libc/include/generic-glibc/bits/mathdef.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _COMPLEX_H18#ifndef _COMPLEX_H
19# error "Never use <bits/mathdef.h> directly; include <complex.h> instead"19# error "Never use <bits/mathdef.h> directly; include <complex.h> instead"
lib/libc/include/generic-glibc/bits/mman-linux.h+4-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux generic version.1/* Definitions for POSIX memory map interface. Linux generic version.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman-linux.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman-linux.h> directly; include <sys/mman.h> instead."
...@@ -87,6 +87,8 @@...@@ -87,6 +87,8 @@
87# define MADV_DODUMP 17 /* Clear the MADV_DONTDUMP flag. */87# define MADV_DODUMP 17 /* Clear the MADV_DONTDUMP flag. */
88# define MADV_WIPEONFORK 18 /* Zero memory on fork, child only. */88# define MADV_WIPEONFORK 18 /* Zero memory on fork, child only. */
89# define MADV_KEEPONFORK 19 /* Undo MADV_WIPEONFORK. */89# define MADV_KEEPONFORK 19 /* Undo MADV_WIPEONFORK. */
90# define MADV_COLD 20 /* Deactivate these pages. */
91# define MADV_PAGEOUT 21 /* Reclaim these pages. */
90# define MADV_HWPOISON 100 /* Poison a page for testing. */92# define MADV_HWPOISON 100 /* Poison a page for testing. */
91#endif93#endif
9294
lib/libc/include/generic-glibc/bits/mman-map-flags-generic.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/generic version.1/* Definitions for POSIX memory map interface. Linux/generic version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman-map-flags-generic.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman-map-flags-generic.h> directly; include <sys/mman.h> instead."
lib/libc/include/generic-glibc/bits/mman-shared.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Memory-mapping-related declarations/definitions, not architecture-specific.1/* Memory-mapping-related declarations/definitions, not architecture-specific.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman-shared.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman-shared.h> directly; include <sys/mman.h> instead."
lib/libc/include/generic-glibc/bits/mman.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/generic version.1/* Definitions for POSIX memory map interface. Linux/generic version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
lib/libc/include/generic-glibc/bits/monetary-ldbl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* -mlong-double-64 compatibility mode for monetary functions.1/* -mlong-double-64 compatibility mode for monetary functions.
2 Copyright (C) 2006-2019 Free Software Foundation, Inc.2 Copyright (C) 2006-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MONETARY_H19#ifndef _MONETARY_H
20# error "Never include <bits/monetary-ldbl.h> directly; use <monetary.h> instead."20# error "Never include <bits/monetary-ldbl.h> directly; use <monetary.h> instead."
lib/libc/include/generic-glibc/bits/mqueue.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _MQUEUE_H18#ifndef _MQUEUE_H
19# error "Never use <bits/mqueue.h> directly; include <mqueue.h> instead."19# error "Never use <bits/mqueue.h> directly; include <mqueue.h> instead."
lib/libc/include/generic-glibc/bits/mqueue2.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Checking macros for mq functions.1/* Checking macros for mq functions.
2 Copyright (C) 2007-2019 Free Software Foundation, Inc.2 Copyright (C) 2007-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never include <bits/mqueue2.h> directly; use <mqueue.h> instead."20# error "Never include <bits/mqueue2.h> directly; use <mqueue.h> instead."
lib/libc/include/generic-glibc/bits/msq-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct msqid_ds. Generic version.1/* Define where padding goes in struct msqid_ds. Generic version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MSG_H19#ifndef _SYS_MSG_H
20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
lib/libc/include/generic-glibc/bits/msq.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_MSG_H18#ifndef _SYS_MSG_H
19# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."19# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
lib/libc/include/generic-glibc/bits/netdb.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NETDB_H18#ifndef _NETDB_H
19# error "Never include <bits/netdb.h> directly; use <netdb.h> instead."19# error "Never include <bits/netdb.h> directly; use <netdb.h> instead."
lib/libc/include/generic-glibc/bits/param.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Old-style Unix parameters and limits. Linux version.1/* Old-style Unix parameters and limits. Linux version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PARAM_H19#ifndef _SYS_PARAM_H
20# error "Never use <bits/param.h> directly; include <sys/param.h> instead."20# error "Never use <bits/param.h> directly; include <sys/param.h> instead."
lib/libc/include/generic-glibc/bits/poll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_POLL_H18#ifndef _SYS_POLL_H
19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
lib/libc/include/generic-glibc/bits/poll2.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Checking macros for poll functions.1/* Checking macros for poll functions.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_POLL_H19#ifndef _SYS_POLL_H
20# error "Never include <bits/poll2.h> directly; use <sys/poll.h> instead."20# error "Never include <bits/poll2.h> directly; use <sys/poll.h> instead."
lib/libc/include/generic-glibc/bits/posix1_lim.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 2.9.2 Minimum Values Added to <limits.h>19 * POSIX Standard: 2.9.2 Minimum Values Added to <limits.h>
lib/libc/include/generic-glibc/bits/posix2_lim.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * Never include this file directly; include <limits.h> instead.19 * Never include this file directly; include <limits.h> instead.
lib/libc/include/generic-glibc/bits/posix_opt.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define POSIX options for Linux.1/* Define POSIX options for Linux.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If16 License along with the GNU C Library; see the file COPYING.LIB. If
17 not, see <http://www.gnu.org/licenses/>. */17 not, see <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_POSIX_OPT_H19#ifndef _BITS_POSIX_OPT_H
20#define _BITS_POSIX_OPT_H 120#define _BITS_POSIX_OPT_H 1
lib/libc/include/generic-glibc/bits/ppc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Facilities specific to the PowerPC architecture on Linux1/* Facilities specific to the PowerPC architecture on Linux
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_PPC_H19#ifndef _BITS_PPC_H
20#define _BITS_PPC_H20#define _BITS_PPC_H
lib/libc/include/generic-glibc/bits/printf-ldbl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* -mlong-double-64 compatibility mode for <printf.h> functions.1/* -mlong-double-64 compatibility mode for <printf.h> functions.
2 Copyright (C) 2006-2019 Free Software Foundation, Inc.2 Copyright (C) 2006-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _PRINTF_H19#ifndef _PRINTF_H
20# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."20# error "Never include <bits/printf-ldbl.h> directly; use <printf.h> instead."
lib/libc/include/generic-glibc/bits/procfs-extra.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Extra sys/procfs.h definitions. Generic Linux version.1/* Extra sys/procfs.h definitions. Generic Linux version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-extra.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-extra.h> directly; use <sys/procfs.h> instead."
lib/libc/include/generic-glibc/bits/procfs-id.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Generic Linux version.1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. Generic Linux version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
lib/libc/include/generic-glibc/bits/procfs-prregset.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types of prgregset_t and prfpregset_t. Generic Linux version.1/* Types of prgregset_t and prfpregset_t. Generic Linux version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-prregset.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-prregset.h> directly; use <sys/procfs.h> instead."
lib/libc/include/generic-glibc/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. MIPS version.1/* Types for registers for sys/procfs.h. MIPS version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/generic-glibc/bits/pthreadtypes-arch.h+19-63
...@@ -1,5 +1,6 @@...@@ -1,5 +1,6 @@
1/* Machine-specific pthread type layouts. MIPS version.1/* Machine-specific pthread type layouts. Generic version.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
3 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
45
5 The GNU C Library is free software; you can redistribute it and/or6 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,77 +14,32 @@...@@ -13,77 +14,32 @@
13 Lesser General Public License for more details.14 Lesser General Public License for more details.
1415
15 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see17 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */18 <http://www.gnu.org/licenses/>. */
1819
19#ifndef _BITS_PTHREADTYPES_ARCH_H20#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 121#define _BITS_PTHREADTYPES_ARCH_H 1
2122
22#include <endian.h>23#include <bits/wordsize.h>
2324
24#if _MIPS_SIM == _ABI6425#if __WORDSIZE == 64
25# define __SIZEOF_PTHREAD_ATTR_T 5626# define __SIZEOF_PTHREAD_ATTR_T 56
26# define __SIZEOF_PTHREAD_MUTEX_T 4027# define __SIZEOF_PTHREAD_MUTEX_T 40
27# define __SIZEOF_PTHREAD_RWLOCK_T 5628# define __SIZEOF_PTHREAD_RWLOCK_T 56
28# define __SIZEOF_PTHREAD_BARRIER_T 3229# define __SIZEOF_PTHREAD_BARRIER_T 32
29#else30#else
30# define __SIZEOF_PTHREAD_ATTR_T 3631# define __SIZEOF_PTHREAD_ATTR_T 36
31# define __SIZEOF_PTHREAD_MUTEX_T 2432# define __SIZEOF_PTHREAD_MUTEX_T 24
32# define __SIZEOF_PTHREAD_RWLOCK_T 3233# define __SIZEOF_PTHREAD_RWLOCK_T 32
33# define __SIZEOF_PTHREAD_BARRIER_T 2034# define __SIZEOF_PTHREAD_BARRIER_T 20
34#endif35#endif
35#define __SIZEOF_PTHREAD_MUTEXATTR_T 436#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
36#define __SIZEOF_PTHREAD_COND_T 4837#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
37#define __SIZEOF_PTHREAD_CONDATTR_T 438#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
38#define __SIZEOF_PTHREAD_RWLOCKATTR_T 839#define __SIZEOF_PTHREAD_COND_T 48
39#define __SIZEOF_PTHREAD_BARRIERATTR_T 440#define __SIZEOF_PTHREAD_CONDATTR_T 4
40
41/* Data structure for mutex handling. */
42#define __PTHREAD_COMPAT_PADDING_MID
43#define __PTHREAD_COMPAT_PADDING_END
44#define __PTHREAD_MUTEX_LOCK_ELISION 0
45#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND (_MIPS_SIM != _ABI64)
46#define __PTHREAD_MUTEX_USE_UNION (_MIPS_SIM != _ABI64)
4741
48#define __LOCK_ALIGNMENT42#define __LOCK_ALIGNMENT
49#define __ONCE_ALIGNMENT43#define __ONCE_ALIGNMENT
5044
51struct __pthread_rwlock_arch_t
52{
53 unsigned int __readers;
54 unsigned int __writers;
55 unsigned int __wrphase_futex;
56 unsigned int __writers_futex;
57 unsigned int __pad3;
58 unsigned int __pad4;
59#if _MIPS_SIM == _ABI64
60 int __cur_writer;
61 int __shared;
62 unsigned long int __pad1;
63 unsigned long int __pad2;
64 /* FLAGS must stay at this position in the structure to maintain
65 binary compatibility. */
66 unsigned int __flags;
67# else
68# if __BYTE_ORDER == __BIG_ENDIAN
69 unsigned char __pad1;
70 unsigned char __pad2;
71 unsigned char __shared;
72 /* FLAGS must stay at this position in the structure to maintain
73 binary compatibility. */
74 unsigned char __flags;
75# else
76 /* FLAGS must stay at this position in the structure to maintain
77 binary compatibility. */
78 unsigned char __flags;
79 unsigned char __shared;
80 unsigned char __pad1;
81 unsigned char __pad2;
82# endif
83 int __cur_writer;
84#endif
85};
86
87#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
88
89#endif /* bits/pthreadtypes.h */45#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/generic-glibc/bits/pthreadtypes.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Declaration of common pthread types for all architectures.1/* Declaration of common pthread types for all architectures.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_PTHREADTYPES_COMMON_H19#ifndef _BITS_PTHREADTYPES_COMMON_H
20# define _BITS_PTHREADTYPES_COMMON_H 120# define _BITS_PTHREADTYPES_COMMON_H 1
lib/libc/include/generic-glibc/bits/ptrace-shared.h+49-2
...@@ -1,6 +1,6 @@...@@ -1,6 +1,6 @@
1/* `ptrace' debugger support interface. Linux version,1/* `ptrace' debugger support interface. Linux version,
2 not architecture-specific.2 not architecture-specific.
3 Copyright (C) 1996-2019 Free Software Foundation, Inc.3 Copyright (C) 1996-2020 Free Software Foundation, Inc.
44
5 This file is part of the GNU C Library.5 This file is part of the GNU C Library.
66
...@@ -16,7 +16,7 @@...@@ -16,7 +16,7 @@
1616
17 You should have received a copy of the GNU Lesser General Public17 You should have received a copy of the GNU Lesser General Public
18 License along with the GNU C Library; if not, see18 License along with the GNU C Library; if not, see
19 <http://www.gnu.org/licenses/>. */19 <https://www.gnu.org/licenses/>. */
2020
21#ifndef _SYS_PTRACE_H21#ifndef _SYS_PTRACE_H
22# error "Never use <bits/ptrace-shared.h> directly; include <sys/ptrace.h> instead."22# error "Never use <bits/ptrace-shared.h> directly; include <sys/ptrace.h> instead."
...@@ -52,6 +52,15 @@ enum __ptrace_eventcodes...@@ -52,6 +52,15 @@ enum __ptrace_eventcodes
52 PTRACE_EVENT_STOP = 12852 PTRACE_EVENT_STOP = 128
53};53};
5454
55/* Type of stop for PTRACE_GET_SYSCALL_INFO. */
56enum __ptrace_get_syscall_info_op
57{
58 PTRACE_SYSCALL_INFO_NONE = 0,
59 PTRACE_SYSCALL_INFO_ENTRY = 1,
60 PTRACE_SYSCALL_INFO_EXIT = 2,
61 PTRACE_SYSCALL_INFO_SECCOMP = 3
62};
63
55/* Arguments for PTRACE_PEEKSIGINFO. */64/* Arguments for PTRACE_PEEKSIGINFO. */
56struct __ptrace_peeksiginfo_args65struct __ptrace_peeksiginfo_args
57{66{
...@@ -73,6 +82,44 @@ struct __ptrace_seccomp_metadata...@@ -73,6 +82,44 @@ struct __ptrace_seccomp_metadata
73 __uint64_t flags; /* Output: filter's flags. */82 __uint64_t flags; /* Output: filter's flags. */
74};83};
7584
85/* Results of PTRACE_GET_SYSCALL_INFO. */
86struct __ptrace_syscall_info
87{
88 __uint8_t op; /* One of the enum
89 __ptrace_get_syscall_info_op
90 values. */
91 __uint32_t arch __attribute__ ((__aligned__ (4))); /* AUDIT_ARCH_*
92 value. */
93 __uint64_t instruction_pointer; /* Instruction pointer. */
94 __uint64_t stack_pointer; /* Stack pointer. */
95 union
96 {
97 /* System call number and arguments, for
98 PTRACE_SYSCALL_INFO_ENTRY. */
99 struct
100 {
101 __uint64_t nr;
102 __uint64_t args[6];
103 } entry;
104 /* System call return value and error flag, for
105 PTRACE_SYSCALL_INFO_EXIT. */
106 struct
107 {
108 __int64_t rval;
109 __uint8_t is_error;
110 } exit;
111 /* System call number, arguments and SECCOMP_RET_DATA portion of
112 SECCOMP_RET_TRACE return value, for
113 PTRACE_SYSCALL_INFO_SECCOMP. */
114 struct
115 {
116 __uint64_t nr;
117 __uint64_t args[6];
118 __uint32_t ret_data;
119 } seccomp;
120 };
121};
122
76/* Perform process tracing functions. REQUEST is one of the values123/* Perform process tracing functions. REQUEST is one of the values
77 above, and determines the action to be taken.124 above, and determines the action to be taken.
78 For all requests except PTRACE_TRACEME, PID specifies the process to be125 For all requests except PTRACE_TRACEME, PID specifies the process to be
lib/libc/include/generic-glibc/bits/resource.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit values & structures for resource limits. Linux version.1/* Bit values & structures for resource limits. Linux version.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_RESOURCE_H19#ifndef _SYS_RESOURCE_H
20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
lib/libc/include/generic-glibc/bits/sched.h+4-2
...@@ -1,6 +1,6 @@...@@ -1,6 +1,6 @@
1/* Definitions of constants and data structure for POSIX 1003.1b-19931/* Definitions of constants and data structure for POSIX 1003.1b-1993
2 scheduling interface.2 scheduling interface.
3 Copyright (C) 1996-2019 Free Software Foundation, Inc.3 Copyright (C) 1996-2020 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
6 The GNU C Library is free software; you can redistribute it and/or6 The GNU C Library is free software; you can redistribute it and/or
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _BITS_SCHED_H20#ifndef _BITS_SCHED_H
21#define _BITS_SCHED_H 121#define _BITS_SCHED_H 1
...@@ -44,6 +44,8 @@...@@ -44,6 +44,8 @@
44# define CLONE_FS 0x00000200 /* Set if fs info shared between processes. */44# define CLONE_FS 0x00000200 /* Set if fs info shared between processes. */
45# define CLONE_FILES 0x00000400 /* Set if open files shared between processes. */45# define CLONE_FILES 0x00000400 /* Set if open files shared between processes. */
46# define CLONE_SIGHAND 0x00000800 /* Set if signal handlers shared. */46# define CLONE_SIGHAND 0x00000800 /* Set if signal handlers shared. */
47# define CLONE_PIDFD 0x00001000 /* Set if a pidfd should be placed
48 in parent. */
47# define CLONE_PTRACE 0x00002000 /* Set if tracing continues on the child. */49# define CLONE_PTRACE 0x00002000 /* Set if tracing continues on the child. */
48# define CLONE_VFORK 0x00004000 /* Set if the parent wants the child to50# define CLONE_VFORK 0x00004000 /* Set if the parent wants the child to
49 wake it up on mm_release. */51 wake it up on mm_release. */
lib/libc/include/generic-glibc/bits/select.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SELECT_H18#ifndef _SYS_SELECT_H
19# error "Never use <bits/select.h> directly; include <sys/select.h> instead."19# error "Never use <bits/select.h> directly; include <sys/select.h> instead."
lib/libc/include/generic-glibc/bits/select2.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Checking macros for select functions.1/* Checking macros for select functions.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SELECT_H19#ifndef _SYS_SELECT_H
20# error "Never include <bits/select2.h> directly; use <sys/select.h> instead."20# error "Never include <bits/select2.h> directly; use <sys/select.h> instead."
lib/libc/include/generic-glibc/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. Generic version.1/* Define where padding goes in struct semid_ds. Generic version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/generic-glibc/bits/sem.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SEM_H18#ifndef _SYS_SEM_H
19# error "Never include <bits/sem.h> directly; use <sys/sem.h> instead."19# error "Never include <bits/sem.h> directly; use <sys/sem.h> instead."
lib/libc/include/generic-glibc/bits/semaphore.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SEMAPHORE_H18#ifndef _SEMAPHORE_H
19# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."19# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/generic-glibc/bits/setjmp.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define the machine-dependent type `jmp_buf'. MIPS version.1/* Define the machine-dependent type `jmp_buf'. MIPS version.
2 Copyright (C) 1992-2019 Free Software Foundation, Inc.2 Copyright (C) 1992-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MIPS_BITS_SETJMP_H19#ifndef _MIPS_BITS_SETJMP_H
20#define _MIPS_BITS_SETJMP_H 120#define _MIPS_BITS_SETJMP_H 1
lib/libc/include/generic-glibc/bits/setjmp2.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Checking macros for setjmp functions.1/* Checking macros for setjmp functions.
2 Copyright (C) 2009-2019 Free Software Foundation, Inc.2 Copyright (C) 2009-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SETJMP_H19#ifndef _SETJMP_H
20# error "Never include <bits/setjmp2.h> directly; use <setjmp.h> instead."20# error "Never include <bits/setjmp2.h> directly; use <setjmp.h> instead."
lib/libc/include/generic-glibc/bits/shm-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct shmid_ds. Generic version.1/* Define where padding goes in struct shmid_ds. Generic version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
lib/libc/include/generic-glibc/bits/shm.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SHM_H18#ifndef _SYS_SHM_H
19# error "Never include <bits/shm.h> directly; use <sys/shm.h> instead."19# error "Never include <bits/shm.h> directly; use <sys/shm.h> instead."
lib/libc/include/generic-glibc/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. Generic version.1/* Define SHMLBA. Generic version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/generic-glibc/bits/sigaction.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* The proper definitions for Linux's sigaction.1/* The proper definitions for Linux's sigaction.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGACTION_H19#ifndef _BITS_SIGACTION_H
20#define _BITS_SIGACTION_H 120#define _BITS_SIGACTION_H 1
lib/libc/include/generic-glibc/bits/sigcontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_SIGCONTEXT_H18#ifndef _BITS_SIGCONTEXT_H
19#define _BITS_SIGCONTEXT_H 119#define _BITS_SIGCONTEXT_H 1
lib/libc/include/generic-glibc/bits/sigevent-consts.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* sigevent constants. Linux version.1/* sigevent constants. Linux version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGEVENT_CONSTS_H19#ifndef _BITS_SIGEVENT_CONSTS_H
20#define _BITS_SIGEVENT_CONSTS_H 120#define _BITS_SIGEVENT_CONSTS_H 1
lib/libc/include/generic-glibc/bits/siginfo-consts.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* siginfo constants. Linux version.1/* siginfo constants. Linux version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGINFO_CONSTS_H19#ifndef _BITS_SIGINFO_CONSTS_H
20#define _BITS_SIGINFO_CONSTS_H 120#define _BITS_SIGINFO_CONSTS_H 1
lib/libc/include/generic-glibc/bits/signal_ext.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System-specific extensions of <signal.h>, Linux version.1/* System-specific extensions of <signal.h>, Linux version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SIGNAL_H19#ifndef _SIGNAL_H
20# error "Never include <bits/signal_ext.h> directly; use <signal.h> instead."20# error "Never include <bits/signal_ext.h> directly; use <signal.h> instead."
lib/libc/include/generic-glibc/bits/signalfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SIGNALFD_H18#ifndef _SYS_SIGNALFD_H
19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
lib/libc/include/generic-glibc/bits/signum-generic.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Signal number constants. Generic template.1/* Signal number constants. Generic template.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGNUM_GENERIC_H19#ifndef _BITS_SIGNUM_GENERIC_H
20#define _BITS_SIGNUM_GENERIC_H 120#define _BITS_SIGNUM_GENERIC_H 1
lib/libc/include/generic-glibc/bits/signum.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Signal number definitions. Linux version.1/* Signal number definitions. Linux version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGNUM_H19#ifndef _BITS_SIGNUM_H
20#define _BITS_SIGNUM_H 120#define _BITS_SIGNUM_H 1
lib/libc/include/generic-glibc/bits/sigstack.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* sigstack, sigaltstack definitions.1/* sigstack, sigaltstack definitions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGSTACK_H19#ifndef _BITS_SIGSTACK_H
20#define _BITS_SIGSTACK_H 120#define _BITS_SIGSTACK_H 1
lib/libc/include/generic-glibc/bits/sigthread.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Signal handling function for threaded programs.1/* Signal handling function for threaded programs.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If16 License along with the GNU C Library; see the file COPYING.LIB. If
17 not, see <http://www.gnu.org/licenses/>. */17 not, see <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGTHREAD_H19#ifndef _BITS_SIGTHREAD_H
20#define _BITS_SIGTHREAD_H 120#define _BITS_SIGTHREAD_H 1
lib/libc/include/generic-glibc/bits/sockaddr.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definition of struct sockaddr_* common members and sizes, generic version.1/* Definition of struct sockaddr_* common members and sizes, generic version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * Never include this file directly; use <sys/socket.h> instead.20 * Never include this file directly; use <sys/socket.h> instead.
lib/libc/include/generic-glibc/bits/socket-constants.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Socket constants which vary among Linux architectures.1/* Socket constants which vary among Linux architectures.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
lib/libc/include/generic-glibc/bits/socket.h+3-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System-specific socket constants and types. Linux version.1/* System-specific socket constants and types. Linux version.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __BITS_SOCKET_H19#ifndef __BITS_SOCKET_H
20#define __BITS_SOCKET_H20#define __BITS_SOCKET_H
...@@ -169,7 +169,7 @@ typedef __socklen_t socklen_t;...@@ -169,7 +169,7 @@ typedef __socklen_t socklen_t;
169#define SOL_XDP 283169#define SOL_XDP 283
170170
171/* Maximum queue length specifiable by listen. */171/* Maximum queue length specifiable by listen. */
172#define SOMAXCONN 128172#define SOMAXCONN 4096
173173
174/* Get the definition of the macro to define the common sockaddr members. */174/* Get the definition of the macro to define the common sockaddr members. */
175#include <bits/sockaddr.h>175#include <bits/sockaddr.h>
lib/libc/include/generic-glibc/bits/socket2.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Checking macros for socket functions.1/* Checking macros for socket functions.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket2.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket2.h> directly; use <sys/socket.h> instead."
lib/libc/include/generic-glibc/bits/socket_type.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define enum __socket_type for generic Linux.1/* Define enum __socket_type for generic Linux.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
lib/libc/include/generic-glibc/bits/ss_flags.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* ss_flags values for stack_t. Linux version.1/* ss_flags values for stack_t. Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SS_FLAGS_H19#ifndef _BITS_SS_FLAGS_H
20#define _BITS_SS_FLAGS_H 120#define _BITS_SS_FLAGS_H 1
lib/libc/include/generic-glibc/bits/stab.def+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Table of DBX symbol codes for the GNU system.1/* Table of DBX symbol codes for the GNU system.
2 Copyright (C) 1988, 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1988, 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This contains contribution from Cygnus Support. */19/* This contains contribution from Cygnus Support. */
20 20
lib/libc/include/generic-glibc/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/generic-glibc/bits/statfs.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_STATFS_H18#ifndef _SYS_STATFS_H
19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
lib/libc/include/generic-glibc/bits/statvfs.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_STATVFS_H18#ifndef _SYS_STATVFS_H
19# error "Never include <bits/statvfs.h> directly; use <sys/statvfs.h> instead."19# error "Never include <bits/statvfs.h> directly; use <sys/statvfs.h> instead."
lib/libc/include/generic-glibc/bits/statx-generic.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Generic statx-related definitions and declarations.1/* Generic statx-related definitions and declarations.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This interface is based on <linux/stat.h> in Linux. */19/* This interface is based on <linux/stat.h> in Linux. */
2020
lib/libc/include/generic-glibc/bits/statx.h+9-7
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* statx-related definitions and declarations. Linux version.1/* statx-related definitions and declarations. Linux version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This interface is based on <linux/stat.h> in Linux. */19/* This interface is based on <linux/stat.h> in Linux. */
2020
...@@ -26,11 +26,13 @@...@@ -26,11 +26,13 @@
2626
27/* Use "" to work around incorrect macro expansion of the27/* Use "" to work around incorrect macro expansion of the
28 __has_include argument (GCC PR 80005). */28 __has_include argument (GCC PR 80005). */
29#if __glibc_has_include ("linux/stat.h")29#ifdef __has_include
30# include "linux/stat.h"30# if __has_include ("linux/stat.h")
31# ifdef STATX_TYPE31# include "linux/stat.h"
32# define __statx_timestamp_defined 132# ifdef STATX_TYPE
33# define __statx_defined 133# define __statx_timestamp_defined 1
34# define __statx_defined 1
35# endif
34# endif36# endif
35#endif37#endif
3638
lib/libc/include/generic-glibc/bits/stdint-intn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define intN_t types.1/* Define intN_t types.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_STDINT_INTN_H19#ifndef _BITS_STDINT_INTN_H
20#define _BITS_STDINT_INTN_H 120#define _BITS_STDINT_INTN_H 1
lib/libc/include/generic-glibc/bits/stdint-uintn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define uintN_t types.1/* Define uintN_t types.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_STDINT_UINTN_H19#ifndef _BITS_STDINT_UINTN_H
20#define _BITS_STDINT_UINTN_H 120#define _BITS_STDINT_UINTN_H 1
lib/libc/include/generic-glibc/bits/stdio-ldbl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* -mlong-double-64 compatibility mode for stdio functions.1/* -mlong-double-64 compatibility mode for stdio functions.
2 Copyright (C) 2006-2019 Free Software Foundation, Inc.2 Copyright (C) 2006-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _STDIO_H19#ifndef _STDIO_H
20# error "Never include <bits/stdio-ldbl.h> directly; use <stdio.h> instead."20# error "Never include <bits/stdio-ldbl.h> directly; use <stdio.h> instead."
lib/libc/include/generic-glibc/bits/stdio.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Optimizing macros and inline functions for stdio functions.1/* Optimizing macros and inline functions for stdio functions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_STDIO_H19#ifndef _BITS_STDIO_H
20#define _BITS_STDIO_H 120#define _BITS_STDIO_H 1
lib/libc/include/generic-glibc/bits/stdio2.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Checking macros for stdio functions.1/* Checking macros for stdio functions.
2 Copyright (C) 2004-2019 Free Software Foundation, Inc.2 Copyright (C) 2004-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_STDIO2_H19#ifndef _BITS_STDIO2_H
20#define _BITS_STDIO2_H 120#define _BITS_STDIO2_H 1
lib/libc/include/generic-glibc/bits/stdio_lim.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1994-2019 Free Software Foundation, Inc.1/* Copyright (C) 1994-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_STDIO_LIM_H18#ifndef _BITS_STDIO_LIM_H
19#define _BITS_STDIO_LIM_H 119#define _BITS_STDIO_LIM_H 1
lib/libc/include/generic-glibc/bits/stdlib-bsearch.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Perform binary search - inline version.1/* Perform binary search - inline version.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19__extern_inline void *19__extern_inline void *
20bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,20bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,
lib/libc/include/generic-glibc/bits/stdlib-float.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Floating-point inline functions for stdlib.h.1/* Floating-point inline functions for stdlib.h.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _STDLIB_H19#ifndef _STDLIB_H
20# error "Never use <bits/stdlib-float.h> directly; include <stdlib.h> instead."20# error "Never use <bits/stdlib-float.h> directly; include <stdlib.h> instead."
lib/libc/include/generic-glibc/bits/stdlib-ldbl.h+3-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* -mlong-double-64 compatibility mode for <stdlib.h> functions.1/* -mlong-double-64 compatibility mode for <stdlib.h> functions.
2 Copyright (C) 2006-2019 Free Software Foundation, Inc.2 Copyright (C) 2006-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _STDLIB_H19#ifndef _STDLIB_H
20# error "Never include <bits/stdlib-ldbl.h> directly; use <stdlib.h> instead."20# error "Never include <bits/stdlib-ldbl.h> directly; use <stdlib.h> instead."
...@@ -28,7 +28,7 @@ __LDBL_REDIR1_DECL (strtold, strtod)...@@ -28,7 +28,7 @@ __LDBL_REDIR1_DECL (strtold, strtod)
28__LDBL_REDIR1_DECL (strtold_l, strtod_l)28__LDBL_REDIR1_DECL (strtold_l, strtod_l)
29#endif29#endif
3030
31#if __GLIBC_USE (IEC_60559_BFP_EXT)31#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
32__LDBL_REDIR1_DECL (strfroml, strfromd)32__LDBL_REDIR1_DECL (strfroml, strfromd)
33#endif33#endif
3434
lib/libc/include/generic-glibc/bits/stdlib.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Checking macros for stdlib functions.1/* Checking macros for stdlib functions.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _STDLIB_H19#ifndef _STDLIB_H
20# error "Never include <bits/stdlib.h> directly; use <stdlib.h> instead."20# error "Never include <bits/stdlib.h> directly; use <stdlib.h> instead."
lib/libc/include/generic-glibc/bits/string_fortified.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_STRING_FORTIFIED_H18#ifndef _BITS_STRING_FORTIFIED_H
19#define _BITS_STRING_FORTIFIED_H 119#define _BITS_STRING_FORTIFIED_H 1
lib/libc/include/generic-glibc/bits/strings_fortified.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Fortify macros for strings.h functions.1/* Fortify macros for strings.h functions.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __STRINGS_FORTIFIED19#ifndef __STRINGS_FORTIFIED
20# define __STRINGS_FORTIFIED 120# define __STRINGS_FORTIFIED 1
lib/libc/include/generic-glibc/bits/struct_mutex.h created+84
...@@ -0,0 +1,84 @@
1/* Default mutex implementation struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22/* Generic struct for both POSIX and C11 mutexes. New ports are expected
23 to use the default layout, however architecture can redefine it to
24 add arch-specific extension (such as lock-elision). The struct have
25 a size of 32 bytes on LP32 and 40 bytes on LP64 architectures. */
26
27struct __pthread_mutex_s
28{
29 int __lock __LOCK_ALIGNMENT;
30 unsigned int __count;
31 int __owner;
32#if __WORDSIZE == 64
33 unsigned int __nusers;
34#endif
35 /* KIND must stay at this position in the structure to maintain
36 binary compatibility with static initializers.
37
38 Concurrency notes:
39 The __kind of a mutex is initialized either by the static
40 PTHREAD_MUTEX_INITIALIZER or by a call to pthread_mutex_init.
41
42 After a mutex has been initialized, the __kind of a mutex is usually not
43 changed. BUT it can be set to -1 in pthread_mutex_destroy or elision can
44 be enabled. This is done concurrently in the pthread_mutex_*lock
45 functions by using the macro FORCE_ELISION. This macro is only defined
46 for architectures which supports lock elision.
47
48 For elision, there are the flags PTHREAD_MUTEX_ELISION_NP and
49 PTHREAD_MUTEX_NO_ELISION_NP which can be set in addition to the already
50 set type of a mutex. Before a mutex is initialized, only
51 PTHREAD_MUTEX_NO_ELISION_NP can be set with pthread_mutexattr_settype.
52
53 After a mutex has been initialized, the functions pthread_mutex_*lock can
54 enable elision - if the mutex-type and the machine supports it - by
55 setting the flag PTHREAD_MUTEX_ELISION_NP. This is done concurrently.
56 Afterwards the lock / unlock functions are using specific elision
57 code-paths. */
58 int __kind;
59#if __WORDSIZE != 64
60 unsigned int __nusers;
61#endif
62#if __WORDSIZE == 64
63 int __spins;
64 __pthread_list_t __list;
65# define __PTHREAD_MUTEX_HAVE_PREV 1
66#else
67 __extension__ union
68 {
69 int __spins;
70 __pthread_slist_t __list;
71 };
72# define __PTHREAD_MUTEX_HAVE_PREV 0
73#endif
74};
75
76#if __PTHREAD_MUTEX_HAVE_PREV == 1
77# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
78 0, 0, 0, 0, __kind, 0, { 0, 0 }
79#else
80# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
81 0, 0, 0, __kind, 0, { 0 }
82#endif
83
84#endif
\ No newline at end of file
lib/libc/include/generic-glibc/bits/struct_rwlock.h created+71
...@@ -0,0 +1,71 @@
1/* MIPS internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _RWLOCK_INTERNAL_H
20#define _RWLOCK_INTERNAL_H
21
22struct __pthread_rwlock_arch_t
23{
24 unsigned int __readers;
25 unsigned int __writers;
26 unsigned int __wrphase_futex;
27 unsigned int __writers_futex;
28 unsigned int __pad3;
29 unsigned int __pad4;
30#if _MIPS_SIM == _ABI64
31 int __cur_writer;
32 int __shared;
33 unsigned long int __pad1;
34 unsigned long int __pad2;
35 /* FLAGS must stay at this position in the structure to maintain
36 binary compatibility. */
37 unsigned int __flags;
38# else
39# if __BYTE_ORDER == __BIG_ENDIAN
40 unsigned char __pad1;
41 unsigned char __pad2;
42 unsigned char __shared;
43 /* FLAGS must stay at this position in the structure to maintain
44 binary compatibility. */
45 unsigned char __flags;
46# else
47 /* FLAGS must stay at this position in the structure to maintain
48 binary compatibility. */
49 unsigned char __flags;
50 unsigned char __shared;
51 unsigned char __pad1;
52 unsigned char __pad2;
53# endif
54 int __cur_writer;
55#endif
56};
57
58#if _MIPS_SIM == _ABI64
59# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
60 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
61#else
62# if __BYTE_ORDER == __BIG_ENDIAN
63# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
64 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
65# else
66# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
67 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
68# endif
69#endif
70
71#endif
\ No newline at end of file
lib/libc/include/generic-glibc/bits/sys_errlist.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Declare sys_errlist and sys_nerr, or don't. Compatibility (do) version.1/* Declare sys_errlist and sys_nerr, or don't. Compatibility (do) version.
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _STDIO_H19#ifndef _STDIO_H
20# error "Never include <bits/sys_errlist.h> directly; use <stdio.h> instead."20# error "Never include <bits/sys_errlist.h> directly; use <stdio.h> instead."
lib/libc/include/generic-glibc/bits/syscall.h+10-2
...@@ -1,11 +1,11 @@...@@ -1,11 +1,11 @@
1/* Generated at libc build time from syscall list. */1/* Generated at libc build time from syscall list. */
2/* The system call list corresponds to kernel 5.2. */2/* The system call list corresponds to kernel 5.4. */
33
4#ifndef _SYSCALL_H4#ifndef _SYSCALL_H
5# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."5# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."
6#endif6#endif
77
8#define __GLIBC_LINUX_VERSION_CODE 3281928#define __GLIBC_LINUX_VERSION_CODE 328704
99
10#ifdef __NR_FAST_atomic_update10#ifdef __NR_FAST_atomic_update
11# define SYS_FAST_atomic_update __NR_FAST_atomic_update11# define SYS_FAST_atomic_update __NR_FAST_atomic_update
...@@ -207,6 +207,10 @@...@@ -207,6 +207,10 @@
207# define SYS_clone2 __NR_clone2207# define SYS_clone2 __NR_clone2
208#endif208#endif
209209
210#ifdef __NR_clone3
211# define SYS_clone3 __NR_clone3
212#endif
213
210#ifdef __NR_close214#ifdef __NR_close
211# define SYS_close __NR_close215# define SYS_close __NR_close
212#endif216#endif
...@@ -1547,6 +1551,10 @@...@@ -1547,6 +1551,10 @@
1547# define SYS_personality __NR_personality1551# define SYS_personality __NR_personality
1548#endif1552#endif
15491553
1554#ifdef __NR_pidfd_open
1555# define SYS_pidfd_open __NR_pidfd_open
1556#endif
1557
1550#ifdef __NR_pidfd_send_signal1558#ifdef __NR_pidfd_send_signal
1551# define SYS_pidfd_send_signal __NR_pidfd_send_signal1559# define SYS_pidfd_send_signal __NR_pidfd_send_signal
1552#endif1560#endif
lib/libc/include/generic-glibc/bits/syslog-ldbl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* -mlong-double-64 compatibility mode for syslog functions.1/* -mlong-double-64 compatibility mode for syslog functions.
2 Copyright (C) 2006-2019 Free Software Foundation, Inc.2 Copyright (C) 2006-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SYSLOG_H19#ifndef _SYS_SYSLOG_H
20# error "Never include <bits/syslog-ldbl.h> directly; use <sys/syslog.h> instead."20# error "Never include <bits/syslog-ldbl.h> directly; use <sys/syslog.h> instead."
lib/libc/include/generic-glibc/bits/syslog-path.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* <bits/syslog-path.h> -- _PATH_LOG definition1/* <bits/syslog-path.h> -- _PATH_LOG definition
2 Copyright (C) 2006-2019 Free Software Foundation, Inc.2 Copyright (C) 2006-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SYSLOG_H19#ifndef _SYS_SYSLOG_H
20# error "Never include this file directly. Use <sys/syslog.h> instead"20# error "Never include this file directly. Use <sys/syslog.h> instead"
lib/libc/include/generic-glibc/bits/syslog.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Checking macros for syslog functions.1/* Checking macros for syslog functions.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SYSLOG_H19#ifndef _SYS_SYSLOG_H
20# error "Never include <bits/syslog.h> directly; use <sys/syslog.h> instead."20# error "Never include <bits/syslog.h> directly; use <sys/syslog.h> instead."
lib/libc/include/generic-glibc/bits/sysmacros.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions of macros to access `dev_t' values.1/* Definitions of macros to access `dev_t' values.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SYSMACROS_H19#ifndef _BITS_SYSMACROS_H
20#define _BITS_SYSMACROS_H 120#define _BITS_SYSMACROS_H 1
lib/libc/include/generic-glibc/bits/termios-baud.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios baud rate selection definitions. Linux/generic version.1/* termios baud rate selection definitions. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."
lib/libc/include/generic-glibc/bits/termios-c_cc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios c_cc symbolic constant definitions. Linux/generic version.1/* termios c_cc symbolic constant definitions. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios_c_cc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios_c_cc.h> directly; use <termios.h> instead."
lib/libc/include/generic-glibc/bits/termios-c_cflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios control mode definitions. Linux/generic version.1/* termios control mode definitions. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cflag.h> directly; use <termios.h> instead."
lib/libc/include/generic-glibc/bits/termios-c_iflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios input mode definitions. Linux/generic version.1/* termios input mode definitions. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-ciflags.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-ciflags.h> directly; use <termios.h> instead."
lib/libc/include/generic-glibc/bits/termios-c_lflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/generic version.1/* termios local mode definitions. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
lib/libc/include/generic-glibc/bits/termios-c_oflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios output mode definitions. Linux/generic version.1/* termios output mode definitions. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."
lib/libc/include/generic-glibc/bits/termios-misc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios baud platform specific definitions. Linux/generic version.1/* termios baud platform specific definitions. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-misc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-misc.h> directly; use <termios.h> instead."
lib/libc/include/generic-glibc/bits/termios-struct.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* struct termios definition. Linux/generic version.1/* struct termios definition. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
lib/libc/include/generic-glibc/bits/termios-tcflow.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios tcflag symbolic contants definitions. Linux/generic version.1/* termios tcflag symbolic contants definitions. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
lib/libc/include/generic-glibc/bits/termios.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios type and macro definitions. Linux version.1/* termios type and macro definitions. Linux version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios.h> directly; use <termios.h> instead."20# error "Never include <bits/termios.h> directly; use <termios.h> instead."
lib/libc/include/generic-glibc/bits/thread-shared-types.h+34-113
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Common threading primitives definitions for both POSIX and C11.1/* Common threading primitives definitions for both POSIX and C11.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _THREAD_SHARED_TYPES_H19#ifndef _THREAD_SHARED_TYPES_H
20#define _THREAD_SHARED_TYPES_H 120#define _THREAD_SHARED_TYPES_H 1
...@@ -32,36 +32,6 @@...@@ -32,36 +32,6 @@
32 __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.32 __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
33 __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.33 __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
3434
35 Also, the following macros must be define for internal pthread_mutex_t
36 struct definitions (struct __pthread_mutex_s):
37
38 __PTHREAD_COMPAT_PADDING_MID - any additional members after 'kind'
39 and before '__spin' (for 64 bits) or
40 '__nusers' (for 32 bits).
41 __PTHREAD_COMPAT_PADDING_END - any additional members at the end of
42 the internal structure.
43 __PTHREAD_MUTEX_LOCK_ELISION - 1 if the architecture supports lock
44 elision or 0 otherwise.
45 __PTHREAD_MUTEX_NUSERS_AFTER_KIND - control where to put __nusers. The
46 preferred value for new architectures
47 is 0.
48 __PTHREAD_MUTEX_USE_UNION - control whether internal __spins and
49 __list will be place inside a union for
50 linuxthreads compatibility.
51 The preferred value for new architectures
52 is 0.
53
54 For a new port the preferred values for the required defines are:
55
56 #define __PTHREAD_COMPAT_PADDING_MID
57 #define __PTHREAD_COMPAT_PADDING_END
58 #define __PTHREAD_MUTEX_LOCK_ELISION 0
59 #define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 0
60 #define __PTHREAD_MUTEX_USE_UNION 0
61
62 __PTHREAD_MUTEX_LOCK_ELISION can be set to 1 if the hardware plans to
63 eventually support lock elision using transactional memory.
64
65 The additional macro defines any constraint for the lock alignment35 The additional macro defines any constraint for the lock alignment
66 inside the thread structures:36 inside the thread structures:
6737
...@@ -69,101 +39,52 @@...@@ -69,101 +39,52 @@
6939
70 Same idea but for the once locking primitive:40 Same idea but for the once locking primitive:
7141
72 __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.42 __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. */
7343
74 And finally the internal pthread_rwlock_t (struct __pthread_rwlock_arch_t)
75 must be defined.
76 */
77#include <bits/pthreadtypes-arch.h>44#include <bits/pthreadtypes-arch.h>
7845
46
79/* Common definition of pthread_mutex_t. */47/* Common definition of pthread_mutex_t. */
8048
81#if !__PTHREAD_MUTEX_USE_UNION
82typedef struct __pthread_internal_list49typedef struct __pthread_internal_list
83{50{
84 struct __pthread_internal_list *__prev;51 struct __pthread_internal_list *__prev;
85 struct __pthread_internal_list *__next;52 struct __pthread_internal_list *__next;
86} __pthread_list_t;53} __pthread_list_t;
87#else54
88typedef struct __pthread_internal_slist55typedef struct __pthread_internal_slist
89{56{
90 struct __pthread_internal_slist *__next;57 struct __pthread_internal_slist *__next;
91} __pthread_slist_t;58} __pthread_slist_t;
92#endif59
9360/* Arch-specific mutex definitions. A generic implementation is provided
94/* Lock elision support. */61 by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture
95#if __PTHREAD_MUTEX_LOCK_ELISION62 can override it by defining:
96# if !__PTHREAD_MUTEX_USE_UNION63
97# define __PTHREAD_SPINS_DATA \64 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
98 short __spins; \65 definition). It should contains at least the internal members
99 short __elision66 defined in the generic version.
100# define __PTHREAD_SPINS 0, 067
101# else68 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
102# define __PTHREAD_SPINS_DATA \69 atomic operations.
103 struct \70
104 { \71 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
105 short __espins; \72 It should initialize the mutex internal flag. */
106 short __eelision; \73
107 } __elision_data74#include <bits/struct_mutex.h>
108# define __PTHREAD_SPINS { 0, 0 }75
109# define __spins __elision_data.__espins76/* Arch-sepecific read-write lock definitions. A generic implementation is
110# define __elision __elision_data.__eelision77 provided by struct_rwlock.h. If required, an architecture can override it
111# endif78 by defining:
112#else79
113# define __PTHREAD_SPINS_DATA int __spins80 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
114/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */81 It should contain at least the internal members defined in the
115# define __PTHREAD_SPINS 082 generic version.
116#endif83
11784 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
118struct __pthread_mutex_s85 It should initialize the rwlock internal type. */
119{86
120 int __lock __LOCK_ALIGNMENT;87#include <bits/struct_rwlock.h>
121 unsigned int __count;
122 int __owner;
123#if !__PTHREAD_MUTEX_NUSERS_AFTER_KIND
124 unsigned int __nusers;
125#endif
126 /* KIND must stay at this position in the structure to maintain
127 binary compatibility with static initializers.
128
129 Concurrency notes:
130 The __kind of a mutex is initialized either by the static
131 PTHREAD_MUTEX_INITIALIZER or by a call to pthread_mutex_init.
132
133 After a mutex has been initialized, the __kind of a mutex is usually not
134 changed. BUT it can be set to -1 in pthread_mutex_destroy or elision can
135 be enabled. This is done concurrently in the pthread_mutex_*lock functions
136 by using the macro FORCE_ELISION. This macro is only defined for
137 architectures which supports lock elision.
138
139 For elision, there are the flags PTHREAD_MUTEX_ELISION_NP and
140 PTHREAD_MUTEX_NO_ELISION_NP which can be set in addition to the already set
141 type of a mutex.
142 Before a mutex is initialized, only PTHREAD_MUTEX_NO_ELISION_NP can be set
143 with pthread_mutexattr_settype.
144 After a mutex has been initialized, the functions pthread_mutex_*lock can
145 enable elision - if the mutex-type and the machine supports it - by setting
146 the flag PTHREAD_MUTEX_ELISION_NP. This is done concurrently. Afterwards
147 the lock / unlock functions are using specific elision code-paths. */
148 int __kind;
149 __PTHREAD_COMPAT_PADDING_MID
150#if __PTHREAD_MUTEX_NUSERS_AFTER_KIND
151 unsigned int __nusers;
152#endif
153#if !__PTHREAD_MUTEX_USE_UNION
154 __PTHREAD_SPINS_DATA;
155 __pthread_list_t __list;
156# define __PTHREAD_MUTEX_HAVE_PREV 1
157#else
158 __extension__ union
159 {
160 __PTHREAD_SPINS_DATA;
161 __pthread_slist_t __list;
162 };
163# define __PTHREAD_MUTEX_HAVE_PREV 0
164#endif
165 __PTHREAD_COMPAT_PADDING_END
166};
16788
16889
169/* Common definition of pthread_cond_t. */90/* Common definition of pthread_cond_t. */
lib/libc/include/generic-glibc/bits/time.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System-dependent timing definitions. Linux version.1/* System-dependent timing definitions. Linux version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * Never include this file directly; use <time.h> instead.20 * Never include this file directly; use <time.h> instead.
lib/libc/include/generic-glibc/bits/time64.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/time64.h -- underlying types for __time64_t. Generic version.1/* bits/time64.h -- underlying types for __time64_t. Generic version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_TYPES_H19#ifndef _BITS_TYPES_H
20# error "Never include <bits/time64.h> directly; use <sys/types.h> instead."20# error "Never include <bits/time64.h> directly; use <sys/types.h> instead."
lib/libc/include/generic-glibc/bits/timerfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2008-2019 Free Software Foundation, Inc.1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIMERFD_H18#ifndef _SYS_TIMERFD_H
19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
lib/libc/include/generic-glibc/bits/timesize.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit size of the time_t type at glibc build time, general case.1/* Bit size of the time_t type at glibc build time, general case.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#include <bits/wordsize.h>19#include <bits/wordsize.h>
2020
lib/libc/include/generic-glibc/bits/timex.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_TIMEX_H18#ifndef _BITS_TIMEX_H
19#define _BITS_TIMEX_H 119#define _BITS_TIMEX_H 1
lib/libc/include/generic-glibc/bits/types.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/types.h -- definitions of __*_t types underlying *_t types.1/* bits/types.h -- definitions of __*_t types underlying *_t types.
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * Never include this file directly; use <sys/types.h> instead.20 * Never include this file directly; use <sys/types.h> instead.
lib/libc/include/generic-glibc/bits/types/__locale_t.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definition of struct __locale_struct and __locale_t.1/* Definition of struct __locale_struct and __locale_t.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.4 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _BITS_TYPES___LOCALE_T_H20#ifndef _BITS_TYPES___LOCALE_T_H
21#define _BITS_TYPES___LOCALE_T_H 121#define _BITS_TYPES___LOCALE_T_H 1
lib/libc/include/generic-glibc/bits/types/__sigval_t.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define __sigval_t.1/* Define __sigval_t.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef ____sigval_t_defined19#ifndef ____sigval_t_defined
20#define ____sigval_t_defined20#define ____sigval_t_defined
lib/libc/include/generic-glibc/bits/types/cookie_io_functions_t.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef __cookie_io_functions_t_defined18#ifndef __cookie_io_functions_t_defined
19#define __cookie_io_functions_t_defined 119#define __cookie_io_functions_t_defined 1
lib/libc/include/generic-glibc/bits/types/error_t.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define error_t.1/* Define error_t.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __error_t_defined19#ifndef __error_t_defined
20# define __error_t_defined 120# define __error_t_defined 1
lib/libc/include/generic-glibc/bits/types/locale_t.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definition of locale_t.1/* Definition of locale_t.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_TYPES_LOCALE_T_H19#ifndef _BITS_TYPES_LOCALE_T_H
20#define _BITS_TYPES_LOCALE_T_H 120#define _BITS_TYPES_LOCALE_T_H 1
lib/libc/include/generic-glibc/bits/types/stack_t.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define stack_t. Linux version.1/* Define stack_t. Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __stack_t_defined19#ifndef __stack_t_defined
20#define __stack_t_defined 120#define __stack_t_defined 1
lib/libc/include/generic-glibc/bits/types/struct_FILE.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef __struct_FILE_defined18#ifndef __struct_FILE_defined
19#define __struct_FILE_defined 119#define __struct_FILE_defined 1
lib/libc/include/generic-glibc/bits/types/struct_iovec.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define struct iovec.1/* Define struct iovec.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __iovec_defined19#ifndef __iovec_defined
20#define __iovec_defined 120#define __iovec_defined 1
lib/libc/include/generic-glibc/bits/types/struct_rusage.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define struct rusage.1/* Define struct rusage.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __rusage_defined19#ifndef __rusage_defined
20#define __rusage_defined 120#define __rusage_defined 1
lib/libc/include/generic-glibc/bits/types/struct_sched_param.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Sched parameter structure. Generic version.1/* Sched parameter structure. Generic version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_TYPES_STRUCT_SCHED_PARAM19#ifndef _BITS_TYPES_STRUCT_SCHED_PARAM
20#define _BITS_TYPES_STRUCT_SCHED_PARAM 120#define _BITS_TYPES_STRUCT_SCHED_PARAM 1
lib/libc/include/generic-glibc/bits/types/struct_sigstack.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define struct sigstack.1/* Define struct sigstack.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __sigstack_defined19#ifndef __sigstack_defined
20#define __sigstack_defined 120#define __sigstack_defined 1
lib/libc/include/generic-glibc/bits/types/struct_statx.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definition of the generic version of struct statx.1/* Definition of the generic version of struct statx.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_STAT_H19#ifndef _SYS_STAT_H
20# error Never include <bits/types/struct_statx.h> directly, include <sys/stat.h> instead.20# error Never include <bits/types/struct_statx.h> directly, include <sys/stat.h> instead.
lib/libc/include/generic-glibc/bits/types/struct_statx_timestamp.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definition of the generic version of struct statx_timestamp.1/* Definition of the generic version of struct statx_timestamp.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_STAT_H19#ifndef _SYS_STAT_H
20# error Never include <bits/types/struct_statx_timestamp.h> directly, include <sys/stat.h> instead.20# error Never include <bits/types/struct_statx_timestamp.h> directly, include <sys/stat.h> instead.
lib/libc/include/generic-glibc/bits/types/struct_timespec.h+13
...@@ -3,13 +3,26 @@...@@ -3,13 +3,26 @@
3#define _STRUCT_TIMESPEC 13#define _STRUCT_TIMESPEC 1
44
5#include <bits/types.h>5#include <bits/types.h>
6#include <bits/endian.h>
67
7/* POSIX.1b structure for a time value. This is like a `struct timeval' but8/* POSIX.1b structure for a time value. This is like a `struct timeval' but
8 has nanoseconds instead of microseconds. */9 has nanoseconds instead of microseconds. */
9struct timespec10struct timespec
10{11{
11 __time_t tv_sec; /* Seconds. */12 __time_t tv_sec; /* Seconds. */
13#if __WORDSIZE == 64 \
14 || (defined __SYSCALL_WORDSIZE && __SYSCALL_WORDSIZE == 64) \
15 || __TIMESIZE == 32
12 __syscall_slong_t tv_nsec; /* Nanoseconds. */16 __syscall_slong_t tv_nsec; /* Nanoseconds. */
17#else
18# if __BYTE_ORDER == __BIG_ENDIAN
19 int: 32; /* Padding. */
20 long int tv_nsec; /* Nanoseconds. */
21# else
22 long int tv_nsec; /* Nanoseconds. */
23 int: 32; /* Padding. */
24# endif
25#endif
13};26};
1427
15#endif28#endif
\ No newline at end of file
lib/libc/include/generic-glibc/bits/typesizes.h+7-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/typesizes.h -- underlying types for *_t. Generic version.1/* bits/typesizes.h -- underlying types for *_t. Generic version.
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_TYPES_H19#ifndef _BITS_TYPES_H
20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
...@@ -72,8 +72,13 @@...@@ -72,8 +72,13 @@
7272
73/* And for rlim_t and rlim64_t. */73/* And for rlim_t and rlim64_t. */
74# define __RLIM_T_MATCHES_RLIM64_T 174# define __RLIM_T_MATCHES_RLIM64_T 1
75
76/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
77# define __STATFS_MATCHES_STATFS64 1
75#else78#else
76# define __RLIM_T_MATCHES_RLIM64_T 079# define __RLIM_T_MATCHES_RLIM64_T 0
80
81# define __STATFS_MATCHES_STATFS64 0
77#endif82#endif
7883
79/* Number of descriptors that can fit in an `fd_set'. */84/* Number of descriptors that can fit in an `fd_set'. */
lib/libc/include/generic-glibc/bits/uintn-identity.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Inline functions to return unsigned integer values unchanged.1/* Inline functions to return unsigned integer values unchanged.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined _NETINET_IN_H && !defined _ENDIAN_H19#if !defined _NETINET_IN_H && !defined _ENDIAN_H
20# error "Never use <bits/uintn-identity.h> directly; include <netinet/in.h> or <endian.h> instead."20# error "Never use <bits/uintn-identity.h> directly; include <netinet/in.h> or <endian.h> instead."
lib/libc/include/generic-glibc/bits/uio-ext.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Operating system-specific extensions to sys/uio.h - Linux version.1/* Operating system-specific extensions to sys/uio.h - Linux version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_UIO_EXT_H19#ifndef _BITS_UIO_EXT_H
20#define _BITS_UIO_EXT_H 120#define _BITS_UIO_EXT_H 1
lib/libc/include/generic-glibc/bits/uio_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Implementation limits related to sys/uio.h - Linux version.1/* Implementation limits related to sys/uio.h - Linux version.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_UIO_LIM_H19#ifndef _BITS_UIO_LIM_H
20#define _BITS_UIO_LIM_H 120#define _BITS_UIO_LIM_H 1
lib/libc/include/generic-glibc/bits/unistd.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Checking macros for unistd functions.1/* Checking macros for unistd functions.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _UNISTD_H19#ifndef _UNISTD_H
20# error "Never include <bits/unistd.h> directly; use <unistd.h> instead."20# error "Never include <bits/unistd.h> directly; use <unistd.h> instead."
lib/libc/include/generic-glibc/bits/unistd_ext.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System-specific extensions of <unistd.h>, Linux version.1/* System-specific extensions of <unistd.h>, Linux version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _UNISTD_H19#ifndef _UNISTD_H
20# error "Never include <bits/unistd_ext.h> directly; use <unistd.h> instead."20# error "Never include <bits/unistd_ext.h> directly; use <unistd.h> instead."
lib/libc/include/generic-glibc/bits/utmp.h+5-4
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* The `struct utmp' type, describing entries in the utmp file. GNU version.1/* The `struct utmp' type, describing entries in the utmp file.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _UTMP_H19#ifndef _UTMP_H
20# error "Never include <bits/utmp.h> directly; use <utmp.h> instead."20# error "Never include <bits/utmp.h> directly; use <utmp.h> instead."
...@@ -61,7 +61,8 @@ struct utmp...@@ -61,7 +61,8 @@ struct utmp
61 pid_t ut_pid; /* Process ID of login process. */61 pid_t ut_pid; /* Process ID of login process. */
62 char ut_line[UT_LINESIZE]62 char ut_line[UT_LINESIZE]
63 __attribute_nonstring__; /* Devicename. */63 __attribute_nonstring__; /* Devicename. */
64 char ut_id[4]; /* Inittab ID. */64 char ut_id[4]
65 __attribute_nonstring__; /* Inittab ID. */
65 char ut_user[UT_NAMESIZE]66 char ut_user[UT_NAMESIZE]
66 __attribute_nonstring__; /* Username. */67 __attribute_nonstring__; /* Username. */
67 char ut_host[UT_HOSTSIZE]68 char ut_host[UT_HOSTSIZE]
lib/libc/include/generic-glibc/bits/utmpx.h+10-6
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structures and definitions for the user accounting database. GNU version.1/* Structures and definitions for the user accounting database. GNU version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _UTMPX_H19#ifndef _UTMPX_H
20# error "Never include <bits/utmpx.h> directly; use <utmpx.h> instead."20# error "Never include <bits/utmpx.h> directly; use <utmpx.h> instead."
...@@ -56,10 +56,14 @@ struct utmpx...@@ -56,10 +56,14 @@ struct utmpx
56{56{
57 short int ut_type; /* Type of login. */57 short int ut_type; /* Type of login. */
58 __pid_t ut_pid; /* Process ID of login process. */58 __pid_t ut_pid; /* Process ID of login process. */
59 char ut_line[__UT_LINESIZE]; /* Devicename. */59 char ut_line[__UT_LINESIZE]
60 char ut_id[4]; /* Inittab ID. */60 __attribute_nonstring__; /* Devicename. */
61 char ut_user[__UT_NAMESIZE]; /* Username. */61 char ut_id[4]
62 char ut_host[__UT_HOSTSIZE]; /* Hostname for remote login. */62 __attribute_nonstring__; /* Inittab ID. */
63 char ut_user[__UT_NAMESIZE]
64 __attribute_nonstring__; /* Username. */
65 char ut_host[__UT_HOSTSIZE]
66 __attribute_nonstring__; /* Hostname for remote login. */
63 struct __exit_status ut_exit; /* Exit status of a process marked67 struct __exit_status ut_exit; /* Exit status of a process marked
64 as DEAD_PROCESS. */68 as DEAD_PROCESS. */
6569
lib/libc/include/generic-glibc/bits/utsname.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_UTSNAME_H18#ifndef _SYS_UTSNAME_H
19# error "Never include <bits/utsname.h> directly; use <sys/utsname.h> instead."19# error "Never include <bits/utsname.h> directly; use <sys/utsname.h> instead."
lib/libc/include/generic-glibc/bits/waitflags.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions of flag bits for `waitpid' et al.1/* Definitions of flag bits for `waitpid' et al.
2 Copyright (C) 1992-2019 Free Software Foundation, Inc.2 Copyright (C) 1992-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined _SYS_WAIT_H && !defined _STDLIB_H19#if !defined _SYS_WAIT_H && !defined _STDLIB_H
20# error "Never include <bits/waitflags.h> directly; use <sys/wait.h> instead."20# error "Never include <bits/waitflags.h> directly; use <sys/wait.h> instead."
lib/libc/include/generic-glibc/bits/waitstatus.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions of status bits for `wait' et al.1/* Definitions of status bits for `wait' et al.
2 Copyright (C) 1992-2019 Free Software Foundation, Inc.2 Copyright (C) 1992-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined _SYS_WAIT_H && !defined _STDLIB_H19#if !defined _SYS_WAIT_H && !defined _STDLIB_H
20# error "Never include <bits/waitstatus.h> directly; use <sys/wait.h> instead."20# error "Never include <bits/waitstatus.h> directly; use <sys/wait.h> instead."
lib/libc/include/generic-glibc/bits/wchar-ldbl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* -mlong-double-64 compatibility mode for <wchar.h> functions.1/* -mlong-double-64 compatibility mode for <wchar.h> functions.
2 Copyright (C) 2006-2019 Free Software Foundation, Inc.2 Copyright (C) 2006-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _WCHAR_H19#ifndef _WCHAR_H
20# error "Never include <bits/wchar-ldbl.h> directly; use <wchar.h> instead."20# error "Never include <bits/wchar-ldbl.h> directly; use <wchar.h> instead."
lib/libc/include/generic-glibc/bits/wchar.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* wchar_t type related definitions.1/* wchar_t type related definitions.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_WCHAR_H19#ifndef _BITS_WCHAR_H
20#define _BITS_WCHAR_H 120#define _BITS_WCHAR_H 1
lib/libc/include/generic-glibc/bits/wchar2.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Checking macros for wchar functions.1/* Checking macros for wchar functions.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _WCHAR_H19#ifndef _WCHAR_H
20# error "Never include <bits/wchar2.h> directly; use <wchar.h> instead."20# error "Never include <bits/wchar2.h> directly; use <wchar.h> instead."
lib/libc/include/generic-glibc/bits/wctype-wchar.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.2519 * ISO C99 Standard: 7.25
...@@ -42,7 +42,7 @@ typedef unsigned long int wctype_t;...@@ -42,7 +42,7 @@ typedef unsigned long int wctype_t;
42 endian). We define the bit value interpretations here dependent on the42 endian). We define the bit value interpretations here dependent on the
43 machine's byte order. */43 machine's byte order. */
4444
45# include <endian.h>45# include <bits/endian.h>
46# if __BYTE_ORDER == __BIG_ENDIAN46# if __BYTE_ORDER == __BIG_ENDIAN
47# define _ISwbit(bit) (1 << (bit))47# define _ISwbit(bit) (1 << (bit))
48# else /* __BYTE_ORDER == __LITTLE_ENDIAN */48# else /* __BYTE_ORDER == __LITTLE_ENDIAN */
lib/libc/include/generic-glibc/bits/wordsize.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#include <sgidefs.h>18#include <sgidefs.h>
1919
lib/libc/include/generic-glibc/bits/xopen_lim.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * Never include this file directly; use <limits.h> instead.19 * Never include this file directly; use <limits.h> instead.
lib/libc/include/generic-glibc/byteswap.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BYTESWAP_H18#ifndef _BYTESWAP_H
19#define _BYTESWAP_H 119#define _BYTESWAP_H 1
lib/libc/include/generic-glibc/complex.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99: 7.3 Complex arithmetic <complex.h>19 * ISO C99: 7.3 Complex arithmetic <complex.h>
lib/libc/include/generic-glibc/cpio.h+2-2
...@@ -1,6 +1,6 @@...@@ -1,6 +1,6 @@
1/* Extended cpio format from POSIX.1.1/* Extended cpio format from POSIX.1.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Copyright (C) 1992-2019 Free Software Foundation, Inc.3 Copyright (C) 1992-2020 Free Software Foundation, Inc.
4 NOTE: The canonical source of this file is maintained with the GNU cpio.4 NOTE: The canonical source of this file is maintained with the GNU cpio.
55
6 The GNU C Library is free software; you can redistribute it and/or6 The GNU C Library is free software; you can redistribute it and/or
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _CPIO_H20#ifndef _CPIO_H
21#define _CPIO_H 121#define _CPIO_H 1
lib/libc/include/generic-glibc/crypt.h+2-2
...@@ -1,7 +1,7 @@...@@ -1,7 +1,7 @@
1/*1/*
2 * UFC-crypt: ultra fast crypt(3) implementation2 * UFC-crypt: ultra fast crypt(3) implementation
3 *3 *
4 * Copyright (C) 1991-2019 Free Software Foundation, Inc.4 * Copyright (C) 1991-2020 Free Software Foundation, Inc.
5 *5 *
6 * The GNU C Library is free software; you can redistribute it and/or6 * The GNU C Library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public7 * modify it under the terms of the GNU Lesser General Public
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
15 *15 *
16 * You should have received a copy of the GNU Lesser General Public16 * You should have received a copy of the GNU Lesser General Public
17 * License along with the GNU C Library; if not, see17 * License along with the GNU C Library; if not, see
18 * <http://www.gnu.org/licenses/>.18 * <https://www.gnu.org/licenses/>.
19 *19 *
20 * @(#)crypt.h 1.5 12/20/9620 * @(#)crypt.h 1.5 12/20/96
21 *21 *
lib/libc/include/generic-glibc/ctype.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard 7.4: Character handling <ctype.h>19 * ISO C99 Standard 7.4: Character handling <ctype.h>
...@@ -36,7 +36,7 @@ __BEGIN_DECLS...@@ -36,7 +36,7 @@ __BEGIN_DECLS
36 endian). We define the bit value interpretations here dependent on the36 endian). We define the bit value interpretations here dependent on the
37 machine's byte order. */37 machine's byte order. */
3838
39# include <endian.h>39# include <bits/endian.h>
40# if __BYTE_ORDER == __BIG_ENDIAN40# if __BYTE_ORDER == __BIG_ENDIAN
41# define _ISbit(bit) (1 << (bit))41# define _ISbit(bit) (1 << (bit))
42# else /* __BYTE_ORDER == __LITTLE_ENDIAN */42# else /* __BYTE_ORDER == __LITTLE_ENDIAN */
lib/libc/include/generic-glibc/dirent.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 5.1.2 Directory Operations <dirent.h>19 * POSIX Standard: 5.1.2 Directory Operations <dirent.h>
lib/libc/include/generic-glibc/dlfcn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* User functions for run-time dynamic loading.1/* User functions for run-time dynamic loading.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _DLFCN_H19#ifndef _DLFCN_H
20#define _DLFCN_H 120#define _DLFCN_H 1
lib/libc/include/generic-glibc/elf.h+6-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* This file defines standard ELF types, structures, and macros.1/* This file defines standard ELF types, structures, and macros.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _ELF_H19#ifndef _ELF_H
20#define _ELF_H 120#define _ELF_H 1
...@@ -1715,6 +1715,7 @@ typedef struct...@@ -1715,6 +1715,7 @@ typedef struct
1715#define SHT_MIPS_EH_REGION 0x700000271715#define SHT_MIPS_EH_REGION 0x70000027
1716#define SHT_MIPS_XLATE_OLD 0x700000281716#define SHT_MIPS_XLATE_OLD 0x70000028
1717#define SHT_MIPS_PDR_EXCEPTION 0x700000291717#define SHT_MIPS_PDR_EXCEPTION 0x70000029
1718#define SHT_MIPS_XHASH 0x7000002b
17181719
1719/* Legal values for sh_flags field of Elf32_Shdr. */1720/* Legal values for sh_flags field of Elf32_Shdr. */
17201721
...@@ -1962,7 +1963,9 @@ typedef struct...@@ -1962,7 +1963,9 @@ typedef struct
1962 in a PIE as it stores a relative offset from the address of the tag1963 in a PIE as it stores a relative offset from the address of the tag
1963 rather than an absolute address. */1964 rather than an absolute address. */
1964#define DT_MIPS_RLD_MAP_REL 0x700000351965#define DT_MIPS_RLD_MAP_REL 0x70000035
1965#define DT_MIPS_NUM 0x361966/* GNU-style hash table with xlat. */
1967#define DT_MIPS_XHASH 0x70000036
1968#define DT_MIPS_NUM 0x37
19661969
1967/* Legal values for DT_MIPS_FLAGS Elf32_Dyn entry. */1970/* Legal values for DT_MIPS_FLAGS Elf32_Dyn entry. */
19681971
lib/libc/include/generic-glibc/endian.h+4-29
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,48 +13,23 @@...@@ -13,48 +13,23 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _ENDIAN_H18#ifndef _ENDIAN_H
19#define _ENDIAN_H 119#define _ENDIAN_H 1
2020
21#include <features.h>21#include <features.h>
2222
23/* Definitions for byte order, according to significance of bytes,23/* Get the definitions of __*_ENDIAN, __BYTE_ORDER, and __FLOAT_WORD_ORDER. */
24 from low addresses to high addresses. The value is what you get by
25 putting '4' in the most significant byte, '3' in the second most
26 significant byte, '2' in the second least significant byte, and '1'
27 in the least significant byte, and then writing down one digit for
28 each byte, starting with the byte at the lowest address at the left,
29 and proceeding to the byte with the highest address at the right. */
30
31#define __LITTLE_ENDIAN 1234
32#define __BIG_ENDIAN 4321
33#define __PDP_ENDIAN 3412
34
35/* This file defines `__BYTE_ORDER' for the particular machine. */
36#include <bits/endian.h>24#include <bits/endian.h>
3725
38/* Some machines may need to use a different endianness for floating point26#ifdef __USE_MISC
39 values. */
40#ifndef __FLOAT_WORD_ORDER
41# define __FLOAT_WORD_ORDER __BYTE_ORDER
42#endif
43
44#ifdef __USE_MISC
45# define LITTLE_ENDIAN __LITTLE_ENDIAN27# define LITTLE_ENDIAN __LITTLE_ENDIAN
46# define BIG_ENDIAN __BIG_ENDIAN28# define BIG_ENDIAN __BIG_ENDIAN
47# define PDP_ENDIAN __PDP_ENDIAN29# define PDP_ENDIAN __PDP_ENDIAN
48# define BYTE_ORDER __BYTE_ORDER30# define BYTE_ORDER __BYTE_ORDER
49#endif31#endif
5032
51#if __BYTE_ORDER == __LITTLE_ENDIAN
52# define __LONG_LONG_PAIR(HI, LO) LO, HI
53#elif __BYTE_ORDER == __BIG_ENDIAN
54# define __LONG_LONG_PAIR(HI, LO) HI, LO
55#endif
56
57
58#if defined __USE_MISC && !defined __ASSEMBLER__33#if defined __USE_MISC && !defined __ASSEMBLER__
59/* Conversion interfaces. */34/* Conversion interfaces. */
60# include <bits/byteswap.h>35# include <bits/byteswap.h>
lib/libc/include/generic-glibc/envz.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Routines for dealing with '\0' separated environment vectors1/* Routines for dealing with '\0' separated environment vectors
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _ENVZ_H19#ifndef _ENVZ_H
20#define _ENVZ_H 120#define _ENVZ_H 1
lib/libc/include/generic-glibc/err.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* 4.4BSD utility functions for error messages.1/* 4.4BSD utility functions for error messages.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _ERR_H19#ifndef _ERR_H
20#define _ERR_H 120#define _ERR_H 1
lib/libc/include/generic-glibc/errno.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.5 Errors <errno.h>19 * ISO C99 Standard: 7.5 Errors <errno.h>
lib/libc/include/generic-glibc/error.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Declaration for error-reporting function1/* Declaration for error-reporting function
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _ERROR_H19#ifndef _ERROR_H
20#define _ERROR_H 120#define _ERROR_H 1
lib/libc/include/generic-glibc/execinfo.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _EXECINFO_H18#ifndef _EXECINFO_H
19#define _EXECINFO_H 119#define _EXECINFO_H 1
lib/libc/include/generic-glibc/fcntl.h+3-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 6.5 File Control Operations <fcntl.h>19 * POSIX Standard: 6.5 File Control Operations <fcntl.h>
...@@ -161,6 +161,7 @@ typedef __pid_t pid_t;...@@ -161,6 +161,7 @@ typedef __pid_t pid_t;
161# define AT_STATX_SYNC_AS_STAT 0x0000161# define AT_STATX_SYNC_AS_STAT 0x0000
162# define AT_STATX_FORCE_SYNC 0x2000162# define AT_STATX_FORCE_SYNC 0x2000
163# define AT_STATX_DONT_SYNC 0x4000163# define AT_STATX_DONT_SYNC 0x4000
164# define AT_RECURSIVE 0x8000 /* Apply to the entire subtree. */
164# endif165# endif
165# define AT_EACCESS 0x200 /* Test access permitted for166# define AT_EACCESS 0x200 /* Test access permitted for
166 effective IDs, not real IDs. */167 effective IDs, not real IDs. */
lib/libc/include/generic-glibc/features.h+21-6
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FEATURES_H18#ifndef _FEATURES_H
19#define _FEATURES_H 119#define _FEATURES_H 1
...@@ -24,6 +24,7 @@...@@ -24,6 +24,7 @@
24 __STRICT_ANSI__ ISO Standard C.24 __STRICT_ANSI__ ISO Standard C.
25 _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.25 _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
26 _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.26 _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
27 _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
27 __STDC_WANT_LIB_EXT2__28 __STDC_WANT_LIB_EXT2__
28 Extensions to ISO C99 from TR 27431-2:2010.29 Extensions to ISO C99 from TR 27431-2:2010.
29 __STDC_WANT_IEC_60559_BFP_EXT__30 __STDC_WANT_IEC_60559_BFP_EXT__
...@@ -139,6 +140,7 @@...@@ -139,6 +140,7 @@
139#undef __USE_GNU140#undef __USE_GNU
140#undef __USE_FORTIFY_LEVEL141#undef __USE_FORTIFY_LEVEL
141#undef __KERNEL_STRICT_NAMES142#undef __KERNEL_STRICT_NAMES
143#undef __GLIBC_USE_ISOC2X
142#undef __GLIBC_USE_DEPRECATED_GETS144#undef __GLIBC_USE_DEPRECATED_GETS
143#undef __GLIBC_USE_DEPRECATED_SCANF145#undef __GLIBC_USE_DEPRECATED_SCANF
144146
...@@ -195,6 +197,8 @@...@@ -195,6 +197,8 @@
195# define _ISOC99_SOURCE 1197# define _ISOC99_SOURCE 1
196# undef _ISOC11_SOURCE198# undef _ISOC11_SOURCE
197# define _ISOC11_SOURCE 1199# define _ISOC11_SOURCE 1
200# undef _ISOC2X_SOURCE
201# define _ISOC2X_SOURCE 1
198# undef _POSIX_SOURCE202# undef _POSIX_SOURCE
199# define _POSIX_SOURCE 1203# define _POSIX_SOURCE 1
200# undef _POSIX_C_SOURCE204# undef _POSIX_C_SOURCE
...@@ -216,26 +220,37 @@...@@ -216,26 +220,37 @@
216#if (defined _DEFAULT_SOURCE \220#if (defined _DEFAULT_SOURCE \
217 || (!defined __STRICT_ANSI__ \221 || (!defined __STRICT_ANSI__ \
218 && !defined _ISOC99_SOURCE && !defined _ISOC11_SOURCE \222 && !defined _ISOC99_SOURCE && !defined _ISOC11_SOURCE \
223 && !defined _ISOC2X_SOURCE \
219 && !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE \224 && !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE \
220 && !defined _XOPEN_SOURCE))225 && !defined _XOPEN_SOURCE))
221# undef _DEFAULT_SOURCE226# undef _DEFAULT_SOURCE
222# define _DEFAULT_SOURCE 1227# define _DEFAULT_SOURCE 1
223#endif228#endif
224229
230/* This is to enable the ISO C2X extension. */
231#if (defined _ISOC2X_SOURCE \
232 || (defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L))
233# define __GLIBC_USE_ISOC2X 1
234#else
235# define __GLIBC_USE_ISOC2X 0
236#endif
237
225/* This is to enable the ISO C11 extension. */238/* This is to enable the ISO C11 extension. */
226#if (defined _ISOC11_SOURCE \239#if (defined _ISOC11_SOURCE || defined _ISOC2X_SOURCE \
227 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L))240 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L))
228# define __USE_ISOC11 1241# define __USE_ISOC11 1
229#endif242#endif
230243
231/* This is to enable the ISO C99 extension. */244/* This is to enable the ISO C99 extension. */
232#if (defined _ISOC99_SOURCE || defined _ISOC11_SOURCE \245#if (defined _ISOC99_SOURCE || defined _ISOC11_SOURCE \
246 || defined _ISOC2X_SOURCE \
233 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L))247 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L))
234# define __USE_ISOC99 1248# define __USE_ISOC99 1
235#endif249#endif
236250
237/* This is to enable the ISO C90 Amendment 1:1995 extension. */251/* This is to enable the ISO C90 Amendment 1:1995 extension. */
238#if (defined _ISOC99_SOURCE || defined _ISOC11_SOURCE \252#if (defined _ISOC99_SOURCE || defined _ISOC11_SOURCE \
253 || defined _ISOC2X_SOURCE \
239 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199409L))254 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199409L))
240# define __USE_ISOC95 1255# define __USE_ISOC95 1
241#endif256#endif
...@@ -439,7 +454,7 @@...@@ -439,7 +454,7 @@
439/* Major and minor version number of the GNU C library package. Use454/* Major and minor version number of the GNU C library package. Use
440 these macros to test for features in specific releases. */455 these macros to test for features in specific releases. */
441#define __GLIBC__ 2456#define __GLIBC__ 2
442#define __GLIBC_MINOR__ 30457#define __GLIBC_MINOR__ 31
443458
444#define __GLIBC_PREREQ(maj, min) \459#define __GLIBC_PREREQ(maj, min) \
445 ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))460 ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
lib/libc/include/generic-glibc/fenv.h+6-6
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 7.6: Floating-point environment <fenv.h>19 * ISO C99 7.6: Floating-point environment <fenv.h>
...@@ -77,7 +77,7 @@ extern int fegetexceptflag (fexcept_t *__flagp, int __excepts) __THROW;...@@ -77,7 +77,7 @@ extern int fegetexceptflag (fexcept_t *__flagp, int __excepts) __THROW;
77/* Raise the supported exceptions represented by EXCEPTS. */77/* Raise the supported exceptions represented by EXCEPTS. */
78extern int feraiseexcept (int __excepts) __THROW;78extern int feraiseexcept (int __excepts) __THROW;
7979
80#if __GLIBC_USE (IEC_60559_BFP_EXT)80#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
81/* Set the supported exception flags represented by EXCEPTS, without81/* Set the supported exception flags represented by EXCEPTS, without
82 causing enabled traps to be taken. */82 causing enabled traps to be taken. */
83extern int fesetexcept (int __excepts) __THROW;83extern int fesetexcept (int __excepts) __THROW;
...@@ -91,7 +91,7 @@ extern int fesetexceptflag (const fexcept_t *__flagp, int __excepts) __THROW;...@@ -91,7 +91,7 @@ extern int fesetexceptflag (const fexcept_t *__flagp, int __excepts) __THROW;
91 currently set. */91 currently set. */
92extern int fetestexcept (int __excepts) __THROW;92extern int fetestexcept (int __excepts) __THROW;
9393
94#if __GLIBC_USE (IEC_60559_BFP_EXT)94#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
95/* Determine which of subset of the exceptions specified by EXCEPTS95/* Determine which of subset of the exceptions specified by EXCEPTS
96 are set in *FLAGP. */96 are set in *FLAGP. */
97extern int fetestexceptflag (const fexcept_t *__flagp, int __excepts) __THROW;97extern int fetestexceptflag (const fexcept_t *__flagp, int __excepts) __THROW;
...@@ -130,7 +130,7 @@ extern int feupdateenv (const fenv_t *__envp) __THROW;...@@ -130,7 +130,7 @@ extern int feupdateenv (const fenv_t *__envp) __THROW;
130130
131/* Control modes. */131/* Control modes. */
132132
133#if __GLIBC_USE (IEC_60559_BFP_EXT)133#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
134/* Store the current floating-point control modes in the object134/* Store the current floating-point control modes in the object
135 pointed to by MODEP. */135 pointed to by MODEP. */
136extern int fegetmode (femode_t *__modep) __THROW;136extern int fegetmode (femode_t *__modep) __THROW;
...@@ -147,7 +147,7 @@ extern int fesetmode (const femode_t *__modep) __THROW;...@@ -147,7 +147,7 @@ extern int fesetmode (const femode_t *__modep) __THROW;
147147
148/* NaN support. */148/* NaN support. */
149149
150#if (__GLIBC_USE (IEC_60559_BFP_EXT) \150#if (__GLIBC_USE (IEC_60559_BFP_EXT_C2X) \
151 && defined FE_INVALID \151 && defined FE_INVALID \
152 && defined __SUPPORT_SNAN__)152 && defined __SUPPORT_SNAN__)
153# define FE_SNANS_ALWAYS_SIGNAL 1153# define FE_SNANS_ALWAYS_SIGNAL 1
lib/libc/include/generic-glibc/finclude/math-vector-fortran.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1! Platform-specific declarations of SIMD math functions for Fortran. -*- f90 -*-1! Platform-specific declarations of SIMD math functions for Fortran. -*- f90 -*-
2! Copyright (C) 2019 Free Software Foundation, Inc.2! Copyright (C) 2019-2020 Free Software Foundation, Inc.
3! This file is part of the GNU C Library.3! This file is part of the GNU C Library.
4!4!
5! The GNU C Library is free software; you can redistribute it and/or5! The GNU C Library is free software; you can redistribute it and/or
...@@ -14,6 +14,6 @@...@@ -14,6 +14,6 @@
14!14!
15! You should have received a copy of the GNU Lesser General Public15! You should have received a copy of the GNU Lesser General Public
16! License along with the GNU C Library; if not, see16! License along with the GNU C Library; if not, see
17! <http://www.gnu.org/licenses/>.17! <https://www.gnu.org/licenses/>.
1818
19! No SIMD math functions are available for this platform.19! No SIMD math functions are available for this platform.
\ No newline at end of file
lib/libc/include/generic-glibc/fmtmsg.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Message display handling.1/* Message display handling.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __FMTMSG_H19#ifndef __FMTMSG_H
20#define __FMTMSG_H 120#define __FMTMSG_H 1
lib/libc/include/generic-glibc/fnmatch.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FNMATCH_H18#ifndef _FNMATCH_H
19#define _FNMATCH_H 119#define _FNMATCH_H 1
lib/libc/include/generic-glibc/fpregdef.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FPREGDEF_H18#ifndef _FPREGDEF_H
19#define _FPREGDEF_H19#define _FPREGDEF_H
lib/libc/include/generic-glibc/fpu_control.h+2-3
...@@ -1,7 +1,6 @@...@@ -1,7 +1,6 @@
1/* FPU control word bits. Mips version.1/* FPU control word bits. Mips version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Olaf Flebbe and Ralf Baechle.
54
6 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public6 modify it under the terms of the GNU Lesser General Public
...@@ -15,7 +14,7 @@...@@ -15,7 +14,7 @@
1514
16 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1918
20#ifndef _FPU_CONTROL_H19#ifndef _FPU_CONTROL_H
21#define _FPU_CONTROL_H20#define _FPU_CONTROL_H
lib/libc/include/generic-glibc/fts.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* File tree traversal functions declarations.1/* File tree traversal functions declarations.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * Copyright (c) 1989, 199320 * Copyright (c) 1989, 1993
lib/libc/include/generic-glibc/ftw.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * X/Open Portability Guide 4.2: ftw.h19 * X/Open Portability Guide 4.2: ftw.h
lib/libc/include/generic-glibc/gconv.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* This header provides no interface for a user to the internals of18/* This header provides no interface for a user to the internals of
19 the gconv implementation in the libc. Therefore there is no use19 the gconv implementation in the libc. Therefore there is no use
lib/libc/include/generic-glibc/getopt.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Declarations for getopt.1/* Declarations for getopt.
2 Copyright (C) 1989-2019 Free Software Foundation, Inc.2 Copyright (C) 1989-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Unlike the bulk of the getopt implementation, this file is NOT part4 Unlike the bulk of the getopt implementation, this file is NOT part
5 of gnulib; gnulib also has a getopt.h but it is different.5 of gnulib; gnulib also has a getopt.h but it is different.
...@@ -16,7 +16,7 @@...@@ -16,7 +16,7 @@
1616
17 You should have received a copy of the GNU Lesser General Public17 You should have received a copy of the GNU Lesser General Public
18 License along with the GNU C Library; if not, see18 License along with the GNU C Library; if not, see
19 <http://www.gnu.org/licenses/>. */19 <https://www.gnu.org/licenses/>. */
2020
21#ifndef _GETOPT_H21#ifndef _GETOPT_H
22#define _GETOPT_H 122#define _GETOPT_H 1
lib/libc/include/generic-glibc/glob.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _GLOB_H18#ifndef _GLOB_H
19#define _GLOB_H 119#define _GLOB_H 1
lib/libc/include/generic-glibc/gnu-versions.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Header with interface version macros for library pieces copied elsewhere.1/* Header with interface version macros for library pieces copied elsewhere.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _GNU_VERSIONS_H19#ifndef _GNU_VERSIONS_H
20#define _GNU_VERSIONS_H 120#define _GNU_VERSIONS_H 1
lib/libc/include/generic-glibc/gnu/libc-version.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Interface to GNU libc specific functions for version information.1/* Interface to GNU libc specific functions for version information.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _GNU_LIBC_VERSION_H19#ifndef _GNU_LIBC_VERSION_H
20#define _GNU_LIBC_VERSION_H 120#define _GNU_LIBC_VERSION_H 1
lib/libc/include/generic-glibc/grp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 9.2.1 Group Database Access <grp.h>19 * POSIX Standard: 9.2.1 Group Database Access <grp.h>
lib/libc/include/generic-glibc/gshadow.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2009-2019 Free Software Foundation, Inc.1/* Copyright (C) 2009-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Declaration of types and functions for shadow group suite. */18/* Declaration of types and functions for shadow group suite. */
1919
lib/libc/include/generic-glibc/iconv.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _ICONV_H18#ifndef _ICONV_H
19#define _ICONV_H 119#define _ICONV_H 1
lib/libc/include/generic-glibc/ieee754.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,14 +13,14 @@...@@ -13,14 +13,14 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25__BEGIN_DECLS25__BEGIN_DECLS
2626
lib/libc/include/generic-glibc/ifaddrs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* ifaddrs.h -- declarations for getting network interface addresses1/* ifaddrs.h -- declarations for getting network interface addresses
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _IFADDRS_H19#ifndef _IFADDRS_H
20#define _IFADDRS_H 120#define _IFADDRS_H 1
lib/libc/include/generic-glibc/inttypes.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99: 7.8 Format conversion of integer types <inttypes.h>19 * ISO C99: 7.8 Format conversion of integer types <inttypes.h>
lib/libc/include/generic-glibc/langinfo.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Access to locale-dependent parameters.1/* Access to locale-dependent parameters.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _LANGINFO_H19#ifndef _LANGINFO_H
20#define _LANGINFO_H 120#define _LANGINFO_H 1
lib/libc/include/generic-glibc/libgen.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _LIBGEN_H18#ifndef _LIBGEN_H
19#define _LIBGEN_H 119#define _LIBGEN_H 1
lib/libc/include/generic-glibc/libintl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Message catalogs for internationalization.1/* Message catalogs for internationalization.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 This file is derived from the file libgettext.h in the GNU gettext package.4 This file is derived from the file libgettext.h in the GNU gettext package.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _LIBINTL_H20#ifndef _LIBINTL_H
21#define _LIBINTL_H 121#define _LIBINTL_H 1
lib/libc/include/generic-glibc/limits.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.10/5.2.4.2.1 Sizes of integer types <limits.h>19 * ISO C99 Standard: 7.10/5.2.4.2.1 Sizes of integer types <limits.h>
...@@ -142,7 +142,7 @@...@@ -142,7 +142,7 @@
142/* The integer width macros are not defined by GCC's <limits.h> before142/* The integer width macros are not defined by GCC's <limits.h> before
143 GCC 7, or if _GNU_SOURCE rather than143 GCC 7, or if _GNU_SOURCE rather than
144 __STDC_WANT_IEC_60559_BFP_EXT__ is used to enable this feature. */144 __STDC_WANT_IEC_60559_BFP_EXT__ is used to enable this feature. */
145#if __GLIBC_USE (IEC_60559_BFP_EXT)145#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
146# ifndef CHAR_WIDTH146# ifndef CHAR_WIDTH
147# define CHAR_WIDTH 8147# define CHAR_WIDTH 8
148# endif148# endif
lib/libc/include/generic-glibc/link.h+2-2
...@@ -1,6 +1,6 @@...@@ -1,6 +1,6 @@
1/* Data structure for communication from the run-time dynamic linker for1/* Data structure for communication from the run-time dynamic linker for
2 loaded ELF shared objects.2 loaded ELF shared objects.
3 Copyright (C) 1995-2019 Free Software Foundation, Inc.3 Copyright (C) 1995-2020 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
6 The GNU C Library is free software; you can redistribute it and/or6 The GNU C Library is free software; you can redistribute it and/or
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _LINK_H20#ifndef _LINK_H
21#define _LINK_H 121#define _LINK_H 1
lib/libc/include/generic-glibc/locale.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.11 Localization <locale.h>19 * ISO C99 Standard: 7.11 Localization <locale.h>
lib/libc/include/generic-glibc/malloc.h+3-4
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Prototypes and definition for malloc implementation.1/* Prototypes and definition for malloc implementation.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MALLOC_H19#ifndef _MALLOC_H
20#define _MALLOC_H 120#define _MALLOC_H 1
...@@ -71,8 +71,7 @@ extern void *valloc (size_t __size) __THROW __attribute_malloc__...@@ -71,8 +71,7 @@ extern void *valloc (size_t __size) __THROW __attribute_malloc__
7171
72/* Equivalent to valloc(minimum-page-that-holds(n)), that is, round up72/* Equivalent to valloc(minimum-page-that-holds(n)), that is, round up
73 __size to nearest pagesize. */73 __size to nearest pagesize. */
74extern void *pvalloc (size_t __size) __THROW __attribute_malloc__74extern void *pvalloc (size_t __size) __THROW __attribute_malloc__ __wur;
75 __attribute_alloc_size__ ((1)) __wur;
7675
77/* Underlying allocation function; successive calls should return76/* Underlying allocation function; successive calls should return
78 contiguous pieces of memory. */77 contiguous pieces of memory. */
lib/libc/include/generic-glibc/math.h+8-228
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Declarations for math functions.1/* Declarations for math functions.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * ISO C99 Standard: 7.12 Mathematics <math.h>20 * ISO C99 Standard: 7.12 Mathematics <math.h>
...@@ -104,7 +104,7 @@ __BEGIN_DECLS...@@ -104,7 +104,7 @@ __BEGIN_DECLS
104# endif104# endif
105#endif /* __USE_ISOC99 */105#endif /* __USE_ISOC99 */
106106
107#if __GLIBC_USE (IEC_60559_BFP_EXT)107#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
108/* Signaling NaN macros, if supported. */108/* Signaling NaN macros, if supported. */
109# if __GNUC_PREREQ (3, 3)109# if __GNUC_PREREQ (3, 3)
110# define SNANF (__builtin_nansf (""))110# define SNANF (__builtin_nansf (""))
...@@ -200,7 +200,7 @@ typedef _Float128x double_t;...@@ -200,7 +200,7 @@ typedef _Float128x double_t;
200# define FP_ILOGBNAN 2147483647200# define FP_ILOGBNAN 2147483647
201# endif201# endif
202#endif202#endif
203#if __GLIBC_USE (IEC_60559_BFP_EXT)203#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
204# if __WORDSIZE == 32204# if __WORDSIZE == 32
205# define __FP_LONG_MAX 0x7fffffffL205# define __FP_LONG_MAX 0x7fffffffL
206# else206# else
...@@ -232,7 +232,7 @@ typedef _Float128x double_t;...@@ -232,7 +232,7 @@ typedef _Float128x double_t;
232232
233#include <bits/fp-fast.h>233#include <bits/fp-fast.h>
234234
235#if __GLIBC_USE (IEC_60559_BFP_EXT)235#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
236/* Rounding direction macros for fromfp functions. */236/* Rounding direction macros for fromfp functions. */
237enum237enum
238 {238 {
...@@ -495,7 +495,7 @@ extern long double __REDIRECT_NTH (nexttowardl,...@@ -495,7 +495,7 @@ extern long double __REDIRECT_NTH (nexttowardl,
495#define __MATHCALL_NARROW(func, redir, nargs) \495#define __MATHCALL_NARROW(func, redir, nargs) \
496 __MATHCALL_NARROW_NORMAL (func, nargs)496 __MATHCALL_NARROW_NORMAL (func, nargs)
497497
498#if __GLIBC_USE (IEC_60559_BFP_EXT)498#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
499499
500# define _Mret_ float500# define _Mret_ float
501# define _Marg_ double501# define _Marg_ double
...@@ -969,7 +969,7 @@ enum...@@ -969,7 +969,7 @@ enum
969969
970#endif /* Use ISO C99. */970#endif /* Use ISO C99. */
971971
972#if __GLIBC_USE (IEC_60559_BFP_EXT)972#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
973# include <bits/iscanonical.h>973# include <bits/iscanonical.h>
974974
975/* Return nonzero value if X is a signaling NaN. */975/* Return nonzero value if X is a signaling NaN. */
...@@ -1245,228 +1245,8 @@ iszero (__T __val)...@@ -1245,228 +1245,8 @@ iszero (__T __val)
1245# include <bits/mathinline.h>1245# include <bits/mathinline.h>
1246#endif1246#endif
12471247
1248/* Define special entry points to use when the compiler got told to
1249 only expect finite results. */
1250#if defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0
1251
1252/* Include bits/math-finite.h for double. */
1253# define _Mdouble_ double
1254# define __MATH_DECLARING_DOUBLE 1
1255# define __MATH_DECLARING_FLOATN 0
1256# define __REDIRFROM_X(function, reentrant) \
1257 function ## reentrant
1258# define __REDIRTO_X(function, reentrant) \
1259 __ ## function ## reentrant ## _finite
1260# include <bits/math-finite.h>
1261# undef _Mdouble_
1262# undef __MATH_DECLARING_DOUBLE
1263# undef __MATH_DECLARING_FLOATN
1264# undef __REDIRFROM_X
1265# undef __REDIRTO_X
1266
1267/* When __USE_ISOC99 is defined, include math-finite for float and
1268 long double, as well. */
1269# ifdef __USE_ISOC99
1270
1271/* Include bits/math-finite.h for float. */
1272# define _Mdouble_ float
1273# define __MATH_DECLARING_DOUBLE 0
1274# define __MATH_DECLARING_FLOATN 0
1275# define __REDIRFROM_X(function, reentrant) \
1276 function ## f ## reentrant
1277# define __REDIRTO_X(function, reentrant) \
1278 __ ## function ## f ## reentrant ## _finite
1279# include <bits/math-finite.h>
1280# undef _Mdouble_
1281# undef __MATH_DECLARING_DOUBLE
1282# undef __MATH_DECLARING_FLOATN
1283# undef __REDIRFROM_X
1284# undef __REDIRTO_X
1285
1286/* Include bits/math-finite.h for long double. */
1287# ifdef __MATH_DECLARE_LDOUBLE
1288# define _Mdouble_ long double
1289# define __MATH_DECLARING_DOUBLE 0
1290# define __MATH_DECLARING_FLOATN 0
1291# define __REDIRFROM_X(function, reentrant) \
1292 function ## l ## reentrant
1293# ifdef __NO_LONG_DOUBLE_MATH
1294# define __REDIRTO_X(function, reentrant) \
1295 __ ## function ## reentrant ## _finite
1296# else
1297# define __REDIRTO_X(function, reentrant) \
1298 __ ## function ## l ## reentrant ## _finite
1299# endif
1300# include <bits/math-finite.h>
1301# undef _Mdouble_
1302# undef __MATH_DECLARING_DOUBLE
1303# undef __MATH_DECLARING_FLOATN
1304# undef __REDIRFROM_X
1305# undef __REDIRTO_X
1306# endif
1307
1308# endif /* __USE_ISOC99. */
1309
1310/* Include bits/math-finite.h for _FloatN and _FloatNx. */
1311
1312# if (__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !defined _LIBC)) \
1313 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1314# define _Mdouble_ _Float16
1315# define __MATH_DECLARING_DOUBLE 0
1316# define __MATH_DECLARING_FLOATN 1
1317# define __REDIRFROM_X(function, reentrant) \
1318 function ## f16 ## reentrant
1319# if __HAVE_DISTINCT_FLOAT16
1320# define __REDIRTO_X(function, reentrant) \
1321 __ ## function ## f16 ## reentrant ## _finite
1322# else
1323# error "non-disinct _Float16"
1324# endif
1325# include <bits/math-finite.h>
1326# undef _Mdouble_
1327# undef __MATH_DECLARING_DOUBLE
1328# undef __MATH_DECLARING_FLOATN
1329# undef __REDIRFROM_X
1330# undef __REDIRTO_X
1331# endif
1332
1333# if (__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !defined _LIBC)) \
1334 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1335# define _Mdouble_ _Float32
1336# define __MATH_DECLARING_DOUBLE 0
1337# define __MATH_DECLARING_FLOATN 1
1338# define __REDIRFROM_X(function, reentrant) \
1339 function ## f32 ## reentrant
1340# if __HAVE_DISTINCT_FLOAT32
1341# define __REDIRTO_X(function, reentrant) \
1342 __ ## function ## f32 ## reentrant ## _finite
1343# else
1344# define __REDIRTO_X(function, reentrant) \
1345 __ ## function ## f ## reentrant ## _finite
1346# endif
1347# include <bits/math-finite.h>
1348# undef _Mdouble_
1349# undef __MATH_DECLARING_DOUBLE
1350# undef __MATH_DECLARING_FLOATN
1351# undef __REDIRFROM_X
1352# undef __REDIRTO_X
1353# endif
1354
1355# if (__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !defined _LIBC)) \
1356 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1357# define _Mdouble_ _Float64
1358# define __MATH_DECLARING_DOUBLE 0
1359# define __MATH_DECLARING_FLOATN 1
1360# define __REDIRFROM_X(function, reentrant) \
1361 function ## f64 ## reentrant
1362# if __HAVE_DISTINCT_FLOAT64
1363# define __REDIRTO_X(function, reentrant) \
1364 __ ## function ## f64 ## reentrant ## _finite
1365# else
1366# define __REDIRTO_X(function, reentrant) \
1367 __ ## function ## reentrant ## _finite
1368# endif
1369# include <bits/math-finite.h>
1370# undef _Mdouble_
1371# undef __MATH_DECLARING_DOUBLE
1372# undef __MATH_DECLARING_FLOATN
1373# undef __REDIRFROM_X
1374# undef __REDIRTO_X
1375# endif
1376
1377# if (__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !defined _LIBC)) \
1378 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1379# define _Mdouble_ _Float128
1380# define __MATH_DECLARING_DOUBLE 0
1381# define __MATH_DECLARING_FLOATN 1
1382# define __REDIRFROM_X(function, reentrant) \
1383 function ## f128 ## reentrant
1384# if __HAVE_DISTINCT_FLOAT128
1385# define __REDIRTO_X(function, reentrant) \
1386 __ ## function ## f128 ## reentrant ## _finite
1387# else
1388# define __REDIRTO_X(function, reentrant) \
1389 __ ## function ## l ## reentrant ## _finite
1390# endif
1391# include <bits/math-finite.h>
1392# undef _Mdouble_
1393# undef __MATH_DECLARING_DOUBLE
1394# undef __MATH_DECLARING_FLOATN
1395# undef __REDIRFROM_X
1396# undef __REDIRTO_X
1397# endif
1398
1399# if (__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !defined _LIBC)) \
1400 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1401# define _Mdouble_ _Float32x
1402# define __MATH_DECLARING_DOUBLE 0
1403# define __MATH_DECLARING_FLOATN 1
1404# define __REDIRFROM_X(function, reentrant) \
1405 function ## f32x ## reentrant
1406# if __HAVE_DISTINCT_FLOAT32X
1407# define __REDIRTO_X(function, reentrant) \
1408 __ ## function ## f32x ## reentrant ## _finite
1409# else
1410# define __REDIRTO_X(function, reentrant) \
1411 __ ## function ## reentrant ## _finite
1412# endif
1413# include <bits/math-finite.h>
1414# undef _Mdouble_
1415# undef __MATH_DECLARING_DOUBLE
1416# undef __MATH_DECLARING_FLOATN
1417# undef __REDIRFROM_X
1418# undef __REDIRTO_X
1419# endif
1420
1421# if (__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !defined _LIBC)) \
1422 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1423# define _Mdouble_ _Float64x
1424# define __MATH_DECLARING_DOUBLE 0
1425# define __MATH_DECLARING_FLOATN 1
1426# define __REDIRFROM_X(function, reentrant) \
1427 function ## f64x ## reentrant
1428# if __HAVE_DISTINCT_FLOAT64X
1429# define __REDIRTO_X(function, reentrant) \
1430 __ ## function ## f64x ## reentrant ## _finite
1431# elif __HAVE_FLOAT64X_LONG_DOUBLE
1432# define __REDIRTO_X(function, reentrant) \
1433 __ ## function ## l ## reentrant ## _finite
1434# else
1435# define __REDIRTO_X(function, reentrant) \
1436 __ ## function ## f128 ## reentrant ## _finite
1437# endif
1438# include <bits/math-finite.h>
1439# undef _Mdouble_
1440# undef __MATH_DECLARING_DOUBLE
1441# undef __MATH_DECLARING_FLOATN
1442# undef __REDIRFROM_X
1443# undef __REDIRTO_X
1444# endif
1445
1446# if (__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !defined _LIBC)) \
1447 && __GLIBC_USE (IEC_60559_TYPES_EXT)
1448# define _Mdouble_ _Float128x
1449# define __MATH_DECLARING_DOUBLE 0
1450# define __MATH_DECLARING_FLOATN 1
1451# define __REDIRFROM_X(function, reentrant) \
1452 function ## f128x ## reentrant
1453# if __HAVE_DISTINCT_FLOAT128X
1454# define __REDIRTO_X(function, reentrant) \
1455 __ ## function ## f128x ## reentrant ## _finite
1456# else
1457# error "non-disinct _Float128x"
1458# endif
1459# include <bits/math-finite.h>
1460# undef _Mdouble_
1461# undef __MATH_DECLARING_DOUBLE
1462# undef __MATH_DECLARING_FLOATN
1463# undef __REDIRFROM_X
1464# undef __REDIRTO_X
1465# endif
1466
1467#endif /* __FINITE_MATH_ONLY__ > 0. */
14681248
1469#if __GLIBC_USE (IEC_60559_BFP_EXT)1249#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
1470/* An expression whose type has the widest of the evaluation formats1250/* An expression whose type has the widest of the evaluation formats
1471 of X and Y (which are of floating-point types). */1251 of X and Y (which are of floating-point types). */
1472# if __FLT_EVAL_METHOD__ == 2 || __FLT_EVAL_METHOD__ > 641252# if __FLT_EVAL_METHOD__ == 2 || __FLT_EVAL_METHOD__ > 64
lib/libc/include/generic-glibc/mcheck.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _MCHECK_H18#ifndef _MCHECK_H
19#define _MCHECK_H 119#define _MCHECK_H 1
lib/libc/include/generic-glibc/memory.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * SVID19 * SVID
lib/libc/include/generic-glibc/mntent.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Utilities for reading/writing fstab, mtab, etc.1/* Utilities for reading/writing fstab, mtab, etc.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MNTENT_H19#ifndef _MNTENT_H
20#define _MNTENT_H 120#define _MNTENT_H 1
lib/libc/include/generic-glibc/monetary.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Header file for monetary value formatting functions.1/* Header file for monetary value formatting functions.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MONETARY_H19#ifndef _MONETARY_H
20#define _MONETARY_H 120#define _MONETARY_H 1
lib/libc/include/generic-glibc/mqueue.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _MQUEUE_H18#ifndef _MQUEUE_H
19#define _MQUEUE_H 119#define _MQUEUE_H 1
lib/libc/include/generic-glibc/net/ethernet.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Based on the FreeBSD version of this file. Curiously, that file18/* Based on the FreeBSD version of this file. Curiously, that file
19 lacks a copyright in the header. */19 lacks a copyright in the header. */
lib/libc/include/generic-glibc/net/if.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* net/if.h -- declarations for inquiring about network interfaces1/* net/if.h -- declarations for inquiring about network interfaces
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _NET_IF_H19#ifndef _NET_IF_H
20#define _NET_IF_H 120#define _NET_IF_H 1
lib/libc/include/generic-glibc/net/if_arp.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for Address Resolution Protocol.1/* Definitions for Address Resolution Protocol.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.4 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20/* Based on the 4.4BSD and Linux version of this file. */20/* Based on the 4.4BSD and Linux version of this file. */
2121
lib/libc/include/generic-glibc/net/if_packet.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for use with Linux SOCK_PACKET sockets.1/* Definitions for use with Linux SOCK_PACKET sockets.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __IF_PACKET_H19#ifndef __IF_PACKET_H
20#define __IF_PACKET_H20#define __IF_PACKET_H
lib/libc/include/generic-glibc/net/if_shaper.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NET_IF_SHAPER_H18#ifndef _NET_IF_SHAPER_H
19#define _NET_IF_SHAPER_H 119#define _NET_IF_SHAPER_H 1
lib/libc/include/generic-glibc/net/if_slip.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NET_IF_SLIP_H18#ifndef _NET_IF_SLIP_H
19#define _NET_IF_SLIP_H 119#define _NET_IF_SLIP_H 1
lib/libc/include/generic-glibc/net/route.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Based on the 4.4BSD and Linux version of this file. */18/* Based on the 4.4BSD and Linux version of this file. */
1919
lib/libc/include/generic-glibc/netash/ash.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for use with Linux AF_ASH sockets.1/* Definitions for use with Linux AF_ASH sockets.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _NETASH_ASH_H19#ifndef _NETASH_ASH_H
20#define _NETASH_ASH_H 120#define _NETASH_ASH_H 1
lib/libc/include/generic-glibc/netatalk/at.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NETATALK_AT_H18#ifndef _NETATALK_AT_H
19#define _NETATALK_AT_H 119#define _NETATALK_AT_H 1
lib/libc/include/generic-glibc/netax25/ax25.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NETAX25_AX25_H18#ifndef _NETAX25_AX25_H
19#define _NETAX25_AX25_H 119#define _NETAX25_AX25_H 1
lib/libc/include/generic-glibc/netdb.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* All data returned by the network data base library are supplied in18/* All data returned by the network data base library are supplied in
19 host order and returned in network order (suitable for use in19 host order and returned in network order (suitable for use in
lib/libc/include/generic-glibc/neteconet/ec.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for use with Linux AF_ECONET sockets.1/* Definitions for use with Linux AF_ECONET sockets.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _NETECONET_EC_H19#ifndef _NETECONET_EC_H
20#define _NETECONET_EC_H 120#define _NETECONET_EC_H 1
lib/libc/include/generic-glibc/netinet/ether.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Functions for storing Ethernet addresses in ASCII and mapping to hostnames.1/* Functions for storing Ethernet addresses in ASCII and mapping to hostnames.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _NETINET_ETHER_H19#ifndef _NETINET_ETHER_H
20#define _NETINET_ETHER_H 120#define _NETINET_ETHER_H 1
lib/libc/include/generic-glibc/netinet/icmp6.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NETINET_ICMP6_H18#ifndef _NETINET_ICMP6_H
19#define _NETINET_ICMP6_H 119#define _NETINET_ICMP6_H 1
lib/libc/include/generic-glibc/netinet/if_ether.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef __NETINET_IF_ETHER_H18#ifndef __NETINET_IF_ETHER_H
1919
lib/libc/include/generic-glibc/netinet/if_fddi.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NETINET_IF_FDDI_H18#ifndef _NETINET_IF_FDDI_H
19#define _NETINET_IF_FDDI_H 119#define _NETINET_IF_FDDI_H 1
lib/libc/include/generic-glibc/netinet/if_tr.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NETINET_IF_TR_H18#ifndef _NETINET_IF_TR_H
19#define _NETINET_IF_TR_H 119#define _NETINET_IF_TR_H 1
lib/libc/include/generic-glibc/netinet/igmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NETINET_IGMP_H18#ifndef _NETINET_IGMP_H
19#define _NETINET_IGMP_H 119#define _NETINET_IGMP_H 1
lib/libc/include/generic-glibc/netinet/in.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NETINET_IN_H18#ifndef _NETINET_IN_H
19#define _NETINET_IN_H 119#define _NETINET_IN_H 1
lib/libc/include/generic-glibc/netinet/in_systm.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System specific type definitions for networking code.1/* System specific type definitions for networking code.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _NETINET_IN_SYSTM_H19#ifndef _NETINET_IN_SYSTM_H
20#define _NETINET_IN_SYSTM_H 120#define _NETINET_IN_SYSTM_H 1
lib/libc/include/generic-glibc/netinet/ip.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef __NETINET_IP_H18#ifndef __NETINET_IP_H
19#define __NETINET_IP_H 119#define __NETINET_IP_H 1
lib/libc/include/generic-glibc/netinet/ip6.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NETINET_IP6_H18#ifndef _NETINET_IP6_H
19#define _NETINET_IP6_H 119#define _NETINET_IP6_H 1
lib/libc/include/generic-glibc/netinet/ip_icmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef __NETINET_IP_ICMP_H18#ifndef __NETINET_IP_ICMP_H
19#define __NETINET_IP_ICMP_H 119#define __NETINET_IP_ICMP_H 1
lib/libc/include/generic-glibc/netinet/tcp.h+1
...@@ -79,6 +79,7 @@...@@ -79,6 +79,7 @@
79#define TCP_INQ 36 /* Notify bytes available to read79#define TCP_INQ 36 /* Notify bytes available to read
80 as a cmsg on read. */80 as a cmsg on read. */
81#define TCP_CM_INQ TCP_INQ81#define TCP_CM_INQ TCP_INQ
82#define TCP_TX_DELAY 37 /* Delay outgoing packets by XX usec. */
8283
83#define TCP_REPAIR_ON 184#define TCP_REPAIR_ON 1
84#define TCP_REPAIR_OFF 085#define TCP_REPAIR_OFF 0
lib/libc/include/generic-glibc/netinet/udp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * Copyright (C) 1982, 1986 Regents of the University of California.19 * Copyright (C) 1982, 1986 Regents of the University of California.
lib/libc/include/generic-glibc/netipx/ipx.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef __NETIPX_IPX_H18#ifndef __NETIPX_IPX_H
19#define __NETIPX_IPX_H 119#define __NETIPX_IPX_H 1
lib/libc/include/generic-glibc/netiucv/iucv.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef __NETIUCV_IUCV_H18#ifndef __NETIUCV_IUCV_H
19#define __NETIUCV_IUCV_H 119#define __NETIUCV_IUCV_H 1
lib/libc/include/generic-glibc/netpacket/packet.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for use with Linux AF_PACKET sockets.1/* Definitions for use with Linux AF_PACKET sockets.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __NETPACKET_PACKET_H19#ifndef __NETPACKET_PACKET_H
20#define __NETPACKET_PACKET_H 120#define __NETPACKET_PACKET_H 1
lib/libc/include/generic-glibc/netrom/netrom.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NETROM_NETROM_H18#ifndef _NETROM_NETROM_H
19#define _NETROM_NETROM_H 119#define _NETROM_NETROM_H 1
lib/libc/include/generic-glibc/netrose/rose.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for Rose packet radio address family.1/* Definitions for Rose packet radio address family.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* What follows is copied from the 2.1.93 <linux/rose.h>. */19/* What follows is copied from the 2.1.93 <linux/rose.h>. */
2020
lib/libc/include/generic-glibc/nl_types.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _NL_TYPES_H18#ifndef _NL_TYPES_H
19#define _NL_TYPES_H 119#define _NL_TYPES_H 1
lib/libc/include/generic-glibc/nss.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Define interface to NSS. This is meant for the interface functions18/* Define interface to NSS. This is meant for the interface functions
19 and for implementors of new services. */19 and for implementors of new services. */
lib/libc/include/generic-glibc/obstack.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* obstack.h - object stack macros1/* obstack.h - object stack macros
2 Copyright (C) 1988-2019 Free Software Foundation, Inc.2 Copyright (C) 1988-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* Summary:19/* Summary:
2020
lib/libc/include/generic-glibc/printf.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _PRINTF_H18#ifndef _PRINTF_H
1919
lib/libc/include/generic-glibc/proc_service.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Callback interface for libthread_db, functions users must define.1/* Callback interface for libthread_db, functions users must define.
2 Copyright (C) 1999-2019 Free Software Foundation, Inc.2 Copyright (C) 1999-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _PROC_SERVICE_H19#ifndef _PROC_SERVICE_H
20#define _PROC_SERVICE_H 120#define _PROC_SERVICE_H 1
lib/libc/include/generic-glibc/pthread.h+26-51
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,16 +13,16 @@...@@ -13,16 +13,16 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _PTHREAD_H18#ifndef _PTHREAD_H
19#define _PTHREAD_H 119#define _PTHREAD_H 1
2020
21#include <features.h>21#include <features.h>
22#include <endian.h>
23#include <sched.h>22#include <sched.h>
24#include <time.h>23#include <time.h>
2524
25#include <bits/endian.h>
26#include <bits/pthreadtypes.h>26#include <bits/pthreadtypes.h>
27#include <bits/setjmp.h>27#include <bits/setjmp.h>
28#include <bits/wordsize.h>28#include <bits/wordsize.h>
...@@ -83,30 +83,15 @@ enum...@@ -83,30 +83,15 @@ enum
83#endif83#endif
8484
8585
86#if __PTHREAD_MUTEX_HAVE_PREV86#define PTHREAD_MUTEX_INITIALIZER \
87# define PTHREAD_MUTEX_INITIALIZER \87 { { __PTHREAD_MUTEX_INITIALIZER (PTHREAD_MUTEX_TIMED_NP) } }
88 { { 0, 0, 0, 0, 0, __PTHREAD_SPINS, { 0, 0 } } }88#ifdef __USE_GNU
89# ifdef __USE_GNU89# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
90# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \90 { { __PTHREAD_MUTEX_INITIALIZER (PTHREAD_MUTEX_RECURSIVE_NP) } }
91 { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, __PTHREAD_SPINS, { 0, 0 } } }91# define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
92# define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \92 { { __PTHREAD_MUTEX_INITIALIZER (PTHREAD_MUTEX_ERRORCHECK_NP) } }
93 { { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, __PTHREAD_SPINS, { 0, 0 } } }93# define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
94# define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \94 { { __PTHREAD_MUTEX_INITIALIZER (PTHREAD_MUTEX_ADAPTIVE_NP) } }
95 { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, __PTHREAD_SPINS, { 0, 0 } } }
96
97# endif
98#else
99# define PTHREAD_MUTEX_INITIALIZER \
100 { { 0, 0, 0, 0, 0, { __PTHREAD_SPINS } } }
101# ifdef __USE_GNU
102# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
103 { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { __PTHREAD_SPINS } } }
104# define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
105 { { 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0, { __PTHREAD_SPINS } } }
106# define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
107 { { 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0, { __PTHREAD_SPINS } } }
108
109# endif
110#endif95#endif
11196
11297
...@@ -120,34 +105,13 @@ enum...@@ -120,34 +105,13 @@ enum
120 PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP105 PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP
121};106};
122107
123/* Define __PTHREAD_RWLOCK_INT_FLAGS_SHARED to 1 if pthread_rwlock_t
124 has the shared field. All 64-bit architectures have the shared field
125 in pthread_rwlock_t. */
126#ifndef __PTHREAD_RWLOCK_INT_FLAGS_SHARED
127# if __WORDSIZE == 64
128# define __PTHREAD_RWLOCK_INT_FLAGS_SHARED 1
129# endif
130#endif
131108
132/* Read-write lock initializers. */109/* Read-write lock initializers. */
133# define PTHREAD_RWLOCK_INITIALIZER \110# define PTHREAD_RWLOCK_INITIALIZER \
134 { { 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, 0 } }111 { { __PTHREAD_RWLOCK_INITIALIZER (PTHREAD_RWLOCK_DEFAULT_NP) } }
135# ifdef __USE_GNU112# ifdef __USE_GNU
136# ifdef __PTHREAD_RWLOCK_INT_FLAGS_SHARED113# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
137# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \114 { { __PTHREAD_RWLOCK_INITIALIZER (PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP) } }
138 { { 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, \
139 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP } }
140# else
141# if __BYTE_ORDER == __LITTLE_ENDIAN
142# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
143 { { 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, \
144 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, 0 } }
145# else
146# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
147 { { 0, 0, 0, 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP,\
148 0 } }
149# endif
150# endif
151# endif115# endif
152#endif /* Unix98 or XOpen2K */116#endif /* Unix98 or XOpen2K */
153117
...@@ -263,6 +227,17 @@ extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) __THROW;...@@ -263,6 +227,17 @@ extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) __THROW;
263 __THROW. */227 __THROW. */
264extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return,228extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return,
265 const struct timespec *__abstime);229 const struct timespec *__abstime);
230
231/* Make calling thread wait for termination of the thread TH, but only
232 until TIMEOUT measured against the clock specified by CLOCKID. The
233 exit status of the thread is stored in *THREAD_RETURN, if
234 THREAD_RETURN is not NULL.
235
236 This function is a cancellation point and therefore not marked with
237 __THROW. */
238extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return,
239 clockid_t __clockid,
240 const struct timespec *__abstime);
266#endif241#endif
267242
268/* Indicate that the thread TH is never to be joined with PTHREAD_JOIN.243/* Indicate that the thread TH is never to be joined with PTHREAD_JOIN.
lib/libc/include/generic-glibc/pty.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Functions for pseudo TTY handling.1/* Functions for pseudo TTY handling.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _PTY_H19#ifndef _PTY_H
20#define _PTY_H 120#define _PTY_H 1
lib/libc/include/generic-glibc/pwd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 9.2.2 User Database Access <pwd.h>19 * POSIX Standard: 9.2.2 User Database Access <pwd.h>
lib/libc/include/generic-glibc/re_comp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _RE_COMP_H18#ifndef _RE_COMP_H
19#define _RE_COMP_H 119#define _RE_COMP_H 1
lib/libc/include/generic-glibc/regdef.h+2-3
...@@ -1,6 +1,5 @@...@@ -1,6 +1,5 @@
1/* Copyright (C) 1994-2019 Free Software Foundation, Inc.1/* Copyright (C) 1994-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Ralf Baechle <ralf@gnu.org>.
43
5 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public5 modify it under the terms of the GNU Lesser General Public
...@@ -14,7 +13,7 @@...@@ -14,7 +13,7 @@
1413
15 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1817
19#ifndef _REGDEF_H18#ifndef _REGDEF_H
20#define _REGDEF_H19#define _REGDEF_H
lib/libc/include/generic-glibc/regex.h+1-1
...@@ -1,6 +1,6 @@...@@ -1,6 +1,6 @@
1/* Definitions for data structures and routines for the regular1/* Definitions for data structures and routines for the regular
2 expression library.2 expression library.
3 Copyright (C) 1985, 1989-2019 Free Software Foundation, Inc.3 Copyright (C) 1985, 1989-2020 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
6 The GNU C Library is free software; you can redistribute it and/or6 The GNU C Library is free software; you can redistribute it and/or
lib/libc/include/generic-glibc/regexp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.3 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _REGEXP_H19#ifndef _REGEXP_H
20#define _REGEXP_H 120#define _REGEXP_H 1
lib/libc/include/generic-glibc/resolv.h+1
...@@ -131,6 +131,7 @@ struct res_sym {...@@ -131,6 +131,7 @@ struct res_sym {
131#define RES_NOTLDQUERY 0x01000000 /* Do not look up unqualified name131#define RES_NOTLDQUERY 0x01000000 /* Do not look up unqualified name
132 as a TLD. */132 as a TLD. */
133#define RES_NORELOAD 0x02000000 /* No automatic configuration reload. */133#define RES_NORELOAD 0x02000000 /* No automatic configuration reload. */
134#define RES_TRUSTAD 0x04000000 /* Request AD bit, keep it in responses. */
134135
135#define RES_DEFAULT (RES_RECURSE|RES_DEFNAMES|RES_DNSRCH)136#define RES_DEFAULT (RES_RECURSE|RES_DEFNAMES|RES_DNSRCH)
136137
lib/libc/include/generic-glibc/sched.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface.1/* Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SCHED_H19#ifndef _SCHED_H
20#define _SCHED_H 120#define _SCHED_H 1
lib/libc/include/generic-glibc/scsi/scsi.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * This header file contains public constants and structures used by19 * This header file contains public constants and structures used by
lib/libc/include/generic-glibc/scsi/scsi_ioctl.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SCSI_IOCTL_H18#ifndef _SCSI_IOCTL_H
19#define _SCSI_IOCTL_H19#define _SCSI_IOCTL_H
lib/libc/include/generic-glibc/scsi/sg.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 History:19 History:
lib/libc/include/generic-glibc/search.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Declarations for System V style searching functions.1/* Declarations for System V style searching functions.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SEARCH_H19#ifndef _SEARCH_H
20#define _SEARCH_H 120#define _SEARCH_H 1
lib/libc/include/generic-glibc/semaphore.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SEMAPHORE_H18#ifndef _SEMAPHORE_H
19#define _SEMAPHORE_H 119#define _SEMAPHORE_H 1
lib/libc/include/generic-glibc/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.13 Nonlocal jumps <setjmp.h>19 * ISO C99 Standard: 7.13 Nonlocal jumps <setjmp.h>
lib/libc/include/generic-glibc/sgidefs.h+2-3
...@@ -1,6 +1,5 @@...@@ -1,6 +1,5 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Ralf Baechle <ralf@gnu.org>.
43
5 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public5 modify it under the terms of the GNU Lesser General Public
...@@ -14,7 +13,7 @@...@@ -14,7 +13,7 @@
1413
15 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1817
19#ifndef _SGIDEFS_H18#ifndef _SGIDEFS_H
20#define _SGIDEFS_H 119#define _SGIDEFS_H 1
lib/libc/include/generic-glibc/sgtty.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SGTTY_H18#ifndef _SGTTY_H
19#define _SGTTY_H 119#define _SGTTY_H 1
lib/libc/include/generic-glibc/shadow.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Declaration of types and functions for "shadow" storage of hashed18/* Declaration of types and functions for "shadow" storage of hashed
19 passphrases. The shadow database is like the user database, but is19 passphrases. The shadow database is like the user database, but is
lib/libc/include/generic-glibc/signal.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.14 Signal handling <signal.h>19 * ISO C99 Standard: 7.14 Signal handling <signal.h>
lib/libc/include/generic-glibc/spawn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX spawn interface.1/* Definitions for POSIX spawn interface.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SPAWN_H19#ifndef _SPAWN_H
20#define _SPAWN_H 120#define _SPAWN_H 1
lib/libc/include/generic-glibc/stdc-predef.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _STDC_PREDEF_H18#ifndef _STDC_PREDEF_H
19#define _STDC_PREDEF_H 119#define _STDC_PREDEF_H 1
lib/libc/include/generic-glibc/stdint.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99: 7.18 Integer types <stdint.h>19 * ISO C99: 7.18 Integer types <stdint.h>
...@@ -273,7 +273,7 @@ typedef __uintmax_t uintmax_t;...@@ -273,7 +273,7 @@ typedef __uintmax_t uintmax_t;
273# define UINTMAX_C(c) c ## ULL273# define UINTMAX_C(c) c ## ULL
274# endif274# endif
275275
276#if __GLIBC_USE (IEC_60559_BFP_EXT)276#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
277277
278# define INT8_WIDTH 8278# define INT8_WIDTH 8
279# define UINT8_WIDTH 8279# define UINT8_WIDTH 8
lib/libc/include/generic-glibc/stdio.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define ISO C stdio on top of C++ iostreams.1/* Define ISO C stdio on top of C++ iostreams.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * ISO C99 Standard: 7.19 Input/output <stdio.h>20 * ISO C99 Standard: 7.19 Input/output <stdio.h>
lib/libc/include/generic-glibc/stdio_ext.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Functions to access FILE structure internals.1/* Functions to access FILE structure internals.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This header contains the same definitions as the header of the same name19/* This header contains the same definitions as the header of the same name
20 on Sun's Solaris OS. */20 on Sun's Solaris OS. */
lib/libc/include/generic-glibc/stdlib.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.20 General utilities <stdlib.h>19 * ISO C99 Standard: 7.20 General utilities <stdlib.h>
...@@ -208,7 +208,7 @@ extern unsigned long long int strtoull (const char *__restrict __nptr,...@@ -208,7 +208,7 @@ extern unsigned long long int strtoull (const char *__restrict __nptr,
208#endif /* ISO C99 or use MISC. */208#endif /* ISO C99 or use MISC. */
209209
210/* Convert a floating-point number to a string. */210/* Convert a floating-point number to a string. */
211#if __GLIBC_USE (IEC_60559_BFP_EXT)211#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
212extern int strfromd (char *__dest, size_t __size, const char *__format,212extern int strfromd (char *__dest, size_t __size, const char *__format,
213 double __f)213 double __f)
214 __THROW __nonnull ((3));214 __THROW __nonnull ((3));
lib/libc/include/generic-glibc/string.h+7-6
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.21 String handling <string.h>19 * ISO C99 Standard: 7.21 String handling <string.h>
...@@ -33,7 +33,8 @@ __BEGIN_DECLS...@@ -33,7 +33,8 @@ __BEGIN_DECLS
33#include <stddef.h>33#include <stddef.h>
3434
35/* Tell the caller that we provide correct C++ prototypes. */35/* Tell the caller that we provide correct C++ prototypes. */
36#if defined __cplusplus && __GNUC_PREREQ (4, 4)36#if defined __cplusplus && (__GNUC_PREREQ (4, 4) \
37 || __glibc_clang_prereq (3, 5))
37# define __CORRECT_ISO_CPP_STRING_H_PROTO38# define __CORRECT_ISO_CPP_STRING_H_PROTO
38#endif39#endif
3940
...@@ -49,7 +50,7 @@ extern void *memmove (void *__dest, const void *__src, size_t __n)...@@ -49,7 +50,7 @@ extern void *memmove (void *__dest, const void *__src, size_t __n)
49/* Copy no more than N bytes of SRC to DEST, stopping when C is found.50/* Copy no more than N bytes of SRC to DEST, stopping when C is found.
50 Return the position in DEST one byte past where C was copied,51 Return the position in DEST one byte past where C was copied,
51 or NULL if C was not found in the first N bytes of SRC. */52 or NULL if C was not found in the first N bytes of SRC. */
52#if defined __USE_MISC || defined __USE_XOPEN53#if defined __USE_MISC || defined __USE_XOPEN || __GLIBC_USE (ISOC2X)
53extern void *memccpy (void *__restrict __dest, const void *__restrict __src,54extern void *memccpy (void *__restrict __dest, const void *__restrict __src,
54 int __c, size_t __n)55 int __c, size_t __n)
55 __THROW __nonnull ((1, 2));56 __THROW __nonnull ((1, 2));
...@@ -161,7 +162,7 @@ extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,...@@ -161,7 +162,7 @@ extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,
161#endif162#endif
162163
163#if (defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 \164#if (defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 \
164 || __GLIBC_USE (LIB_EXT2))165 || __GLIBC_USE (LIB_EXT2) || __GLIBC_USE (ISOC2X))
165/* Duplicate S, returning an identical malloc'd string. */166/* Duplicate S, returning an identical malloc'd string. */
166extern char *strdup (const char *__s)167extern char *strdup (const char *__s)
167 __THROW __attribute_malloc__ __nonnull ((1));168 __THROW __attribute_malloc__ __nonnull ((1));
...@@ -170,7 +171,7 @@ extern char *strdup (const char *__s)...@@ -170,7 +171,7 @@ extern char *strdup (const char *__s)
170/* Return a malloc'd copy of at most N bytes of STRING. The171/* Return a malloc'd copy of at most N bytes of STRING. The
171 resultant string is terminated even if no null terminator172 resultant string is terminated even if no null terminator
172 appears before STRING[N]. */173 appears before STRING[N]. */
173#if defined __USE_XOPEN2K8 || __GLIBC_USE (LIB_EXT2)174#if defined __USE_XOPEN2K8 || __GLIBC_USE (LIB_EXT2) || __GLIBC_USE (ISOC2X)
174extern char *strndup (const char *__string, size_t __n)175extern char *strndup (const char *__string, size_t __n)
175 __THROW __attribute_malloc__ __nonnull ((1));176 __THROW __attribute_malloc__ __nonnull ((1));
176#endif177#endif
lib/libc/include/generic-glibc/strings.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _STRINGS_H18#ifndef _STRINGS_H
19#define _STRINGS_H 119#define _STRINGS_H 1
lib/libc/include/generic-glibc/sys/acct.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,14 +13,14 @@...@@ -13,14 +13,14 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_ACCT_H18#ifndef _SYS_ACCT_H
19#define _SYS_ACCT_H 119#define _SYS_ACCT_H 1
2020
21#include <sys/types.h>21#include <sys/types.h>
22#include <stdint.h>22#include <stdint.h>
23#include <endian.h>23#include <bits/endian.h>
24#include <bits/types/time_t.h>24#include <bits/types/time_t.h>
2525
26__BEGIN_DECLS26__BEGIN_DECLS
lib/libc/include/generic-glibc/sys/asm.h+2-3
...@@ -1,6 +1,5 @@...@@ -1,6 +1,5 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Ralf Baechle <ralf@gnu.org>.
43
5 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public5 modify it under the terms of the GNU Lesser General Public
...@@ -14,7 +13,7 @@...@@ -14,7 +13,7 @@
1413
15 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1817
19#ifndef _SYS_ASM_H18#ifndef _SYS_ASM_H
20#define _SYS_ASM_H19#define _SYS_ASM_H
lib/libc/include/generic-glibc/sys/auxv.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Access to the auxiliary vector.1/* Access to the auxiliary vector.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_AUXV_H19#ifndef _SYS_AUXV_H
20#define _SYS_AUXV_H 120#define _SYS_AUXV_H 1
lib/libc/include/generic-glibc/sys/cachectl.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_CACHECTL_H18#ifndef _SYS_CACHECTL_H
19#define _SYS_CACHECTL_H 119#define _SYS_CACHECTL_H 1
lib/libc/include/generic-glibc/sys/cdefs.h+2-10
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_CDEFS_H18#ifndef _SYS_CDEFS_H
19#define _SYS_CDEFS_H 119#define _SYS_CDEFS_H 1
...@@ -412,14 +412,6 @@...@@ -412,14 +412,6 @@
412# define __glibc_has_attribute(attr) 0412# define __glibc_has_attribute(attr) 0
413#endif413#endif
414414
415#ifdef __has_include
416/* Do not use a function-like macro, so that __has_include can inhibit
417 macro expansion. */
418# define __glibc_has_include __has_include
419#else
420# define __glibc_has_include(header) 0
421#endif
422
423#if (!defined _Noreturn \415#if (!defined _Noreturn \
424 && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \416 && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \
425 && !__GNUC_PREREQ (4,7))417 && !__GNUC_PREREQ (4,7))
lib/libc/include/generic-glibc/sys/debugreg.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_DEBUGREG_H18#ifndef _SYS_DEBUGREG_H
19#define _SYS_DEBUGREG_H 119#define _SYS_DEBUGREG_H 1
lib/libc/include/generic-glibc/sys/dir.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_DIR_H18#ifndef _SYS_DIR_H
19#define _SYS_DIR_H 119#define _SYS_DIR_H 1
lib/libc/include/generic-glibc/sys/elf.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_ELF_H18#ifndef _SYS_ELF_H
19#define _SYS_ELF_H 119#define _SYS_ELF_H 1
lib/libc/include/generic-glibc/sys/epoll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EPOLL_H18#ifndef _SYS_EPOLL_H
19#define _SYS_EPOLL_H 119#define _SYS_EPOLL_H 1
lib/libc/include/generic-glibc/sys/eventfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EVENTFD_H18#ifndef _SYS_EVENTFD_H
19#define _SYS_EVENTFD_H 119#define _SYS_EVENTFD_H 1
lib/libc/include/generic-glibc/sys/fanotify.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2010-2019 Free Software Foundation, Inc.1/* Copyright (C) 2010-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_FANOTIFY_H18#ifndef _SYS_FANOTIFY_H
19#define _SYS_FANOTIFY_H 119#define _SYS_FANOTIFY_H 1
lib/libc/include/generic-glibc/sys/file.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_FILE_H18#ifndef _SYS_FILE_H
19#define _SYS_FILE_H 119#define _SYS_FILE_H 1
lib/libc/include/generic-glibc/sys/fpregdef.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_FPREGDEF_H18#ifndef _SYS_FPREGDEF_H
19#define _SYS_FPREGDEF_H19#define _SYS_FPREGDEF_H
lib/libc/include/generic-glibc/sys/fsuid.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_FSUID_H18#ifndef _SYS_FSUID_H
19#define _SYS_FSUID_H 119#define _SYS_FSUID_H 1
lib/libc/include/generic-glibc/sys/gmon_out.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by David Mosberger <davidm@cs.arizona.edu>.3 Contributed by David Mosberger <davidm@cs.arizona.edu>.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This file specifies the format of gmon.out files. It should have19/* This file specifies the format of gmon.out files. It should have
20 as few external dependencies as possible as it is going to be included20 as few external dependencies as possible as it is going to be included
lib/libc/include/generic-glibc/sys/ifunc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions used by AArch64 indirect function resolvers.1/* Definitions used by AArch64 indirect function resolvers.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IFUNC_H19#ifndef _SYS_IFUNC_H
20#define _SYS_IFUNC_H20#define _SYS_IFUNC_H
lib/libc/include/generic-glibc/sys/inotify.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_INOTIFY_H18#ifndef _SYS_INOTIFY_H
19#define _SYS_INOTIFY_H 119#define _SYS_INOTIFY_H 1
lib/libc/include/generic-glibc/sys/io.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_IO_H18#ifndef _SYS_IO_H
19#define _SYS_IO_H 119#define _SYS_IO_H 1
lib/libc/include/generic-glibc/sys/ioctl.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_IOCTL_H18#ifndef _SYS_IOCTL_H
19#define _SYS_IOCTL_H 119#define _SYS_IOCTL_H 1
lib/libc/include/generic-glibc/sys/ipc.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_IPC_H18#ifndef _SYS_IPC_H
19#define _SYS_IPC_H 119#define _SYS_IPC_H 1
lib/libc/include/generic-glibc/sys/kd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_KD_H18#ifndef _SYS_KD_H
19#define _SYS_KD_H 119#define _SYS_KD_H 1
lib/libc/include/generic-glibc/sys/klog.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_KLOG_H18#ifndef _SYS_KLOG_H
1919
lib/libc/include/generic-glibc/sys/mman.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for BSD-style memory management.1/* Definitions for BSD-style memory management.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20#define _SYS_MMAN_H 120#define _SYS_MMAN_H 1
lib/libc/include/generic-glibc/sys/mount.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Header file for mounting/unmount Linux filesystems.1/* Header file for mounting/unmount Linux filesystems.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This is taken from /usr/include/linux/fs.h. */19/* This is taken from /usr/include/linux/fs.h. */
2020
lib/libc/include/generic-glibc/sys/msg.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_MSG_H18#ifndef _SYS_MSG_H
19#define _SYS_MSG_H19#define _SYS_MSG_H
lib/libc/include/generic-glibc/sys/mtio.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structures and definitions for magnetic tape I/O control commands.1/* Structures and definitions for magnetic tape I/O control commands.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* Written by H. Bergman <hennus@cybercomm.nl>. */19/* Written by H. Bergman <hennus@cybercomm.nl>. */
2020
lib/libc/include/generic-glibc/sys/param.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Compatibility header for old-style Unix parameters and limits.1/* Compatibility header for old-style Unix parameters and limits.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PARAM_H19#ifndef _SYS_PARAM_H
20#define _SYS_PARAM_H 120#define _SYS_PARAM_H 1
lib/libc/include/generic-glibc/sys/pci.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_PCI_H18#ifndef _SYS_PCI_H
19#define _SYS_PCI_H 119#define _SYS_PCI_H 1
lib/libc/include/generic-glibc/sys/perm.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_PERM_H18#ifndef _SYS_PERM_H
1919
lib/libc/include/generic-glibc/sys/personality.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Taken verbatim from Linux 2.6 (include/linux/personality.h). */18/* Taken verbatim from Linux 2.6 (include/linux/personality.h). */
1919
lib/libc/include/generic-glibc/sys/platform/ppc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Facilities specific to the PowerPC architecture1/* Facilities specific to the PowerPC architecture
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PLATFORM_PPC_H19#ifndef _SYS_PLATFORM_PPC_H
20#define _SYS_PLATFORM_PPC_H 120#define _SYS_PLATFORM_PPC_H 1
lib/libc/include/generic-glibc/sys/poll.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Compatibility definitions for System V `poll' interface.1/* Compatibility definitions for System V `poll' interface.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_POLL_H19#ifndef _SYS_POLL_H
20#define _SYS_POLL_H 120#define _SYS_POLL_H 1
lib/libc/include/generic-glibc/sys/prctl.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_PRCTL_H18#ifndef _SYS_PRCTL_H
19#define _SYS_PRCTL_H 119#define _SYS_PRCTL_H 1
lib/libc/include/generic-glibc/sys/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for core files and libthread_db. Generic Linux version.1/* Definitions for core files and libthread_db. Generic Linux version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21#define _SYS_PROCFS_H 121#define _SYS_PROCFS_H 1
lib/libc/include/generic-glibc/sys/profil.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _PROFIL_H18#ifndef _PROFIL_H
19#define _PROFIL_H 119#define _PROFIL_H 1
lib/libc/include/generic-glibc/sys/ptrace.h+7-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux version.1/* `ptrace' debugger support interface. Linux version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PTRACE_H20#ifndef _SYS_PTRACE_H
21#define _SYS_PTRACE_H 121#define _SYS_PTRACE_H 1
...@@ -166,8 +166,12 @@ enum __ptrace_request...@@ -166,8 +166,12 @@ enum __ptrace_request
166#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER166#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
167167
168 /* Get seccomp BPF filter metadata. */168 /* Get seccomp BPF filter metadata. */
169 PTRACE_SECCOMP_GET_METADATA = 0x420d169 PTRACE_SECCOMP_GET_METADATA = 0x420d,
170#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA170#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
171
172 /* Get information about system call. */
173 PTRACE_GET_SYSCALL_INFO = 0x420e
174#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
171};175};
172176
173177
lib/libc/include/generic-glibc/sys/quota.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* This just represents the non-kernel parts of <linux/quota.h>.1/* This just represents the non-kernel parts of <linux/quota.h>.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * Copyright (c) 1982, 1986 Regents of the University of California.20 * Copyright (c) 1982, 1986 Regents of the University of California.
lib/libc/include/generic-glibc/sys/random.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Interfaces for obtaining random bytes.1/* Interfaces for obtaining random bytes.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_RANDOM_H19#ifndef _SYS_RANDOM_H
20#define _SYS_RANDOM_H 120#define _SYS_RANDOM_H 1
lib/libc/include/generic-glibc/sys/raw.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_RAW_H18#ifndef _SYS_RAW_H
19#define _SYS_RAW_H 119#define _SYS_RAW_H 1
lib/libc/include/generic-glibc/sys/reboot.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* This file should define RB_* macros to be used as flag18/* This file should define RB_* macros to be used as flag
19 bits in the argument to the `reboot' system call. */19 bits in the argument to the `reboot' system call. */
lib/libc/include/generic-glibc/sys/reg.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_REG_H18#ifndef _SYS_REG_H
19#define _SYS_REG_H 119#define _SYS_REG_H 1
lib/libc/include/generic-glibc/sys/regdef.h+2-3
...@@ -1,6 +1,5 @@...@@ -1,6 +1,5 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Ralf Baechle <ralf@gnu.org>.
43
5 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public5 modify it under the terms of the GNU Lesser General Public
...@@ -14,7 +13,7 @@...@@ -14,7 +13,7 @@
1413
15 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1817
19#ifndef _SYS_REGDEF_H18#ifndef _SYS_REGDEF_H
20#define _SYS_REGDEF_H19#define _SYS_REGDEF_H
lib/libc/include/generic-glibc/sys/resource.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_RESOURCE_H18#ifndef _SYS_RESOURCE_H
19#define _SYS_RESOURCE_H 119#define _SYS_RESOURCE_H 1
lib/libc/include/generic-glibc/sys/select.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `fd_set' type and related macros, and `select'/`pselect' declarations.1/* `fd_set' type and related macros, and `select'/`pselect' declarations.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h> */19/* POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h> */
2020
lib/libc/include/generic-glibc/sys/sem.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SEM_H18#ifndef _SYS_SEM_H
19#define _SYS_SEM_H 119#define _SYS_SEM_H 1
lib/libc/include/generic-glibc/sys/sendfile.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* sendfile -- copy data directly from one file descriptor to another1/* sendfile -- copy data directly from one file descriptor to another
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SENDFILE_H19#ifndef _SYS_SENDFILE_H
20#define _SYS_SENDFILE_H 120#define _SYS_SENDFILE_H 1
lib/libc/include/generic-glibc/sys/shm.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SHM_H18#ifndef _SYS_SHM_H
19#define _SYS_SHM_H 119#define _SYS_SHM_H 1
lib/libc/include/generic-glibc/sys/signalfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SIGNALFD_H18#ifndef _SYS_SIGNALFD_H
19#define _SYS_SIGNALFD_H 119#define _SYS_SIGNALFD_H 1
lib/libc/include/generic-glibc/sys/socket.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Declarations of socket constants, types, and functions.1/* Declarations of socket constants, types, and functions.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20#define _SYS_SOCKET_H 120#define _SYS_SOCKET_H 1
lib/libc/include/generic-glibc/sys/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 5.6 File Characteristics <sys/stat.h>19 * POSIX Standard: 5.6 File Characteristics <sys/stat.h>
lib/libc/include/generic-glibc/sys/statfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for getting information about a filesystem.1/* Definitions for getting information about a filesystem.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_STATFS_H19#ifndef _SYS_STATFS_H
20#define _SYS_STATFS_H 120#define _SYS_STATFS_H 1
lib/libc/include/generic-glibc/sys/statvfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for getting information about a filesystem.1/* Definitions for getting information about a filesystem.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_STATVFS_H19#ifndef _SYS_STATVFS_H
20#define _SYS_STATVFS_H 120#define _SYS_STATVFS_H 1
lib/libc/include/generic-glibc/sys/swap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Calls to enable and disable swapping on specified locations. Linux version.1/* Calls to enable and disable swapping on specified locations. Linux version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SWAP_H19#ifndef _SYS_SWAP_H
2020
lib/libc/include/generic-glibc/sys/syscall.h+6-9
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYSCALL_H18#ifndef _SYSCALL_H
19#define _SYSCALL_H 119#define _SYSCALL_H 1
...@@ -23,12 +23,9 @@...@@ -23,12 +23,9 @@
23 from the kernel sources. */23 from the kernel sources. */
24#include <asm/unistd.h>24#include <asm/unistd.h>
2525
26#ifndef _LIBC26/* The Linux kernel header file defines macros __NR_*, but some
27/* The Linux kernel header file defines macros `__NR_<name>', but some27 programs expect the traditional form SYS_*. <bits/syscall.h>
28 programs expect the traditional form `SYS_<name>'. So in building libc28 defines SYS_* macros for __NR_* macros of known names. */
29 we scan the kernel's list and produce <bits/syscall.h> with macros for29#include <bits/syscall.h>
30 all the `SYS_' names. */
31# include <bits/syscall.h>
32#endif
3330
34#endif31#endif
\ No newline at end of file
lib/libc/include/generic-glibc/sys/sysctl.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SYSCTL_H18#ifndef _SYS_SYSCTL_H
19#define _SYS_SYSCTL_H 119#define _SYS_SYSCTL_H 1
lib/libc/include/generic-glibc/sys/sysinfo.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SYSINFO_H18#ifndef _SYS_SYSINFO_H
19#define _SYS_SYSINFO_H 119#define _SYS_SYSINFO_H 1
lib/libc/include/generic-glibc/sys/sysmacros.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions of macros to access `dev_t' values.1/* Definitions of macros to access `dev_t' values.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SYSMACROS_H19#ifndef _SYS_SYSMACROS_H
20#define _SYS_SYSMACROS_H 120#define _SYS_SYSMACROS_H 1
lib/libc/include/generic-glibc/sys/sysmips.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SYSMIPS_H18#ifndef _SYS_SYSMIPS_H
19#define _SYS_SYSMIPS_H 119#define _SYS_SYSMIPS_H 1
lib/libc/include/generic-glibc/sys/tas.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Maciej W. Rozycki <macro@ds2.pg.gda.pl>, 2000.3 Contributed by Maciej W. Rozycki <macro@ds2.pg.gda.pl>, 2000.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_TAS_H19#ifndef _SYS_TAS_H
20#define _SYS_TAS_H 120#define _SYS_TAS_H 1
lib/libc/include/generic-glibc/sys/time.h+14-13
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIME_H18#ifndef _SYS_TIME_H
19#define _SYS_TIME_H 119#define _SYS_TIME_H 1
...@@ -54,23 +54,24 @@ struct timezone...@@ -54,23 +54,24 @@ struct timezone
54 int tz_minuteswest; /* Minutes west of GMT. */54 int tz_minuteswest; /* Minutes west of GMT. */
55 int tz_dsttime; /* Nonzero if DST is ever in effect. */55 int tz_dsttime; /* Nonzero if DST is ever in effect. */
56 };56 };
57
58typedef struct timezone *__restrict __timezone_ptr_t;
59#else
60typedef void *__restrict __timezone_ptr_t;
61#endif57#endif
6258
63/* Get the current time of day and timezone information,59/* Get the current time of day, putting it into *TV.
64 putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled.60 If TZ is not null, *TZ must be a struct timezone, and both fields
65 Returns 0 on success, -1 on errors.61 will be set to zero.
66 NOTE: This form of timezone information is obsolete.62 Calling this function with a non-null TZ is obsolete;
67 Use the functions and variables declared in <time.h> instead. */63 use localtime etc. instead.
64 This function itself is semi-obsolete;
65 most callers should use time or clock_gettime instead. */
68extern int gettimeofday (struct timeval *__restrict __tv,66extern int gettimeofday (struct timeval *__restrict __tv,
69 __timezone_ptr_t __tz) __THROW __nonnull ((1));67 void *__restrict __tz) __THROW __nonnull ((1));
7068
71#ifdef __USE_MISC69#ifdef __USE_MISC
72/* Set the current time of day and timezone information.70/* Set the current time of day and timezone information.
73 This call is restricted to the super-user. */71 This call is restricted to the super-user.
72 Setting the timezone in this way is obsolete, but we don't yet
73 warn about it because it still has some uses for which there is
74 no alternative. */
74extern int settimeofday (const struct timeval *__tv,75extern int settimeofday (const struct timeval *__tv,
75 const struct timezone *__tz)76 const struct timezone *__tz)
76 __THROW;77 __THROW;
lib/libc/include/generic-glibc/sys/timeb.h+4-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1994-2019 Free Software Foundation, Inc.1/* Copyright (C) 1994-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIMEB_H18#ifndef _SYS_TIMEB_H
19#define _SYS_TIMEB_H 119#define _SYS_TIMEB_H 1
...@@ -36,7 +36,8 @@ struct timeb...@@ -36,7 +36,8 @@ struct timeb
3636
37/* Fill in TIMEBUF with information about the current time. */37/* Fill in TIMEBUF with information about the current time. */
3838
39extern int ftime (struct timeb *__timebuf);39extern int ftime (struct timeb *__timebuf)
40 __nonnull ((1)) __attribute_deprecated__;
4041
41__END_DECLS42__END_DECLS
4243
lib/libc/include/generic-glibc/sys/timerfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2008-2019 Free Software Foundation, Inc.1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIMERFD_H18#ifndef _SYS_TIMERFD_H
19#define _SYS_TIMERFD_H 119#define _SYS_TIMERFD_H 1
lib/libc/include/generic-glibc/sys/times.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 4.5.2 Process Times <sys/times.h>19 * POSIX Standard: 4.5.2 Process Times <sys/times.h>
lib/libc/include/generic-glibc/sys/timex.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIMEX_H18#ifndef _SYS_TIMEX_H
19#define _SYS_TIMEX_H 119#define _SYS_TIMEX_H 1
lib/libc/include/generic-glibc/sys/types.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>19 * POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
lib/libc/include/generic-glibc/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc. This file is part of the GNU C Library.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc. This file is part of the GNU C Library.
22
3 The GNU C Library is free software; you can redistribute it and/or3 The GNU C Library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Lesser General Public4 modify it under the terms of the GNU Lesser General Public
...@@ -12,7 +12,7 @@...@@ -12,7 +12,7 @@
1212
13 You should have received a copy of the GNU Lesser General Public13 You should have received a copy of the GNU Lesser General Public
14 License along with the GNU C Library. If not, see14 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */15 <https://www.gnu.org/licenses/>. */
1616
17/* Don't rely on this, the interface is currently messed up and may need to17/* Don't rely on this, the interface is currently messed up and may need to
18 be broken to be fixed. */18 be broken to be fixed. */
lib/libc/include/generic-glibc/sys/uio.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_UIO_H18#ifndef _SYS_UIO_H
19#define _SYS_UIO_H 119#define _SYS_UIO_H 1
lib/libc/include/generic-glibc/sys/un.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_UN_H18#ifndef _SYS_UN_H
19#define _SYS_UN_H 119#define _SYS_UN_H 1
lib/libc/include/generic-glibc/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
19#define _SYS_USER_H 119#define _SYS_USER_H 1
lib/libc/include/generic-glibc/sys/utsname.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 4.4 System Identification <sys/utsname.h>19 * POSIX Standard: 4.4 System Identification <sys/utsname.h>
lib/libc/include/generic-glibc/sys/vlimit.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_VLIMIT_H18#ifndef _SYS_VLIMIT_H
19#define _SYS_VLIMIT_H 119#define _SYS_VLIMIT_H 1
lib/libc/include/generic-glibc/sys/vm86.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_VM86_H18#ifndef _SYS_VM86_H
1919
lib/libc/include/generic-glibc/sys/vtimes.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_VTIMES_H18#ifndef _SYS_VTIMES_H
19#define _SYS_VTIMES_H 119#define _SYS_VTIMES_H 1
lib/libc/include/generic-glibc/sys/wait.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 3.2.1 Wait for Process Termination <sys/wait.h>19 * POSIX Standard: 3.2.1 Wait for Process Termination <sys/wait.h>
lib/libc/include/generic-glibc/sys/xattr.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_XATTR_H18#ifndef _SYS_XATTR_H
19#define _SYS_XATTR_H 119#define _SYS_XATTR_H 1
lib/libc/include/generic-glibc/tar.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Extended tar format from POSIX.1.1/* Extended tar format from POSIX.1.
2 Copyright (C) 1992-2019 Free Software Foundation, Inc.2 Copyright (C) 1992-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Written by David J. MacKenzie.4 Written by David J. MacKenzie.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _TAR_H20#ifndef _TAR_H
21#define _TAR_H 121#define _TAR_H 1
lib/libc/include/generic-glibc/termios.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 7.1-2 General Terminal Interface <termios.h>19 * POSIX Standard: 7.1-2 General Terminal Interface <termios.h>
lib/libc/include/generic-glibc/tgmath.h+171-26
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.22 Type-generic math <tgmath.h>19 * ISO C99 Standard: 7.22 Type-generic math <tgmath.h>
...@@ -43,6 +43,25 @@...@@ -43,6 +43,25 @@
4343
44#if __GNUC_PREREQ (2, 7)44#if __GNUC_PREREQ (2, 7)
4545
46/* Certain cases of narrowing macros only need to call a single
47 function so cannot use __builtin_tgmath and do not need any
48 complicated logic. */
49# if __HAVE_FLOAT128X
50# error "Unsupported _Float128x type for <tgmath.h>."
51# endif
52# if ((__HAVE_FLOAT64X && !__HAVE_FLOAT128) \
53 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X))
54# error "Unsupported combination of types for <tgmath.h>."
55# endif
56# define __TGMATH_2_NARROW_D(F, X, Y) \
57 (F ## l (X, Y))
58# define __TGMATH_2_NARROW_F64X(F, X, Y) \
59 (F ## f128 (X, Y))
60# if !__HAVE_FLOAT128
61# define __TGMATH_2_NARROW_F32X(F, X, Y) \
62 (F ## f64 (X, Y))
63# endif
64
46# if __HAVE_BUILTIN_TGMATH65# if __HAVE_BUILTIN_TGMATH
4766
48# if __HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)67# if __HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)
...@@ -94,6 +113,33 @@...@@ -94,6 +113,33 @@
94# define __TGMATH_2C(F, C, X, Y) __builtin_tgmath (__TGMATH_RCFUNCS (F, C) \113# define __TGMATH_2C(F, C, X, Y) __builtin_tgmath (__TGMATH_RCFUNCS (F, C) \
95 (X), (Y))114 (X), (Y))
96115
116# define __TGMATH_NARROW_FUNCS_F(X) X, X ## l,
117# define __TGMATH_NARROW_FUNCS_F16(X) \
118 __TG_F32_ARG (X) __TG_F64_ARG (X) __TG_F128_ARG (X) \
119 __TG_F32X_ARG (X) __TG_F64X_ARG (X) __TG_F128X_ARG (X)
120# define __TGMATH_NARROW_FUNCS_F32(X) \
121 __TG_F64_ARG (X) __TG_F128_ARG (X) \
122 __TG_F32X_ARG (X) __TG_F64X_ARG (X) __TG_F128X_ARG (X)
123# define __TGMATH_NARROW_FUNCS_F64(X) \
124 __TG_F128_ARG (X) \
125 __TG_F64X_ARG (X) __TG_F128X_ARG (X)
126# define __TGMATH_NARROW_FUNCS_F32X(X) \
127 __TG_F64X_ARG (X) __TG_F128X_ARG (X) \
128 __TG_F64_ARG (X) __TG_F128_ARG (X)
129
130# define __TGMATH_2_NARROW_F(F, X, Y) \
131 __builtin_tgmath (__TGMATH_NARROW_FUNCS_F (F) (X), (Y))
132# define __TGMATH_2_NARROW_F16(F, X, Y) \
133 __builtin_tgmath (__TGMATH_NARROW_FUNCS_F16 (F) (X), (Y))
134# define __TGMATH_2_NARROW_F32(F, X, Y) \
135 __builtin_tgmath (__TGMATH_NARROW_FUNCS_F32 (F) (X), (Y))
136# define __TGMATH_2_NARROW_F64(F, X, Y) \
137 __builtin_tgmath (__TGMATH_NARROW_FUNCS_F64 (F) (X), (Y))
138# if __HAVE_FLOAT128
139# define __TGMATH_2_NARROW_F32X(F, X, Y) \
140 __builtin_tgmath (__TGMATH_NARROW_FUNCS_F32X (F) (X), (Y))
141# endif
142
97# else /* !__HAVE_BUILTIN_TGMATH. */143# else /* !__HAVE_BUILTIN_TGMATH. */
98144
99# ifdef __NO_LONG_DOUBLE_MATH145# ifdef __NO_LONG_DOUBLE_MATH
...@@ -230,8 +276,6 @@...@@ -230,8 +276,6 @@
230 __TGMATH_2 (Fct, (Val1), (Val2))276 __TGMATH_2 (Fct, (Val1), (Val2))
231# define __TGMATH_BINARY_REAL_STD_ONLY(Val1, Val2, Fct) \277# define __TGMATH_BINARY_REAL_STD_ONLY(Val1, Val2, Fct) \
232 __TGMATH_2STD (Fct, (Val1), (Val2))278 __TGMATH_2STD (Fct, (Val1), (Val2))
233# define __TGMATH_BINARY_REAL_RET_ONLY(Val1, Val2, Fct) \
234 __TGMATH_2 (Fct, (Val1), (Val2))
235# define __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY(Val1, Val2, Val3, Fct) \279# define __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY(Val1, Val2, Val3, Fct) \
236 __TGMATH_3 (Fct, (Val1), (Val2), (Val3))280 __TGMATH_3 (Fct, (Val1), (Val2), (Val3))
237# define __TGMATH_TERNARY_REAL_ONLY(Val1, Val2, Val3, Fct) \281# define __TGMATH_TERNARY_REAL_ONLY(Val1, Val2, Val3, Fct) \
...@@ -326,18 +370,6 @@...@@ -326,18 +370,6 @@
326 + (__tgmath_real_type (Val2)) 0)) \370 + (__tgmath_real_type (Val2)) 0)) \
327 Fct##f (Val1, Val2)))371 Fct##f (Val1, Val2)))
328372
329# define __TGMATH_BINARY_REAL_RET_ONLY(Val1, Val2, Fct) \
330 (__extension__ ((sizeof ((Val1) + (Val2)) > sizeof (double) \
331 && __builtin_classify_type ((Val1) + (Val2)) == 8) \
332 ? __TGMATH_F128 ((Val1) + (Val2), Fct, (Val1, Val2)) \
333 __tgml(Fct) (Val1, Val2) \
334 : (sizeof (+(Val1)) == sizeof (double) \
335 || sizeof (+(Val2)) == sizeof (double) \
336 || __builtin_classify_type (Val1) != 8 \
337 || __builtin_classify_type (Val2) != 8) \
338 ? Fct (Val1, Val2) \
339 : Fct##f (Val1, Val2)))
340
341# define __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY(Val1, Val2, Val3, Fct) \373# define __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY(Val1, Val2, Val3, Fct) \
342 (__extension__ ((sizeof ((Val1) + (Val2)) > sizeof (double) \374 (__extension__ ((sizeof ((Val1) + (Val2)) > sizeof (double) \
343 && __builtin_classify_type ((Val1) + (Val2)) == 8) \375 && __builtin_classify_type ((Val1) + (Val2)) == 8) \
...@@ -507,6 +539,65 @@...@@ -507,6 +539,65 @@
507 : (__typeof ((__tgmath_complex_type (Val1)) 0 \539 : (__typeof ((__tgmath_complex_type (Val1)) 0 \
508 + (__tgmath_complex_type (Val2)) 0)) \540 + (__tgmath_complex_type (Val2)) 0)) \
509 Cfct##f (Val1, Val2))))541 Cfct##f (Val1, Val2))))
542
543# define __TGMATH_2_NARROW_F(F, X, Y) \
544 (__extension__ (sizeof ((__tgmath_real_type (X)) 0 \
545 + (__tgmath_real_type (Y)) 0) > sizeof (double) \
546 ? F ## l (X, Y) \
547 : F (X, Y)))
548/* In most cases, these narrowing macro definitions based on sizeof
549 ensure that the function called has the right argument format, as
550 for other <tgmath.h> macros for compilers before GCC 8, but may not
551 have exactly the argument type (among the types with that format)
552 specified in the standard logic.
553
554 In the case of macros for _Float32x return type, when _Float64x
555 exists, _Float64 arguments should result in the *f64 function being
556 called while _Float32x arguments should result in the *f64x
557 function being called. These cases cannot be distinguished using
558 sizeof (or at all if the types are typedefs rather than different
559 types). However, for these functions it is OK (does not affect the
560 final result) to call a function with any argument format at least
561 as wide as all the floating-point arguments, unless that affects
562 rounding of integer arguments. Integer arguments are considered to
563 have type _Float64, so the *f64 functions are preferred for f32x*
564 macros when no argument has a wider floating-point type. */
565# if __HAVE_FLOAT64X_LONG_DOUBLE && __HAVE_DISTINCT_FLOAT128
566# define __TGMATH_2_NARROW_F32(F, X, Y) \
567 (__extension__ (sizeof ((__tgmath_real_type (X)) 0 \
568 + (__tgmath_real_type (Y)) 0) > sizeof (_Float64) \
569 ? __TGMATH_F128 ((X) + (Y), F, (X, Y)) \
570 F ## f64x (X, Y) \
571 : F ## f64 (X, Y)))
572# define __TGMATH_2_NARROW_F64(F, X, Y) \
573 (__extension__ (sizeof ((__tgmath_real_type (X)) 0 \
574 + (__tgmath_real_type (Y)) 0) > sizeof (_Float64) \
575 ? __TGMATH_F128 ((X) + (Y), F, (X, Y)) \
576 F ## f64x (X, Y) \
577 : F ## f128 (X, Y)))
578# define __TGMATH_2_NARROW_F32X(F, X, Y) \
579 (__extension__ (sizeof ((__tgmath_real_type (X)) 0 \
580 + (__tgmath_real_type (Y)) 0) > sizeof (_Float64) \
581 ? __TGMATH_F128 ((X) + (Y), F, (X, Y)) \
582 F ## f64x (X, Y) \
583 : F ## f64 (X, Y)))
584# elif __HAVE_FLOAT128
585# define __TGMATH_2_NARROW_F32(F, X, Y) \
586 (__extension__ (sizeof ((__tgmath_real_type (X)) 0 \
587 + (__tgmath_real_type (Y)) 0) > sizeof (_Float64) \
588 ? F ## f128 (X, Y) \
589 : F ## f64 (X, Y)))
590# define __TGMATH_2_NARROW_F64(F, X, Y) \
591 (F ## f128 (X, Y))
592# define __TGMATH_2_NARROW_F32X(F, X, Y) \
593 (__extension__ (sizeof ((__tgmath_real_type (X)) 0 \
594 + (__tgmath_real_type (Y)) 0) > sizeof (_Float32x) \
595 ? F ## f64x (X, Y) \
596 : F ## f64 (X, Y)))
597# else
598# define __TGMATH_2_NARROW_F32(F, X, Y) \
599 (F ## f64 (X, Y))
600# endif
510# endif /* !__HAVE_BUILTIN_TGMATH. */601# endif /* !__HAVE_BUILTIN_TGMATH. */
511#else602#else
512# error "Unsupported compiler; you cannot use <tgmath.h>"603# error "Unsupported compiler; you cannot use <tgmath.h>"
...@@ -661,7 +752,7 @@...@@ -661,7 +752,7 @@
661 prevailing rounding mode. */752 prevailing rounding mode. */
662#define rint(Val) __TGMATH_UNARY_REAL_ONLY (Val, rint)753#define rint(Val) __TGMATH_UNARY_REAL_ONLY (Val, rint)
663754
664#if __GLIBC_USE (IEC_60559_BFP_EXT)755#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
665/* Return X - epsilon. */756/* Return X - epsilon. */
666# define nextdown(Val) __TGMATH_UNARY_REAL_ONLY (Val, nextdown)757# define nextdown(Val) __TGMATH_UNARY_REAL_ONLY (Val, nextdown)
667/* Return X + epsilon. */758/* Return X + epsilon. */
...@@ -706,7 +797,7 @@...@@ -706,7 +797,7 @@
706#define fma(Val1, Val2, Val3) \797#define fma(Val1, Val2, Val3) \
707 __TGMATH_TERNARY_REAL_ONLY (Val1, Val2, Val3, fma)798 __TGMATH_TERNARY_REAL_ONLY (Val1, Val2, Val3, fma)
708799
709#if __GLIBC_USE (IEC_60559_BFP_EXT)800#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
710/* Round X to nearest integer value, rounding halfway cases to even. */801/* Round X to nearest integer value, rounding halfway cases to even. */
711# define roundeven(Val) __TGMATH_UNARY_REAL_ONLY (Val, roundeven)802# define roundeven(Val) __TGMATH_UNARY_REAL_ONLY (Val, roundeven)
712803
...@@ -730,14 +821,6 @@...@@ -730,14 +821,6 @@
730821
731/* Return value with minimum magnitude. */822/* Return value with minimum magnitude. */
732# define fminmag(Val1, Val2) __TGMATH_BINARY_REAL_ONLY (Val1, Val2, fminmag)823# define fminmag(Val1, Val2) __TGMATH_BINARY_REAL_ONLY (Val1, Val2, fminmag)
733
734/* Total order operation. */
735# define totalorder(Val1, Val2) \
736 __TGMATH_BINARY_REAL_RET_ONLY (Val1, Val2, totalorder)
737
738/* Total order operation on absolute values. */
739# define totalordermag(Val1, Val2) \
740 __TGMATH_BINARY_REAL_RET_ONLY (Val1, Val2, totalordermag)
741#endif824#endif
742825
743826
...@@ -761,4 +844,66 @@...@@ -761,4 +844,66 @@
761/* Real part of Z. */844/* Real part of Z. */
762#define creal(Val) __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME (Val, creal)845#define creal(Val) __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME (Val, creal)
763846
847
848/* Narrowing functions. */
849
850#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
851
852/* Add. */
853# define fadd(Val1, Val2) __TGMATH_2_NARROW_F (fadd, Val1, Val2)
854# define dadd(Val1, Val2) __TGMATH_2_NARROW_D (dadd, Val1, Val2)
855
856/* Divide. */
857# define fdiv(Val1, Val2) __TGMATH_2_NARROW_F (fdiv, Val1, Val2)
858# define ddiv(Val1, Val2) __TGMATH_2_NARROW_D (ddiv, Val1, Val2)
859
860/* Multiply. */
861# define fmul(Val1, Val2) __TGMATH_2_NARROW_F (fmul, Val1, Val2)
862# define dmul(Val1, Val2) __TGMATH_2_NARROW_D (dmul, Val1, Val2)
863
864/* Subtract. */
865# define fsub(Val1, Val2) __TGMATH_2_NARROW_F (fsub, Val1, Val2)
866# define dsub(Val1, Val2) __TGMATH_2_NARROW_D (dsub, Val1, Val2)
867
868#endif
869
870#if __GLIBC_USE (IEC_60559_TYPES_EXT)
871
872# if __HAVE_FLOAT16
873# define f16add(Val1, Val2) __TGMATH_2_NARROW_F16 (f16add, Val1, Val2)
874# define f16div(Val1, Val2) __TGMATH_2_NARROW_F16 (f16div, Val1, Val2)
875# define f16mul(Val1, Val2) __TGMATH_2_NARROW_F16 (f16mul, Val1, Val2)
876# define f16sub(Val1, Val2) __TGMATH_2_NARROW_F16 (f16sub, Val1, Val2)
877# endif
878
879# if __HAVE_FLOAT32
880# define f32add(Val1, Val2) __TGMATH_2_NARROW_F32 (f32add, Val1, Val2)
881# define f32div(Val1, Val2) __TGMATH_2_NARROW_F32 (f32div, Val1, Val2)
882# define f32mul(Val1, Val2) __TGMATH_2_NARROW_F32 (f32mul, Val1, Val2)
883# define f32sub(Val1, Val2) __TGMATH_2_NARROW_F32 (f32sub, Val1, Val2)
884# endif
885
886# if __HAVE_FLOAT64 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)
887# define f64add(Val1, Val2) __TGMATH_2_NARROW_F64 (f64add, Val1, Val2)
888# define f64div(Val1, Val2) __TGMATH_2_NARROW_F64 (f64div, Val1, Val2)
889# define f64mul(Val1, Val2) __TGMATH_2_NARROW_F64 (f64mul, Val1, Val2)
890# define f64sub(Val1, Val2) __TGMATH_2_NARROW_F64 (f64sub, Val1, Val2)
891# endif
892
893# if __HAVE_FLOAT32X
894# define f32xadd(Val1, Val2) __TGMATH_2_NARROW_F32X (f32xadd, Val1, Val2)
895# define f32xdiv(Val1, Val2) __TGMATH_2_NARROW_F32X (f32xdiv, Val1, Val2)
896# define f32xmul(Val1, Val2) __TGMATH_2_NARROW_F32X (f32xmul, Val1, Val2)
897# define f32xsub(Val1, Val2) __TGMATH_2_NARROW_F32X (f32xsub, Val1, Val2)
898# endif
899
900# if __HAVE_FLOAT64X && (__HAVE_FLOAT128X || __HAVE_FLOAT128)
901# define f64xadd(Val1, Val2) __TGMATH_2_NARROW_F64X (f64xadd, Val1, Val2)
902# define f64xdiv(Val1, Val2) __TGMATH_2_NARROW_F64X (f64xdiv, Val1, Val2)
903# define f64xmul(Val1, Val2) __TGMATH_2_NARROW_F64X (f64xmul, Val1, Val2)
904# define f64xsub(Val1, Val2) __TGMATH_2_NARROW_F64X (f64xsub, Val1, Val2)
905# endif
906
907#endif
908
764#endif /* tgmath.h */909#endif /* tgmath.h */
\ No newline at end of file
lib/libc/include/generic-glibc/thread_db.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* thread_db.h -- interface to libthread_db.so library for debugging -lpthread1/* thread_db.h -- interface to libthread_db.so library for debugging -lpthread
2 Copyright (C) 1999-2019 Free Software Foundation, Inc.2 Copyright (C) 1999-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _THREAD_DB_H19#ifndef _THREAD_DB_H
20#define _THREAD_DB_H 120#define _THREAD_DB_H 1
lib/libc/include/generic-glibc/threads.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* ISO C11 Standard: 7.26 - Thread support library <threads.h>.1/* ISO C11 Standard: 7.26 - Thread support library <threads.h>.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _THREADS_H19#ifndef _THREADS_H
20#define _THREADS_H 120#define _THREADS_H 1
lib/libc/include/generic-glibc/time.h+6-12
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.23 Date and time <time.h>19 * ISO C99 Standard: 7.23 Date and time <time.h>
...@@ -122,7 +122,7 @@ extern struct tm *gmtime (const time_t *__timer) __THROW;...@@ -122,7 +122,7 @@ extern struct tm *gmtime (const time_t *__timer) __THROW;
122 of *TIMER in the local timezone. */122 of *TIMER in the local timezone. */
123extern struct tm *localtime (const time_t *__timer) __THROW;123extern struct tm *localtime (const time_t *__timer) __THROW;
124124
125#ifdef __USE_POSIX125#if defined __USE_POSIX || __GLIBC_USE (ISOC2X)
126/* Return the `struct tm' representation of *TIMER in UTC,126/* Return the `struct tm' representation of *TIMER in UTC,
127 using *TP to store the result. */127 using *TP to store the result. */
128extern struct tm *gmtime_r (const time_t *__restrict __timer,128extern struct tm *gmtime_r (const time_t *__restrict __timer,
...@@ -132,7 +132,7 @@ extern struct tm *gmtime_r (const time_t *__restrict __timer,...@@ -132,7 +132,7 @@ extern struct tm *gmtime_r (const time_t *__restrict __timer,
132 using *TP to store the result. */132 using *TP to store the result. */
133extern struct tm *localtime_r (const time_t *__restrict __timer,133extern struct tm *localtime_r (const time_t *__restrict __timer,
134 struct tm *__restrict __tp) __THROW;134 struct tm *__restrict __tp) __THROW;
135#endif /* POSIX */135#endif /* POSIX || C2X */
136136
137/* Return a string of the form "Day Mon dd hh:mm:ss yyyy\n"137/* Return a string of the form "Day Mon dd hh:mm:ss yyyy\n"
138 that is the representation of TP in this format. */138 that is the representation of TP in this format. */
...@@ -141,7 +141,7 @@ extern char *asctime (const struct tm *__tp) __THROW;...@@ -141,7 +141,7 @@ extern char *asctime (const struct tm *__tp) __THROW;
141/* Equivalent to `asctime (localtime (timer))'. */141/* Equivalent to `asctime (localtime (timer))'. */
142extern char *ctime (const time_t *__timer) __THROW;142extern char *ctime (const time_t *__timer) __THROW;
143143
144#ifdef __USE_POSIX144#if defined __USE_POSIX || __GLIBC_USE (ISOC2X)
145/* Reentrant versions of the above functions. */145/* Reentrant versions of the above functions. */
146146
147/* Return in BUF a string of the form "Day Mon dd hh:mm:ss yyyy\n"147/* Return in BUF a string of the form "Day Mon dd hh:mm:ss yyyy\n"
...@@ -152,7 +152,7 @@ extern char *asctime_r (const struct tm *__restrict __tp,...@@ -152,7 +152,7 @@ extern char *asctime_r (const struct tm *__restrict __tp,
152/* Equivalent to `asctime_r (localtime_r (timer, *TMP*), buf)'. */152/* Equivalent to `asctime_r (localtime_r (timer, *TMP*), buf)'. */
153extern char *ctime_r (const time_t *__restrict __timer,153extern char *ctime_r (const time_t *__restrict __timer,
154 char *__restrict __buf) __THROW;154 char *__restrict __buf) __THROW;
155#endif /* POSIX */155#endif /* POSIX || C2X */
156156
157157
158/* Defined in localtime.c. */158/* Defined in localtime.c. */
...@@ -175,12 +175,6 @@ extern int daylight;...@@ -175,12 +175,6 @@ extern int daylight;
175extern long int timezone;175extern long int timezone;
176#endif176#endif
177177
178#ifdef __USE_MISC
179/* Set the system time to *WHEN.
180 This call is restricted to the superuser. */
181extern int stime (const time_t *__when) __THROW;
182#endif
183
184178
185/* Nonzero if YEAR is a leap year (every 4 years,179/* Nonzero if YEAR is a leap year (every 4 years,
186 except every 100th isn't, and every 400th is). */180 except every 100th isn't, and every 400th is). */
lib/libc/include/generic-glibc/uchar.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C11 Standard: 7.2819 * ISO C11 Standard: 7.28
lib/libc/include/generic-glibc/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* System V ABI compliant user-level context switching support. */18/* System V ABI compliant user-level context switching support. */
1919
lib/libc/include/generic-glibc/ulimit.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _ULIMIT_H18#ifndef _ULIMIT_H
19#define _ULIMIT_H 119#define _ULIMIT_H 1
lib/libc/include/generic-glibc/unistd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 2.10 Symbolic Constants <unistd.h>19 * POSIX Standard: 2.10 Symbolic Constants <unistd.h>
lib/libc/include/generic-glibc/utime.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * POSIX Standard: 5.6.6 Set File Access and Modification Times <utime.h>19 * POSIX Standard: 5.6.6 Set File Access and Modification Times <utime.h>
lib/libc/include/generic-glibc/utmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1993-2019 Free Software Foundation, Inc.1/* Copyright (C) 1993-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _UTMP_H18#ifndef _UTMP_H
19#define _UTMP_H 119#define _UTMP_H 1
lib/libc/include/generic-glibc/utmpx.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _UTMPX_H18#ifndef _UTMPX_H
19#define _UTMPX_H 119#define _UTMPX_H 1
lib/libc/include/generic-glibc/values.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Old compatibility names for <limits.h> and <float.h> constants.1/* Old compatibility names for <limits.h> and <float.h> constants.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This interface is obsolete. New programs should use19/* This interface is obsolete. New programs should use
20 <limits.h> and/or <float.h> instead of <values.h>. */20 <limits.h> and/or <float.h> instead of <values.h>. */
lib/libc/include/generic-glibc/wchar.h+4-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.2419 * ISO C99 Standard: 7.24
...@@ -685,7 +685,8 @@ extern int vswscanf (const wchar_t *__restrict __s,...@@ -685,7 +685,8 @@ extern int vswscanf (const wchar_t *__restrict __s,
685 __gnuc_va_list __arg)685 __gnuc_va_list __arg)
686 __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */;686 __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */;
687687
688# if !defined __USE_GNU \688/* Same redirection as above for the v*wscanf family. */
689# if !__GLIBC_USE (DEPRECATED_SCANF) \
689 && (!defined __LDBL_COMPAT || !defined __REDIRECT) \690 && (!defined __LDBL_COMPAT || !defined __REDIRECT) \
690 && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)691 && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
691# ifdef __REDIRECT692# ifdef __REDIRECT
lib/libc/include/generic-glibc/wctype.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/*18/*
19 * ISO C99 Standard: 7.2519 * ISO C99 Standard: 7.25
lib/libc/include/generic-glibc/wordexp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _WORDEXP_H18#ifndef _WORDEXP_H
19#define _WORDEXP_H 119#define _WORDEXP_H 1
lib/libc/include/i386-linux-gnu/bits/endian.h deleted-7
...@@ -1,7 +0,0 @@
1/* i386/x86_64 are little-endian. */
2
3#ifndef _ENDIAN_H
4# error "Never use <bits/endian.h> directly; include <endian.h> instead."
5#endif
6
7#define __BYTE_ORDER __LITTLE_ENDIAN
\ No newline at end of file
lib/libc/include/i386-linux-gnu/bits/endianness.h created+11
...@@ -0,0 +1,11 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* i386/x86_64 are little-endian. */
9#define __BYTE_ORDER __LITTLE_ENDIAN
10
11#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/i386-linux-gnu/bits/environments.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _UNISTD_H18#ifndef _UNISTD_H
19# error "Never include this file directly. Use <unistd.h> instead"19# error "Never include this file directly. Use <unistd.h> instead"
lib/libc/include/i386-linux-gnu/bits/epoll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EPOLL_H18#ifndef _SYS_EPOLL_H
19# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."19# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."
lib/libc/include/i386-linux-gnu/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux/x86.1/* O_*, F_*, FD_* bit values for Linux/x86.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/i386-linux-gnu/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -101,7 +101,7 @@ fenv_t;...@@ -101,7 +101,7 @@ fenv_t;
101# define FE_NOMASK_ENV ((const fenv_t *) -2)101# define FE_NOMASK_ENV ((const fenv_t *) -2)
102#endif102#endif
103103
104#if __GLIBC_USE (IEC_60559_BFP_EXT)104#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
105/* Type representing floating-point control modes. */105/* Type representing floating-point control modes. */
106typedef struct106typedef struct
107 {107 {
lib/libc/include/i386-linux-gnu/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on x86.1/* Macros to control TS 18661-3 glibc features on x86.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/i386-linux-gnu/bits/flt-eval-method.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define __GLIBC_FLT_EVAL_METHOD. x86 version.1/* Define __GLIBC_FLT_EVAL_METHOD. x86 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."20# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."
lib/libc/include/i386-linux-gnu/bits/fp-logb.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define __FP_LOGB0_IS_MIN and __FP_LOGBNAN_IS_MIN. x86 version.1/* Define __FP_LOGB0_IS_MIN and __FP_LOGBNAN_IS_MIN. x86 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/fp-logb.h> directly; include <math.h> instead."20# error "Never use <bits/fp-logb.h> directly; include <math.h> instead."
lib/libc/include/i386-linux-gnu/bits/indirect-return.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definition of __INDIRECT_RETURN. x86 version.1/* Definition of __INDIRECT_RETURN. x86 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _UCONTEXT_H19#ifndef _UCONTEXT_H
20# error "Never include <bits/indirect-return.h> directly; use <ucontext.h> instead."20# error "Never include <bits/indirect-return.h> directly; use <ucontext.h> instead."
lib/libc/include/i386-linux-gnu/bits/ipctypes.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM.1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IPC_H19#ifndef _SYS_IPC_H
20# error "Never use <bits/ipctypes.h> directly; include <sys/ipc.h> instead."20# error "Never use <bits/ipctypes.h> directly; include <sys/ipc.h> instead."
lib/libc/include/i386-linux-gnu/bits/iscanonical.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define iscanonical macro. ldbl-96 version.1/* Define iscanonical macro. ldbl-96 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
lib/libc/include/i386-linux-gnu/bits/link.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _LINK_H18#ifndef _LINK_H
19# error "Never include <bits/link.h> directly; use <link.h> instead."19# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/i386-linux-gnu/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. ldbl-96 version.1/* Properties of long double type. ldbl-96 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,8 @@...@@ -14,7 +14,8 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* long double is distinct from double, so there is nothing to19/* long double is distinct from double, so there is nothing to
20 define here. */
\ No newline at end of file
20 define here. */
21#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/i386-linux-gnu/bits/math-vector.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Platform-specific SIMD declarations of math functions.1/* Platform-specific SIMD declarations of math functions.
2 Copyright (C) 2014-2019 Free Software Foundation, Inc.2 Copyright (C) 2014-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never include <bits/math-vector.h> directly;\20# error "Never include <bits/math-vector.h> directly;\
lib/libc/include/i386-linux-gnu/bits/mman.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/x86_64 version.1/* Definitions for POSIX memory map interface. Linux/x86_64 version.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
lib/libc/include/i386-linux-gnu/bits/procfs-id.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. x86 version.1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. x86 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
lib/libc/include/i386-linux-gnu/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. x86 version.1/* Types for registers for sys/procfs.h. x86 version.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/i386-linux-gnu/bits/pthreadtypes-arch.h+2-53
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_PTHREADTYPES_ARCH_H18#ifndef _BITS_PTHREADTYPES_ARCH_H
19#define _BITS_PTHREADTYPES_ARCH_H 119#define _BITS_PTHREADTYPES_ARCH_H 1
...@@ -24,20 +24,17 @@...@@ -24,20 +24,17 @@
24# if __WORDSIZE == 6424# if __WORDSIZE == 64
25# define __SIZEOF_PTHREAD_MUTEX_T 4025# define __SIZEOF_PTHREAD_MUTEX_T 40
26# define __SIZEOF_PTHREAD_ATTR_T 5626# define __SIZEOF_PTHREAD_ATTR_T 56
27# define __SIZEOF_PTHREAD_MUTEX_T 40
28# define __SIZEOF_PTHREAD_RWLOCK_T 5627# define __SIZEOF_PTHREAD_RWLOCK_T 56
29# define __SIZEOF_PTHREAD_BARRIER_T 3228# define __SIZEOF_PTHREAD_BARRIER_T 32
30# else29# else
31# define __SIZEOF_PTHREAD_MUTEX_T 3230# define __SIZEOF_PTHREAD_MUTEX_T 32
32# define __SIZEOF_PTHREAD_ATTR_T 3231# define __SIZEOF_PTHREAD_ATTR_T 32
33# define __SIZEOF_PTHREAD_MUTEX_T 32
34# define __SIZEOF_PTHREAD_RWLOCK_T 4432# define __SIZEOF_PTHREAD_RWLOCK_T 44
35# define __SIZEOF_PTHREAD_BARRIER_T 2033# define __SIZEOF_PTHREAD_BARRIER_T 20
36# endif34# endif
37#else35#else
38# define __SIZEOF_PTHREAD_MUTEX_T 2436# define __SIZEOF_PTHREAD_MUTEX_T 24
39# define __SIZEOF_PTHREAD_ATTR_T 3637# define __SIZEOF_PTHREAD_ATTR_T 36
40# define __SIZEOF_PTHREAD_MUTEX_T 24
41# define __SIZEOF_PTHREAD_RWLOCK_T 3238# define __SIZEOF_PTHREAD_RWLOCK_T 32
42# define __SIZEOF_PTHREAD_BARRIER_T 2039# define __SIZEOF_PTHREAD_BARRIER_T 20
43#endif40#endif
...@@ -47,57 +44,9 @@...@@ -47,57 +44,9 @@
47#define __SIZEOF_PTHREAD_RWLOCKATTR_T 844#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
48#define __SIZEOF_PTHREAD_BARRIERATTR_T 445#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
4946
50/* Definitions for internal mutex struct. */
51#define __PTHREAD_COMPAT_PADDING_MID
52#define __PTHREAD_COMPAT_PADDING_END
53#define __PTHREAD_MUTEX_LOCK_ELISION 1
54#ifdef __x86_64__
55# define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 0
56# define __PTHREAD_MUTEX_USE_UNION 0
57#else
58# define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 1
59# define __PTHREAD_MUTEX_USE_UNION 1
60#endif
61
62#define __LOCK_ALIGNMENT47#define __LOCK_ALIGNMENT
63#define __ONCE_ALIGNMENT48#define __ONCE_ALIGNMENT
6449
65struct __pthread_rwlock_arch_t
66{
67 unsigned int __readers;
68 unsigned int __writers;
69 unsigned int __wrphase_futex;
70 unsigned int __writers_futex;
71 unsigned int __pad3;
72 unsigned int __pad4;
73#ifdef __x86_64__
74 int __cur_writer;
75 int __shared;
76 signed char __rwelision;
77# ifdef __ILP32__
78 unsigned char __pad1[3];
79# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0 }
80# else
81 unsigned char __pad1[7];
82# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0, 0, 0, 0, 0 }
83# endif
84 unsigned long int __pad2;
85 /* FLAGS must stay at this position in the structure to maintain
86 binary compatibility. */
87 unsigned int __flags;
88# define __PTHREAD_RWLOCK_INT_FLAGS_SHARED 1
89#else
90 /* FLAGS must stay at this position in the structure to maintain
91 binary compatibility. */
92 unsigned char __flags;
93 unsigned char __shared;
94 signed char __rwelision;
95# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
96 unsigned char __pad2;
97 int __cur_writer;
98#endif
99};
100
101#ifndef __x86_64__50#ifndef __x86_64__
102/* Extra attributes for the cleanup functions. */51/* Extra attributes for the cleanup functions. */
103# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))52# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
lib/libc/include/i386-linux-gnu/bits/select.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SELECT_H18#ifndef _SYS_SELECT_H
19# error "Never use <bits/select.h> directly; include <sys/select.h> instead."19# error "Never use <bits/select.h> directly; include <sys/select.h> instead."
lib/libc/include/i386-linux-gnu/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. x86 version.1/* Define where padding goes in struct semid_ds. x86 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/i386-linux-gnu/bits/semaphore.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.3 Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SEMAPHORE_H19#ifndef _SEMAPHORE_H
20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/i386-linux-gnu/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Define the machine-dependent type `jmp_buf'. x86-64 version. */18/* Define the machine-dependent type `jmp_buf'. x86-64 version. */
19#ifndef _BITS_SETJMP_H19#ifndef _BITS_SETJMP_H
lib/libc/include/i386-linux-gnu/bits/sigcontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_SIGCONTEXT_H18#ifndef _BITS_SIGCONTEXT_H
19#define _BITS_SIGCONTEXT_H 119#define _BITS_SIGCONTEXT_H 1
lib/libc/include/i386-linux-gnu/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/i386-linux-gnu/bits/struct_mutex.h created+63
...@@ -0,0 +1,63 @@
1/* x86 internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#ifdef __x86_64__
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#ifdef __x86_64__
34 short __spins;
35 short __elision;
36 __pthread_list_t __list;
37# define __PTHREAD_MUTEX_HAVE_PREV 1
38#else
39 unsigned int __nusers;
40 __extension__ union
41 {
42 struct
43 {
44 short __espins;
45 short __eelision;
46# define __spins __elision_data.__espins
47# define __elision __elision_data.__eelision
48 } __elision_data;
49 __pthread_slist_t __list;
50 };
51# define __PTHREAD_MUTEX_HAVE_PREV 0
52#endif
53};
54
55#ifdef __x86_64__
56# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
57 0, 0, 0, 0, __kind, 0, 0, { 0, 0 }
58#else
59# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
60 0, 0, 0, __kind, 0, { { 0, 0 } }
61#endif
62
63#endif
\ No newline at end of file
lib/libc/include/i386-linux-gnu/bits/struct_rwlock.h created+65
...@@ -0,0 +1,65 @@
1/* x86 internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20#ifndef _RWLOCK_INTERNAL_H
21#define _RWLOCK_INTERNAL_H
22
23struct __pthread_rwlock_arch_t
24{
25 unsigned int __readers;
26 unsigned int __writers;
27 unsigned int __wrphase_futex;
28 unsigned int __writers_futex;
29 unsigned int __pad3;
30 unsigned int __pad4;
31#ifdef __x86_64__
32 int __cur_writer;
33 int __shared;
34 signed char __rwelision;
35# ifdef __ILP32__
36 unsigned char __pad1[3];
37# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0 }
38# else
39 unsigned char __pad1[7];
40# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0, 0, 0, 0, 0 }
41# endif
42 unsigned long int __pad2;
43 /* FLAGS must stay at this position in the structure to maintain
44 binary compatibility. */
45 unsigned int __flags;
46#else /* __x86_64__ */
47 /* FLAGS must stay at this position in the structure to maintain
48 binary compatibility. */
49 unsigned char __flags;
50 unsigned char __shared;
51 signed char __rwelision;
52 unsigned char __pad2;
53 int __cur_writer;
54#endif
55};
56
57#ifdef __x86_64__
58# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
59 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, __flags
60#else
61# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
62 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
63#endif
64
65#endif
\ No newline at end of file
lib/libc/include/i386-linux-gnu/bits/sysctl.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2012-2019 Free Software Foundation, Inc.1/* Copyright (C) 2012-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if defined __x86_64__ && defined __ILP32__18#if defined __x86_64__ && defined __ILP32__
19# error "sysctl system call is unsupported in x32 kernel"19# error "sysctl system call is unsupported in x32 kernel"
lib/libc/include/i386-linux-gnu/bits/timesize.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit size of the time_t type at glibc build time, x86-64 and x32 case.1/* Bit size of the time_t type at glibc build time, x86-64 and x32 case.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if defined __x86_64__ && defined __ILP32__19#if defined __x86_64__ && defined __ILP32__
20/* For x32, time is 64-bit even though word size is 32-bit. */20/* For x32, time is 64-bit even though word size is 32-bit. */
lib/libc/include/i386-linux-gnu/bits/typesizes.h+7-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.1/* bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_TYPES_H19#ifndef _BITS_TYPES_H
20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
...@@ -84,8 +84,13 @@...@@ -84,8 +84,13 @@
8484
85/* And for __rlim_t and __rlim64_t. */85/* And for __rlim_t and __rlim64_t. */
86# define __RLIM_T_MATCHES_RLIM64_T 186# define __RLIM_T_MATCHES_RLIM64_T 1
87
88/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
89# define __STATFS_MATCHES_STATFS64 1
87#else90#else
88# define __RLIM_T_MATCHES_RLIM64_T 091# define __RLIM_T_MATCHES_RLIM64_T 0
92
93# define __STATFS_MATCHES_STATFS64 0
89#endif94#endif
9095
91/* Number of descriptors that can fit in an `fd_set'. */96/* Number of descriptors that can fit in an `fd_set'. */
lib/libc/include/i386-linux-gnu/finclude/math-vector-fortran.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1! Platform-specific declarations of SIMD math functions for Fortran. -*- f90 -*-1! Platform-specific declarations of SIMD math functions for Fortran. -*- f90 -*-
2! Copyright (C) 2019 Free Software Foundation, Inc.2! Copyright (C) 2019-2020 Free Software Foundation, Inc.
3! This file is part of the GNU C Library.3! This file is part of the GNU C Library.
4!4!
5! The GNU C Library is free software; you can redistribute it and/or5! The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
14!14!
15! You should have received a copy of the GNU Lesser General Public15! You should have received a copy of the GNU Lesser General Public
16! License along with the GNU C Library; if not, see16! License along with the GNU C Library; if not, see
17! <http://www.gnu.org/licenses/>.17! <https://www.gnu.org/licenses/>.
1818
19!GCC$ builtin (cos) attributes simd (notinbranch) if('x86_64')19!GCC$ builtin (cos) attributes simd (notinbranch) if('x86_64')
20!GCC$ builtin (cosf) attributes simd (notinbranch) if('x86_64')20!GCC$ builtin (cosf) attributes simd (notinbranch) if('x86_64')
lib/libc/include/i386-linux-gnu/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word bits. x86 version.1/* FPU control word bits. x86 version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Olaf Flebbe.4 Contributed by Olaf Flebbe.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _FPU_CONTROL_H20#ifndef _FPU_CONTROL_H
21#define _FPU_CONTROL_H 121#define _FPU_CONTROL_H 1
lib/libc/include/i386-linux-gnu/sys/elf.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_ELF_H18#ifndef _SYS_ELF_H
19#define _SYS_ELF_H 119#define _SYS_ELF_H 1
lib/libc/include/i386-linux-gnu/sys/ptrace.h+7-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/x86 version.1/* `ptrace' debugger support interface. Linux/x86 version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PTRACE_H20#ifndef _SYS_PTRACE_H
21#define _SYS_PTRACE_H 121#define _SYS_PTRACE_H 1
...@@ -186,8 +186,12 @@ enum __ptrace_request...@@ -186,8 +186,12 @@ enum __ptrace_request
186#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER186#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
187187
188 /* Get seccomp BPF filter metadata. */188 /* Get seccomp BPF filter metadata. */
189 PTRACE_SECCOMP_GET_METADATA = 0x420d189 PTRACE_SECCOMP_GET_METADATA = 0x420d,
190#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA190#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
191
192 /* Get information about system call. */
193 PTRACE_GET_SYSCALL_INFO = 0x420e
194#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
191};195};
192196
193197
lib/libc/include/i386-linux-gnu/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_UCONTEXT_H18#ifndef _SYS_UCONTEXT_H
19#define _SYS_UCONTEXT_H 119#define _SYS_UCONTEXT_H 1
lib/libc/include/i386-linux-gnu/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
19#define _SYS_USER_H 119#define _SYS_USER_H 1
lib/libc/include/mips-linux-gnu/bits/dlfcn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System dependent definitions for run-time dynamic loading.1/* System dependent definitions for run-time dynamic loading.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _DLFCN_H19#ifndef _DLFCN_H
20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
lib/libc/include/mips-linux-gnu/bits/errno.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Error constants. MIPS/Linux specific version.1/* Error constants. MIPS/Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_ERRNO_H19#ifndef _BITS_ERRNO_H
2020
lib/libc/include/mips-linux-gnu/bits/eventfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EVENTFD_H18#ifndef _SYS_EVENTFD_H
19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
lib/libc/include/mips-linux-gnu/bits/inotify.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_INOTIFY_H18#ifndef _SYS_INOTIFY_H
19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
lib/libc/include/mips-linux-gnu/bits/ioctl-types.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.1/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IOCTL_H19#ifndef _SYS_IOCTL_H
20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/mips-linux-gnu/bits/ipc.h deleted-54
...@@ -1,54 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23
24/* Mode bits for `msgget', `semget', and `shmget'. */
25#define IPC_CREAT 01000 /* Create key if key does not exist. */
26#define IPC_EXCL 02000 /* Fail if key exists. */
27#define IPC_NOWAIT 04000 /* Return error on wait. */
28
29/* Control commands for `msgctl', `semctl', and `shmctl'. */
30#define IPC_RMID 0 /* Remove identifier. */
31#define IPC_SET 1 /* Set `ipc_perm' options. */
32#define IPC_STAT 2 /* Get `ipc_perm' options. */
33#ifdef __USE_GNU
34# define IPC_INFO 3 /* See ipcs. */
35#endif
36
37/* Special key values. */
38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
39
40
41/* Data structure used to pass permission information to IPC operations. */
42struct ipc_perm
43 {
44 __key_t __key; /* Key. */
45 unsigned int uid; /* Owner's user ID. */
46 unsigned int gid; /* Owner's group ID. */
47 unsigned int cuid; /* Creator's user ID. */
48 unsigned int cgid; /* Creator's group ID. */
49 unsigned int mode; /* Read/write permission. */
50 unsigned short int __seq; /* Sequence number. */
51 unsigned short int __pad1;
52 unsigned long int __glibc_reserved1;
53 unsigned long int __glibc_reserved2;
54};
\ No newline at end of file
lib/libc/include/mips-linux-gnu/bits/ipctypes.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * Never include <bits/ipctypes.h> directly.20 * Never include <bits/ipctypes.h> directly.
lib/libc/include/mips-linux-gnu/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. MIPS Linux version.1/* Minimum guaranteed maximum values for system limits. MIPS Linux version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* The kernel header pollutes the namespace with the NR_OPEN symbol19/* The kernel header pollutes the namespace with the NR_OPEN symbol
20 and defines LINK_MAX although filesystems have different maxima. A20 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/mips-linux-gnu/bits/mman.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/MIPS version.1/* Definitions for POSIX memory map interface. Linux/MIPS version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
lib/libc/include/mips-linux-gnu/bits/msq-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct msqid_ds. MIPS version.1/* Define where padding goes in struct msqid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MSG_H19#ifndef _SYS_MSG_H
20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
lib/libc/include/mips-linux-gnu/bits/poll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_POLL_H18#ifndef _SYS_POLL_H
19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
lib/libc/include/mips-linux-gnu/bits/pthreadtypes-arch.h created+44
...@@ -0,0 +1,44 @@
1/* Machine-specific pthread type layouts. MIPS version.
2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <https://www.gnu.org/licenses/>. */
18
19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 1
21
22#include <bits/endian.h>
23
24#if _MIPS_SIM == _ABI64
25# define __SIZEOF_PTHREAD_ATTR_T 56
26# define __SIZEOF_PTHREAD_MUTEX_T 40
27# define __SIZEOF_PTHREAD_RWLOCK_T 56
28# define __SIZEOF_PTHREAD_BARRIER_T 32
29#else
30# define __SIZEOF_PTHREAD_ATTR_T 36
31# define __SIZEOF_PTHREAD_MUTEX_T 24
32# define __SIZEOF_PTHREAD_RWLOCK_T 32
33# define __SIZEOF_PTHREAD_BARRIER_T 20
34#endif
35#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
36#define __SIZEOF_PTHREAD_COND_T 48
37#define __SIZEOF_PTHREAD_CONDATTR_T 4
38#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
39#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
40
41#define __LOCK_ALIGNMENT
42#define __ONCE_ALIGNMENT
43
44#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mips-linux-gnu/bits/resource.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit values & structures for resource limits. Linux/MIPS version.1/* Bit values & structures for resource limits. Linux/MIPS version.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_RESOURCE_H19#ifndef _SYS_RESOURCE_H
20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
lib/libc/include/mips-linux-gnu/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. MIPS version.1/* Define where padding goes in struct semid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/mips-linux-gnu/bits/shm-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct shmid_ds. MIPS version.1/* Define where padding goes in struct shmid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
lib/libc/include/mips-linux-gnu/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. MIPS version.1/* Define SHMLBA. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/mips-linux-gnu/bits/sigaction.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* The proper definitions for Linux/MIPS's sigaction.1/* The proper definitions for Linux/MIPS's sigaction.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGACTION_H19#ifndef _BITS_SIGACTION_H
20#define _BITS_SIGACTION_H 120#define _BITS_SIGACTION_H 1
lib/libc/include/mips-linux-gnu/bits/sigcontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc. This file is part of the GNU C Library.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc. This file is part of the GNU C Library.
22
3 The GNU C Library is free software; you can redistribute it and/or3 The GNU C Library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Lesser General Public4 modify it under the terms of the GNU Lesser General Public
...@@ -12,7 +12,7 @@...@@ -12,7 +12,7 @@
1212
13 You should have received a copy of the GNU Lesser General Public13 You should have received a copy of the GNU Lesser General Public
14 License along with the GNU C Library. If not, see14 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */15 <https://www.gnu.org/licenses/>. */
1616
17#ifndef _BITS_SIGCONTEXT_H17#ifndef _BITS_SIGCONTEXT_H
18#define _BITS_SIGCONTEXT_H 118#define _BITS_SIGCONTEXT_H 1
lib/libc/include/mips-linux-gnu/bits/signalfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SIGNALFD_H18#ifndef _SYS_SIGNALFD_H
19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
lib/libc/include/mips-linux-gnu/bits/signum.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Signal number definitions. Linux/MIPS version.1/* Signal number definitions. Linux/MIPS version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGNUM_H19#ifndef _BITS_SIGNUM_H
20#define _BITS_SIGNUM_H 120#define _BITS_SIGNUM_H 1
lib/libc/include/mips-linux-gnu/bits/socket-constants.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Socket constants which vary among Linux architectures. Version for MIPS.1/* Socket constants which vary among Linux architectures. Version for MIPS.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
lib/libc/include/mips-linux-gnu/bits/socket_type.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define enum __socket_type for Linux/MIPS.1/* Define enum __socket_type for Linux/MIPS.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
lib/libc/include/mips-linux-gnu/bits/statfs.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_STATFS_H18#ifndef _SYS_STATFS_H
19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
lib/libc/include/mips-linux-gnu/bits/struct_mutex.h created+56
...@@ -0,0 +1,56 @@
1/* MIPS internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#if _MIPS_SIM == _ABI64
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#if _MIPS_SIM == _ABI64
34 int __spins;
35 __pthread_list_t __list;
36# define __PTHREAD_MUTEX_HAVE_PREV 1
37#else
38 unsigned int __nusers;
39 __extension__ union
40 {
41 int __spins;
42 __pthread_slist_t __list;
43 };
44# define __PTHREAD_MUTEX_HAVE_PREV 0
45#endif
46};
47
48#if _MIPS_SIM == _ABI64
49# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
50 0, 0, 0, 0, __kind, 0, { 0, 0 }
51#else
52# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
53 0, 0, 0, __kind, 0, { 0 }
54#endif
55
56#endif
\ No newline at end of file
lib/libc/include/mips-linux-gnu/bits/termios-c_cc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios c_cc symbolic constant definitions. Linux/mips version.1/* termios c_cc symbolic constant definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
lib/libc/include/mips-linux-gnu/bits/termios-c_lflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/mips version.1/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
lib/libc/include/mips-linux-gnu/bits/termios-struct.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* struct termios definition. Linux/mips version.1/* struct termios definition. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
lib/libc/include/mips-linux-gnu/bits/termios-tcflow.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/mips version.1/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
lib/libc/include/mips-linux-gnu/bits/timerfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2008-2019 Free Software Foundation, Inc.1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIMERFD_H18#ifndef _SYS_TIMERFD_H
19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
lib/libc/include/mips-linux-gnu/bits/types/stack_t.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define stack_t. MIPS Linux version.1/* Define stack_t. MIPS Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __stack_t_defined19#ifndef __stack_t_defined
20#define __stack_t_defined 120#define __stack_t_defined 1
lib/libc/include/mips-linux-gnu/ieee754.h+12-9
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,16 +13,19 @@...@@ -13,16 +13,19 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25#include <float.h>25#ifndef __LDBL_MANT_DIG__
26# include <float.h>
27# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
28#endif
2629
27__BEGIN_DECLS30__BEGIN_DECLS
2831
...@@ -127,7 +130,7 @@ union ieee754_double...@@ -127,7 +130,7 @@ union ieee754_double
127130
128#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */131#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
129132
130#if LDBL_MANT_DIG == 113133#if __LDBL_MANT_DIG__ == 113
131134
132union ieee854_long_double135union ieee854_long_double
133 {136 {
...@@ -184,7 +187,7 @@ union ieee854_long_double...@@ -184,7 +187,7 @@ union ieee854_long_double
184187
185#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */188#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
186189
187#elif LDBL_MANT_DIG == 64190#elif __LDBL_MANT_DIG__ == 64
188191
189union ieee854_long_double192union ieee854_long_double
190 {193 {
...@@ -253,7 +256,7 @@ union ieee854_long_double...@@ -253,7 +256,7 @@ union ieee854_long_double
253256
254#define IEEE854_LONG_DOUBLE_BIAS 0x3fff257#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
255258
256#elif LDBL_MANT_DIG == 53259#elif __LDBL_MANT_DIG__ == 53
257260
258union ieee854_long_double261union ieee854_long_double
259 {262 {
...@@ -316,7 +319,7 @@ union ieee854_long_double...@@ -316,7 +319,7 @@ union ieee854_long_double
316319
317#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */320#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
318321
319#endif /* LDBL_MANT_DIG == 53 */322#endif /* __LDBL_MANT_DIG__ == 53 */
320323
321__END_DECLS324__END_DECLS
322325
lib/libc/include/mips64-linux-gnuabi64/bits/dlfcn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System dependent definitions for run-time dynamic loading.1/* System dependent definitions for run-time dynamic loading.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _DLFCN_H19#ifndef _DLFCN_H
20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/errno.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Error constants. MIPS/Linux specific version.1/* Error constants. MIPS/Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_ERRNO_H19#ifndef _BITS_ERRNO_H
2020
lib/libc/include/mips64-linux-gnuabi64/bits/eventfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EVENTFD_H18#ifndef _SYS_EVENTFD_H
19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/inotify.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_INOTIFY_H18#ifndef _SYS_INOTIFY_H
19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/ioctl-types.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.1/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IOCTL_H19#ifndef _SYS_IOCTL_H
20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/ipc.h deleted-54
...@@ -1,54 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23
24/* Mode bits for `msgget', `semget', and `shmget'. */
25#define IPC_CREAT 01000 /* Create key if key does not exist. */
26#define IPC_EXCL 02000 /* Fail if key exists. */
27#define IPC_NOWAIT 04000 /* Return error on wait. */
28
29/* Control commands for `msgctl', `semctl', and `shmctl'. */
30#define IPC_RMID 0 /* Remove identifier. */
31#define IPC_SET 1 /* Set `ipc_perm' options. */
32#define IPC_STAT 2 /* Get `ipc_perm' options. */
33#ifdef __USE_GNU
34# define IPC_INFO 3 /* See ipcs. */
35#endif
36
37/* Special key values. */
38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
39
40
41/* Data structure used to pass permission information to IPC operations. */
42struct ipc_perm
43 {
44 __key_t __key; /* Key. */
45 unsigned int uid; /* Owner's user ID. */
46 unsigned int gid; /* Owner's group ID. */
47 unsigned int cuid; /* Creator's user ID. */
48 unsigned int cgid; /* Creator's group ID. */
49 unsigned int mode; /* Read/write permission. */
50 unsigned short int __seq; /* Sequence number. */
51 unsigned short int __pad1;
52 unsigned long int __glibc_reserved1;
53 unsigned long int __glibc_reserved2;
54};
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/ipctypes.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * Never include <bits/ipctypes.h> directly.20 * Never include <bits/ipctypes.h> directly.
lib/libc/include/mips64-linux-gnuabi64/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. MIPS Linux version.1/* Minimum guaranteed maximum values for system limits. MIPS Linux version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* The kernel header pollutes the namespace with the NR_OPEN symbol19/* The kernel header pollutes the namespace with the NR_OPEN symbol
20 and defines LINK_MAX although filesystems have different maxima. A20 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/mips64-linux-gnuabi64/bits/mman.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/MIPS version.1/* Definitions for POSIX memory map interface. Linux/MIPS version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/msq-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct msqid_ds. MIPS version.1/* Define where padding goes in struct msqid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MSG_H19#ifndef _SYS_MSG_H
20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/poll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_POLL_H18#ifndef _SYS_POLL_H
19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/pthreadtypes-arch.h created+44
...@@ -0,0 +1,44 @@
1/* Machine-specific pthread type layouts. MIPS version.
2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <https://www.gnu.org/licenses/>. */
18
19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 1
21
22#include <bits/endian.h>
23
24#if _MIPS_SIM == _ABI64
25# define __SIZEOF_PTHREAD_ATTR_T 56
26# define __SIZEOF_PTHREAD_MUTEX_T 40
27# define __SIZEOF_PTHREAD_RWLOCK_T 56
28# define __SIZEOF_PTHREAD_BARRIER_T 32
29#else
30# define __SIZEOF_PTHREAD_ATTR_T 36
31# define __SIZEOF_PTHREAD_MUTEX_T 24
32# define __SIZEOF_PTHREAD_RWLOCK_T 32
33# define __SIZEOF_PTHREAD_BARRIER_T 20
34#endif
35#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
36#define __SIZEOF_PTHREAD_COND_T 48
37#define __SIZEOF_PTHREAD_CONDATTR_T 4
38#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
39#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
40
41#define __LOCK_ALIGNMENT
42#define __ONCE_ALIGNMENT
43
44#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/resource.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit values & structures for resource limits. Linux/MIPS version.1/* Bit values & structures for resource limits. Linux/MIPS version.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_RESOURCE_H19#ifndef _SYS_RESOURCE_H
20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. MIPS version.1/* Define where padding goes in struct semid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/shm-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct shmid_ds. MIPS version.1/* Define where padding goes in struct shmid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. MIPS version.1/* Define SHMLBA. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/sigaction.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* The proper definitions for Linux/MIPS's sigaction.1/* The proper definitions for Linux/MIPS's sigaction.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGACTION_H19#ifndef _BITS_SIGACTION_H
20#define _BITS_SIGACTION_H 120#define _BITS_SIGACTION_H 1
lib/libc/include/mips64-linux-gnuabi64/bits/sigcontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc. This file is part of the GNU C Library.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc. This file is part of the GNU C Library.
22
3 The GNU C Library is free software; you can redistribute it and/or3 The GNU C Library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Lesser General Public4 modify it under the terms of the GNU Lesser General Public
...@@ -12,7 +12,7 @@...@@ -12,7 +12,7 @@
1212
13 You should have received a copy of the GNU Lesser General Public13 You should have received a copy of the GNU Lesser General Public
14 License along with the GNU C Library. If not, see14 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */15 <https://www.gnu.org/licenses/>. */
1616
17#ifndef _BITS_SIGCONTEXT_H17#ifndef _BITS_SIGCONTEXT_H
18#define _BITS_SIGCONTEXT_H 118#define _BITS_SIGCONTEXT_H 1
lib/libc/include/mips64-linux-gnuabi64/bits/signalfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SIGNALFD_H18#ifndef _SYS_SIGNALFD_H
19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/signum.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Signal number definitions. Linux/MIPS version.1/* Signal number definitions. Linux/MIPS version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGNUM_H19#ifndef _BITS_SIGNUM_H
20#define _BITS_SIGNUM_H 120#define _BITS_SIGNUM_H 1
lib/libc/include/mips64-linux-gnuabi64/bits/socket-constants.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Socket constants which vary among Linux architectures. Version for MIPS.1/* Socket constants which vary among Linux architectures. Version for MIPS.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/socket_type.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define enum __socket_type for Linux/MIPS.1/* Define enum __socket_type for Linux/MIPS.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/statfs.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_STATFS_H18#ifndef _SYS_STATFS_H
19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/struct_mutex.h created+56
...@@ -0,0 +1,56 @@
1/* MIPS internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#if _MIPS_SIM == _ABI64
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#if _MIPS_SIM == _ABI64
34 int __spins;
35 __pthread_list_t __list;
36# define __PTHREAD_MUTEX_HAVE_PREV 1
37#else
38 unsigned int __nusers;
39 __extension__ union
40 {
41 int __spins;
42 __pthread_slist_t __list;
43 };
44# define __PTHREAD_MUTEX_HAVE_PREV 0
45#endif
46};
47
48#if _MIPS_SIM == _ABI64
49# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
50 0, 0, 0, 0, __kind, 0, { 0, 0 }
51#else
52# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
53 0, 0, 0, __kind, 0, { 0 }
54#endif
55
56#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabi64/bits/termios-c_cc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios c_cc symbolic constant definitions. Linux/mips version.1/* termios c_cc symbolic constant definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/termios-c_lflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/mips version.1/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/termios-struct.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* struct termios definition. Linux/mips version.1/* struct termios definition. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/termios-tcflow.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/mips version.1/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/timerfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2008-2019 Free Software Foundation, Inc.1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIMERFD_H18#ifndef _SYS_TIMERFD_H
19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
lib/libc/include/mips64-linux-gnuabi64/bits/types/stack_t.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define stack_t. MIPS Linux version.1/* Define stack_t. MIPS Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __stack_t_defined19#ifndef __stack_t_defined
20#define __stack_t_defined 120#define __stack_t_defined 1
lib/libc/include/mips64-linux-gnuabi64/ieee754.h+12-9
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,16 +13,19 @@...@@ -13,16 +13,19 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25#include <float.h>25#ifndef __LDBL_MANT_DIG__
26# include <float.h>
27# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
28#endif
2629
27__BEGIN_DECLS30__BEGIN_DECLS
2831
...@@ -127,7 +130,7 @@ union ieee754_double...@@ -127,7 +130,7 @@ union ieee754_double
127130
128#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */131#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
129132
130#if LDBL_MANT_DIG == 113133#if __LDBL_MANT_DIG__ == 113
131134
132union ieee854_long_double135union ieee854_long_double
133 {136 {
...@@ -184,7 +187,7 @@ union ieee854_long_double...@@ -184,7 +187,7 @@ union ieee854_long_double
184187
185#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */188#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
186189
187#elif LDBL_MANT_DIG == 64190#elif __LDBL_MANT_DIG__ == 64
188191
189union ieee854_long_double192union ieee854_long_double
190 {193 {
...@@ -253,7 +256,7 @@ union ieee854_long_double...@@ -253,7 +256,7 @@ union ieee854_long_double
253256
254#define IEEE854_LONG_DOUBLE_BIAS 0x3fff257#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
255258
256#elif LDBL_MANT_DIG == 53259#elif __LDBL_MANT_DIG__ == 53
257260
258union ieee854_long_double261union ieee854_long_double
259 {262 {
...@@ -316,7 +319,7 @@ union ieee854_long_double...@@ -316,7 +319,7 @@ union ieee854_long_double
316319
317#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */320#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
318321
319#endif /* LDBL_MANT_DIG == 53 */322#endif /* __LDBL_MANT_DIG__ == 53 */
320323
321__END_DECLS324__END_DECLS
322325
lib/libc/include/mips64-linux-gnuabin32/bits/dlfcn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System dependent definitions for run-time dynamic loading.1/* System dependent definitions for run-time dynamic loading.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _DLFCN_H19#ifndef _DLFCN_H
20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/errno.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Error constants. MIPS/Linux specific version.1/* Error constants. MIPS/Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_ERRNO_H19#ifndef _BITS_ERRNO_H
2020
lib/libc/include/mips64-linux-gnuabin32/bits/eventfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EVENTFD_H18#ifndef _SYS_EVENTFD_H
19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/inotify.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_INOTIFY_H18#ifndef _SYS_INOTIFY_H
19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/ioctl-types.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.1/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IOCTL_H19#ifndef _SYS_IOCTL_H
20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/ipc.h deleted-54
...@@ -1,54 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23
24/* Mode bits for `msgget', `semget', and `shmget'. */
25#define IPC_CREAT 01000 /* Create key if key does not exist. */
26#define IPC_EXCL 02000 /* Fail if key exists. */
27#define IPC_NOWAIT 04000 /* Return error on wait. */
28
29/* Control commands for `msgctl', `semctl', and `shmctl'. */
30#define IPC_RMID 0 /* Remove identifier. */
31#define IPC_SET 1 /* Set `ipc_perm' options. */
32#define IPC_STAT 2 /* Get `ipc_perm' options. */
33#ifdef __USE_GNU
34# define IPC_INFO 3 /* See ipcs. */
35#endif
36
37/* Special key values. */
38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
39
40
41/* Data structure used to pass permission information to IPC operations. */
42struct ipc_perm
43 {
44 __key_t __key; /* Key. */
45 unsigned int uid; /* Owner's user ID. */
46 unsigned int gid; /* Owner's group ID. */
47 unsigned int cuid; /* Creator's user ID. */
48 unsigned int cgid; /* Creator's group ID. */
49 unsigned int mode; /* Read/write permission. */
50 unsigned short int __seq; /* Sequence number. */
51 unsigned short int __pad1;
52 unsigned long int __glibc_reserved1;
53 unsigned long int __glibc_reserved2;
54};
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/ipctypes.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * Never include <bits/ipctypes.h> directly.20 * Never include <bits/ipctypes.h> directly.
lib/libc/include/mips64-linux-gnuabin32/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. MIPS Linux version.1/* Minimum guaranteed maximum values for system limits. MIPS Linux version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* The kernel header pollutes the namespace with the NR_OPEN symbol19/* The kernel header pollutes the namespace with the NR_OPEN symbol
20 and defines LINK_MAX although filesystems have different maxima. A20 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/mips64-linux-gnuabin32/bits/mman.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/MIPS version.1/* Definitions for POSIX memory map interface. Linux/MIPS version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/msq-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct msqid_ds. MIPS version.1/* Define where padding goes in struct msqid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MSG_H19#ifndef _SYS_MSG_H
20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/poll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_POLL_H18#ifndef _SYS_POLL_H
19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/pthreadtypes-arch.h created+44
...@@ -0,0 +1,44 @@
1/* Machine-specific pthread type layouts. MIPS version.
2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <https://www.gnu.org/licenses/>. */
18
19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 1
21
22#include <bits/endian.h>
23
24#if _MIPS_SIM == _ABI64
25# define __SIZEOF_PTHREAD_ATTR_T 56
26# define __SIZEOF_PTHREAD_MUTEX_T 40
27# define __SIZEOF_PTHREAD_RWLOCK_T 56
28# define __SIZEOF_PTHREAD_BARRIER_T 32
29#else
30# define __SIZEOF_PTHREAD_ATTR_T 36
31# define __SIZEOF_PTHREAD_MUTEX_T 24
32# define __SIZEOF_PTHREAD_RWLOCK_T 32
33# define __SIZEOF_PTHREAD_BARRIER_T 20
34#endif
35#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
36#define __SIZEOF_PTHREAD_COND_T 48
37#define __SIZEOF_PTHREAD_CONDATTR_T 4
38#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
39#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
40
41#define __LOCK_ALIGNMENT
42#define __ONCE_ALIGNMENT
43
44#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/resource.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit values & structures for resource limits. Linux/MIPS version.1/* Bit values & structures for resource limits. Linux/MIPS version.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_RESOURCE_H19#ifndef _SYS_RESOURCE_H
20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. MIPS version.1/* Define where padding goes in struct semid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/shm-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct shmid_ds. MIPS version.1/* Define where padding goes in struct shmid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. MIPS version.1/* Define SHMLBA. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/sigaction.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* The proper definitions for Linux/MIPS's sigaction.1/* The proper definitions for Linux/MIPS's sigaction.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGACTION_H19#ifndef _BITS_SIGACTION_H
20#define _BITS_SIGACTION_H 120#define _BITS_SIGACTION_H 1
lib/libc/include/mips64-linux-gnuabin32/bits/sigcontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc. This file is part of the GNU C Library.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc. This file is part of the GNU C Library.
22
3 The GNU C Library is free software; you can redistribute it and/or3 The GNU C Library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Lesser General Public4 modify it under the terms of the GNU Lesser General Public
...@@ -12,7 +12,7 @@...@@ -12,7 +12,7 @@
1212
13 You should have received a copy of the GNU Lesser General Public13 You should have received a copy of the GNU Lesser General Public
14 License along with the GNU C Library. If not, see14 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */15 <https://www.gnu.org/licenses/>. */
1616
17#ifndef _BITS_SIGCONTEXT_H17#ifndef _BITS_SIGCONTEXT_H
18#define _BITS_SIGCONTEXT_H 118#define _BITS_SIGCONTEXT_H 1
lib/libc/include/mips64-linux-gnuabin32/bits/signalfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SIGNALFD_H18#ifndef _SYS_SIGNALFD_H
19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/signum.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Signal number definitions. Linux/MIPS version.1/* Signal number definitions. Linux/MIPS version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGNUM_H19#ifndef _BITS_SIGNUM_H
20#define _BITS_SIGNUM_H 120#define _BITS_SIGNUM_H 1
lib/libc/include/mips64-linux-gnuabin32/bits/socket-constants.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Socket constants which vary among Linux architectures. Version for MIPS.1/* Socket constants which vary among Linux architectures. Version for MIPS.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/socket_type.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define enum __socket_type for Linux/MIPS.1/* Define enum __socket_type for Linux/MIPS.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/statfs.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_STATFS_H18#ifndef _SYS_STATFS_H
19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/struct_mutex.h created+56
...@@ -0,0 +1,56 @@
1/* MIPS internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#if _MIPS_SIM == _ABI64
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#if _MIPS_SIM == _ABI64
34 int __spins;
35 __pthread_list_t __list;
36# define __PTHREAD_MUTEX_HAVE_PREV 1
37#else
38 unsigned int __nusers;
39 __extension__ union
40 {
41 int __spins;
42 __pthread_slist_t __list;
43 };
44# define __PTHREAD_MUTEX_HAVE_PREV 0
45#endif
46};
47
48#if _MIPS_SIM == _ABI64
49# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
50 0, 0, 0, 0, __kind, 0, { 0, 0 }
51#else
52# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
53 0, 0, 0, __kind, 0, { 0 }
54#endif
55
56#endif
\ No newline at end of file
lib/libc/include/mips64-linux-gnuabin32/bits/termios-c_cc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios c_cc symbolic constant definitions. Linux/mips version.1/* termios c_cc symbolic constant definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/termios-c_lflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/mips version.1/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/termios-struct.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* struct termios definition. Linux/mips version.1/* struct termios definition. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/termios-tcflow.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/mips version.1/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/timerfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2008-2019 Free Software Foundation, Inc.1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIMERFD_H18#ifndef _SYS_TIMERFD_H
19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
lib/libc/include/mips64-linux-gnuabin32/bits/types/stack_t.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define stack_t. MIPS Linux version.1/* Define stack_t. MIPS Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __stack_t_defined19#ifndef __stack_t_defined
20#define __stack_t_defined 120#define __stack_t_defined 1
lib/libc/include/mips64-linux-gnuabin32/ieee754.h+12-9
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,16 +13,19 @@...@@ -13,16 +13,19 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25#include <float.h>25#ifndef __LDBL_MANT_DIG__
26# include <float.h>
27# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
28#endif
2629
27__BEGIN_DECLS30__BEGIN_DECLS
2831
...@@ -127,7 +130,7 @@ union ieee754_double...@@ -127,7 +130,7 @@ union ieee754_double
127130
128#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */131#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
129132
130#if LDBL_MANT_DIG == 113133#if __LDBL_MANT_DIG__ == 113
131134
132union ieee854_long_double135union ieee854_long_double
133 {136 {
...@@ -184,7 +187,7 @@ union ieee854_long_double...@@ -184,7 +187,7 @@ union ieee854_long_double
184187
185#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */188#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
186189
187#elif LDBL_MANT_DIG == 64190#elif __LDBL_MANT_DIG__ == 64
188191
189union ieee854_long_double192union ieee854_long_double
190 {193 {
...@@ -253,7 +256,7 @@ union ieee854_long_double...@@ -253,7 +256,7 @@ union ieee854_long_double
253256
254#define IEEE854_LONG_DOUBLE_BIAS 0x3fff257#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
255258
256#elif LDBL_MANT_DIG == 53259#elif __LDBL_MANT_DIG__ == 53
257260
258union ieee854_long_double261union ieee854_long_double
259 {262 {
...@@ -316,7 +319,7 @@ union ieee854_long_double...@@ -316,7 +319,7 @@ union ieee854_long_double
316319
317#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */320#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
318321
319#endif /* LDBL_MANT_DIG == 53 */322#endif /* __LDBL_MANT_DIG__ == 53 */
320323
321__END_DECLS324__END_DECLS
322325
lib/libc/include/mips64el-linux-gnuabi64/bits/dlfcn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System dependent definitions for run-time dynamic loading.1/* System dependent definitions for run-time dynamic loading.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _DLFCN_H19#ifndef _DLFCN_H
20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/errno.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Error constants. MIPS/Linux specific version.1/* Error constants. MIPS/Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_ERRNO_H19#ifndef _BITS_ERRNO_H
2020
lib/libc/include/mips64el-linux-gnuabi64/bits/eventfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EVENTFD_H18#ifndef _SYS_EVENTFD_H
19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/inotify.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_INOTIFY_H18#ifndef _SYS_INOTIFY_H
19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/ioctl-types.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.1/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IOCTL_H19#ifndef _SYS_IOCTL_H
20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/ipc.h deleted-54
...@@ -1,54 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23
24/* Mode bits for `msgget', `semget', and `shmget'. */
25#define IPC_CREAT 01000 /* Create key if key does not exist. */
26#define IPC_EXCL 02000 /* Fail if key exists. */
27#define IPC_NOWAIT 04000 /* Return error on wait. */
28
29/* Control commands for `msgctl', `semctl', and `shmctl'. */
30#define IPC_RMID 0 /* Remove identifier. */
31#define IPC_SET 1 /* Set `ipc_perm' options. */
32#define IPC_STAT 2 /* Get `ipc_perm' options. */
33#ifdef __USE_GNU
34# define IPC_INFO 3 /* See ipcs. */
35#endif
36
37/* Special key values. */
38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
39
40
41/* Data structure used to pass permission information to IPC operations. */
42struct ipc_perm
43 {
44 __key_t __key; /* Key. */
45 unsigned int uid; /* Owner's user ID. */
46 unsigned int gid; /* Owner's group ID. */
47 unsigned int cuid; /* Creator's user ID. */
48 unsigned int cgid; /* Creator's group ID. */
49 unsigned int mode; /* Read/write permission. */
50 unsigned short int __seq; /* Sequence number. */
51 unsigned short int __pad1;
52 unsigned long int __glibc_reserved1;
53 unsigned long int __glibc_reserved2;
54};
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/ipctypes.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * Never include <bits/ipctypes.h> directly.20 * Never include <bits/ipctypes.h> directly.
lib/libc/include/mips64el-linux-gnuabi64/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. MIPS Linux version.1/* Minimum guaranteed maximum values for system limits. MIPS Linux version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* The kernel header pollutes the namespace with the NR_OPEN symbol19/* The kernel header pollutes the namespace with the NR_OPEN symbol
20 and defines LINK_MAX although filesystems have different maxima. A20 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/mips64el-linux-gnuabi64/bits/mman.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/MIPS version.1/* Definitions for POSIX memory map interface. Linux/MIPS version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/msq-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct msqid_ds. MIPS version.1/* Define where padding goes in struct msqid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MSG_H19#ifndef _SYS_MSG_H
20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/poll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_POLL_H18#ifndef _SYS_POLL_H
19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/pthreadtypes-arch.h created+44
...@@ -0,0 +1,44 @@
1/* Machine-specific pthread type layouts. MIPS version.
2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <https://www.gnu.org/licenses/>. */
18
19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 1
21
22#include <bits/endian.h>
23
24#if _MIPS_SIM == _ABI64
25# define __SIZEOF_PTHREAD_ATTR_T 56
26# define __SIZEOF_PTHREAD_MUTEX_T 40
27# define __SIZEOF_PTHREAD_RWLOCK_T 56
28# define __SIZEOF_PTHREAD_BARRIER_T 32
29#else
30# define __SIZEOF_PTHREAD_ATTR_T 36
31# define __SIZEOF_PTHREAD_MUTEX_T 24
32# define __SIZEOF_PTHREAD_RWLOCK_T 32
33# define __SIZEOF_PTHREAD_BARRIER_T 20
34#endif
35#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
36#define __SIZEOF_PTHREAD_COND_T 48
37#define __SIZEOF_PTHREAD_CONDATTR_T 4
38#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
39#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
40
41#define __LOCK_ALIGNMENT
42#define __ONCE_ALIGNMENT
43
44#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/resource.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit values & structures for resource limits. Linux/MIPS version.1/* Bit values & structures for resource limits. Linux/MIPS version.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_RESOURCE_H19#ifndef _SYS_RESOURCE_H
20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. MIPS version.1/* Define where padding goes in struct semid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/shm-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct shmid_ds. MIPS version.1/* Define where padding goes in struct shmid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. MIPS version.1/* Define SHMLBA. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/sigaction.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* The proper definitions for Linux/MIPS's sigaction.1/* The proper definitions for Linux/MIPS's sigaction.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGACTION_H19#ifndef _BITS_SIGACTION_H
20#define _BITS_SIGACTION_H 120#define _BITS_SIGACTION_H 1
lib/libc/include/mips64el-linux-gnuabi64/bits/sigcontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc. This file is part of the GNU C Library.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc. This file is part of the GNU C Library.
22
3 The GNU C Library is free software; you can redistribute it and/or3 The GNU C Library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Lesser General Public4 modify it under the terms of the GNU Lesser General Public
...@@ -12,7 +12,7 @@...@@ -12,7 +12,7 @@
1212
13 You should have received a copy of the GNU Lesser General Public13 You should have received a copy of the GNU Lesser General Public
14 License along with the GNU C Library. If not, see14 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */15 <https://www.gnu.org/licenses/>. */
1616
17#ifndef _BITS_SIGCONTEXT_H17#ifndef _BITS_SIGCONTEXT_H
18#define _BITS_SIGCONTEXT_H 118#define _BITS_SIGCONTEXT_H 1
lib/libc/include/mips64el-linux-gnuabi64/bits/signalfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SIGNALFD_H18#ifndef _SYS_SIGNALFD_H
19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/signum.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Signal number definitions. Linux/MIPS version.1/* Signal number definitions. Linux/MIPS version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGNUM_H19#ifndef _BITS_SIGNUM_H
20#define _BITS_SIGNUM_H 120#define _BITS_SIGNUM_H 1
lib/libc/include/mips64el-linux-gnuabi64/bits/socket-constants.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Socket constants which vary among Linux architectures. Version for MIPS.1/* Socket constants which vary among Linux architectures. Version for MIPS.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/socket_type.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define enum __socket_type for Linux/MIPS.1/* Define enum __socket_type for Linux/MIPS.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/statfs.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_STATFS_H18#ifndef _SYS_STATFS_H
19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/struct_mutex.h created+56
...@@ -0,0 +1,56 @@
1/* MIPS internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#if _MIPS_SIM == _ABI64
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#if _MIPS_SIM == _ABI64
34 int __spins;
35 __pthread_list_t __list;
36# define __PTHREAD_MUTEX_HAVE_PREV 1
37#else
38 unsigned int __nusers;
39 __extension__ union
40 {
41 int __spins;
42 __pthread_slist_t __list;
43 };
44# define __PTHREAD_MUTEX_HAVE_PREV 0
45#endif
46};
47
48#if _MIPS_SIM == _ABI64
49# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
50 0, 0, 0, 0, __kind, 0, { 0, 0 }
51#else
52# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
53 0, 0, 0, __kind, 0, { 0 }
54#endif
55
56#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabi64/bits/termios-c_cc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios c_cc symbolic constant definitions. Linux/mips version.1/* termios c_cc symbolic constant definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/termios-c_lflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/mips version.1/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/termios-struct.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* struct termios definition. Linux/mips version.1/* struct termios definition. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/termios-tcflow.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/mips version.1/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/timerfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2008-2019 Free Software Foundation, Inc.1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIMERFD_H18#ifndef _SYS_TIMERFD_H
19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
lib/libc/include/mips64el-linux-gnuabi64/bits/types/stack_t.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define stack_t. MIPS Linux version.1/* Define stack_t. MIPS Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __stack_t_defined19#ifndef __stack_t_defined
20#define __stack_t_defined 120#define __stack_t_defined 1
lib/libc/include/mips64el-linux-gnuabi64/ieee754.h+12-9
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,16 +13,19 @@...@@ -13,16 +13,19 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25#include <float.h>25#ifndef __LDBL_MANT_DIG__
26# include <float.h>
27# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
28#endif
2629
27__BEGIN_DECLS30__BEGIN_DECLS
2831
...@@ -127,7 +130,7 @@ union ieee754_double...@@ -127,7 +130,7 @@ union ieee754_double
127130
128#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */131#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
129132
130#if LDBL_MANT_DIG == 113133#if __LDBL_MANT_DIG__ == 113
131134
132union ieee854_long_double135union ieee854_long_double
133 {136 {
...@@ -184,7 +187,7 @@ union ieee854_long_double...@@ -184,7 +187,7 @@ union ieee854_long_double
184187
185#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */188#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
186189
187#elif LDBL_MANT_DIG == 64190#elif __LDBL_MANT_DIG__ == 64
188191
189union ieee854_long_double192union ieee854_long_double
190 {193 {
...@@ -253,7 +256,7 @@ union ieee854_long_double...@@ -253,7 +256,7 @@ union ieee854_long_double
253256
254#define IEEE854_LONG_DOUBLE_BIAS 0x3fff257#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
255258
256#elif LDBL_MANT_DIG == 53259#elif __LDBL_MANT_DIG__ == 53
257260
258union ieee854_long_double261union ieee854_long_double
259 {262 {
...@@ -316,7 +319,7 @@ union ieee854_long_double...@@ -316,7 +319,7 @@ union ieee854_long_double
316319
317#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */320#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
318321
319#endif /* LDBL_MANT_DIG == 53 */322#endif /* __LDBL_MANT_DIG__ == 53 */
320323
321__END_DECLS324__END_DECLS
322325
lib/libc/include/mips64el-linux-gnuabin32/bits/dlfcn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System dependent definitions for run-time dynamic loading.1/* System dependent definitions for run-time dynamic loading.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _DLFCN_H19#ifndef _DLFCN_H
20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/errno.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Error constants. MIPS/Linux specific version.1/* Error constants. MIPS/Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_ERRNO_H19#ifndef _BITS_ERRNO_H
2020
lib/libc/include/mips64el-linux-gnuabin32/bits/eventfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EVENTFD_H18#ifndef _SYS_EVENTFD_H
19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/inotify.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_INOTIFY_H18#ifndef _SYS_INOTIFY_H
19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/ioctl-types.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.1/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IOCTL_H19#ifndef _SYS_IOCTL_H
20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/ipc.h deleted-54
...@@ -1,54 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23
24/* Mode bits for `msgget', `semget', and `shmget'. */
25#define IPC_CREAT 01000 /* Create key if key does not exist. */
26#define IPC_EXCL 02000 /* Fail if key exists. */
27#define IPC_NOWAIT 04000 /* Return error on wait. */
28
29/* Control commands for `msgctl', `semctl', and `shmctl'. */
30#define IPC_RMID 0 /* Remove identifier. */
31#define IPC_SET 1 /* Set `ipc_perm' options. */
32#define IPC_STAT 2 /* Get `ipc_perm' options. */
33#ifdef __USE_GNU
34# define IPC_INFO 3 /* See ipcs. */
35#endif
36
37/* Special key values. */
38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
39
40
41/* Data structure used to pass permission information to IPC operations. */
42struct ipc_perm
43 {
44 __key_t __key; /* Key. */
45 unsigned int uid; /* Owner's user ID. */
46 unsigned int gid; /* Owner's group ID. */
47 unsigned int cuid; /* Creator's user ID. */
48 unsigned int cgid; /* Creator's group ID. */
49 unsigned int mode; /* Read/write permission. */
50 unsigned short int __seq; /* Sequence number. */
51 unsigned short int __pad1;
52 unsigned long int __glibc_reserved1;
53 unsigned long int __glibc_reserved2;
54};
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/ipctypes.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * Never include <bits/ipctypes.h> directly.20 * Never include <bits/ipctypes.h> directly.
lib/libc/include/mips64el-linux-gnuabin32/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. MIPS Linux version.1/* Minimum guaranteed maximum values for system limits. MIPS Linux version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* The kernel header pollutes the namespace with the NR_OPEN symbol19/* The kernel header pollutes the namespace with the NR_OPEN symbol
20 and defines LINK_MAX although filesystems have different maxima. A20 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/mips64el-linux-gnuabin32/bits/mman.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/MIPS version.1/* Definitions for POSIX memory map interface. Linux/MIPS version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/msq-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct msqid_ds. MIPS version.1/* Define where padding goes in struct msqid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MSG_H19#ifndef _SYS_MSG_H
20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/poll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_POLL_H18#ifndef _SYS_POLL_H
19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/pthreadtypes-arch.h created+44
...@@ -0,0 +1,44 @@
1/* Machine-specific pthread type layouts. MIPS version.
2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <https://www.gnu.org/licenses/>. */
18
19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 1
21
22#include <bits/endian.h>
23
24#if _MIPS_SIM == _ABI64
25# define __SIZEOF_PTHREAD_ATTR_T 56
26# define __SIZEOF_PTHREAD_MUTEX_T 40
27# define __SIZEOF_PTHREAD_RWLOCK_T 56
28# define __SIZEOF_PTHREAD_BARRIER_T 32
29#else
30# define __SIZEOF_PTHREAD_ATTR_T 36
31# define __SIZEOF_PTHREAD_MUTEX_T 24
32# define __SIZEOF_PTHREAD_RWLOCK_T 32
33# define __SIZEOF_PTHREAD_BARRIER_T 20
34#endif
35#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
36#define __SIZEOF_PTHREAD_COND_T 48
37#define __SIZEOF_PTHREAD_CONDATTR_T 4
38#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
39#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
40
41#define __LOCK_ALIGNMENT
42#define __ONCE_ALIGNMENT
43
44#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/resource.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit values & structures for resource limits. Linux/MIPS version.1/* Bit values & structures for resource limits. Linux/MIPS version.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_RESOURCE_H19#ifndef _SYS_RESOURCE_H
20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. MIPS version.1/* Define where padding goes in struct semid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/shm-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct shmid_ds. MIPS version.1/* Define where padding goes in struct shmid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. MIPS version.1/* Define SHMLBA. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/sigaction.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* The proper definitions for Linux/MIPS's sigaction.1/* The proper definitions for Linux/MIPS's sigaction.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGACTION_H19#ifndef _BITS_SIGACTION_H
20#define _BITS_SIGACTION_H 120#define _BITS_SIGACTION_H 1
lib/libc/include/mips64el-linux-gnuabin32/bits/sigcontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc. This file is part of the GNU C Library.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc. This file is part of the GNU C Library.
22
3 The GNU C Library is free software; you can redistribute it and/or3 The GNU C Library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Lesser General Public4 modify it under the terms of the GNU Lesser General Public
...@@ -12,7 +12,7 @@...@@ -12,7 +12,7 @@
1212
13 You should have received a copy of the GNU Lesser General Public13 You should have received a copy of the GNU Lesser General Public
14 License along with the GNU C Library. If not, see14 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */15 <https://www.gnu.org/licenses/>. */
1616
17#ifndef _BITS_SIGCONTEXT_H17#ifndef _BITS_SIGCONTEXT_H
18#define _BITS_SIGCONTEXT_H 118#define _BITS_SIGCONTEXT_H 1
lib/libc/include/mips64el-linux-gnuabin32/bits/signalfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SIGNALFD_H18#ifndef _SYS_SIGNALFD_H
19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/signum.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Signal number definitions. Linux/MIPS version.1/* Signal number definitions. Linux/MIPS version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGNUM_H19#ifndef _BITS_SIGNUM_H
20#define _BITS_SIGNUM_H 120#define _BITS_SIGNUM_H 1
lib/libc/include/mips64el-linux-gnuabin32/bits/socket-constants.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Socket constants which vary among Linux architectures. Version for MIPS.1/* Socket constants which vary among Linux architectures. Version for MIPS.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/socket_type.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define enum __socket_type for Linux/MIPS.1/* Define enum __socket_type for Linux/MIPS.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/statfs.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_STATFS_H18#ifndef _SYS_STATFS_H
19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/struct_mutex.h created+56
...@@ -0,0 +1,56 @@
1/* MIPS internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#if _MIPS_SIM == _ABI64
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#if _MIPS_SIM == _ABI64
34 int __spins;
35 __pthread_list_t __list;
36# define __PTHREAD_MUTEX_HAVE_PREV 1
37#else
38 unsigned int __nusers;
39 __extension__ union
40 {
41 int __spins;
42 __pthread_slist_t __list;
43 };
44# define __PTHREAD_MUTEX_HAVE_PREV 0
45#endif
46};
47
48#if _MIPS_SIM == _ABI64
49# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
50 0, 0, 0, 0, __kind, 0, { 0, 0 }
51#else
52# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
53 0, 0, 0, __kind, 0, { 0 }
54#endif
55
56#endif
\ No newline at end of file
lib/libc/include/mips64el-linux-gnuabin32/bits/termios-c_cc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios c_cc symbolic constant definitions. Linux/mips version.1/* termios c_cc symbolic constant definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/termios-c_lflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/mips version.1/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/termios-struct.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* struct termios definition. Linux/mips version.1/* struct termios definition. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/termios-tcflow.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/mips version.1/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/timerfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2008-2019 Free Software Foundation, Inc.1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIMERFD_H18#ifndef _SYS_TIMERFD_H
19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
lib/libc/include/mips64el-linux-gnuabin32/bits/types/stack_t.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define stack_t. MIPS Linux version.1/* Define stack_t. MIPS Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __stack_t_defined19#ifndef __stack_t_defined
20#define __stack_t_defined 120#define __stack_t_defined 1
lib/libc/include/mips64el-linux-gnuabin32/ieee754.h+12-9
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,16 +13,19 @@...@@ -13,16 +13,19 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25#include <float.h>25#ifndef __LDBL_MANT_DIG__
26# include <float.h>
27# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
28#endif
2629
27__BEGIN_DECLS30__BEGIN_DECLS
2831
...@@ -127,7 +130,7 @@ union ieee754_double...@@ -127,7 +130,7 @@ union ieee754_double
127130
128#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */131#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
129132
130#if LDBL_MANT_DIG == 113133#if __LDBL_MANT_DIG__ == 113
131134
132union ieee854_long_double135union ieee854_long_double
133 {136 {
...@@ -184,7 +187,7 @@ union ieee854_long_double...@@ -184,7 +187,7 @@ union ieee854_long_double
184187
185#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */188#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
186189
187#elif LDBL_MANT_DIG == 64190#elif __LDBL_MANT_DIG__ == 64
188191
189union ieee854_long_double192union ieee854_long_double
190 {193 {
...@@ -253,7 +256,7 @@ union ieee854_long_double...@@ -253,7 +256,7 @@ union ieee854_long_double
253256
254#define IEEE854_LONG_DOUBLE_BIAS 0x3fff257#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
255258
256#elif LDBL_MANT_DIG == 53259#elif __LDBL_MANT_DIG__ == 53
257260
258union ieee854_long_double261union ieee854_long_double
259 {262 {
...@@ -316,7 +319,7 @@ union ieee854_long_double...@@ -316,7 +319,7 @@ union ieee854_long_double
316319
317#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */320#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
318321
319#endif /* LDBL_MANT_DIG == 53 */322#endif /* __LDBL_MANT_DIG__ == 53 */
320323
321__END_DECLS324__END_DECLS
322325
lib/libc/include/mipsel-linux-gnu/bits/dlfcn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* System dependent definitions for run-time dynamic loading.1/* System dependent definitions for run-time dynamic loading.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _DLFCN_H19#ifndef _DLFCN_H
20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."20# error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/errno.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Error constants. MIPS/Linux specific version.1/* Error constants. MIPS/Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_ERRNO_H19#ifndef _BITS_ERRNO_H
2020
lib/libc/include/mipsel-linux-gnu/bits/eventfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EVENTFD_H18#ifndef _SYS_EVENTFD_H
19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/inotify.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_INOTIFY_H18#ifndef _SYS_INOTIFY_H
19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/ioctl-types.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.1/* Structure types for pre-termios terminal ioctls. Linux/MIPS version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IOCTL_H19#ifndef _SYS_IOCTL_H
20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/ipc.h deleted-54
...@@ -1,54 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23
24/* Mode bits for `msgget', `semget', and `shmget'. */
25#define IPC_CREAT 01000 /* Create key if key does not exist. */
26#define IPC_EXCL 02000 /* Fail if key exists. */
27#define IPC_NOWAIT 04000 /* Return error on wait. */
28
29/* Control commands for `msgctl', `semctl', and `shmctl'. */
30#define IPC_RMID 0 /* Remove identifier. */
31#define IPC_SET 1 /* Set `ipc_perm' options. */
32#define IPC_STAT 2 /* Get `ipc_perm' options. */
33#ifdef __USE_GNU
34# define IPC_INFO 3 /* See ipcs. */
35#endif
36
37/* Special key values. */
38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
39
40
41/* Data structure used to pass permission information to IPC operations. */
42struct ipc_perm
43 {
44 __key_t __key; /* Key. */
45 unsigned int uid; /* Owner's user ID. */
46 unsigned int gid; /* Owner's group ID. */
47 unsigned int cuid; /* Creator's user ID. */
48 unsigned int cgid; /* Creator's group ID. */
49 unsigned int mode; /* Read/write permission. */
50 unsigned short int __seq; /* Sequence number. */
51 unsigned short int __pad1;
52 unsigned long int __glibc_reserved1;
53 unsigned long int __glibc_reserved2;
54};
\ No newline at end of file
lib/libc/include/mipsel-linux-gnu/bits/ipctypes.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. MIPS version
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/*19/*
20 * Never include <bits/ipctypes.h> directly.20 * Never include <bits/ipctypes.h> directly.
lib/libc/include/mipsel-linux-gnu/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. MIPS Linux version.1/* Minimum guaranteed maximum values for system limits. MIPS Linux version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* The kernel header pollutes the namespace with the NR_OPEN symbol19/* The kernel header pollutes the namespace with the NR_OPEN symbol
20 and defines LINK_MAX although filesystems have different maxima. A20 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/mipsel-linux-gnu/bits/mman.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/MIPS version.1/* Definitions for POSIX memory map interface. Linux/MIPS version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/msq-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct msqid_ds. MIPS version.1/* Define where padding goes in struct msqid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MSG_H19#ifndef _SYS_MSG_H
20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/poll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_POLL_H18#ifndef _SYS_POLL_H
19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/pthreadtypes-arch.h created+44
...@@ -0,0 +1,44 @@
1/* Machine-specific pthread type layouts. MIPS version.
2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <https://www.gnu.org/licenses/>. */
18
19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 1
21
22#include <bits/endian.h>
23
24#if _MIPS_SIM == _ABI64
25# define __SIZEOF_PTHREAD_ATTR_T 56
26# define __SIZEOF_PTHREAD_MUTEX_T 40
27# define __SIZEOF_PTHREAD_RWLOCK_T 56
28# define __SIZEOF_PTHREAD_BARRIER_T 32
29#else
30# define __SIZEOF_PTHREAD_ATTR_T 36
31# define __SIZEOF_PTHREAD_MUTEX_T 24
32# define __SIZEOF_PTHREAD_RWLOCK_T 32
33# define __SIZEOF_PTHREAD_BARRIER_T 20
34#endif
35#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
36#define __SIZEOF_PTHREAD_COND_T 48
37#define __SIZEOF_PTHREAD_CONDATTR_T 4
38#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
39#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
40
41#define __LOCK_ALIGNMENT
42#define __ONCE_ALIGNMENT
43
44#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/mipsel-linux-gnu/bits/resource.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit values & structures for resource limits. Linux/MIPS version.1/* Bit values & structures for resource limits. Linux/MIPS version.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_RESOURCE_H19#ifndef _SYS_RESOURCE_H
20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. MIPS version.1/* Define where padding goes in struct semid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/shm-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct shmid_ds. MIPS version.1/* Define where padding goes in struct shmid_ds. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. MIPS version.1/* Define SHMLBA. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/sigaction.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* The proper definitions for Linux/MIPS's sigaction.1/* The proper definitions for Linux/MIPS's sigaction.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGACTION_H19#ifndef _BITS_SIGACTION_H
20#define _BITS_SIGACTION_H 120#define _BITS_SIGACTION_H 1
lib/libc/include/mipsel-linux-gnu/bits/sigcontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc. This file is part of the GNU C Library.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc. This file is part of the GNU C Library.
22
3 The GNU C Library is free software; you can redistribute it and/or3 The GNU C Library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Lesser General Public4 modify it under the terms of the GNU Lesser General Public
...@@ -12,7 +12,7 @@...@@ -12,7 +12,7 @@
1212
13 You should have received a copy of the GNU Lesser General Public13 You should have received a copy of the GNU Lesser General Public
14 License along with the GNU C Library. If not, see14 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */15 <https://www.gnu.org/licenses/>. */
1616
17#ifndef _BITS_SIGCONTEXT_H17#ifndef _BITS_SIGCONTEXT_H
18#define _BITS_SIGCONTEXT_H 118#define _BITS_SIGCONTEXT_H 1
lib/libc/include/mipsel-linux-gnu/bits/signalfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SIGNALFD_H18#ifndef _SYS_SIGNALFD_H
19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/signum.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Signal number definitions. Linux/MIPS version.1/* Signal number definitions. Linux/MIPS version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGNUM_H19#ifndef _BITS_SIGNUM_H
20#define _BITS_SIGNUM_H 120#define _BITS_SIGNUM_H 1
lib/libc/include/mipsel-linux-gnu/bits/socket-constants.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Socket constants which vary among Linux architectures. Version for MIPS.1/* Socket constants which vary among Linux architectures. Version for MIPS.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/socket_type.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define enum __socket_type for Linux/MIPS.1/* Define enum __socket_type for Linux/MIPS.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/statfs.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_STATFS_H18#ifndef _SYS_STATFS_H
19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/struct_mutex.h created+56
...@@ -0,0 +1,56 @@
1/* MIPS internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#if _MIPS_SIM == _ABI64
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#if _MIPS_SIM == _ABI64
34 int __spins;
35 __pthread_list_t __list;
36# define __PTHREAD_MUTEX_HAVE_PREV 1
37#else
38 unsigned int __nusers;
39 __extension__ union
40 {
41 int __spins;
42 __pthread_slist_t __list;
43 };
44# define __PTHREAD_MUTEX_HAVE_PREV 0
45#endif
46};
47
48#if _MIPS_SIM == _ABI64
49# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
50 0, 0, 0, 0, __kind, 0, { 0, 0 }
51#else
52# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
53 0, 0, 0, __kind, 0, { 0 }
54#endif
55
56#endif
\ No newline at end of file
lib/libc/include/mipsel-linux-gnu/bits/termios-c_cc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios c_cc symbolic constant definitions. Linux/mips version.1/* termios c_cc symbolic constant definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/termios-c_lflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/mips version.1/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/termios-struct.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* struct termios definition. Linux/mips version.1/* struct termios definition. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/termios-tcflow.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/mips version.1/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-tcflow.h> directly; use <termios.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/timerfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2008-2019 Free Software Foundation, Inc.1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIMERFD_H18#ifndef _SYS_TIMERFD_H
19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
lib/libc/include/mipsel-linux-gnu/bits/types/stack_t.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define stack_t. MIPS Linux version.1/* Define stack_t. MIPS Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __stack_t_defined19#ifndef __stack_t_defined
20#define __stack_t_defined 120#define __stack_t_defined 1
lib/libc/include/mipsel-linux-gnu/ieee754.h+12-9
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,16 +13,19 @@...@@ -13,16 +13,19 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25#include <float.h>25#ifndef __LDBL_MANT_DIG__
26# include <float.h>
27# define __LDBL_MANT_DIG__ LDBL_MANT_DIG
28#endif
2629
27__BEGIN_DECLS30__BEGIN_DECLS
2831
...@@ -127,7 +130,7 @@ union ieee754_double...@@ -127,7 +130,7 @@ union ieee754_double
127130
128#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */131#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
129132
130#if LDBL_MANT_DIG == 113133#if __LDBL_MANT_DIG__ == 113
131134
132union ieee854_long_double135union ieee854_long_double
133 {136 {
...@@ -184,7 +187,7 @@ union ieee854_long_double...@@ -184,7 +187,7 @@ union ieee854_long_double
184187
185#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */188#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
186189
187#elif LDBL_MANT_DIG == 64190#elif __LDBL_MANT_DIG__ == 64
188191
189union ieee854_long_double192union ieee854_long_double
190 {193 {
...@@ -253,7 +256,7 @@ union ieee854_long_double...@@ -253,7 +256,7 @@ union ieee854_long_double
253256
254#define IEEE854_LONG_DOUBLE_BIAS 0x3fff257#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
255258
256#elif LDBL_MANT_DIG == 53259#elif __LDBL_MANT_DIG__ == 53
257260
258union ieee854_long_double261union ieee854_long_double
259 {262 {
...@@ -316,7 +319,7 @@ union ieee854_long_double...@@ -316,7 +319,7 @@ union ieee854_long_double
316319
317#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */320#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
318321
319#endif /* LDBL_MANT_DIG == 53 */322#endif /* __LDBL_MANT_DIG__ == 53 */
320323
321__END_DECLS324__END_DECLS
322325
lib/libc/include/powerpc-linux-gnu/bits/endian.h deleted-36
...@@ -1,36 +0,0 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18/* PowerPC can be little or big endian. Hopefully gcc will know... */
19
20#ifndef _ENDIAN_H
21# error "Never use <bits/endian.h> directly; include <endian.h> instead."
22#endif
23
24#if defined __BIG_ENDIAN__ || defined _BIG_ENDIAN
25# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
26# error Both BIG_ENDIAN and LITTLE_ENDIAN defined!
27# endif
28# define __BYTE_ORDER __BIG_ENDIAN
29#else
30# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
31# define __BYTE_ORDER __LITTLE_ENDIAN
32# else
33# warning Cannot determine current byte order, assuming big-endian.
34# define __BYTE_ORDER __BIG_ENDIAN
35# endif
36#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnu/bits/endianness.h created+16
...@@ -0,0 +1,16 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* PowerPC has selectable endianness. */
9#if defined __BIG_ENDIAN__ || defined _BIG_ENDIAN
10# define __BYTE_ORDER __BIG_ENDIAN
11#endif
12#if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
13# define __BYTE_ORDER __LITTLE_ENDIAN
14#endif
15
16#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnu/bits/environments.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _UNISTD_H18#ifndef _UNISTD_H
19# error "Never include this file directly. Use <unistd.h> instead"19# error "Never include this file directly. Use <unistd.h> instead"
lib/libc/include/powerpc-linux-gnu/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux/PowerPC.1/* O_*, F_*, FD_* bit values for Linux/PowerPC.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -170,7 +170,7 @@ extern const fenv_t __fe_nonieee_env;...@@ -170,7 +170,7 @@ extern const fenv_t __fe_nonieee_env;
170170
171#endif171#endif
172172
173#if __GLIBC_USE (IEC_60559_BFP_EXT)173#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
174/* Type representing floating-point control modes. */174/* Type representing floating-point control modes. */
175typedef double femode_t;175typedef double femode_t;
176176
lib/libc/include/powerpc-linux-gnu/bits/fenvinline.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Inline floating-point environment handling functions for powerpc.1/* Inline floating-point environment handling functions for powerpc.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if defined __GNUC__ && !defined _SOFT_FLOAT && !defined __NO_FPRS__19#if defined __GNUC__ && !defined _SOFT_FLOAT && !defined __NO_FPRS__
2020
lib/libc/include/powerpc-linux-gnu/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on powerpc.1/* Macros to control TS 18661-3 glibc features on powerpc.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/powerpc-linux-gnu/bits/fp-fast.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define FP_FAST_* macros. PowerPC version.1/* Define FP_FAST_* macros. PowerPC version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."20# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP and AT_HWCAP2.1/* Defines for bits in AT_HWCAP and AT_HWCAP2.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)19#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/ioctl-types.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structure types for pre-termios terminal ioctls. Linux/powerpc version.1/* Structure types for pre-termios terminal ioctls. Linux/powerpc version.
2 Copyright (C) 2014-2019 Free Software Foundation, Inc.2 Copyright (C) 2014-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IOCTL_H19#ifndef _SYS_IOCTL_H
20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/ipc-perm.h created+36
...@@ -0,0 +1,36 @@
1/* struct ipc_perm definition. Linux/powerpc version.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
18
19#ifndef _SYS_IPC_H
20# error "Never use <bits/ipc-perm.h> directly; include <sys/ipc.h> instead."
21#endif
22
23/* Data structure used to pass permission information to IPC operations. */
24struct ipc_perm
25 {
26 __key_t __key; /* Key. */
27 __uid_t uid; /* Owner's user ID. */
28 __gid_t gid; /* Owner's group ID. */
29 __uid_t cuid; /* Creator's user ID. */
30 __gid_t cgid; /* Creator's group ID. */
31 __mode_t mode; /* Read/write permission. */
32 __uint32_t __seq; /* Sequence number. */
33 __uint32_t __pad1;
34 __uint64_t __glibc_reserved1;
35 __uint64_t __glibc_reserved2;
36 };
\ No newline at end of file
lib/libc/include/powerpc-linux-gnu/bits/ipc.h deleted-54
...@@ -1,54 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23
24/* Mode bits for `msgget', `semget', and `shmget'. */
25#define IPC_CREAT 01000 /* Create key if key does not exist. */
26#define IPC_EXCL 02000 /* Fail if key exists. */
27#define IPC_NOWAIT 04000 /* Return error on wait. */
28
29/* Control commands for `msgctl', `semctl', and `shmctl'. */
30#define IPC_RMID 0 /* Remove identifier. */
31#define IPC_SET 1 /* Set `ipc_perm' options. */
32#define IPC_STAT 2 /* Get `ipc_perm' options. */
33#ifdef __USE_GNU
34# define IPC_INFO 3 /* See ipcs. */
35#endif
36
37/* Special key values. */
38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
39
40
41/* Data structure used to pass permission information to IPC operations. */
42struct ipc_perm
43 {
44 __key_t __key; /* Key. */
45 __uid_t uid; /* Owner's user ID. */
46 __gid_t gid; /* Owner's group ID. */
47 __uid_t cuid; /* Creator's user ID. */
48 __gid_t cgid; /* Creator's group ID. */
49 __mode_t mode; /* Read/write permission. */
50 __uint32_t __seq; /* Sequence number. */
51 __uint32_t __pad1;
52 __uint64_t __glibc_reserved1;
53 __uint64_t __glibc_reserved2;
54 };
\ No newline at end of file
lib/libc/include/powerpc-linux-gnu/bits/iscanonical.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define iscanonical macro. ldbl-128ibm version.1/* Define iscanonical macro. ldbl-128ibm version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/link.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific declarations for dynamic linker interface. PowerPC version1/* Machine-specific declarations for dynamic linker interface. PowerPC version
2 Copyright (C) 2004-2019 Free Software Foundation, Inc.2 Copyright (C) 2004-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _LINK_H19#ifndef _LINK_H
20# error "Never include <bits/link.h> directly; use <link.h> instead."20# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. Linux/PPC version.1/* Minimum guaranteed maximum values for system limits. Linux/PPC version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If16 License along with the GNU C Library; see the file COPYING.LIB. If
17 not, see <http://www.gnu.org/licenses/>. */17 not, see <https://www.gnu.org/licenses/>. */
1818
19/* The kernel header pollutes the namespace with the NR_OPEN symbol19/* The kernel header pollutes the namespace with the NR_OPEN symbol
20 and defines LINK_MAX although filesystems have different maxima. A20 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/powerpc-linux-gnu/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. ldbl-opt version.1/* Properties of long double type. ldbl-opt version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,11 +14,12 @@...@@ -14,11 +14,12 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __NO_LONG_DOUBLE_MATH19#ifndef __NO_LONG_DOUBLE_MATH
20# define __LONG_DOUBLE_MATH_OPTIONAL 120# define __LONG_DOUBLE_MATH_OPTIONAL 1
21# ifndef __LONG_DOUBLE_128__21# ifndef __LONG_DOUBLE_128__
22# define __NO_LONG_DOUBLE_MATH 122# define __NO_LONG_DOUBLE_MATH 1
23# endif23# endif
24#endif
\ No newline at end of file
24#endif
25#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/powerpc-linux-gnu/bits/mman.h+4-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/PowerPC version.1/* Definitions for POSIX memory map interface. Linux/PowerPC version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
...@@ -36,6 +36,8 @@...@@ -36,6 +36,8 @@
36# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */36# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
37# define MAP_STACK 0x20000 /* Allocation is for a stack. */37# define MAP_STACK 0x20000 /* Allocation is for a stack. */
38# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */38# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
39# define MAP_SYNC 0x80000 /* Perform synchronous page
40 faults for the mapping. */
39# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap41# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
40 underlying mapping. */42 underlying mapping. */
41#endif43#endif
lib/libc/include/powerpc-linux-gnu/bits/msq-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct msqid_ds. PowerPC version.1/* Define where padding goes in struct msqid_ds. PowerPC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MSG_H19#ifndef _SYS_MSG_H
20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. PowerPC version.1/* Types for registers for sys/procfs.h. PowerPC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/pthreadtypes-arch.h deleted-81
...@@ -1,81 +0,0 @@
1/* Machine-specific pthread type layouts. PowerPC version.
2 Copyright (C) 2003-2019 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 1
21
22#include <bits/wordsize.h>
23
24#if __WORDSIZE == 64
25# define __SIZEOF_PTHREAD_MUTEX_T 40
26# define __SIZEOF_PTHREAD_ATTR_T 56
27# define __SIZEOF_PTHREAD_RWLOCK_T 56
28# define __SIZEOF_PTHREAD_BARRIER_T 32
29#else
30# define __SIZEOF_PTHREAD_MUTEX_T 24
31# define __SIZEOF_PTHREAD_ATTR_T 36
32# define __SIZEOF_PTHREAD_RWLOCK_T 32
33# define __SIZEOF_PTHREAD_BARRIER_T 20
34#endif
35#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
36#define __SIZEOF_PTHREAD_COND_T 48
37#define __SIZEOF_PTHREAD_CONDATTR_T 4
38#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
39#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
40
41/* Definitions for internal mutex struct. */
42#define __PTHREAD_COMPAT_PADDING_MID
43#define __PTHREAD_COMPAT_PADDING_END
44#define __PTHREAD_MUTEX_LOCK_ELISION 1
45#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND (__WORDSIZE != 64)
46#define __PTHREAD_MUTEX_USE_UNION (__WORDSIZE != 64)
47
48#define __LOCK_ALIGNMENT
49#define __ONCE_ALIGNMENT
50
51struct __pthread_rwlock_arch_t
52{
53 unsigned int __readers;
54 unsigned int __writers;
55 unsigned int __wrphase_futex;
56 unsigned int __writers_futex;
57 unsigned int __pad3;
58 unsigned int __pad4;
59#if __WORDSIZE == 64
60 int __cur_writer;
61 int __shared;
62 unsigned char __rwelision;
63 unsigned char __pad1[7];
64 unsigned long int __pad2;
65 /* FLAGS must stay at this position in the structure to maintain
66 binary compatibility. */
67 unsigned int __flags;
68# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, {0, 0, 0, 0, 0, 0, 0 }
69#else
70 unsigned char __rwelision;
71 unsigned char __pad2;
72 unsigned char __shared;
73 /* FLAGS must stay at this position in the structure to maintain
74 binary compatibility. */
75 unsigned char __flags;
76 int __cur_writer;
77# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
78#endif
79};
80
81#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/powerpc-linux-gnu/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. PowerPC version.1/* Define where padding goes in struct semid_ds. PowerPC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/semaphore.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific POSIX semaphore type layouts. PowerPC version.1/* Machine-specific POSIX semaphore type layouts. PowerPC version.
2 Copyright (C) 2003-2019 Free Software Foundation, Inc.2 Copyright (C) 2003-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.4 Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SEMAPHORE_H20#ifndef _SEMAPHORE_H
21# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."21# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Define the machine-dependent type `jmp_buf'. PowerPC version. */18/* Define the machine-dependent type `jmp_buf'. PowerPC version. */
19#ifndef _BITS_SETJMP_H19#ifndef _BITS_SETJMP_H
lib/libc/include/powerpc-linux-gnu/bits/shm-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct shmid_ds. PowerPC version.1/* Define where padding goes in struct shmid_ds. PowerPC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/sigstack.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* sigstack, sigaltstack definitions.1/* sigstack, sigaltstack definitions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGSTACK_H19#ifndef _BITS_SIGSTACK_H
20#define _BITS_SIGSTACK_H 120#define _BITS_SIGSTACK_H 1
lib/libc/include/powerpc-linux-gnu/bits/socket-constants.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Socket constants which vary among Linux architectures. Version for POWER.1/* Socket constants which vary among Linux architectures. Version for POWER.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/struct_mutex.h created+63
...@@ -0,0 +1,63 @@
1/* PowerPC internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#if __WORDSIZE == 64
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#if __WORDSIZE == 64
34 short __spins;
35 short __elision;
36 __pthread_list_t __list;
37# define __PTHREAD_MUTEX_HAVE_PREV 1
38#else
39 unsigned int __nusers;
40 __extension__ union
41 {
42 struct
43 {
44 short __espins;
45 short __elision;
46# define __spins __elision_data.__espins
47# define __elision __elision_data.__elision
48 } __elision_data;
49 __pthread_slist_t __list;
50 };
51# define __PTHREAD_MUTEX_HAVE_PREV 0
52#endif
53};
54
55#if __WORDSIZE == 64
56# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
57 0, 0, 0, 0, __kind, 0, 0, { 0, 0 }
58#else
59# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
60 0, 0, 0, __kind, 0, { { 0, 0 } }
61#endif
62
63#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnu/bits/struct_rwlock.h created+61
...@@ -0,0 +1,61 @@
1/* PowerPC internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20#ifndef _RWLOCK_INTERNAL_H
21#define _RWLOCK_INTERNAL_H
22
23struct __pthread_rwlock_arch_t
24{
25 unsigned int __readers;
26 unsigned int __writers;
27 unsigned int __wrphase_futex;
28 unsigned int __writers_futex;
29 unsigned int __pad3;
30 unsigned int __pad4;
31#if __WORDSIZE == 64
32 int __cur_writer;
33 int __shared;
34 unsigned char __rwelision;
35 unsigned char __pad1[7];
36 unsigned long int __pad2;
37 /* FLAGS must stay at this position in the structure to maintain
38 binary compatibility. */
39 unsigned int __flags;
40# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, {0, 0, 0, 0, 0, 0, 0 }
41#else
42 unsigned char __rwelision;
43 unsigned char __pad2;
44 unsigned char __shared;
45 /* FLAGS must stay at this position in the structure to maintain
46 binary compatibility. */
47 unsigned char __flags;
48 int __cur_writer;
49# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
50#endif
51};
52
53#if __WORDSIZE == 64
54# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
55 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, __flags
56#else
57# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
58 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, 0, __flags, 0
59#endif
60
61#endif
\ No newline at end of file
lib/libc/include/powerpc-linux-gnu/bits/termios-baud.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios baud rate selection definitions. Linux/powerpc version.1/* termios baud rate selection definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/termios-c_cc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios c_cc symbolic constant definitions. Linux/powerpc version.1/* termios c_cc symbolic constant definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/termios-c_cflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios control mode definitions. Linux/powerpc version.1/* termios control mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cflag.h> directly; use <termios.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/termios-c_iflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios input mode definitions. Linux/powerpc version.1/* termios input mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_iflags.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_iflags.h> directly; use <termios.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/termios-c_lflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/powerpc version.1/* termios local mode definitions. Linux/powerpc version.
2 Copyright (C) 2019i Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/termios-c_oflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios output mode definitions. Linux/powerpc version.1/* termios output mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."
lib/libc/include/powerpc-linux-gnu/bits/termios-misc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios baud platform specific definitions. Linux/powerpc version.1/* termios baud platform specific definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-misc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-misc.h> directly; use <termios.h> instead."
lib/libc/include/powerpc-linux-gnu/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word definitions. PowerPC version.1/* FPU control word definitions. PowerPC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FPU_CONTROL_H19#ifndef _FPU_CONTROL_H
20#define _FPU_CONTROL_H20#define _FPU_CONTROL_H
lib/libc/include/powerpc-linux-gnu/ieee754.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,14 +13,14 @@...@@ -13,14 +13,14 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25__BEGIN_DECLS25__BEGIN_DECLS
2626
lib/libc/include/powerpc-linux-gnu/sys/ptrace.h+12-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/PowerPC version.1/* `ptrace' debugger support interface. Linux/PowerPC version.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PTRACE_H19#ifndef _SYS_PTRACE_H
20#define _SYS_PTRACE_H 120#define _SYS_PTRACE_H 1
...@@ -38,6 +38,7 @@ __BEGIN_DECLS...@@ -38,6 +38,7 @@ __BEGIN_DECLS
38# undef PTRACE_GETREGSET38# undef PTRACE_GETREGSET
39# undef PTRACE_GETSIGINFO39# undef PTRACE_GETSIGINFO
40# undef PTRACE_GETSIGMASK40# undef PTRACE_GETSIGMASK
41# undef PTRACE_GET_SYSCALL_INFO
41# undef PTRACE_GETVRREGS42# undef PTRACE_GETVRREGS
42# undef PTRACE_GETVSRREGS43# undef PTRACE_GETVSRREGS
43# undef PTRACE_INTERRUPT44# undef PTRACE_INTERRUPT
...@@ -65,6 +66,10 @@ __BEGIN_DECLS...@@ -65,6 +66,10 @@ __BEGIN_DECLS
65# undef PTRACE_SINGLEBLOCK66# undef PTRACE_SINGLEBLOCK
66# undef PTRACE_SINGLESTEP67# undef PTRACE_SINGLESTEP
67# undef PTRACE_SYSCALL68# undef PTRACE_SYSCALL
69# undef PTRACE_SYSCALL_INFO_NONE
70# undef PTRACE_SYSCALL_INFO_ENTRY
71# undef PTRACE_SYSCALL_INFO_EXIT
72# undef PTRACE_SYSCALL_INFO_SECCOMP
68# undef PTRACE_TRACEME73# undef PTRACE_TRACEME
69#endif74#endif
7075
...@@ -241,8 +246,12 @@ enum __ptrace_request...@@ -241,8 +246,12 @@ enum __ptrace_request
241#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER246#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
242247
243 /* Get seccomp BPF filter metadata. */248 /* Get seccomp BPF filter metadata. */
244 PTRACE_SECCOMP_GET_METADATA = 0x420d249 PTRACE_SECCOMP_GET_METADATA = 0x420d,
245#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA250#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
251
252 /* Get information about system call. */
253 PTRACE_GET_SYSCALL_INFO = 0x420e
254#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
246};255};
247256
248257
lib/libc/include/powerpc-linux-gnu/sys/ucontext.h+6-6
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_UCONTEXT_H18#ifndef _SYS_UCONTEXT_H
19#define _SYS_UCONTEXT_H 119#define _SYS_UCONTEXT_H 1
...@@ -75,12 +75,12 @@ typedef struct...@@ -75,12 +75,12 @@ typedef struct
75 * a sigcontext. For older kernel (without Altivec) the sigcontext matches75 * a sigcontext. For older kernel (without Altivec) the sigcontext matches
76 * the mcontext upto but not including the v_regs field. For kernels that76 * the mcontext upto but not including the v_regs field. For kernels that
77 * don't set AT_HWCAP or return AT_HWCAP without PPC_FEATURE_HAS_ALTIVEC the77 * don't set AT_HWCAP or return AT_HWCAP without PPC_FEATURE_HAS_ALTIVEC the
78 * v_regs field may not exist and should not be referenced. The v_regd field78 * v_regs field may not exist and should not be referenced. The v_regs field
79 * can be refernced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC79 * can be referenced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
80 * is set in AT_HWCAP. */80 * is set in AT_HWCAP. */
8181
82/* Number of general registers. */82/* Number of general registers. */
83# define __NGREG 48 /* includes r0-r31, nip, msr, lr, etc. */83# define __NGREG 48 /* includes r0-r31, nip, msr, lr, etc. */
84# define __NFPREG 33 /* includes fp0-fp31 &fpscr. */84# define __NFPREG 33 /* includes fp0-fp31 &fpscr. */
85# define __NVRREG 34 /* includes v0-v31, vscr, & vrsave in85# define __NVRREG 34 /* includes v0-v31, vscr, & vrsave in
86 split vectors */86 split vectors */
...@@ -136,7 +136,7 @@ typedef struct {...@@ -136,7 +136,7 @@ typedef struct {
136 * either NULL (if this processor does not support the VMX feature) or the136 * either NULL (if this processor does not support the VMX feature) or the
137 * address of the first quadword within the allocated (vmx_reserve) area.137 * address of the first quadword within the allocated (vmx_reserve) area.
138 *138 *
139 * The pointer (v_regs) of vector type (elf_vrreg_t) is essentually139 * The pointer (v_regs) of vector type (elf_vrreg_t) is essentially
140 * an array of 34 quadword entries. The entries with140 * an array of 34 quadword entries. The entries with
141 * indexes 0-31 contain the corresponding vector registers. The entry with141 * indexes 0-31 contain the corresponding vector registers. The entry with
142 * index 32 contains the vscr as the last word (offset 12) within the142 * index 32 contains the vscr as the last word (offset 12) within the
lib/libc/include/powerpc-linux-gnu/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
1919
lib/libc/include/powerpc64-linux-gnu/bits/endian.h deleted-36
...@@ -1,36 +0,0 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18/* PowerPC can be little or big endian. Hopefully gcc will know... */
19
20#ifndef _ENDIAN_H
21# error "Never use <bits/endian.h> directly; include <endian.h> instead."
22#endif
23
24#if defined __BIG_ENDIAN__ || defined _BIG_ENDIAN
25# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
26# error Both BIG_ENDIAN and LITTLE_ENDIAN defined!
27# endif
28# define __BYTE_ORDER __BIG_ENDIAN
29#else
30# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
31# define __BYTE_ORDER __LITTLE_ENDIAN
32# else
33# warning Cannot determine current byte order, assuming big-endian.
34# define __BYTE_ORDER __BIG_ENDIAN
35# endif
36#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/endianness.h created+16
...@@ -0,0 +1,16 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* PowerPC has selectable endianness. */
9#if defined __BIG_ENDIAN__ || defined _BIG_ENDIAN
10# define __BYTE_ORDER __BIG_ENDIAN
11#endif
12#if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
13# define __BYTE_ORDER __LITTLE_ENDIAN
14#endif
15
16#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/environments.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _UNISTD_H18#ifndef _UNISTD_H
19# error "Never include this file directly. Use <unistd.h> instead"19# error "Never include this file directly. Use <unistd.h> instead"
lib/libc/include/powerpc64-linux-gnu/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux/PowerPC.1/* O_*, F_*, FD_* bit values for Linux/PowerPC.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -170,7 +170,7 @@ extern const fenv_t __fe_nonieee_env;...@@ -170,7 +170,7 @@ extern const fenv_t __fe_nonieee_env;
170170
171#endif171#endif
172172
173#if __GLIBC_USE (IEC_60559_BFP_EXT)173#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
174/* Type representing floating-point control modes. */174/* Type representing floating-point control modes. */
175typedef double femode_t;175typedef double femode_t;
176176
lib/libc/include/powerpc64-linux-gnu/bits/fenvinline.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Inline floating-point environment handling functions for powerpc.1/* Inline floating-point environment handling functions for powerpc.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if defined __GNUC__ && !defined _SOFT_FLOAT && !defined __NO_FPRS__19#if defined __GNUC__ && !defined _SOFT_FLOAT && !defined __NO_FPRS__
2020
lib/libc/include/powerpc64-linux-gnu/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on powerpc.1/* Macros to control TS 18661-3 glibc features on powerpc.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/powerpc64-linux-gnu/bits/fp-fast.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define FP_FAST_* macros. PowerPC version.1/* Define FP_FAST_* macros. PowerPC version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."20# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP and AT_HWCAP2.1/* Defines for bits in AT_HWCAP and AT_HWCAP2.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)19#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/ioctl-types.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structure types for pre-termios terminal ioctls. Linux/powerpc version.1/* Structure types for pre-termios terminal ioctls. Linux/powerpc version.
2 Copyright (C) 2014-2019 Free Software Foundation, Inc.2 Copyright (C) 2014-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IOCTL_H19#ifndef _SYS_IOCTL_H
20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/ipc-perm.h created+36
...@@ -0,0 +1,36 @@
1/* struct ipc_perm definition. Linux/powerpc version.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
18
19#ifndef _SYS_IPC_H
20# error "Never use <bits/ipc-perm.h> directly; include <sys/ipc.h> instead."
21#endif
22
23/* Data structure used to pass permission information to IPC operations. */
24struct ipc_perm
25 {
26 __key_t __key; /* Key. */
27 __uid_t uid; /* Owner's user ID. */
28 __gid_t gid; /* Owner's group ID. */
29 __uid_t cuid; /* Creator's user ID. */
30 __gid_t cgid; /* Creator's group ID. */
31 __mode_t mode; /* Read/write permission. */
32 __uint32_t __seq; /* Sequence number. */
33 __uint32_t __pad1;
34 __uint64_t __glibc_reserved1;
35 __uint64_t __glibc_reserved2;
36 };
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/ipc.h deleted-54
...@@ -1,54 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23
24/* Mode bits for `msgget', `semget', and `shmget'. */
25#define IPC_CREAT 01000 /* Create key if key does not exist. */
26#define IPC_EXCL 02000 /* Fail if key exists. */
27#define IPC_NOWAIT 04000 /* Return error on wait. */
28
29/* Control commands for `msgctl', `semctl', and `shmctl'. */
30#define IPC_RMID 0 /* Remove identifier. */
31#define IPC_SET 1 /* Set `ipc_perm' options. */
32#define IPC_STAT 2 /* Get `ipc_perm' options. */
33#ifdef __USE_GNU
34# define IPC_INFO 3 /* See ipcs. */
35#endif
36
37/* Special key values. */
38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
39
40
41/* Data structure used to pass permission information to IPC operations. */
42struct ipc_perm
43 {
44 __key_t __key; /* Key. */
45 __uid_t uid; /* Owner's user ID. */
46 __gid_t gid; /* Owner's group ID. */
47 __uid_t cuid; /* Creator's user ID. */
48 __gid_t cgid; /* Creator's group ID. */
49 __mode_t mode; /* Read/write permission. */
50 __uint32_t __seq; /* Sequence number. */
51 __uint32_t __pad1;
52 __uint64_t __glibc_reserved1;
53 __uint64_t __glibc_reserved2;
54 };
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/iscanonical.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define iscanonical macro. ldbl-128ibm version.1/* Define iscanonical macro. ldbl-128ibm version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/link.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific declarations for dynamic linker interface. PowerPC version1/* Machine-specific declarations for dynamic linker interface. PowerPC version
2 Copyright (C) 2004-2019 Free Software Foundation, Inc.2 Copyright (C) 2004-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _LINK_H19#ifndef _LINK_H
20# error "Never include <bits/link.h> directly; use <link.h> instead."20# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. Linux/PPC version.1/* Minimum guaranteed maximum values for system limits. Linux/PPC version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If16 License along with the GNU C Library; see the file COPYING.LIB. If
17 not, see <http://www.gnu.org/licenses/>. */17 not, see <https://www.gnu.org/licenses/>. */
1818
19/* The kernel header pollutes the namespace with the NR_OPEN symbol19/* The kernel header pollutes the namespace with the NR_OPEN symbol
20 and defines LINK_MAX although filesystems have different maxima. A20 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/powerpc64-linux-gnu/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. ldbl-opt version.1/* Properties of long double type. ldbl-opt version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,11 +14,12 @@...@@ -14,11 +14,12 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __NO_LONG_DOUBLE_MATH19#ifndef __NO_LONG_DOUBLE_MATH
20# define __LONG_DOUBLE_MATH_OPTIONAL 120# define __LONG_DOUBLE_MATH_OPTIONAL 1
21# ifndef __LONG_DOUBLE_128__21# ifndef __LONG_DOUBLE_128__
22# define __NO_LONG_DOUBLE_MATH 122# define __NO_LONG_DOUBLE_MATH 1
23# endif23# endif
24#endif
\ No newline at end of file
24#endif
25#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/mman.h+4-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/PowerPC version.1/* Definitions for POSIX memory map interface. Linux/PowerPC version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
...@@ -36,6 +36,8 @@...@@ -36,6 +36,8 @@
36# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */36# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
37# define MAP_STACK 0x20000 /* Allocation is for a stack. */37# define MAP_STACK 0x20000 /* Allocation is for a stack. */
38# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */38# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
39# define MAP_SYNC 0x80000 /* Perform synchronous page
40 faults for the mapping. */
39# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap41# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
40 underlying mapping. */42 underlying mapping. */
41#endif43#endif
lib/libc/include/powerpc64-linux-gnu/bits/msq-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct msqid_ds. PowerPC version.1/* Define where padding goes in struct msqid_ds. PowerPC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MSG_H19#ifndef _SYS_MSG_H
20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. PowerPC version.1/* Types for registers for sys/procfs.h. PowerPC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/pthreadtypes-arch.h deleted-81
...@@ -1,81 +0,0 @@
1/* Machine-specific pthread type layouts. PowerPC version.
2 Copyright (C) 2003-2019 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 1
21
22#include <bits/wordsize.h>
23
24#if __WORDSIZE == 64
25# define __SIZEOF_PTHREAD_MUTEX_T 40
26# define __SIZEOF_PTHREAD_ATTR_T 56
27# define __SIZEOF_PTHREAD_RWLOCK_T 56
28# define __SIZEOF_PTHREAD_BARRIER_T 32
29#else
30# define __SIZEOF_PTHREAD_MUTEX_T 24
31# define __SIZEOF_PTHREAD_ATTR_T 36
32# define __SIZEOF_PTHREAD_RWLOCK_T 32
33# define __SIZEOF_PTHREAD_BARRIER_T 20
34#endif
35#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
36#define __SIZEOF_PTHREAD_COND_T 48
37#define __SIZEOF_PTHREAD_CONDATTR_T 4
38#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
39#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
40
41/* Definitions for internal mutex struct. */
42#define __PTHREAD_COMPAT_PADDING_MID
43#define __PTHREAD_COMPAT_PADDING_END
44#define __PTHREAD_MUTEX_LOCK_ELISION 1
45#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND (__WORDSIZE != 64)
46#define __PTHREAD_MUTEX_USE_UNION (__WORDSIZE != 64)
47
48#define __LOCK_ALIGNMENT
49#define __ONCE_ALIGNMENT
50
51struct __pthread_rwlock_arch_t
52{
53 unsigned int __readers;
54 unsigned int __writers;
55 unsigned int __wrphase_futex;
56 unsigned int __writers_futex;
57 unsigned int __pad3;
58 unsigned int __pad4;
59#if __WORDSIZE == 64
60 int __cur_writer;
61 int __shared;
62 unsigned char __rwelision;
63 unsigned char __pad1[7];
64 unsigned long int __pad2;
65 /* FLAGS must stay at this position in the structure to maintain
66 binary compatibility. */
67 unsigned int __flags;
68# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, {0, 0, 0, 0, 0, 0, 0 }
69#else
70 unsigned char __rwelision;
71 unsigned char __pad2;
72 unsigned char __shared;
73 /* FLAGS must stay at this position in the structure to maintain
74 binary compatibility. */
75 unsigned char __flags;
76 int __cur_writer;
77# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
78#endif
79};
80
81#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. PowerPC version.1/* Define where padding goes in struct semid_ds. PowerPC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/semaphore.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific POSIX semaphore type layouts. PowerPC version.1/* Machine-specific POSIX semaphore type layouts. PowerPC version.
2 Copyright (C) 2003-2019 Free Software Foundation, Inc.2 Copyright (C) 2003-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.4 Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SEMAPHORE_H20#ifndef _SEMAPHORE_H
21# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."21# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Define the machine-dependent type `jmp_buf'. PowerPC version. */18/* Define the machine-dependent type `jmp_buf'. PowerPC version. */
19#ifndef _BITS_SETJMP_H19#ifndef _BITS_SETJMP_H
lib/libc/include/powerpc64-linux-gnu/bits/shm-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct shmid_ds. PowerPC version.1/* Define where padding goes in struct shmid_ds. PowerPC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/sigstack.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* sigstack, sigaltstack definitions.1/* sigstack, sigaltstack definitions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGSTACK_H19#ifndef _BITS_SIGSTACK_H
20#define _BITS_SIGSTACK_H 120#define _BITS_SIGSTACK_H 1
lib/libc/include/powerpc64-linux-gnu/bits/socket-constants.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Socket constants which vary among Linux architectures. Version for POWER.1/* Socket constants which vary among Linux architectures. Version for POWER.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/struct_mutex.h created+63
...@@ -0,0 +1,63 @@
1/* PowerPC internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#if __WORDSIZE == 64
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#if __WORDSIZE == 64
34 short __spins;
35 short __elision;
36 __pthread_list_t __list;
37# define __PTHREAD_MUTEX_HAVE_PREV 1
38#else
39 unsigned int __nusers;
40 __extension__ union
41 {
42 struct
43 {
44 short __espins;
45 short __elision;
46# define __spins __elision_data.__espins
47# define __elision __elision_data.__elision
48 } __elision_data;
49 __pthread_slist_t __list;
50 };
51# define __PTHREAD_MUTEX_HAVE_PREV 0
52#endif
53};
54
55#if __WORDSIZE == 64
56# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
57 0, 0, 0, 0, __kind, 0, 0, { 0, 0 }
58#else
59# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
60 0, 0, 0, __kind, 0, { { 0, 0 } }
61#endif
62
63#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/struct_rwlock.h created+61
...@@ -0,0 +1,61 @@
1/* PowerPC internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20#ifndef _RWLOCK_INTERNAL_H
21#define _RWLOCK_INTERNAL_H
22
23struct __pthread_rwlock_arch_t
24{
25 unsigned int __readers;
26 unsigned int __writers;
27 unsigned int __wrphase_futex;
28 unsigned int __writers_futex;
29 unsigned int __pad3;
30 unsigned int __pad4;
31#if __WORDSIZE == 64
32 int __cur_writer;
33 int __shared;
34 unsigned char __rwelision;
35 unsigned char __pad1[7];
36 unsigned long int __pad2;
37 /* FLAGS must stay at this position in the structure to maintain
38 binary compatibility. */
39 unsigned int __flags;
40# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, {0, 0, 0, 0, 0, 0, 0 }
41#else
42 unsigned char __rwelision;
43 unsigned char __pad2;
44 unsigned char __shared;
45 /* FLAGS must stay at this position in the structure to maintain
46 binary compatibility. */
47 unsigned char __flags;
48 int __cur_writer;
49# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
50#endif
51};
52
53#if __WORDSIZE == 64
54# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
55 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, __flags
56#else
57# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
58 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, 0, __flags, 0
59#endif
60
61#endif
\ No newline at end of file
lib/libc/include/powerpc64-linux-gnu/bits/termios-baud.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios baud rate selection definitions. Linux/powerpc version.1/* termios baud rate selection definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/termios-c_cc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios c_cc symbolic constant definitions. Linux/powerpc version.1/* termios c_cc symbolic constant definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/termios-c_cflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios control mode definitions. Linux/powerpc version.1/* termios control mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cflag.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/termios-c_iflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios input mode definitions. Linux/powerpc version.1/* termios input mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_iflags.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_iflags.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/termios-c_lflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/powerpc version.1/* termios local mode definitions. Linux/powerpc version.
2 Copyright (C) 2019i Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/termios-c_oflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios output mode definitions. Linux/powerpc version.1/* termios output mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64-linux-gnu/bits/termios-misc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios baud platform specific definitions. Linux/powerpc version.1/* termios baud platform specific definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-misc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-misc.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64-linux-gnu/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word definitions. PowerPC version.1/* FPU control word definitions. PowerPC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FPU_CONTROL_H19#ifndef _FPU_CONTROL_H
20#define _FPU_CONTROL_H20#define _FPU_CONTROL_H
lib/libc/include/powerpc64-linux-gnu/ieee754.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,14 +13,14 @@...@@ -13,14 +13,14 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25__BEGIN_DECLS25__BEGIN_DECLS
2626
lib/libc/include/powerpc64-linux-gnu/sys/ptrace.h+12-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/PowerPC version.1/* `ptrace' debugger support interface. Linux/PowerPC version.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PTRACE_H19#ifndef _SYS_PTRACE_H
20#define _SYS_PTRACE_H 120#define _SYS_PTRACE_H 1
...@@ -38,6 +38,7 @@ __BEGIN_DECLS...@@ -38,6 +38,7 @@ __BEGIN_DECLS
38# undef PTRACE_GETREGSET38# undef PTRACE_GETREGSET
39# undef PTRACE_GETSIGINFO39# undef PTRACE_GETSIGINFO
40# undef PTRACE_GETSIGMASK40# undef PTRACE_GETSIGMASK
41# undef PTRACE_GET_SYSCALL_INFO
41# undef PTRACE_GETVRREGS42# undef PTRACE_GETVRREGS
42# undef PTRACE_GETVSRREGS43# undef PTRACE_GETVSRREGS
43# undef PTRACE_INTERRUPT44# undef PTRACE_INTERRUPT
...@@ -65,6 +66,10 @@ __BEGIN_DECLS...@@ -65,6 +66,10 @@ __BEGIN_DECLS
65# undef PTRACE_SINGLEBLOCK66# undef PTRACE_SINGLEBLOCK
66# undef PTRACE_SINGLESTEP67# undef PTRACE_SINGLESTEP
67# undef PTRACE_SYSCALL68# undef PTRACE_SYSCALL
69# undef PTRACE_SYSCALL_INFO_NONE
70# undef PTRACE_SYSCALL_INFO_ENTRY
71# undef PTRACE_SYSCALL_INFO_EXIT
72# undef PTRACE_SYSCALL_INFO_SECCOMP
68# undef PTRACE_TRACEME73# undef PTRACE_TRACEME
69#endif74#endif
7075
...@@ -241,8 +246,12 @@ enum __ptrace_request...@@ -241,8 +246,12 @@ enum __ptrace_request
241#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER246#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
242247
243 /* Get seccomp BPF filter metadata. */248 /* Get seccomp BPF filter metadata. */
244 PTRACE_SECCOMP_GET_METADATA = 0x420d249 PTRACE_SECCOMP_GET_METADATA = 0x420d,
245#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA250#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
251
252 /* Get information about system call. */
253 PTRACE_GET_SYSCALL_INFO = 0x420e
254#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
246};255};
247256
248257
lib/libc/include/powerpc64-linux-gnu/sys/ucontext.h+6-6
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_UCONTEXT_H18#ifndef _SYS_UCONTEXT_H
19#define _SYS_UCONTEXT_H 119#define _SYS_UCONTEXT_H 1
...@@ -75,12 +75,12 @@ typedef struct...@@ -75,12 +75,12 @@ typedef struct
75 * a sigcontext. For older kernel (without Altivec) the sigcontext matches75 * a sigcontext. For older kernel (without Altivec) the sigcontext matches
76 * the mcontext upto but not including the v_regs field. For kernels that76 * the mcontext upto but not including the v_regs field. For kernels that
77 * don't set AT_HWCAP or return AT_HWCAP without PPC_FEATURE_HAS_ALTIVEC the77 * don't set AT_HWCAP or return AT_HWCAP without PPC_FEATURE_HAS_ALTIVEC the
78 * v_regs field may not exist and should not be referenced. The v_regd field78 * v_regs field may not exist and should not be referenced. The v_regs field
79 * can be refernced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC79 * can be referenced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
80 * is set in AT_HWCAP. */80 * is set in AT_HWCAP. */
8181
82/* Number of general registers. */82/* Number of general registers. */
83# define __NGREG 48 /* includes r0-r31, nip, msr, lr, etc. */83# define __NGREG 48 /* includes r0-r31, nip, msr, lr, etc. */
84# define __NFPREG 33 /* includes fp0-fp31 &fpscr. */84# define __NFPREG 33 /* includes fp0-fp31 &fpscr. */
85# define __NVRREG 34 /* includes v0-v31, vscr, & vrsave in85# define __NVRREG 34 /* includes v0-v31, vscr, & vrsave in
86 split vectors */86 split vectors */
...@@ -136,7 +136,7 @@ typedef struct {...@@ -136,7 +136,7 @@ typedef struct {
136 * either NULL (if this processor does not support the VMX feature) or the136 * either NULL (if this processor does not support the VMX feature) or the
137 * address of the first quadword within the allocated (vmx_reserve) area.137 * address of the first quadword within the allocated (vmx_reserve) area.
138 *138 *
139 * The pointer (v_regs) of vector type (elf_vrreg_t) is essentually139 * The pointer (v_regs) of vector type (elf_vrreg_t) is essentially
140 * an array of 34 quadword entries. The entries with140 * an array of 34 quadword entries. The entries with
141 * indexes 0-31 contain the corresponding vector registers. The entry with141 * indexes 0-31 contain the corresponding vector registers. The entry with
142 * index 32 contains the vscr as the last word (offset 12) within the142 * index 32 contains the vscr as the last word (offset 12) within the
lib/libc/include/powerpc64-linux-gnu/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
1919
lib/libc/include/powerpc64le-linux-gnu/bits/endian.h deleted-36
...@@ -1,36 +0,0 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18/* PowerPC can be little or big endian. Hopefully gcc will know... */
19
20#ifndef _ENDIAN_H
21# error "Never use <bits/endian.h> directly; include <endian.h> instead."
22#endif
23
24#if defined __BIG_ENDIAN__ || defined _BIG_ENDIAN
25# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
26# error Both BIG_ENDIAN and LITTLE_ENDIAN defined!
27# endif
28# define __BYTE_ORDER __BIG_ENDIAN
29#else
30# if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
31# define __BYTE_ORDER __LITTLE_ENDIAN
32# else
33# warning Cannot determine current byte order, assuming big-endian.
34# define __BYTE_ORDER __BIG_ENDIAN
35# endif
36#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/endianness.h created+16
...@@ -0,0 +1,16 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* PowerPC has selectable endianness. */
9#if defined __BIG_ENDIAN__ || defined _BIG_ENDIAN
10# define __BYTE_ORDER __BIG_ENDIAN
11#endif
12#if defined __LITTLE_ENDIAN__ || defined _LITTLE_ENDIAN
13# define __BYTE_ORDER __LITTLE_ENDIAN
14#endif
15
16#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/environments.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _UNISTD_H18#ifndef _UNISTD_H
19# error "Never include this file directly. Use <unistd.h> instead"19# error "Never include this file directly. Use <unistd.h> instead"
lib/libc/include/powerpc64le-linux-gnu/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux/PowerPC.1/* O_*, F_*, FD_* bit values for Linux/PowerPC.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -170,7 +170,7 @@ extern const fenv_t __fe_nonieee_env;...@@ -170,7 +170,7 @@ extern const fenv_t __fe_nonieee_env;
170170
171#endif171#endif
172172
173#if __GLIBC_USE (IEC_60559_BFP_EXT)173#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
174/* Type representing floating-point control modes. */174/* Type representing floating-point control modes. */
175typedef double femode_t;175typedef double femode_t;
176176
lib/libc/include/powerpc64le-linux-gnu/bits/fenvinline.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Inline floating-point environment handling functions for powerpc.1/* Inline floating-point environment handling functions for powerpc.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if defined __GNUC__ && !defined _SOFT_FLOAT && !defined __NO_FPRS__19#if defined __GNUC__ && !defined _SOFT_FLOAT && !defined __NO_FPRS__
2020
lib/libc/include/powerpc64le-linux-gnu/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on powerpc.1/* Macros to control TS 18661-3 glibc features on powerpc.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/powerpc64le-linux-gnu/bits/fp-fast.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define FP_FAST_* macros. PowerPC version.1/* Define FP_FAST_* macros. PowerPC version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."20# error "Never use <bits/fp-fast.h> directly; include <math.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP and AT_HWCAP2.1/* Defines for bits in AT_HWCAP and AT_HWCAP2.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)19#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/ioctl-types.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structure types for pre-termios terminal ioctls. Linux/powerpc version.1/* Structure types for pre-termios terminal ioctls. Linux/powerpc version.
2 Copyright (C) 2014-2019 Free Software Foundation, Inc.2 Copyright (C) 2014-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IOCTL_H19#ifndef _SYS_IOCTL_H
20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."20# error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/ipc-perm.h created+36
...@@ -0,0 +1,36 @@
1/* struct ipc_perm definition. Linux/powerpc version.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
18
19#ifndef _SYS_IPC_H
20# error "Never use <bits/ipc-perm.h> directly; include <sys/ipc.h> instead."
21#endif
22
23/* Data structure used to pass permission information to IPC operations. */
24struct ipc_perm
25 {
26 __key_t __key; /* Key. */
27 __uid_t uid; /* Owner's user ID. */
28 __gid_t gid; /* Owner's group ID. */
29 __uid_t cuid; /* Creator's user ID. */
30 __gid_t cgid; /* Creator's group ID. */
31 __mode_t mode; /* Read/write permission. */
32 __uint32_t __seq; /* Sequence number. */
33 __uint32_t __pad1;
34 __uint64_t __glibc_reserved1;
35 __uint64_t __glibc_reserved2;
36 };
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/ipc.h deleted-54
...@@ -1,54 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23
24/* Mode bits for `msgget', `semget', and `shmget'. */
25#define IPC_CREAT 01000 /* Create key if key does not exist. */
26#define IPC_EXCL 02000 /* Fail if key exists. */
27#define IPC_NOWAIT 04000 /* Return error on wait. */
28
29/* Control commands for `msgctl', `semctl', and `shmctl'. */
30#define IPC_RMID 0 /* Remove identifier. */
31#define IPC_SET 1 /* Set `ipc_perm' options. */
32#define IPC_STAT 2 /* Get `ipc_perm' options. */
33#ifdef __USE_GNU
34# define IPC_INFO 3 /* See ipcs. */
35#endif
36
37/* Special key values. */
38#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
39
40
41/* Data structure used to pass permission information to IPC operations. */
42struct ipc_perm
43 {
44 __key_t __key; /* Key. */
45 __uid_t uid; /* Owner's user ID. */
46 __gid_t gid; /* Owner's group ID. */
47 __uid_t cuid; /* Creator's user ID. */
48 __gid_t cgid; /* Creator's group ID. */
49 __mode_t mode; /* Read/write permission. */
50 __uint32_t __seq; /* Sequence number. */
51 __uint32_t __pad1;
52 __uint64_t __glibc_reserved1;
53 __uint64_t __glibc_reserved2;
54 };
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/iscanonical.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define iscanonical macro. ldbl-128ibm version.1/* Define iscanonical macro. ldbl-128ibm version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/link.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific declarations for dynamic linker interface. PowerPC version1/* Machine-specific declarations for dynamic linker interface. PowerPC version
2 Copyright (C) 2004-2019 Free Software Foundation, Inc.2 Copyright (C) 2004-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _LINK_H19#ifndef _LINK_H
20# error "Never include <bits/link.h> directly; use <link.h> instead."20# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. Linux/PPC version.1/* Minimum guaranteed maximum values for system limits. Linux/PPC version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If16 License along with the GNU C Library; see the file COPYING.LIB. If
17 not, see <http://www.gnu.org/licenses/>. */17 not, see <https://www.gnu.org/licenses/>. */
1818
19/* The kernel header pollutes the namespace with the NR_OPEN symbol19/* The kernel header pollutes the namespace with the NR_OPEN symbol
20 and defines LINK_MAX although filesystems have different maxima. A20 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/powerpc64le-linux-gnu/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. ldbl-opt version.1/* Properties of long double type. ldbl-opt version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,11 +14,12 @@...@@ -14,11 +14,12 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __NO_LONG_DOUBLE_MATH19#ifndef __NO_LONG_DOUBLE_MATH
20# define __LONG_DOUBLE_MATH_OPTIONAL 120# define __LONG_DOUBLE_MATH_OPTIONAL 1
21# ifndef __LONG_DOUBLE_128__21# ifndef __LONG_DOUBLE_128__
22# define __NO_LONG_DOUBLE_MATH 122# define __NO_LONG_DOUBLE_MATH 1
23# endif23# endif
24#endif
\ No newline at end of file
24#endif
25#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/mman.h+4-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/PowerPC version.1/* Definitions for POSIX memory map interface. Linux/PowerPC version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
...@@ -36,6 +36,8 @@...@@ -36,6 +36,8 @@
36# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */36# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
37# define MAP_STACK 0x20000 /* Allocation is for a stack. */37# define MAP_STACK 0x20000 /* Allocation is for a stack. */
38# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */38# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
39# define MAP_SYNC 0x80000 /* Perform synchronous page
40 faults for the mapping. */
39# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap41# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
40 underlying mapping. */42 underlying mapping. */
41#endif43#endif
lib/libc/include/powerpc64le-linux-gnu/bits/msq-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct msqid_ds. PowerPC version.1/* Define where padding goes in struct msqid_ds. PowerPC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MSG_H19#ifndef _SYS_MSG_H
20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. PowerPC version.1/* Types for registers for sys/procfs.h. PowerPC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/pthreadtypes-arch.h deleted-81
...@@ -1,81 +0,0 @@
1/* Machine-specific pthread type layouts. PowerPC version.
2 Copyright (C) 2003-2019 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 1
21
22#include <bits/wordsize.h>
23
24#if __WORDSIZE == 64
25# define __SIZEOF_PTHREAD_MUTEX_T 40
26# define __SIZEOF_PTHREAD_ATTR_T 56
27# define __SIZEOF_PTHREAD_RWLOCK_T 56
28# define __SIZEOF_PTHREAD_BARRIER_T 32
29#else
30# define __SIZEOF_PTHREAD_MUTEX_T 24
31# define __SIZEOF_PTHREAD_ATTR_T 36
32# define __SIZEOF_PTHREAD_RWLOCK_T 32
33# define __SIZEOF_PTHREAD_BARRIER_T 20
34#endif
35#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
36#define __SIZEOF_PTHREAD_COND_T 48
37#define __SIZEOF_PTHREAD_CONDATTR_T 4
38#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
39#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
40
41/* Definitions for internal mutex struct. */
42#define __PTHREAD_COMPAT_PADDING_MID
43#define __PTHREAD_COMPAT_PADDING_END
44#define __PTHREAD_MUTEX_LOCK_ELISION 1
45#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND (__WORDSIZE != 64)
46#define __PTHREAD_MUTEX_USE_UNION (__WORDSIZE != 64)
47
48#define __LOCK_ALIGNMENT
49#define __ONCE_ALIGNMENT
50
51struct __pthread_rwlock_arch_t
52{
53 unsigned int __readers;
54 unsigned int __writers;
55 unsigned int __wrphase_futex;
56 unsigned int __writers_futex;
57 unsigned int __pad3;
58 unsigned int __pad4;
59#if __WORDSIZE == 64
60 int __cur_writer;
61 int __shared;
62 unsigned char __rwelision;
63 unsigned char __pad1[7];
64 unsigned long int __pad2;
65 /* FLAGS must stay at this position in the structure to maintain
66 binary compatibility. */
67 unsigned int __flags;
68# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, {0, 0, 0, 0, 0, 0, 0 }
69#else
70 unsigned char __rwelision;
71 unsigned char __pad2;
72 unsigned char __shared;
73 /* FLAGS must stay at this position in the structure to maintain
74 binary compatibility. */
75 unsigned char __flags;
76 int __cur_writer;
77# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
78#endif
79};
80
81#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. PowerPC version.1/* Define where padding goes in struct semid_ds. PowerPC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/semaphore.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific POSIX semaphore type layouts. PowerPC version.1/* Machine-specific POSIX semaphore type layouts. PowerPC version.
2 Copyright (C) 2003-2019 Free Software Foundation, Inc.2 Copyright (C) 2003-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.4 Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SEMAPHORE_H20#ifndef _SEMAPHORE_H
21# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."21# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Define the machine-dependent type `jmp_buf'. PowerPC version. */18/* Define the machine-dependent type `jmp_buf'. PowerPC version. */
19#ifndef _BITS_SETJMP_H19#ifndef _BITS_SETJMP_H
lib/libc/include/powerpc64le-linux-gnu/bits/shm-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct shmid_ds. PowerPC version.1/* Define where padding goes in struct shmid_ds. PowerPC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/sigstack.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* sigstack, sigaltstack definitions.1/* sigstack, sigaltstack definitions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGSTACK_H19#ifndef _BITS_SIGSTACK_H
20#define _BITS_SIGSTACK_H 120#define _BITS_SIGSTACK_H 1
lib/libc/include/powerpc64le-linux-gnu/bits/socket-constants.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Socket constants which vary among Linux architectures. Version for POWER.1/* Socket constants which vary among Linux architectures. Version for POWER.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/struct_mutex.h created+63
...@@ -0,0 +1,63 @@
1/* PowerPC internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#if __WORDSIZE == 64
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#if __WORDSIZE == 64
34 short __spins;
35 short __elision;
36 __pthread_list_t __list;
37# define __PTHREAD_MUTEX_HAVE_PREV 1
38#else
39 unsigned int __nusers;
40 __extension__ union
41 {
42 struct
43 {
44 short __espins;
45 short __elision;
46# define __spins __elision_data.__espins
47# define __elision __elision_data.__elision
48 } __elision_data;
49 __pthread_slist_t __list;
50 };
51# define __PTHREAD_MUTEX_HAVE_PREV 0
52#endif
53};
54
55#if __WORDSIZE == 64
56# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
57 0, 0, 0, 0, __kind, 0, 0, { 0, 0 }
58#else
59# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
60 0, 0, 0, __kind, 0, { { 0, 0 } }
61#endif
62
63#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/struct_rwlock.h created+61
...@@ -0,0 +1,61 @@
1/* PowerPC internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20#ifndef _RWLOCK_INTERNAL_H
21#define _RWLOCK_INTERNAL_H
22
23struct __pthread_rwlock_arch_t
24{
25 unsigned int __readers;
26 unsigned int __writers;
27 unsigned int __wrphase_futex;
28 unsigned int __writers_futex;
29 unsigned int __pad3;
30 unsigned int __pad4;
31#if __WORDSIZE == 64
32 int __cur_writer;
33 int __shared;
34 unsigned char __rwelision;
35 unsigned char __pad1[7];
36 unsigned long int __pad2;
37 /* FLAGS must stay at this position in the structure to maintain
38 binary compatibility. */
39 unsigned int __flags;
40# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, {0, 0, 0, 0, 0, 0, 0 }
41#else
42 unsigned char __rwelision;
43 unsigned char __pad2;
44 unsigned char __shared;
45 /* FLAGS must stay at this position in the structure to maintain
46 binary compatibility. */
47 unsigned char __flags;
48 int __cur_writer;
49# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
50#endif
51};
52
53#if __WORDSIZE == 64
54# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
55 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, __flags
56#else
57# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
58 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, 0, __flags, 0
59#endif
60
61#endif
\ No newline at end of file
lib/libc/include/powerpc64le-linux-gnu/bits/termios-baud.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios baud rate selection definitions. Linux/powerpc version.1/* termios baud rate selection definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/termios-c_cc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios c_cc symbolic constant definitions. Linux/powerpc version.1/* termios c_cc symbolic constant definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/termios-c_cflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios control mode definitions. Linux/powerpc version.1/* termios control mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cflag.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/termios-c_iflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios input mode definitions. Linux/powerpc version.1/* termios input mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_iflags.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_iflags.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/termios-c_lflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios local mode definitions. Linux/powerpc version.1/* termios local mode definitions. Linux/powerpc version.
2 Copyright (C) 2019i Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_lflag.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/termios-c_oflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios output mode definitions. Linux/powerpc version.1/* termios output mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64le-linux-gnu/bits/termios-misc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios baud platform specific definitions. Linux/powerpc version.1/* termios baud platform specific definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-misc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-misc.h> directly; use <termios.h> instead."
lib/libc/include/powerpc64le-linux-gnu/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word definitions. PowerPC version.1/* FPU control word definitions. PowerPC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FPU_CONTROL_H19#ifndef _FPU_CONTROL_H
20#define _FPU_CONTROL_H20#define _FPU_CONTROL_H
lib/libc/include/powerpc64le-linux-gnu/ieee754.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,14 +13,14 @@...@@ -13,14 +13,14 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25__BEGIN_DECLS25__BEGIN_DECLS
2626
lib/libc/include/powerpc64le-linux-gnu/sys/ptrace.h+12-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/PowerPC version.1/* `ptrace' debugger support interface. Linux/PowerPC version.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PTRACE_H19#ifndef _SYS_PTRACE_H
20#define _SYS_PTRACE_H 120#define _SYS_PTRACE_H 1
...@@ -38,6 +38,7 @@ __BEGIN_DECLS...@@ -38,6 +38,7 @@ __BEGIN_DECLS
38# undef PTRACE_GETREGSET38# undef PTRACE_GETREGSET
39# undef PTRACE_GETSIGINFO39# undef PTRACE_GETSIGINFO
40# undef PTRACE_GETSIGMASK40# undef PTRACE_GETSIGMASK
41# undef PTRACE_GET_SYSCALL_INFO
41# undef PTRACE_GETVRREGS42# undef PTRACE_GETVRREGS
42# undef PTRACE_GETVSRREGS43# undef PTRACE_GETVSRREGS
43# undef PTRACE_INTERRUPT44# undef PTRACE_INTERRUPT
...@@ -65,6 +66,10 @@ __BEGIN_DECLS...@@ -65,6 +66,10 @@ __BEGIN_DECLS
65# undef PTRACE_SINGLEBLOCK66# undef PTRACE_SINGLEBLOCK
66# undef PTRACE_SINGLESTEP67# undef PTRACE_SINGLESTEP
67# undef PTRACE_SYSCALL68# undef PTRACE_SYSCALL
69# undef PTRACE_SYSCALL_INFO_NONE
70# undef PTRACE_SYSCALL_INFO_ENTRY
71# undef PTRACE_SYSCALL_INFO_EXIT
72# undef PTRACE_SYSCALL_INFO_SECCOMP
68# undef PTRACE_TRACEME73# undef PTRACE_TRACEME
69#endif74#endif
7075
...@@ -241,8 +246,12 @@ enum __ptrace_request...@@ -241,8 +246,12 @@ enum __ptrace_request
241#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER246#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
242247
243 /* Get seccomp BPF filter metadata. */248 /* Get seccomp BPF filter metadata. */
244 PTRACE_SECCOMP_GET_METADATA = 0x420d249 PTRACE_SECCOMP_GET_METADATA = 0x420d,
245#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA250#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
251
252 /* Get information about system call. */
253 PTRACE_GET_SYSCALL_INFO = 0x420e
254#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
246};255};
247256
248257
lib/libc/include/powerpc64le-linux-gnu/sys/ucontext.h+6-6
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_UCONTEXT_H18#ifndef _SYS_UCONTEXT_H
19#define _SYS_UCONTEXT_H 119#define _SYS_UCONTEXT_H 1
...@@ -75,12 +75,12 @@ typedef struct...@@ -75,12 +75,12 @@ typedef struct
75 * a sigcontext. For older kernel (without Altivec) the sigcontext matches75 * a sigcontext. For older kernel (without Altivec) the sigcontext matches
76 * the mcontext upto but not including the v_regs field. For kernels that76 * the mcontext upto but not including the v_regs field. For kernels that
77 * don't set AT_HWCAP or return AT_HWCAP without PPC_FEATURE_HAS_ALTIVEC the77 * don't set AT_HWCAP or return AT_HWCAP without PPC_FEATURE_HAS_ALTIVEC the
78 * v_regs field may not exist and should not be referenced. The v_regd field78 * v_regs field may not exist and should not be referenced. The v_regs field
79 * can be refernced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC79 * can be referenced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
80 * is set in AT_HWCAP. */80 * is set in AT_HWCAP. */
8181
82/* Number of general registers. */82/* Number of general registers. */
83# define __NGREG 48 /* includes r0-r31, nip, msr, lr, etc. */83# define __NGREG 48 /* includes r0-r31, nip, msr, lr, etc. */
84# define __NFPREG 33 /* includes fp0-fp31 &fpscr. */84# define __NFPREG 33 /* includes fp0-fp31 &fpscr. */
85# define __NVRREG 34 /* includes v0-v31, vscr, & vrsave in85# define __NVRREG 34 /* includes v0-v31, vscr, & vrsave in
86 split vectors */86 split vectors */
...@@ -136,7 +136,7 @@ typedef struct {...@@ -136,7 +136,7 @@ typedef struct {
136 * either NULL (if this processor does not support the VMX feature) or the136 * either NULL (if this processor does not support the VMX feature) or the
137 * address of the first quadword within the allocated (vmx_reserve) area.137 * address of the first quadword within the allocated (vmx_reserve) area.
138 *138 *
139 * The pointer (v_regs) of vector type (elf_vrreg_t) is essentually139 * The pointer (v_regs) of vector type (elf_vrreg_t) is essentially
140 * an array of 34 quadword entries. The entries with140 * an array of 34 quadword entries. The entries with
141 * indexes 0-31 contain the corresponding vector registers. The entry with141 * indexes 0-31 contain the corresponding vector registers. The entry with
142 * index 32 contains the vscr as the last word (offset 12) within the142 * index 32 contains the vscr as the last word (offset 12) within the
lib/libc/include/powerpc64le-linux-gnu/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
1919
lib/libc/include/riscv64-linux-gnu/bits/endian.h deleted-5
...@@ -1,5 +0,0 @@
1#ifndef _ENDIAN_H
2# error "Never use <bits/endian.h> directly; include <endian.h> instead."
3#endif
4
5#define __BYTE_ORDER __LITTLE_ENDIAN
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/endianness.h created+11
...@@ -0,0 +1,11 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* RISC-V is little-endian. */
9#define __BYTE_ORDER __LITTLE_ENDIAN
10
11#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux / RISC-V.1/* O_*, F_*, FD_* bit values for Linux / RISC-V.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _FCNTL_H20#ifndef _FCNTL_H
21# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."21# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/riscv64-linux-gnu/bits/fenv.h+3-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Floating point environment, RISC-V version.1/* Floating point environment, RISC-V version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FENV_H19#ifndef _FENV_H
20# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."20# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -65,7 +65,7 @@ typedef unsigned int fenv_t;...@@ -65,7 +65,7 @@ typedef unsigned int fenv_t;
65/* If the default argument is used we use this value. */65/* If the default argument is used we use this value. */
66#define FE_DFL_ENV ((__const fenv_t *) -1)66#define FE_DFL_ENV ((__const fenv_t *) -1)
6767
68#if __GLIBC_USE (IEC_60559_BFP_EXT)68#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
69/* Type representing floating-point control modes. */69/* Type representing floating-point control modes. */
70typedef unsigned int femode_t;70typedef unsigned int femode_t;
7171
lib/libc/include/riscv64-linux-gnu/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.1/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/riscv64-linux-gnu/bits/link.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific declarations for dynamic linker interface. RISC-V version.1/* Machine-specific declarations for dynamic linker interface. RISC-V version.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _LINK_H19#ifndef _LINK_H
20# error "Never include <bits/link.h> directly; use <link.h> instead."20# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/riscv64-linux-gnu/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. ldbl-128 version.1/* Properties of long double type. ldbl-128 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,8 @@...@@ -14,7 +14,8 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* long double is distinct from double, so there is nothing to19/* long double is distinct from double, so there is nothing to
20 define here. */
\ No newline at end of file
20 define here. */
21#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. RISC-V version.1/* Types for registers for sys/procfs.h. RISC-V version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/riscv64-linux-gnu/bits/pthreadtypes-arch.h+3-30
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific pthread type layouts. RISC-V version.1/* Machine-specific pthread type layouts. RISC-V version.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,12 +14,12 @@...@@ -14,12 +14,12 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_PTHREADTYPES_ARCH_H19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 120#define _BITS_PTHREADTYPES_ARCH_H 1
2121
22#include <endian.h>22#include <bits/endian.h>
2323
24#if __riscv_xlen == 6424#if __riscv_xlen == 64
25# define __SIZEOF_PTHREAD_ATTR_T 5625# define __SIZEOF_PTHREAD_ATTR_T 56
...@@ -35,34 +35,7 @@...@@ -35,34 +35,7 @@
35# error "rv32i-based systems are not supported"35# error "rv32i-based systems are not supported"
36#endif36#endif
3737
38#define __PTHREAD_COMPAT_PADDING_MID
39#define __PTHREAD_COMPAT_PADDING_END
40#define __PTHREAD_MUTEX_LOCK_ELISION 0
41#define __PTHREAD_MUTEX_USE_UNION 0
42#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 0
43
44#define __LOCK_ALIGNMENT38#define __LOCK_ALIGNMENT
45#define __ONCE_ALIGNMENT39#define __ONCE_ALIGNMENT
4640
47/* There is a lot of padding in this structure. While it's not strictly
48 necessary on RISC-V, we're going to leave it in to be on the safe side in
49 case it's needed in the future. Most other architectures have the padding,
50 so this gives us the same extensibility as everyone else has. */
51struct __pthread_rwlock_arch_t
52{
53 unsigned int __readers;
54 unsigned int __writers;
55 unsigned int __wrphase_futex;
56 unsigned int __writers_futex;
57 unsigned int __pad3;
58 unsigned int __pad4;
59 int __cur_writer;
60 int __shared;
61 unsigned long int __pad1;
62 unsigned long int __pad2;
63 unsigned int __flags;
64};
65
66#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
67
68#endif /* bits/pthreadtypes.h */41#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/semaphore.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific POSIX semaphore type layouts. RISC-V version.1/* Machine-specific POSIX semaphore type layouts. RISC-V version.
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SEMAPHORE_H19#ifndef _SEMAPHORE_H
20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/riscv64-linux-gnu/bits/setjmp.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define the machine-dependent type `jmp_buf'. RISC-V version.1/* Define the machine-dependent type `jmp_buf'. RISC-V version.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _RISCV_BITS_SETJMP_H19#ifndef _RISCV_BITS_SETJMP_H
20#define _RISCV_BITS_SETJMP_H20#define _RISCV_BITS_SETJMP_H
lib/libc/include/riscv64-linux-gnu/bits/sigcontext.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-dependent signal context structure for Linux. RISC-V version.1/* Machine-dependent signal context structure for Linux. RISC-V version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc. This file is part of the GNU C Library.2 Copyright (C) 1996-2020 Free Software Foundation, Inc. This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public5 modify it under the terms of the GNU Lesser General Public
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library. If not, see15 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_SIGCONTEXT_H18#ifndef _BITS_SIGCONTEXT_H
19#define _BITS_SIGCONTEXT_H 119#define _BITS_SIGCONTEXT_H 1
lib/libc/include/riscv64-linux-gnu/bits/stat.h+7-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined _SYS_STAT_H && !defined _FCNTL_H19#if !defined _SYS_STAT_H && !defined _FCNTL_H
20# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."20# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
...@@ -23,7 +23,7 @@...@@ -23,7 +23,7 @@
23#ifndef _BITS_STAT_H23#ifndef _BITS_STAT_H
24#define _BITS_STAT_H 124#define _BITS_STAT_H 1
2525
26#include <endian.h>26#include <bits/endian.h>
27#include <bits/wordsize.h>27#include <bits/wordsize.h>
2828
29/* 64-bit libc uses the kernel's 'struct stat', accessed via the29/* 64-bit libc uses the kernel's 'struct stat', accessed via the
...@@ -42,7 +42,10 @@...@@ -42,7 +42,10 @@
4242
43#if defined __USE_FILE_OFFSET6443#if defined __USE_FILE_OFFSET64
44# define __field64(type, type64, name) type64 name44# define __field64(type, type64, name) type64 name
45#elif __WORDSIZE == 6445#elif __WORDSIZE == 64 || defined __INO_T_MATCHES_INO64_T
46# if defined __INO_T_MATCHES_INO64_T && !defined __OFF_T_MATCHES_OFF64_T
47# error "ino_t and off_t must both be the same type"
48# endif
46# define __field64(type, type64, name) type name49# define __field64(type, type64, name) type name
47#elif __BYTE_ORDER == __LITTLE_ENDIAN50#elif __BYTE_ORDER == __LITTLE_ENDIAN
48# define __field64(type, type64, name) \51# define __field64(type, type64, name) \
lib/libc/include/riscv64-linux-gnu/bits/statfs.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.3 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
44
...@@ -14,13 +14,13 @@...@@ -14,13 +14,13 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_STATFS_H19#ifndef _SYS_STATFS_H
20# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."20# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
21#endif21#endif
2222
23#include <endian.h>23#include <bits/endian.h>
24#include <bits/types.h>24#include <bits/types.h>
25#include <bits/wordsize.h>25#include <bits/wordsize.h>
2626
...@@ -34,7 +34,7 @@...@@ -34,7 +34,7 @@
3434
35#if defined __USE_FILE_OFFSET6435#if defined __USE_FILE_OFFSET64
36# define __field64(type, type64, name) type64 name36# define __field64(type, type64, name) type64 name
37#elif __WORDSIZE == 6437#elif __WORDSIZE == 64 || __STATFS_MATCHES_STATFS64
38# define __field64(type, type64, name) type name38# define __field64(type, type64, name) type name
39#elif __BYTE_ORDER == __LITTLE_ENDIAN39#elif __BYTE_ORDER == __LITTLE_ENDIAN
40# define __field64(type, type64, name) \40# define __field64(type, type64, name) \
lib/libc/include/riscv64-linux-gnu/bits/struct_rwlock.h created+45
...@@ -0,0 +1,45 @@
1/* RISC-V internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20#ifndef _RWLOCK_INTERNAL_H
21#define _RWLOCK_INTERNAL_H
22
23/* There is a lot of padding in this structure. While it's not strictly
24 necessary on RISC-V, we're going to leave it in to be on the safe side in
25 case it's needed in the future. Most other architectures have the padding,
26 so this gives us the same extensibility as everyone else has. */
27struct __pthread_rwlock_arch_t
28{
29 unsigned int __readers;
30 unsigned int __writers;
31 unsigned int __wrphase_futex;
32 unsigned int __writers_futex;
33 unsigned int __pad3;
34 unsigned int __pad4;
35 int __cur_writer;
36 int __shared;
37 unsigned long int __pad1;
38 unsigned long int __pad2;
39 unsigned int __flags;
40};
41
42#define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
43 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
44
45#endif
\ No newline at end of file
lib/libc/include/riscv64-linux-gnu/bits/typesizes.h+7-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.1/* bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.4 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _BITS_TYPES_H20#ifndef _BITS_TYPES_H
21# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."21# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
...@@ -73,10 +73,14 @@...@@ -73,10 +73,14 @@
7373
74/* And for __rlim_t and __rlim64_t. */74/* And for __rlim_t and __rlim64_t. */
75# define __RLIM_T_MATCHES_RLIM64_T 175# define __RLIM_T_MATCHES_RLIM64_T 1
76
77/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
78# define __STATFS_MATCHES_STATFS64 1
76#else79#else
77# define __RLIM_T_MATCHES_RLIM64_T 080# define __RLIM_T_MATCHES_RLIM64_T 0
78#endif
7981
82# define __STATFS_MATCHES_STATFS64 0
83#endif
80/* Number of descriptors that can fit in an `fd_set'. */84/* Number of descriptors that can fit in an `fd_set'. */
81#define __FD_SETSIZE 102485#define __FD_SETSIZE 1024
8286
lib/libc/include/riscv64-linux-gnu/bits/wordsize.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Determine the wordsize from the preprocessor defines. RISC-V version.1/* Determine the wordsize from the preprocessor defines. RISC-V version.
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if __riscv_xlen == (__SIZEOF_POINTER__ * 8)19#if __riscv_xlen == (__SIZEOF_POINTER__ * 8)
20# define __WORDSIZE __riscv_xlen20# define __WORDSIZE __riscv_xlen
lib/libc/include/riscv64-linux-gnu/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word bits. RISC-V version.1/* FPU control word bits. RISC-V version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FPU_CONTROL_H19#ifndef _FPU_CONTROL_H
20#define _FPU_CONTROL_H20#define _FPU_CONTROL_H
lib/libc/include/riscv64-linux-gnu/ieee754.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,14 +13,14 @@...@@ -13,14 +13,14 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25__BEGIN_DECLS25__BEGIN_DECLS
2626
lib/libc/include/riscv64-linux-gnu/sys/asm.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Miscellaneous macros.1/* Miscellaneous macros.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_ASM_H19#ifndef _SYS_ASM_H
20#define _SYS_ASM_H20#define _SYS_ASM_H
lib/libc/include/riscv64-linux-gnu/sys/cachectl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* RISC-V instruction cache flushing interface1/* RISC-V instruction cache flushing interface
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_CACHECTL_H20#ifndef _SYS_CACHECTL_H
21#define _SYS_CACHECTL_H 121#define _SYS_CACHECTL_H 1
lib/libc/include/riscv64-linux-gnu/sys/ucontext.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* struct ucontext definition, RISC-V version.1/* struct ucontext definition, RISC-V version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* Don't rely on this, the interface is currently messed up and may need to19/* Don't rely on this, the interface is currently messed up and may need to
20 be broken to be fixed. */20 be broken to be fixed. */
lib/libc/include/riscv64-linux-gnu/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
19#define _SYS_USER_H 119#define _SYS_USER_H 1
lib/libc/include/s390x-linux-gnu/bits/elfclass.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).2 Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* This file specifies the native word size of the machine, which indicates19/* This file specifies the native word size of the machine, which indicates
20 the ELF file class used for executables and shared objects on this20 the ELF file class used for executables and shared objects on this
lib/libc/include/s390x-linux-gnu/bits/endian.h deleted-7
...@@ -1,7 +0,0 @@
1/* s390 is big-endian */
2
3#ifndef _ENDIAN_H
4# error "Never use <bits/endian.h> directly; include <endian.h> instead."
5#endif
6
7#define __BYTE_ORDER __BIG_ENDIAN
\ No newline at end of file
lib/libc/include/s390x-linux-gnu/bits/endianness.h created+11
...@@ -0,0 +1,11 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* S/390 is big-endian. */
9#define __BYTE_ORDER __BIG_ENDIAN
10
11#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/s390x-linux-gnu/bits/environments.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _UNISTD_H18#ifndef _UNISTD_H
19# error "Never include this file directly. Use <unistd.h> instead"19# error "Never include this file directly. Use <unistd.h> instead"
lib/libc/include/s390x-linux-gnu/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux.1/* O_*, F_*, FD_* bit values for Linux.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/s390x-linux-gnu/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Denis Joseph Barrow <djbarrow@de.ibm.com>.3 Contributed by Denis Joseph Barrow <djbarrow@de.ibm.com>.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FENV_H19#ifndef _FENV_H
20# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."20# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -91,7 +91,7 @@ typedef struct...@@ -91,7 +91,7 @@ typedef struct
91# define FE_NOMASK_ENV ((const fenv_t *) -2)91# define FE_NOMASK_ENV ((const fenv_t *) -2)
92#endif92#endif
9393
94#if __GLIBC_USE (IEC_60559_BFP_EXT)94#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
95/* Type representing floating-point control modes. */95/* Type representing floating-point control modes. */
96typedef unsigned int femode_t;96typedef unsigned int femode_t;
9797
lib/libc/include/s390x-linux-gnu/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.1/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/s390x-linux-gnu/bits/flt-eval-method.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define __GLIBC_FLT_EVAL_METHOD. S/390 version.1/* Define __GLIBC_FLT_EVAL_METHOD. S/390 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."20# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."
lib/libc/include/s390x-linux-gnu/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP.1/* Defines for bits in AT_HWCAP.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_AUXV_H19#ifndef _SYS_AUXV_H
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/s390x-linux-gnu/bits/ipc.h deleted-60
...@@ -1,60 +0,0 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23#include <bits/wordsize.h>
24
25/* Mode bits for `msgget', `semget', and `shmget'. */
26#define IPC_CREAT 01000 /* Create key if key does not exist. */
27#define IPC_EXCL 02000 /* Fail if key exists. */
28#define IPC_NOWAIT 04000 /* Return error on wait. */
29
30/* Control commands for `msgctl', `semctl', and `shmctl'. */
31#define IPC_RMID 0 /* Remove identifier. */
32#define IPC_SET 1 /* Set `ipc_perm' options. */
33#define IPC_STAT 2 /* Get `ipc_perm' options. */
34#ifdef __USE_GNU
35#define IPC_INFO 3 /* See ipcs. */
36#endif
37
38/* Special key values. */
39#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
40
41
42/* Data structure used to pass permission information to IPC operations. */
43struct ipc_perm
44 {
45 __key_t __key; /* Key. */
46 __uid_t uid; /* Owner's user ID. */
47 __gid_t gid; /* Owner's group ID. */
48 __uid_t cuid; /* Creator's user ID. */
49 __gid_t cgid; /* Creator's group ID. */
50#if __WORDSIZE == 64
51 __mode_t mode; /* Read/write permission. */
52#else
53 unsigned short int mode; /* Read/write permission. */
54 unsigned short int __pad1;
55#endif
56 unsigned short int __seq; /* Sequence number. */
57 unsigned short int __pad2;
58 unsigned long int __glibc_reserved1;
59 unsigned long int __glibc_reserved2;
60 };
\ No newline at end of file
lib/libc/include/s390x-linux-gnu/bits/link.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _LINK_H18#ifndef _LINK_H
19# error "Never include <bits/link.h> directly; use <link.h> instead."19# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/s390x-linux-gnu/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. ldbl-opt version.1/* Properties of long double type. ldbl-opt version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,11 +14,12 @@...@@ -14,11 +14,12 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef __NO_LONG_DOUBLE_MATH19#ifndef __NO_LONG_DOUBLE_MATH
20# define __LONG_DOUBLE_MATH_OPTIONAL 120# define __LONG_DOUBLE_MATH_OPTIONAL 1
21# ifndef __LONG_DOUBLE_128__21# ifndef __LONG_DOUBLE_128__
22# define __NO_LONG_DOUBLE_MATH 122# define __NO_LONG_DOUBLE_MATH 1
23# endif23# endif
24#endif
\ No newline at end of file
24#endif
25#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/s390x-linux-gnu/bits/procfs-extra.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Extra sys/procfs.h definitions. S/390 version.1/* Extra sys/procfs.h definitions. S/390 version.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs-extra.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs-extra.h> directly; use <sys/procfs.h> instead."
lib/libc/include/s390x-linux-gnu/bits/procfs-id.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. S/390 version.1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. S/390 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
lib/libc/include/s390x-linux-gnu/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. S/390 version.1/* Types for registers for sys/procfs.h. S/390 version.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/s390x-linux-gnu/bits/pthreadtypes-arch.h deleted-79
...@@ -1,79 +0,0 @@
1/* Copyright (C) 2003-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _BITS_PTHREADTYPES_ARCH_H
19#define _BITS_PTHREADTYPES_ARCH_H 1
20
21#include <bits/wordsize.h>
22
23#if __WORDSIZE == 64
24# define __SIZEOF_PTHREAD_ATTR_T 56
25# define __SIZEOF_PTHREAD_MUTEX_T 40
26# define __SIZEOF_PTHREAD_RWLOCK_T 56
27# define __SIZEOF_PTHREAD_BARRIER_T 32
28#else
29# define __SIZEOF_PTHREAD_ATTR_T 36
30# define __SIZEOF_PTHREAD_MUTEX_T 24
31# define __SIZEOF_PTHREAD_RWLOCK_T 32
32# define __SIZEOF_PTHREAD_BARRIER_T 20
33#endif
34#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
35#define __SIZEOF_PTHREAD_CONDATTR_T 4
36#define __SIZEOF_PTHREAD_COND_T 48
37#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
38#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
39
40/* Definitions for internal mutex struct. */
41#define __PTHREAD_COMPAT_PADDING_MID
42#define __PTHREAD_COMPAT_PADDING_END
43#define __PTHREAD_MUTEX_LOCK_ELISION 1
44#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND (__WORDSIZE != 64)
45#define __PTHREAD_MUTEX_USE_UNION (__WORDSIZE != 64)
46
47#define __LOCK_ALIGNMENT
48#define __ONCE_ALIGNMENT
49
50struct __pthread_rwlock_arch_t
51{
52 unsigned int __readers;
53 unsigned int __writers;
54 unsigned int __wrphase_futex;
55 unsigned int __writers_futex;
56 unsigned int __pad3;
57 unsigned int __pad4;
58#if __WORDSIZE == 64
59 int __cur_writer;
60 int __shared;
61 unsigned long int __pad1;
62 unsigned long int __pad2;
63 /* FLAGS must stay at this position in the structure to maintain
64 binary compatibility. */
65 unsigned int __flags;
66# else
67 unsigned char __pad1;
68 unsigned char __pad2;
69 unsigned char __shared;
70 /* FLAGS must stay at this position in the structure to maintain
71 binary compatibility. */
72 unsigned char __flags;
73 int __cur_writer;
74#endif
75};
76
77#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
78
79#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/s390x-linux-gnu/bits/semaphore.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2003-2019 Free Software Foundation, Inc.1/* Copyright (C) 2003-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Martin Schwidefsky <schwidefsky@de.ibm.com>, 2003.3 Contributed by Martin Schwidefsky <schwidefsky@de.ibm.com>, 2003.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SEMAPHORE_H19#ifndef _SEMAPHORE_H
20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/s390x-linux-gnu/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Define the machine-dependent type `jmp_buf'. IBM s390 version. */18/* Define the machine-dependent type `jmp_buf'. IBM s390 version. */
1919
lib/libc/include/s390x-linux-gnu/bits/sigaction.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for 31 & 64 bit S/390 sigaction.1/* Definitions for 31 & 64 bit S/390 sigaction.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGACTION_H19#ifndef _BITS_SIGACTION_H
20#define _BITS_SIGACTION_H 120#define _BITS_SIGACTION_H 1
lib/libc/include/s390x-linux-gnu/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/s390x-linux-gnu/bits/statfs.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_STATFS_H18#ifndef _SYS_STATFS_H
19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."19# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
lib/libc/include/s390x-linux-gnu/bits/struct_mutex.h created+63
...@@ -0,0 +1,63 @@
1/* S390 internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#if __WORDSIZE == 64
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#if __WORDSIZE == 64
34 short __spins;
35 short __elision;
36 __pthread_list_t __list;
37# define __PTHREAD_MUTEX_HAVE_PREV 1
38#else
39 unsigned int __nusers;
40 __extension__ union
41 {
42 struct
43 {
44 short __espins;
45 short __elision;
46 } _d;
47# define __spins _d.__espins
48# define __elision _d.__elision
49 __pthread_slist_t __list;
50 };
51# define __PTHREAD_MUTEX_HAVE_PREV 0
52#endif
53};
54
55#if __WORDSIZE == 64
56# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
57 0, 0, 0, 0, __kind, 0, 0, { 0, 0 }
58#else
59# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
60 0, 0, 0, __kind, 0, { { 0, 0 } }
61#endif
62
63#endif
\ No newline at end of file
lib/libc/include/s390x-linux-gnu/bits/struct_rwlock.h created+58
...@@ -0,0 +1,58 @@
1/* S390 internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20#ifndef _RWLOCK_INTERNAL_H
21#define _RWLOCK_INTERNAL_H
22
23struct __pthread_rwlock_arch_t
24{
25 unsigned int __readers;
26 unsigned int __writers;
27 unsigned int __wrphase_futex;
28 unsigned int __writers_futex;
29 unsigned int __pad3;
30 unsigned int __pad4;
31#if __WORDSIZE == 64
32 int __cur_writer;
33 int __shared;
34 unsigned long int __pad1;
35 unsigned long int __pad2;
36 /* FLAGS must stay at this position in the structure to maintain
37 binary compatibility. */
38 unsigned int __flags;
39# else
40 unsigned char __pad1;
41 unsigned char __pad2;
42 unsigned char __shared;
43 /* FLAGS must stay at this position in the structure to maintain
44 binary compatibility. */
45 unsigned char __flags;
46 int __cur_writer;
47#endif
48};
49
50#if __WORDSIZE == 64
51# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
52 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
53#else
54# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
55 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
56#endif
57
58#endif
\ No newline at end of file
lib/libc/include/s390x-linux-gnu/bits/typesizes.h+7-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/typesizes.h -- underlying types for *_t. Linux/s390 version.1/* bits/typesizes.h -- underlying types for *_t. Linux/s390 version.
2 Copyright (C) 2003-2019 Free Software Foundation, Inc.2 Copyright (C) 2003-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_TYPES_H19#ifndef _BITS_TYPES_H
20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
...@@ -78,8 +78,13 @@...@@ -78,8 +78,13 @@
7878
79/* And for __rlim_t and __rlim64_t. */79/* And for __rlim_t and __rlim64_t. */
80# define __RLIM_T_MATCHES_RLIM64_T 180# define __RLIM_T_MATCHES_RLIM64_T 1
81
82/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
83# define __STATFS_MATCHES_STATFS64 1
81#else84#else
82# define __RLIM_T_MATCHES_RLIM64_T 085# define __RLIM_T_MATCHES_RLIM64_T 0
86
87# define __STATFS_MATCHES_STATFS64 0
83#endif88#endif
8489
85/* Number of descriptors that can fit in an `fd_set'. */90/* Number of descriptors that can fit in an `fd_set'. */
lib/libc/include/s390x-linux-gnu/bits/utmp.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* The `struct utmp' type, describing entries in the utmp file. GNU version.1/* The `struct utmp' type, describing entries in the utmp file. GNU version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _UTMP_H19#ifndef _UTMP_H
20# error "Never include <bits/utmp.h> directly; use <utmp.h> instead."20# error "Never include <bits/utmp.h> directly; use <utmp.h> instead."
...@@ -61,7 +61,8 @@ struct utmp...@@ -61,7 +61,8 @@ struct utmp
61 pid_t ut_pid; /* Process ID of login process. */61 pid_t ut_pid; /* Process ID of login process. */
62 char ut_line[UT_LINESIZE]62 char ut_line[UT_LINESIZE]
63 __attribute_nonstring__; /* Devicename. */63 __attribute_nonstring__; /* Devicename. */
64 char ut_id[4]; /* Inittab ID. */64 char ut_id[4]
65 __attribute_nonstring__; /* Inittab ID. */
65 char ut_user[UT_NAMESIZE]66 char ut_user[UT_NAMESIZE]
66 __attribute_nonstring__; /* Username. */67 __attribute_nonstring__; /* Username. */
67 char ut_host[UT_HOSTSIZE]68 char ut_host[UT_HOSTSIZE]
lib/libc/include/s390x-linux-gnu/bits/utmpx.h+10-6
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Structures and definitions for the user accounting database. GNU version.1/* Structures and definitions for the user accounting database. GNU version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _UTMPX_H19#ifndef _UTMPX_H
20# error "Never include <bits/utmpx.h> directly; use <utmpx.h> instead."20# error "Never include <bits/utmpx.h> directly; use <utmpx.h> instead."
...@@ -56,10 +56,14 @@ struct utmpx...@@ -56,10 +56,14 @@ struct utmpx
56{56{
57 short int ut_type; /* Type of login. */57 short int ut_type; /* Type of login. */
58 __pid_t ut_pid; /* Process ID of login process. */58 __pid_t ut_pid; /* Process ID of login process. */
59 char ut_line[__UT_LINESIZE]; /* Devicename. */59 char ut_line[__UT_LINESIZE]
60 char ut_id[4]; /* Inittab ID. */60 __attribute_nonstring__; /* Devicename. */
61 char ut_user[__UT_NAMESIZE]; /* Username. */61 char ut_id[4]
62 char ut_host[__UT_HOSTSIZE]; /* Hostname for remote login. */62 __attribute_nonstring__; /* Inittab ID. */
63 char ut_user[__UT_NAMESIZE]
64 __attribute_nonstring__; /* Username. */
65 char ut_host[__UT_HOSTSIZE]
66 __attribute_nonstring__; /* Hostname for remote login. */
63 struct __exit_status ut_exit; /* Exit status of a process marked67 struct __exit_status ut_exit; /* Exit status of a process marked
64 as DEAD_PROCESS. */68 as DEAD_PROCESS. */
6569
lib/libc/include/s390x-linux-gnu/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word definitions. Stub version.1/* FPU control word definitions. Stub version.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
3 Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com) and3 Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com) and
4 Martin Schwidefsky (schwidefsky@de.ibm.com).4 Martin Schwidefsky (schwidefsky@de.ibm.com).
5 This file is part of the GNU C Library.5 This file is part of the GNU C Library.
...@@ -16,7 +16,7 @@...@@ -16,7 +16,7 @@
1616
17 You should have received a copy of the GNU Lesser General Public17 You should have received a copy of the GNU Lesser General Public
18 License along with the GNU C Library; if not, see18 License along with the GNU C Library; if not, see
19 <http://www.gnu.org/licenses/>. */19 <https://www.gnu.org/licenses/>. */
2020
21#ifndef _FPU_CONTROL_H21#ifndef _FPU_CONTROL_H
22#define _FPU_CONTROL_H22#define _FPU_CONTROL_H
lib/libc/include/s390x-linux-gnu/ieee754.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,14 +13,14 @@...@@ -13,14 +13,14 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25__BEGIN_DECLS25__BEGIN_DECLS
2626
lib/libc/include/s390x-linux-gnu/sys/elf.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_ELF_H18#ifndef _SYS_ELF_H
19#define _SYS_ELF_H 119#define _SYS_ELF_H 1
lib/libc/include/s390x-linux-gnu/sys/ptrace.h+11-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/S390 version.1/* `ptrace' debugger support interface. Linux/S390 version.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
3 Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com).3 Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com).
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PTRACE_H20#ifndef _SYS_PTRACE_H
21#define _SYS_PTRACE_H 121#define _SYS_PTRACE_H 1
...@@ -79,6 +79,11 @@ __BEGIN_DECLS...@@ -79,6 +79,11 @@ __BEGIN_DECLS
79# undef PTRACE_EVENT_SECCOMP79# undef PTRACE_EVENT_SECCOMP
80# undef PTRACE_EVENT_STOP80# undef PTRACE_EVENT_STOP
81# undef PTRACE_PEEKSIGINFO_SHARED81# undef PTRACE_PEEKSIGINFO_SHARED
82# undef PTRACE_GET_SYSCALL_INFO
83# undef PTRACE_SYSCALL_INFO_NONE
84# undef PTRACE_SYSCALL_INFO_ENTRY
85# undef PTRACE_SYSCALL_INFO_EXIT
86# undef PTRACE_SYSCALL_INFO_SECCOMP
82#endif87#endif
83/* Type of the REQUEST argument to `ptrace.' */88/* Type of the REQUEST argument to `ptrace.' */
84enum __ptrace_request89enum __ptrace_request
...@@ -198,6 +203,10 @@ enum __ptrace_request...@@ -198,6 +203,10 @@ enum __ptrace_request
198 PTRACE_SECCOMP_GET_METADATA = 0x420d,203 PTRACE_SECCOMP_GET_METADATA = 0x420d,
199#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA204#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
200205
206 /* Get information about system call. */
207 PTRACE_GET_SYSCALL_INFO = 0x420e,
208#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
209
201 PTRACE_PEEKUSR_AREA = 0x5000,210 PTRACE_PEEKUSR_AREA = 0x5000,
202#define PTRACE_PEEKUSR_AREA PTRACE_PEEKUSR_AREA211#define PTRACE_PEEKUSR_AREA PTRACE_PEEKUSR_AREA
203212
lib/libc/include/s390x-linux-gnu/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
2 Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com).2 Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com).
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_UCONTEXT_H19#ifndef _SYS_UCONTEXT_H
20#define _SYS_UCONTEXT_H 120#define _SYS_UCONTEXT_H 1
lib/libc/include/s390x-linux-gnu/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
19#define _SYS_USER_H 119#define _SYS_USER_H 1
lib/libc/include/sparc-linux-gnu/bits/endian.h deleted-12
...@@ -1,12 +0,0 @@
1/* Sparc is big-endian, but v9 supports endian conversion on loads/stores
2 and GCC supports such a mode. Be prepared. */
3
4#ifndef _ENDIAN_H
5# error "Never use <bits/endian.h> directly; include <endian.h> instead."
6#endif
7
8#ifdef __LITTLE_ENDIAN__
9# define __BYTE_ORDER __LITTLE_ENDIAN
10#else
11# define __BYTE_ORDER __BIG_ENDIAN
12#endif
\ No newline at end of file
lib/libc/include/sparc-linux-gnu/bits/endianness.h created+16
...@@ -0,0 +1,16 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* Sparc is big-endian, but v9 supports endian conversion on loads/stores
9 and GCC supports such a mode. Be prepared. */
10#ifdef __LITTLE_ENDIAN__
11# define __BYTE_ORDER __LITTLE_ENDIAN
12#else
13# define __BYTE_ORDER __BIG_ENDIAN
14#endif
15
16#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/sparc-linux-gnu/bits/environments.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _UNISTD_H18#ifndef _UNISTD_H
19# error "Never include this file directly. Use <unistd.h> instead"19# error "Never include this file directly. Use <unistd.h> instead"
lib/libc/include/sparc-linux-gnu/bits/epoll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EPOLL_H18#ifndef _SYS_EPOLL_H
19# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."19# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."
lib/libc/include/sparc-linux-gnu/bits/errno.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Error constants. Linux/Sparc specific version.1/* Error constants. Linux/Sparc specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_ERRNO_H19#ifndef _BITS_ERRNO_H
20#define _BITS_ERRNO_H 120#define _BITS_ERRNO_H 1
lib/libc/include/sparc-linux-gnu/bits/eventfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EVENTFD_H18#ifndef _SYS_EVENTFD_H
19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
lib/libc/include/sparc-linux-gnu/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux/SPARC.1/* O_*, F_*, FD_* bit values for Linux/SPARC.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/sparc-linux-gnu/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -92,7 +92,7 @@ typedef unsigned long int fenv_t;...@@ -92,7 +92,7 @@ typedef unsigned long int fenv_t;
92# define __fenv_ldfsr(X) __asm__ __volatile__ ("ld %0,%%fsr" : : "m" (X))92# define __fenv_ldfsr(X) __asm__ __volatile__ ("ld %0,%%fsr" : : "m" (X))
93#endif93#endif
9494
95#if __GLIBC_USE (IEC_60559_BFP_EXT)95#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
96/* Type representing floating-point control modes. */96/* Type representing floating-point control modes. */
97typedef unsigned long int femode_t;97typedef unsigned long int femode_t;
9898
lib/libc/include/sparc-linux-gnu/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.1/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/sparc-linux-gnu/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP.1/* Defines for bits in AT_HWCAP.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)19#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/sparc-linux-gnu/bits/inotify.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_INOTIFY_H18#ifndef _SYS_INOTIFY_H
19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
lib/libc/include/sparc-linux-gnu/bits/ioctls.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_IOCTL_H18#ifndef _SYS_IOCTL_H
19# error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead."19# error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/sparc-linux-gnu/bits/ipc-perm.h created+36
...@@ -0,0 +1,36 @@
1/* struct ipc_perm definition. Linux/sparc version.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
18
19#ifndef _SYS_IPC_H
20# error "Never use <bits/ipc-perm.h> directly; include <sys/ipc.h> instead."
21#endif
22
23/* Data structure used to pass permission information to IPC operations. */
24struct ipc_perm
25 {
26 __key_t __key; /* Key. */
27 __uid_t uid; /* Owner's user ID. */
28 __gid_t gid; /* Owner's group ID. */
29 __uid_t cuid; /* Creator's user ID. */
30 __gid_t cgid; /* Creator's group ID. */
31 __mode_t mode; /* Read/write permission. */
32 unsigned short int __pad1;
33 unsigned short int __seq; /* Sequence number. */
34 __extension__ unsigned long long int __glibc_reserved1;
35 __extension__ unsigned long long int __glibc_reserved2;
36 };
\ No newline at end of file
lib/libc/include/sparc-linux-gnu/bits/ipc.h deleted-61
...@@ -1,61 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23#include <bits/wordsize.h>
24
25/* Mode bits for `msgget', `semget', and `shmget'. */
26#define IPC_CREAT 01000 /* Create key if key does not exist. */
27#define IPC_EXCL 02000 /* Fail if key exists. */
28#define IPC_NOWAIT 04000 /* Return error on wait. */
29
30/* Control commands for `msgctl', `semctl', and `shmctl'. */
31#define IPC_RMID 0 /* Remove identifier. */
32#define IPC_SET 1 /* Set `ipc_perm' options. */
33#define IPC_STAT 2 /* Get `ipc_perm' options. */
34#ifdef __USE_GNU
35# define IPC_INFO 3 /* See ipcs. */
36#endif
37
38/* Special key values. */
39#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
40
41
42/* Data structure used to pass permission information to IPC operations. */
43struct ipc_perm
44 {
45 __key_t __key; /* Key. */
46 __uid_t uid; /* Owner's user ID. */
47 __gid_t gid; /* Owner's group ID. */
48 __uid_t cuid; /* Creator's user ID. */
49 __gid_t cgid; /* Creator's group ID. */
50#if __WORDSIZE == 32
51 unsigned short int __pad1;
52 unsigned short int mode; /* Read/write permission. */
53 unsigned short int __pad2;
54#else
55 __mode_t mode; /* Read/write permission. */
56 unsigned short int __pad1;
57#endif
58 unsigned short int __seq; /* Sequence number. */
59 __extension__ unsigned long long int __glibc_reserved1;
60 __extension__ unsigned long long int __glibc_reserved2;
61 };
\ No newline at end of file
lib/libc/include/sparc-linux-gnu/bits/link.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific audit interfaces for dynamic linker. SPARC version.1/* Machine-specific audit interfaces for dynamic linker. SPARC version.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _LINK_H19#ifndef _LINK_H
20# error "Never include <bits/link.h> directly; use <link.h> instead."20# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/sparc-linux-gnu/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. Linux/SPARC version.1/* Minimum guaranteed maximum values for system limits. Linux/SPARC version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Library General Public15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If16 License along with the GNU C Library; see the file COPYING.LIB. If
17 not, see <http://www.gnu.org/licenses/>. */17 not, see <https://www.gnu.org/licenses/>. */
1818
19/* The kernel header pollutes the namespace with the NR_OPEN symbol19/* The kernel header pollutes the namespace with the NR_OPEN symbol
20 and defines LINK_MAX although filesystems have different maxima. A20 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/sparc-linux-gnu/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. SPARC version.1/* Properties of long double type. SPARC version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#include <bits/wordsize.h>19#include <bits/wordsize.h>
2020
...@@ -23,4 +23,5 @@...@@ -23,4 +23,5 @@
23# ifndef __LONG_DOUBLE_128__23# ifndef __LONG_DOUBLE_128__
24# define __NO_LONG_DOUBLE_MATH 124# define __NO_LONG_DOUBLE_MATH 1
25# endif25# endif
26#endif
\ No newline at end of file
26#endif
27#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/sparc-linux-gnu/bits/mman.h+4-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/SPARC version.1/* Definitions for POSIX memory map interface. Linux/SPARC version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
...@@ -36,6 +36,8 @@...@@ -36,6 +36,8 @@
36# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */36# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
37# define MAP_STACK 0x20000 /* Allocation is for a stack. */37# define MAP_STACK 0x20000 /* Allocation is for a stack. */
38# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */38# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
39# define MAP_SYNC 0x80000 /* Perform synchronous page
40 faults for the mapping. */
39# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap41# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
40 underlying mapping. */42 underlying mapping. */
41#endif43#endif
lib/libc/include/sparc-linux-gnu/bits/msq-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct msqid_ds. SPARC version.1/* Define where padding goes in struct msqid_ds. SPARC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MSG_H19#ifndef _SYS_MSG_H
20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
lib/libc/include/sparc-linux-gnu/bits/poll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_POLL_H18#ifndef _SYS_POLL_H
19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
lib/libc/include/sparc-linux-gnu/bits/procfs-extra.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Extra sys/procfs.h definitions. SPARC version.1/* Extra sys/procfs.h definitions. SPARC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs-extra.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs-extra.h> directly; use <sys/procfs.h> instead."
lib/libc/include/sparc-linux-gnu/bits/procfs-id.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. SPARC version.1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. SPARC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
lib/libc/include/sparc-linux-gnu/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. SPARC version.1/* Types for registers for sys/procfs.h. SPARC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/sparc-linux-gnu/bits/pthreadtypes-arch.h deleted-81
...@@ -1,81 +0,0 @@
1/* Machine-specific pthread type layouts. SPARC version.
2 Copyright (C) 2003-2019 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 1
21
22#include <bits/wordsize.h>
23
24#if __WORDSIZE == 64
25# define __SIZEOF_PTHREAD_ATTR_T 56
26# define __SIZEOF_PTHREAD_MUTEX_T 40
27# define __SIZEOF_PTHREAD_CONDATTR_T 4
28# define __SIZEOF_PTHREAD_RWLOCK_T 56
29# define __SIZEOF_PTHREAD_BARRIER_T 32
30#else
31# define __SIZEOF_PTHREAD_ATTR_T 36
32# define __SIZEOF_PTHREAD_MUTEX_T 24
33# define __SIZEOF_PTHREAD_CONDATTR_T 4
34# define __SIZEOF_PTHREAD_RWLOCK_T 32
35# define __SIZEOF_PTHREAD_BARRIER_T 20
36#endif
37#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
38#define __SIZEOF_PTHREAD_COND_T 48
39#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
40#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
41
42/* Definitions for internal mutex struct. */
43#define __PTHREAD_COMPAT_PADDING_MID
44#define __PTHREAD_COMPAT_PADDING_END
45#define __PTHREAD_MUTEX_LOCK_ELISION 0
46#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND (__WORDSIZE != 64)
47#define __PTHREAD_MUTEX_USE_UNION (__WORDSIZE != 64)
48
49#define __LOCK_ALIGNMENT
50#define __ONCE_ALIGNMENT
51
52struct __pthread_rwlock_arch_t
53{
54 unsigned int __readers;
55 unsigned int __writers;
56 unsigned int __wrphase_futex;
57 unsigned int __writers_futex;
58 unsigned int __pad3;
59 unsigned int __pad4;
60#if __WORDSIZE == 64
61 int __cur_writer;
62 int __shared;
63 unsigned long int __pad1;
64 unsigned long int __pad2;
65 /* FLAGS must stay at this position in the structure to maintain
66 binary compatibility. */
67 unsigned int __flags;
68#else
69 unsigned char __pad1;
70 unsigned char __pad2;
71 unsigned char __shared;
72 /* FLAGS must stay at this position in the structure to maintain
73 binary compatibility. */
74 unsigned char __flags;
75 int __cur_writer;
76#endif
77};
78
79#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
80
81#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/sparc-linux-gnu/bits/resource.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit values & structures for resource limits. Linux/SPARC version.1/* Bit values & structures for resource limits. Linux/SPARC version.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_RESOURCE_H19#ifndef _SYS_RESOURCE_H
20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
lib/libc/include/sparc-linux-gnu/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. SPARC version.1/* Define where padding goes in struct semid_ds. SPARC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/sparc-linux-gnu/bits/semaphore.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific POSIX semaphore type layouts. SPARC version.1/* Machine-specific POSIX semaphore type layouts. SPARC version.
2 Copyright (C) 2003-2019 Free Software Foundation, Inc.2 Copyright (C) 2003-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.4 Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SEMAPHORE_H20#ifndef _SEMAPHORE_H
21# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."21# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/sparc-linux-gnu/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_SETJMP_H18#ifndef _BITS_SETJMP_H
19#define _BITS_SETJMP_H 119#define _BITS_SETJMP_H 1
lib/libc/include/sparc-linux-gnu/bits/shm-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct shmid_ds. SPARC version.1/* Define where padding goes in struct shmid_ds. SPARC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
lib/libc/include/sparc-linux-gnu/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. SPARC version.1/* Define SHMLBA. SPARC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/sparc-linux-gnu/bits/sigaction.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* The proper definitions for Linux/SPARC sigaction.1/* The proper definitions for Linux/SPARC sigaction.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGACTION_H19#ifndef _BITS_SIGACTION_H
20#define _BITS_SIGACTION_H 120#define _BITS_SIGACTION_H 1
lib/libc/include/sparc-linux-gnu/bits/sigcontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_SIGCONTEXT_H18#ifndef _BITS_SIGCONTEXT_H
19#define _BITS_SIGCONTEXT_H 119#define _BITS_SIGCONTEXT_H 1
lib/libc/include/sparc-linux-gnu/bits/signalfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SIGNALFD_H18#ifndef _SYS_SIGNALFD_H
19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
lib/libc/include/sparc-linux-gnu/bits/signum.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Signal number definitions. Linux/SPARC version.1/* Signal number definitions. Linux/SPARC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGNUM_H19#ifndef _BITS_SIGNUM_H
20#define _BITS_SIGNUM_H 120#define _BITS_SIGNUM_H 1
lib/libc/include/sparc-linux-gnu/bits/sigstack.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* sigstack, sigaltstack definitions.1/* sigstack, sigaltstack definitions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGSTACK_H19#ifndef _BITS_SIGSTACK_H
20#define _BITS_SIGSTACK_H 120#define _BITS_SIGSTACK_H 1
lib/libc/include/sparc-linux-gnu/bits/socket-constants.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Socket constants which vary among Linux architectures. Version for SPARC.1/* Socket constants which vary among Linux architectures. Version for SPARC.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
lib/libc/include/sparc-linux-gnu/bits/socket_type.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define enum __socket_type for Linux/SPARC.1/* Define enum __socket_type for Linux/SPARC.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
lib/libc/include/sparc-linux-gnu/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/sparc-linux-gnu/bits/struct_rwlock.h created+58
...@@ -0,0 +1,58 @@
1/* SPARC internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20#ifndef _RWLOCK_INTERNAL_H
21#define _RWLOCK_INTERNAL_H
22
23struct __pthread_rwlock_arch_t
24{
25 unsigned int __readers;
26 unsigned int __writers;
27 unsigned int __wrphase_futex;
28 unsigned int __writers_futex;
29 unsigned int __pad3;
30 unsigned int __pad4;
31#if __WORDSIZE == 64
32 int __cur_writer;
33 int __shared;
34 unsigned long int __pad1;
35 unsigned long int __pad2;
36 /* FLAGS must stay at this position in the structure to maintain
37 binary compatibility. */
38 unsigned int __flags;
39#else
40 unsigned char __pad1;
41 unsigned char __pad2;
42 unsigned char __shared;
43 /* FLAGS must stay at this position in the structure to maintain
44 binary compatibility. */
45 unsigned char __flags;
46 int __cur_writer;
47#endif
48};
49
50#if __WORDSIZE == 64
51# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
52 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
53#else
54# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
55 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
56#endif
57
58#endif
\ No newline at end of file
lib/libc/include/sparc-linux-gnu/bits/termios-baud.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios baud rate selection definitions. Linux/sparc version.1/* termios baud rate selection definitions. Linux/sparc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."
lib/libc/include/sparc-linux-gnu/bits/termios-c_cc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios c_cc symbolic constant definitions. Linux/sparc version.1/* termios c_cc symbolic constant definitions. Linux/sparc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
lib/libc/include/sparc-linux-gnu/bits/termios-c_oflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios output mode definitions. Linux/sparc version.1/* termios output mode definitions. Linux/sparc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."
lib/libc/include/sparc-linux-gnu/bits/termios-struct.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* struct termios definition. Linux/sparc version.1/* struct termios definition. Linux/sparc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
lib/libc/include/sparc-linux-gnu/bits/timerfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2008-2019 Free Software Foundation, Inc.1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIMERFD_H18#ifndef _SYS_TIMERFD_H
19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
lib/libc/include/sparc-linux-gnu/bits/typesizes.h+7-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/typesizes.h -- underlying types for *_t. Linux/SPARC version.1/* bits/typesizes.h -- underlying types for *_t. Linux/SPARC version.
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_TYPES_H19#ifndef _BITS_TYPES_H
20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
...@@ -72,8 +72,13 @@...@@ -72,8 +72,13 @@
7272
73/* And for __rlim_t and __rlim64_t. */73/* And for __rlim_t and __rlim64_t. */
74# define __RLIM_T_MATCHES_RLIM64_T 174# define __RLIM_T_MATCHES_RLIM64_T 1
75
76/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
77# define __STATFS_MATCHES_STATFS64 1
75#else78#else
76# define __RLIM_T_MATCHES_RLIM64_T 079# define __RLIM_T_MATCHES_RLIM64_T 0
80
81# define __STATFS_MATCHES_STATFS64 0
77#endif82#endif
7883
79/* Number of descriptors that can fit in an `fd_set'. */84/* Number of descriptors that can fit in an `fd_set'. */
lib/libc/include/sparc-linux-gnu/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word bits. SPARC version.1/* FPU control word bits. SPARC version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Miguel de Icaza4 Contributed by Miguel de Icaza
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _FPU_CONTROL_H20#ifndef _FPU_CONTROL_H
21#define _FPU_CONTROL_H 121#define _FPU_CONTROL_H 1
lib/libc/include/sparc-linux-gnu/ieee754.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,14 +13,14 @@...@@ -13,14 +13,14 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25__BEGIN_DECLS25__BEGIN_DECLS
2626
lib/libc/include/sparc-linux-gnu/sys/ptrace.h+7-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/SPARC version.1/* `ptrace' debugger support interface. Linux/SPARC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PTRACE_H19#ifndef _SYS_PTRACE_H
20#define _SYS_PTRACE_H 120#define _SYS_PTRACE_H 1
...@@ -217,8 +217,12 @@ enum __ptrace_request...@@ -217,8 +217,12 @@ enum __ptrace_request
217#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER217#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
218218
219 /* Get seccomp BPF filter metadata. */219 /* Get seccomp BPF filter metadata. */
220 PTRACE_SECCOMP_GET_METADATA = 0x420d220 PTRACE_SECCOMP_GET_METADATA = 0x420d,
221#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA221#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
222
223 /* Get information about system call. */
224 PTRACE_GET_SYSCALL_INFO = 0x420e
225#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
222};226};
223227
224228
lib/libc/include/sparc-linux-gnu/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_UCONTEXT_H18#ifndef _SYS_UCONTEXT_H
19#define _SYS_UCONTEXT_H 119#define _SYS_UCONTEXT_H 1
lib/libc/include/sparc-linux-gnu/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2003-2019 Free Software Foundation, Inc.1/* Copyright (C) 2003-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
19#define _SYS_USER_H 119#define _SYS_USER_H 1
lib/libc/include/sparcv9-linux-gnu/bits/endian.h deleted-12
...@@ -1,12 +0,0 @@
1/* Sparc is big-endian, but v9 supports endian conversion on loads/stores
2 and GCC supports such a mode. Be prepared. */
3
4#ifndef _ENDIAN_H
5# error "Never use <bits/endian.h> directly; include <endian.h> instead."
6#endif
7
8#ifdef __LITTLE_ENDIAN__
9# define __BYTE_ORDER __LITTLE_ENDIAN
10#else
11# define __BYTE_ORDER __BIG_ENDIAN
12#endif
\ No newline at end of file
lib/libc/include/sparcv9-linux-gnu/bits/endianness.h created+16
...@@ -0,0 +1,16 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* Sparc is big-endian, but v9 supports endian conversion on loads/stores
9 and GCC supports such a mode. Be prepared. */
10#ifdef __LITTLE_ENDIAN__
11# define __BYTE_ORDER __LITTLE_ENDIAN
12#else
13# define __BYTE_ORDER __BIG_ENDIAN
14#endif
15
16#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/sparcv9-linux-gnu/bits/environments.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _UNISTD_H18#ifndef _UNISTD_H
19# error "Never include this file directly. Use <unistd.h> instead"19# error "Never include this file directly. Use <unistd.h> instead"
lib/libc/include/sparcv9-linux-gnu/bits/epoll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EPOLL_H18#ifndef _SYS_EPOLL_H
19# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."19# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/errno.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Error constants. Linux/Sparc specific version.1/* Error constants. Linux/Sparc specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_ERRNO_H19#ifndef _BITS_ERRNO_H
20#define _BITS_ERRNO_H 120#define _BITS_ERRNO_H 1
lib/libc/include/sparcv9-linux-gnu/bits/eventfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EVENTFD_H18#ifndef _SYS_EVENTFD_H
19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."19# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux/SPARC.1/* O_*, F_*, FD_* bit values for Linux/SPARC.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -92,7 +92,7 @@ typedef unsigned long int fenv_t;...@@ -92,7 +92,7 @@ typedef unsigned long int fenv_t;
92# define __fenv_ldfsr(X) __asm__ __volatile__ ("ld %0,%%fsr" : : "m" (X))92# define __fenv_ldfsr(X) __asm__ __volatile__ ("ld %0,%%fsr" : : "m" (X))
93#endif93#endif
9494
95#if __GLIBC_USE (IEC_60559_BFP_EXT)95#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
96/* Type representing floating-point control modes. */96/* Type representing floating-point control modes. */
97typedef unsigned long int femode_t;97typedef unsigned long int femode_t;
9898
lib/libc/include/sparcv9-linux-gnu/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.1/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/sparcv9-linux-gnu/bits/hwcap.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Defines for bits in AT_HWCAP.1/* Defines for bits in AT_HWCAP.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)19#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."20# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/inotify.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_INOTIFY_H18#ifndef _SYS_INOTIFY_H
19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."19# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/ioctls.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_IOCTL_H18#ifndef _SYS_IOCTL_H
19# error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead."19# error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/ipc-perm.h created+36
...@@ -0,0 +1,36 @@
1/* struct ipc_perm definition. Linux/sparc version.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
18
19#ifndef _SYS_IPC_H
20# error "Never use <bits/ipc-perm.h> directly; include <sys/ipc.h> instead."
21#endif
22
23/* Data structure used to pass permission information to IPC operations. */
24struct ipc_perm
25 {
26 __key_t __key; /* Key. */
27 __uid_t uid; /* Owner's user ID. */
28 __gid_t gid; /* Owner's group ID. */
29 __uid_t cuid; /* Creator's user ID. */
30 __gid_t cgid; /* Creator's group ID. */
31 __mode_t mode; /* Read/write permission. */
32 unsigned short int __pad1;
33 unsigned short int __seq; /* Sequence number. */
34 __extension__ unsigned long long int __glibc_reserved1;
35 __extension__ unsigned long long int __glibc_reserved2;
36 };
\ No newline at end of file
lib/libc/include/sparcv9-linux-gnu/bits/ipc.h deleted-61
...@@ -1,61 +0,0 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
17
18#ifndef _SYS_IPC_H
19# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
20#endif
21
22#include <bits/types.h>
23#include <bits/wordsize.h>
24
25/* Mode bits for `msgget', `semget', and `shmget'. */
26#define IPC_CREAT 01000 /* Create key if key does not exist. */
27#define IPC_EXCL 02000 /* Fail if key exists. */
28#define IPC_NOWAIT 04000 /* Return error on wait. */
29
30/* Control commands for `msgctl', `semctl', and `shmctl'. */
31#define IPC_RMID 0 /* Remove identifier. */
32#define IPC_SET 1 /* Set `ipc_perm' options. */
33#define IPC_STAT 2 /* Get `ipc_perm' options. */
34#ifdef __USE_GNU
35# define IPC_INFO 3 /* See ipcs. */
36#endif
37
38/* Special key values. */
39#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
40
41
42/* Data structure used to pass permission information to IPC operations. */
43struct ipc_perm
44 {
45 __key_t __key; /* Key. */
46 __uid_t uid; /* Owner's user ID. */
47 __gid_t gid; /* Owner's group ID. */
48 __uid_t cuid; /* Creator's user ID. */
49 __gid_t cgid; /* Creator's group ID. */
50#if __WORDSIZE == 32
51 unsigned short int __pad1;
52 unsigned short int mode; /* Read/write permission. */
53 unsigned short int __pad2;
54#else
55 __mode_t mode; /* Read/write permission. */
56 unsigned short int __pad1;
57#endif
58 unsigned short int __seq; /* Sequence number. */
59 __extension__ unsigned long long int __glibc_reserved1;
60 __extension__ unsigned long long int __glibc_reserved2;
61 };
\ No newline at end of file
lib/libc/include/sparcv9-linux-gnu/bits/link.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific audit interfaces for dynamic linker. SPARC version.1/* Machine-specific audit interfaces for dynamic linker. SPARC version.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _LINK_H19#ifndef _LINK_H
20# error "Never include <bits/link.h> directly; use <link.h> instead."20# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/local_lim.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Minimum guaranteed maximum values for system limits. Linux/SPARC version.1/* Minimum guaranteed maximum values for system limits. Linux/SPARC version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Library General Public15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If16 License along with the GNU C Library; see the file COPYING.LIB. If
17 not, see <http://www.gnu.org/licenses/>. */17 not, see <https://www.gnu.org/licenses/>. */
1818
19/* The kernel header pollutes the namespace with the NR_OPEN symbol19/* The kernel header pollutes the namespace with the NR_OPEN symbol
20 and defines LINK_MAX although filesystems have different maxima. A20 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/sparcv9-linux-gnu/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. SPARC version.1/* Properties of long double type. SPARC version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#include <bits/wordsize.h>19#include <bits/wordsize.h>
2020
...@@ -23,4 +23,5 @@...@@ -23,4 +23,5 @@
23# ifndef __LONG_DOUBLE_128__23# ifndef __LONG_DOUBLE_128__
24# define __NO_LONG_DOUBLE_MATH 124# define __NO_LONG_DOUBLE_MATH 1
25# endif25# endif
26#endif
\ No newline at end of file
26#endif
27#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/sparcv9-linux-gnu/bits/mman.h+4-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/SPARC version.1/* Definitions for POSIX memory map interface. Linux/SPARC version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
...@@ -36,6 +36,8 @@...@@ -36,6 +36,8 @@
36# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */36# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
37# define MAP_STACK 0x20000 /* Allocation is for a stack. */37# define MAP_STACK 0x20000 /* Allocation is for a stack. */
38# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */38# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
39# define MAP_SYNC 0x80000 /* Perform synchronous page
40 faults for the mapping. */
39# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap41# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
40 underlying mapping. */42 underlying mapping. */
41#endif43#endif
lib/libc/include/sparcv9-linux-gnu/bits/msq-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct msqid_ds. SPARC version.1/* Define where padding goes in struct msqid_ds. SPARC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MSG_H19#ifndef _SYS_MSG_H
20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."20# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/poll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_POLL_H18#ifndef _SYS_POLL_H
19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."19# error "Never use <bits/poll.h> directly; include <sys/poll.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/procfs-extra.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Extra sys/procfs.h definitions. SPARC version.1/* Extra sys/procfs.h definitions. SPARC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs-extra.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs-extra.h> directly; use <sys/procfs.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/procfs-id.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. SPARC version.1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. SPARC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. SPARC version.1/* Types for registers for sys/procfs.h. SPARC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/pthreadtypes-arch.h deleted-81
...@@ -1,81 +0,0 @@
1/* Machine-specific pthread type layouts. SPARC version.
2 Copyright (C) 2003-2019 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _BITS_PTHREADTYPES_ARCH_H
20#define _BITS_PTHREADTYPES_ARCH_H 1
21
22#include <bits/wordsize.h>
23
24#if __WORDSIZE == 64
25# define __SIZEOF_PTHREAD_ATTR_T 56
26# define __SIZEOF_PTHREAD_MUTEX_T 40
27# define __SIZEOF_PTHREAD_CONDATTR_T 4
28# define __SIZEOF_PTHREAD_RWLOCK_T 56
29# define __SIZEOF_PTHREAD_BARRIER_T 32
30#else
31# define __SIZEOF_PTHREAD_ATTR_T 36
32# define __SIZEOF_PTHREAD_MUTEX_T 24
33# define __SIZEOF_PTHREAD_CONDATTR_T 4
34# define __SIZEOF_PTHREAD_RWLOCK_T 32
35# define __SIZEOF_PTHREAD_BARRIER_T 20
36#endif
37#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
38#define __SIZEOF_PTHREAD_COND_T 48
39#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
40#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
41
42/* Definitions for internal mutex struct. */
43#define __PTHREAD_COMPAT_PADDING_MID
44#define __PTHREAD_COMPAT_PADDING_END
45#define __PTHREAD_MUTEX_LOCK_ELISION 0
46#define __PTHREAD_MUTEX_NUSERS_AFTER_KIND (__WORDSIZE != 64)
47#define __PTHREAD_MUTEX_USE_UNION (__WORDSIZE != 64)
48
49#define __LOCK_ALIGNMENT
50#define __ONCE_ALIGNMENT
51
52struct __pthread_rwlock_arch_t
53{
54 unsigned int __readers;
55 unsigned int __writers;
56 unsigned int __wrphase_futex;
57 unsigned int __writers_futex;
58 unsigned int __pad3;
59 unsigned int __pad4;
60#if __WORDSIZE == 64
61 int __cur_writer;
62 int __shared;
63 unsigned long int __pad1;
64 unsigned long int __pad2;
65 /* FLAGS must stay at this position in the structure to maintain
66 binary compatibility. */
67 unsigned int __flags;
68#else
69 unsigned char __pad1;
70 unsigned char __pad2;
71 unsigned char __shared;
72 /* FLAGS must stay at this position in the structure to maintain
73 binary compatibility. */
74 unsigned char __flags;
75 int __cur_writer;
76#endif
77};
78
79#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
80
81#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/sparcv9-linux-gnu/bits/resource.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit values & structures for resource limits. Linux/SPARC version.1/* Bit values & structures for resource limits. Linux/SPARC version.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_RESOURCE_H19#ifndef _SYS_RESOURCE_H
20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."20# error "Never use <bits/resource.h> directly; include <sys/resource.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. SPARC version.1/* Define where padding goes in struct semid_ds. SPARC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/semaphore.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Machine-specific POSIX semaphore type layouts. SPARC version.1/* Machine-specific POSIX semaphore type layouts. SPARC version.
2 Copyright (C) 2003-2019 Free Software Foundation, Inc.2 Copyright (C) 2003-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.4 Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SEMAPHORE_H20#ifndef _SEMAPHORE_H
21# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."21# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_SETJMP_H18#ifndef _BITS_SETJMP_H
19#define _BITS_SETJMP_H 119#define _BITS_SETJMP_H 1
lib/libc/include/sparcv9-linux-gnu/bits/shm-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct shmid_ds. SPARC version.1/* Define where padding goes in struct shmid_ds. SPARC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/shmlba.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define SHMLBA. SPARC version.1/* Define SHMLBA. SPARC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SHM_H19#ifndef _SYS_SHM_H
20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."20# error "Never use <bits/shmlba.h> directly; include <sys/shm.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/sigaction.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* The proper definitions for Linux/SPARC sigaction.1/* The proper definitions for Linux/SPARC sigaction.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGACTION_H19#ifndef _BITS_SIGACTION_H
20#define _BITS_SIGACTION_H 120#define _BITS_SIGACTION_H 1
lib/libc/include/sparcv9-linux-gnu/bits/sigcontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_SIGCONTEXT_H18#ifndef _BITS_SIGCONTEXT_H
19#define _BITS_SIGCONTEXT_H 119#define _BITS_SIGCONTEXT_H 1
lib/libc/include/sparcv9-linux-gnu/bits/signalfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SIGNALFD_H18#ifndef _SYS_SIGNALFD_H
19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."19# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/signum.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Signal number definitions. Linux/SPARC version.1/* Signal number definitions. Linux/SPARC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGNUM_H19#ifndef _BITS_SIGNUM_H
20#define _BITS_SIGNUM_H 120#define _BITS_SIGNUM_H 1
lib/libc/include/sparcv9-linux-gnu/bits/sigstack.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* sigstack, sigaltstack definitions.1/* sigstack, sigaltstack definitions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_SIGSTACK_H19#ifndef _BITS_SIGSTACK_H
20#define _BITS_SIGSTACK_H 120#define _BITS_SIGSTACK_H 1
lib/libc/include/sparcv9-linux-gnu/bits/socket-constants.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Socket constants which vary among Linux architectures. Version for SPARC.1/* Socket constants which vary among Linux architectures. Version for SPARC.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/socket_type.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define enum __socket_type for Linux/SPARC.1/* Define enum __socket_type for Linux/SPARC.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SOCKET_H19#ifndef _SYS_SOCKET_H
20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."20# error "Never include <bits/socket_type.h> directly; use <sys/socket.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/struct_rwlock.h created+58
...@@ -0,0 +1,58 @@
1/* SPARC internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20#ifndef _RWLOCK_INTERNAL_H
21#define _RWLOCK_INTERNAL_H
22
23struct __pthread_rwlock_arch_t
24{
25 unsigned int __readers;
26 unsigned int __writers;
27 unsigned int __wrphase_futex;
28 unsigned int __writers_futex;
29 unsigned int __pad3;
30 unsigned int __pad4;
31#if __WORDSIZE == 64
32 int __cur_writer;
33 int __shared;
34 unsigned long int __pad1;
35 unsigned long int __pad2;
36 /* FLAGS must stay at this position in the structure to maintain
37 binary compatibility. */
38 unsigned int __flags;
39#else
40 unsigned char __pad1;
41 unsigned char __pad2;
42 unsigned char __shared;
43 /* FLAGS must stay at this position in the structure to maintain
44 binary compatibility. */
45 unsigned char __flags;
46 int __cur_writer;
47#endif
48};
49
50#if __WORDSIZE == 64
51# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
52 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags
53#else
54# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
55 0, 0, 0, 0, 0, 0, 0, 0, 0, __flags, 0
56#endif
57
58#endif
\ No newline at end of file
lib/libc/include/sparcv9-linux-gnu/bits/termios-baud.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios baud rate selection definitions. Linux/sparc version.1/* termios baud rate selection definitions. Linux/sparc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-baud.h> directly; use <termios.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/termios-c_cc.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios c_cc symbolic constant definitions. Linux/sparc version.1/* termios c_cc symbolic constant definitions. Linux/sparc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_cc.h> directly; use <termios.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/termios-c_oflag.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* termios output mode definitions. Linux/sparc version.1/* termios output mode definitions. Linux/sparc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-c_oflag.h> directly; use <termios.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/termios-struct.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* struct termios definition. Linux/sparc version.1/* struct termios definition. Linux/sparc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _TERMIOS_H19#ifndef _TERMIOS_H
20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."20# error "Never include <bits/termios-struct.h> directly; use <termios.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/timerfd.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2008-2019 Free Software Foundation, Inc.1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_TIMERFD_H18#ifndef _SYS_TIMERFD_H
19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."19# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
lib/libc/include/sparcv9-linux-gnu/bits/typesizes.h+7-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/typesizes.h -- underlying types for *_t. Linux/SPARC version.1/* bits/typesizes.h -- underlying types for *_t. Linux/SPARC version.
2 Copyright (C) 2002-2019 Free Software Foundation, Inc.2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_TYPES_H19#ifndef _BITS_TYPES_H
20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
...@@ -72,8 +72,13 @@...@@ -72,8 +72,13 @@
7272
73/* And for __rlim_t and __rlim64_t. */73/* And for __rlim_t and __rlim64_t. */
74# define __RLIM_T_MATCHES_RLIM64_T 174# define __RLIM_T_MATCHES_RLIM64_T 1
75
76/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
77# define __STATFS_MATCHES_STATFS64 1
75#else78#else
76# define __RLIM_T_MATCHES_RLIM64_T 079# define __RLIM_T_MATCHES_RLIM64_T 0
80
81# define __STATFS_MATCHES_STATFS64 0
77#endif82#endif
7883
79/* Number of descriptors that can fit in an `fd_set'. */84/* Number of descriptors that can fit in an `fd_set'. */
lib/libc/include/sparcv9-linux-gnu/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word bits. SPARC version.1/* FPU control word bits. SPARC version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Miguel de Icaza4 Contributed by Miguel de Icaza
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _FPU_CONTROL_H20#ifndef _FPU_CONTROL_H
21#define _FPU_CONTROL_H 121#define _FPU_CONTROL_H 1
lib/libc/include/sparcv9-linux-gnu/ieee754.h+4-4
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,14 +13,14 @@...@@ -13,14 +13,14 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _IEEE754_H18#ifndef _IEEE754_H
19
20#define _IEEE754_H 119#define _IEEE754_H 1
20
21#include <features.h>21#include <features.h>
2222
23#include <endian.h>23#include <bits/endian.h>
2424
25__BEGIN_DECLS25__BEGIN_DECLS
2626
lib/libc/include/sparcv9-linux-gnu/sys/ptrace.h+7-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/SPARC version.1/* `ptrace' debugger support interface. Linux/SPARC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PTRACE_H19#ifndef _SYS_PTRACE_H
20#define _SYS_PTRACE_H 120#define _SYS_PTRACE_H 1
...@@ -217,8 +217,12 @@ enum __ptrace_request...@@ -217,8 +217,12 @@ enum __ptrace_request
217#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER217#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
218218
219 /* Get seccomp BPF filter metadata. */219 /* Get seccomp BPF filter metadata. */
220 PTRACE_SECCOMP_GET_METADATA = 0x420d220 PTRACE_SECCOMP_GET_METADATA = 0x420d,
221#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA221#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
222
223 /* Get information about system call. */
224 PTRACE_GET_SYSCALL_INFO = 0x420e
225#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
222};226};
223227
224228
lib/libc/include/sparcv9-linux-gnu/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_UCONTEXT_H18#ifndef _SYS_UCONTEXT_H
19#define _SYS_UCONTEXT_H 119#define _SYS_UCONTEXT_H 1
lib/libc/include/sparcv9-linux-gnu/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2003-2019 Free Software Foundation, Inc.1/* Copyright (C) 2003-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
19#define _SYS_USER_H 119#define _SYS_USER_H 1
lib/libc/include/x86_64-linux-gnu/bits/endian.h deleted-7
...@@ -1,7 +0,0 @@
1/* i386/x86_64 are little-endian. */
2
3#ifndef _ENDIAN_H
4# error "Never use <bits/endian.h> directly; include <endian.h> instead."
5#endif
6
7#define __BYTE_ORDER __LITTLE_ENDIAN
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/endianness.h created+11
...@@ -0,0 +1,11 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* i386/x86_64 are little-endian. */
9#define __BYTE_ORDER __LITTLE_ENDIAN
10
11#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/environments.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _UNISTD_H18#ifndef _UNISTD_H
19# error "Never include this file directly. Use <unistd.h> instead"19# error "Never include this file directly. Use <unistd.h> instead"
lib/libc/include/x86_64-linux-gnu/bits/epoll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EPOLL_H18#ifndef _SYS_EPOLL_H
19# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."19# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux/x86.1/* O_*, F_*, FD_* bit values for Linux/x86.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -101,7 +101,7 @@ fenv_t;...@@ -101,7 +101,7 @@ fenv_t;
101# define FE_NOMASK_ENV ((const fenv_t *) -2)101# define FE_NOMASK_ENV ((const fenv_t *) -2)
102#endif102#endif
103103
104#if __GLIBC_USE (IEC_60559_BFP_EXT)104#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
105/* Type representing floating-point control modes. */105/* Type representing floating-point control modes. */
106typedef struct106typedef struct
107 {107 {
lib/libc/include/x86_64-linux-gnu/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on x86.1/* Macros to control TS 18661-3 glibc features on x86.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/x86_64-linux-gnu/bits/flt-eval-method.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define __GLIBC_FLT_EVAL_METHOD. x86 version.1/* Define __GLIBC_FLT_EVAL_METHOD. x86 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."20# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/fp-logb.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define __FP_LOGB0_IS_MIN and __FP_LOGBNAN_IS_MIN. x86 version.1/* Define __FP_LOGB0_IS_MIN and __FP_LOGBNAN_IS_MIN. x86 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/fp-logb.h> directly; include <math.h> instead."20# error "Never use <bits/fp-logb.h> directly; include <math.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/indirect-return.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definition of __INDIRECT_RETURN. x86 version.1/* Definition of __INDIRECT_RETURN. x86 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _UCONTEXT_H19#ifndef _UCONTEXT_H
20# error "Never include <bits/indirect-return.h> directly; use <ucontext.h> instead."20# error "Never include <bits/indirect-return.h> directly; use <ucontext.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/ipctypes.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM.1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IPC_H19#ifndef _SYS_IPC_H
20# error "Never use <bits/ipctypes.h> directly; include <sys/ipc.h> instead."20# error "Never use <bits/ipctypes.h> directly; include <sys/ipc.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/iscanonical.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define iscanonical macro. ldbl-96 version.1/* Define iscanonical macro. ldbl-96 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/link.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _LINK_H18#ifndef _LINK_H
19# error "Never include <bits/link.h> directly; use <link.h> instead."19# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. ldbl-96 version.1/* Properties of long double type. ldbl-96 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,8 @@...@@ -14,7 +14,8 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* long double is distinct from double, so there is nothing to19/* long double is distinct from double, so there is nothing to
20 define here. */
\ No newline at end of file
20 define here. */
21#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/math-vector.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Platform-specific SIMD declarations of math functions.1/* Platform-specific SIMD declarations of math functions.
2 Copyright (C) 2014-2019 Free Software Foundation, Inc.2 Copyright (C) 2014-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never include <bits/math-vector.h> directly;\20# error "Never include <bits/math-vector.h> directly;\
lib/libc/include/x86_64-linux-gnu/bits/mman.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/x86_64 version.1/* Definitions for POSIX memory map interface. Linux/x86_64 version.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/procfs-id.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. x86 version.1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. x86 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. x86 version.1/* Types for registers for sys/procfs.h. x86 version.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h+2-53
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_PTHREADTYPES_ARCH_H18#ifndef _BITS_PTHREADTYPES_ARCH_H
19#define _BITS_PTHREADTYPES_ARCH_H 119#define _BITS_PTHREADTYPES_ARCH_H 1
...@@ -24,20 +24,17 @@...@@ -24,20 +24,17 @@
24# if __WORDSIZE == 6424# if __WORDSIZE == 64
25# define __SIZEOF_PTHREAD_MUTEX_T 4025# define __SIZEOF_PTHREAD_MUTEX_T 40
26# define __SIZEOF_PTHREAD_ATTR_T 5626# define __SIZEOF_PTHREAD_ATTR_T 56
27# define __SIZEOF_PTHREAD_MUTEX_T 40
28# define __SIZEOF_PTHREAD_RWLOCK_T 5627# define __SIZEOF_PTHREAD_RWLOCK_T 56
29# define __SIZEOF_PTHREAD_BARRIER_T 3228# define __SIZEOF_PTHREAD_BARRIER_T 32
30# else29# else
31# define __SIZEOF_PTHREAD_MUTEX_T 3230# define __SIZEOF_PTHREAD_MUTEX_T 32
32# define __SIZEOF_PTHREAD_ATTR_T 3231# define __SIZEOF_PTHREAD_ATTR_T 32
33# define __SIZEOF_PTHREAD_MUTEX_T 32
34# define __SIZEOF_PTHREAD_RWLOCK_T 4432# define __SIZEOF_PTHREAD_RWLOCK_T 44
35# define __SIZEOF_PTHREAD_BARRIER_T 2033# define __SIZEOF_PTHREAD_BARRIER_T 20
36# endif34# endif
37#else35#else
38# define __SIZEOF_PTHREAD_MUTEX_T 2436# define __SIZEOF_PTHREAD_MUTEX_T 24
39# define __SIZEOF_PTHREAD_ATTR_T 3637# define __SIZEOF_PTHREAD_ATTR_T 36
40# define __SIZEOF_PTHREAD_MUTEX_T 24
41# define __SIZEOF_PTHREAD_RWLOCK_T 3238# define __SIZEOF_PTHREAD_RWLOCK_T 32
42# define __SIZEOF_PTHREAD_BARRIER_T 2039# define __SIZEOF_PTHREAD_BARRIER_T 20
43#endif40#endif
...@@ -47,57 +44,9 @@...@@ -47,57 +44,9 @@
47#define __SIZEOF_PTHREAD_RWLOCKATTR_T 844#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
48#define __SIZEOF_PTHREAD_BARRIERATTR_T 445#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
4946
50/* Definitions for internal mutex struct. */
51#define __PTHREAD_COMPAT_PADDING_MID
52#define __PTHREAD_COMPAT_PADDING_END
53#define __PTHREAD_MUTEX_LOCK_ELISION 1
54#ifdef __x86_64__
55# define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 0
56# define __PTHREAD_MUTEX_USE_UNION 0
57#else
58# define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 1
59# define __PTHREAD_MUTEX_USE_UNION 1
60#endif
61
62#define __LOCK_ALIGNMENT47#define __LOCK_ALIGNMENT
63#define __ONCE_ALIGNMENT48#define __ONCE_ALIGNMENT
6449
65struct __pthread_rwlock_arch_t
66{
67 unsigned int __readers;
68 unsigned int __writers;
69 unsigned int __wrphase_futex;
70 unsigned int __writers_futex;
71 unsigned int __pad3;
72 unsigned int __pad4;
73#ifdef __x86_64__
74 int __cur_writer;
75 int __shared;
76 signed char __rwelision;
77# ifdef __ILP32__
78 unsigned char __pad1[3];
79# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0 }
80# else
81 unsigned char __pad1[7];
82# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0, 0, 0, 0, 0 }
83# endif
84 unsigned long int __pad2;
85 /* FLAGS must stay at this position in the structure to maintain
86 binary compatibility. */
87 unsigned int __flags;
88# define __PTHREAD_RWLOCK_INT_FLAGS_SHARED 1
89#else
90 /* FLAGS must stay at this position in the structure to maintain
91 binary compatibility. */
92 unsigned char __flags;
93 unsigned char __shared;
94 signed char __rwelision;
95# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
96 unsigned char __pad2;
97 int __cur_writer;
98#endif
99};
100
101#ifndef __x86_64__50#ifndef __x86_64__
102/* Extra attributes for the cleanup functions. */51/* Extra attributes for the cleanup functions. */
103# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))52# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
lib/libc/include/x86_64-linux-gnu/bits/select.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SELECT_H18#ifndef _SYS_SELECT_H
19# error "Never use <bits/select.h> directly; include <sys/select.h> instead."19# error "Never use <bits/select.h> directly; include <sys/select.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. x86 version.1/* Define where padding goes in struct semid_ds. x86 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/semaphore.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.3 Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SEMAPHORE_H19#ifndef _SEMAPHORE_H
20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Define the machine-dependent type `jmp_buf'. x86-64 version. */18/* Define the machine-dependent type `jmp_buf'. x86-64 version. */
19#ifndef _BITS_SETJMP_H19#ifndef _BITS_SETJMP_H
lib/libc/include/x86_64-linux-gnu/bits/sigcontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_SIGCONTEXT_H18#ifndef _BITS_SIGCONTEXT_H
19#define _BITS_SIGCONTEXT_H 119#define _BITS_SIGCONTEXT_H 1
lib/libc/include/x86_64-linux-gnu/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/x86_64-linux-gnu/bits/struct_mutex.h created+63
...@@ -0,0 +1,63 @@
1/* x86 internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#ifdef __x86_64__
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#ifdef __x86_64__
34 short __spins;
35 short __elision;
36 __pthread_list_t __list;
37# define __PTHREAD_MUTEX_HAVE_PREV 1
38#else
39 unsigned int __nusers;
40 __extension__ union
41 {
42 struct
43 {
44 short __espins;
45 short __eelision;
46# define __spins __elision_data.__espins
47# define __elision __elision_data.__eelision
48 } __elision_data;
49 __pthread_slist_t __list;
50 };
51# define __PTHREAD_MUTEX_HAVE_PREV 0
52#endif
53};
54
55#ifdef __x86_64__
56# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
57 0, 0, 0, 0, __kind, 0, 0, { 0, 0 }
58#else
59# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
60 0, 0, 0, __kind, 0, { { 0, 0 } }
61#endif
62
63#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/struct_rwlock.h created+65
...@@ -0,0 +1,65 @@
1/* x86 internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20#ifndef _RWLOCK_INTERNAL_H
21#define _RWLOCK_INTERNAL_H
22
23struct __pthread_rwlock_arch_t
24{
25 unsigned int __readers;
26 unsigned int __writers;
27 unsigned int __wrphase_futex;
28 unsigned int __writers_futex;
29 unsigned int __pad3;
30 unsigned int __pad4;
31#ifdef __x86_64__
32 int __cur_writer;
33 int __shared;
34 signed char __rwelision;
35# ifdef __ILP32__
36 unsigned char __pad1[3];
37# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0 }
38# else
39 unsigned char __pad1[7];
40# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0, 0, 0, 0, 0 }
41# endif
42 unsigned long int __pad2;
43 /* FLAGS must stay at this position in the structure to maintain
44 binary compatibility. */
45 unsigned int __flags;
46#else /* __x86_64__ */
47 /* FLAGS must stay at this position in the structure to maintain
48 binary compatibility. */
49 unsigned char __flags;
50 unsigned char __shared;
51 signed char __rwelision;
52 unsigned char __pad2;
53 int __cur_writer;
54#endif
55};
56
57#ifdef __x86_64__
58# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
59 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, __flags
60#else
61# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
62 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
63#endif
64
65#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnu/bits/sysctl.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2012-2019 Free Software Foundation, Inc.1/* Copyright (C) 2012-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if defined __x86_64__ && defined __ILP32__18#if defined __x86_64__ && defined __ILP32__
19# error "sysctl system call is unsupported in x32 kernel"19# error "sysctl system call is unsupported in x32 kernel"
lib/libc/include/x86_64-linux-gnu/bits/timesize.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit size of the time_t type at glibc build time, x86-64 and x32 case.1/* Bit size of the time_t type at glibc build time, x86-64 and x32 case.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if defined __x86_64__ && defined __ILP32__19#if defined __x86_64__ && defined __ILP32__
20/* For x32, time is 64-bit even though word size is 32-bit. */20/* For x32, time is 64-bit even though word size is 32-bit. */
lib/libc/include/x86_64-linux-gnu/bits/typesizes.h+7-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.1/* bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_TYPES_H19#ifndef _BITS_TYPES_H
20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
...@@ -84,8 +84,13 @@...@@ -84,8 +84,13 @@
8484
85/* And for __rlim_t and __rlim64_t. */85/* And for __rlim_t and __rlim64_t. */
86# define __RLIM_T_MATCHES_RLIM64_T 186# define __RLIM_T_MATCHES_RLIM64_T 1
87
88/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
89# define __STATFS_MATCHES_STATFS64 1
87#else90#else
88# define __RLIM_T_MATCHES_RLIM64_T 091# define __RLIM_T_MATCHES_RLIM64_T 0
92
93# define __STATFS_MATCHES_STATFS64 0
89#endif94#endif
9095
91/* Number of descriptors that can fit in an `fd_set'. */96/* Number of descriptors that can fit in an `fd_set'. */
lib/libc/include/x86_64-linux-gnu/finclude/math-vector-fortran.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1! Platform-specific declarations of SIMD math functions for Fortran. -*- f90 -*-1! Platform-specific declarations of SIMD math functions for Fortran. -*- f90 -*-
2! Copyright (C) 2019 Free Software Foundation, Inc.2! Copyright (C) 2019-2020 Free Software Foundation, Inc.
3! This file is part of the GNU C Library.3! This file is part of the GNU C Library.
4!4!
5! The GNU C Library is free software; you can redistribute it and/or5! The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
14!14!
15! You should have received a copy of the GNU Lesser General Public15! You should have received a copy of the GNU Lesser General Public
16! License along with the GNU C Library; if not, see16! License along with the GNU C Library; if not, see
17! <http://www.gnu.org/licenses/>.17! <https://www.gnu.org/licenses/>.
1818
19!GCC$ builtin (cos) attributes simd (notinbranch) if('x86_64')19!GCC$ builtin (cos) attributes simd (notinbranch) if('x86_64')
20!GCC$ builtin (cosf) attributes simd (notinbranch) if('x86_64')20!GCC$ builtin (cosf) attributes simd (notinbranch) if('x86_64')
lib/libc/include/x86_64-linux-gnu/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word bits. x86 version.1/* FPU control word bits. x86 version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Olaf Flebbe.4 Contributed by Olaf Flebbe.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _FPU_CONTROL_H20#ifndef _FPU_CONTROL_H
21#define _FPU_CONTROL_H 121#define _FPU_CONTROL_H 1
lib/libc/include/x86_64-linux-gnu/sys/elf.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_ELF_H18#ifndef _SYS_ELF_H
19#define _SYS_ELF_H 119#define _SYS_ELF_H 1
lib/libc/include/x86_64-linux-gnu/sys/ptrace.h+7-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/x86 version.1/* `ptrace' debugger support interface. Linux/x86 version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PTRACE_H20#ifndef _SYS_PTRACE_H
21#define _SYS_PTRACE_H 121#define _SYS_PTRACE_H 1
...@@ -186,8 +186,12 @@ enum __ptrace_request...@@ -186,8 +186,12 @@ enum __ptrace_request
186#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER186#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
187187
188 /* Get seccomp BPF filter metadata. */188 /* Get seccomp BPF filter metadata. */
189 PTRACE_SECCOMP_GET_METADATA = 0x420d189 PTRACE_SECCOMP_GET_METADATA = 0x420d,
190#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA190#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
191
192 /* Get information about system call. */
193 PTRACE_GET_SYSCALL_INFO = 0x420e
194#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
191};195};
192196
193197
lib/libc/include/x86_64-linux-gnu/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_UCONTEXT_H18#ifndef _SYS_UCONTEXT_H
19#define _SYS_UCONTEXT_H 119#define _SYS_UCONTEXT_H 1
lib/libc/include/x86_64-linux-gnu/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
19#define _SYS_USER_H 119#define _SYS_USER_H 1
lib/libc/include/x86_64-linux-gnux32/bits/endian.h deleted-7
...@@ -1,7 +0,0 @@
1/* i386/x86_64 are little-endian. */
2
3#ifndef _ENDIAN_H
4# error "Never use <bits/endian.h> directly; include <endian.h> instead."
5#endif
6
7#define __BYTE_ORDER __LITTLE_ENDIAN
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/endianness.h created+11
...@@ -0,0 +1,11 @@
1#ifndef _BITS_ENDIANNESS_H
2#define _BITS_ENDIANNESS_H 1
3
4#ifndef _BITS_ENDIAN_H
5# error "Never use <bits/endianness.h> directly; include <endian.h> instead."
6#endif
7
8/* i386/x86_64 are little-endian. */
9#define __BYTE_ORDER __LITTLE_ENDIAN
10
11#endif /* bits/endianness.h */
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/environments.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _UNISTD_H18#ifndef _UNISTD_H
19# error "Never include this file directly. Use <unistd.h> instead"19# error "Never include this file directly. Use <unistd.h> instead"
lib/libc/include/x86_64-linux-gnux32/bits/epoll.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_EPOLL_H18#ifndef _SYS_EPOLL_H
19# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."19# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/fcntl.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* O_*, F_*, FD_* bit values for Linux/x86.1/* O_*, F_*, FD_* bit values for Linux/x86.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _FCNTL_H19#ifndef _FCNTL_H
20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."20# error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/fenv.h+3-3
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _FENV_H18#ifndef _FENV_H
19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."19# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
...@@ -101,7 +101,7 @@ fenv_t;...@@ -101,7 +101,7 @@ fenv_t;
101# define FE_NOMASK_ENV ((const fenv_t *) -2)101# define FE_NOMASK_ENV ((const fenv_t *) -2)
102#endif102#endif
103103
104#if __GLIBC_USE (IEC_60559_BFP_EXT)104#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
105/* Type representing floating-point control modes. */105/* Type representing floating-point control modes. */
106typedef struct106typedef struct
107 {107 {
lib/libc/include/x86_64-linux-gnux32/bits/floatn.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Macros to control TS 18661-3 glibc features on x86.1/* Macros to control TS 18661-3 glibc features on x86.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_FLOATN_H19#ifndef _BITS_FLOATN_H
20#define _BITS_FLOATN_H20#define _BITS_FLOATN_H
lib/libc/include/x86_64-linux-gnux32/bits/flt-eval-method.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define __GLIBC_FLT_EVAL_METHOD. x86 version.1/* Define __GLIBC_FLT_EVAL_METHOD. x86 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."20# error "Never use <bits/flt-eval-method.h> directly; include <math.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/fp-logb.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define __FP_LOGB0_IS_MIN and __FP_LOGBNAN_IS_MIN. x86 version.1/* Define __FP_LOGB0_IS_MIN and __FP_LOGBNAN_IS_MIN. x86 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/fp-logb.h> directly; include <math.h> instead."20# error "Never use <bits/fp-logb.h> directly; include <math.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/indirect-return.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definition of __INDIRECT_RETURN. x86 version.1/* Definition of __INDIRECT_RETURN. x86 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _UCONTEXT_H19#ifndef _UCONTEXT_H
20# error "Never include <bits/indirect-return.h> directly; use <ucontext.h> instead."20# error "Never include <bits/indirect-return.h> directly; use <ucontext.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/ipctypes.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM.1/* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_IPC_H19#ifndef _SYS_IPC_H
20# error "Never use <bits/ipctypes.h> directly; include <sys/ipc.h> instead."20# error "Never use <bits/ipctypes.h> directly; include <sys/ipc.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/iscanonical.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define iscanonical macro. ldbl-96 version.1/* Define iscanonical macro. ldbl-96 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."20# error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/link.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _LINK_H18#ifndef _LINK_H
19# error "Never include <bits/link.h> directly; use <link.h> instead."19# error "Never include <bits/link.h> directly; use <link.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/long-double.h+4-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Properties of long double type. ldbl-96 version.1/* Properties of long double type. ldbl-96 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,8 @@...@@ -14,7 +14,8 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19/* long double is distinct from double, so there is nothing to19/* long double is distinct from double, so there is nothing to
20 define here. */
\ No newline at end of file
20 define here. */
21#define __LONG_DOUBLE_USES_FLOAT128 0
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/math-vector.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Platform-specific SIMD declarations of math functions.1/* Platform-specific SIMD declarations of math functions.
2 Copyright (C) 2014-2019 Free Software Foundation, Inc.2 Copyright (C) 2014-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _MATH_H19#ifndef _MATH_H
20# error "Never include <bits/math-vector.h> directly;\20# error "Never include <bits/math-vector.h> directly;\
lib/libc/include/x86_64-linux-gnux32/bits/mman.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Definitions for POSIX memory map interface. Linux/x86_64 version.1/* Definitions for POSIX memory map interface. Linux/x86_64 version.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_MMAN_H19#ifndef _SYS_MMAN_H
20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."20# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/procfs-id.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. x86 version.1/* Types of pr_uid and pr_gid in struct elf_prpsinfo. x86 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PROCFS_H20#ifndef _SYS_PROCFS_H
21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."21# error "Never include <bits/procfs-id.h> directly; use <sys/procfs.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/procfs.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Types for registers for sys/procfs.h. x86 version.1/* Types for registers for sys/procfs.h. x86 version.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_PROCFS_H19#ifndef _SYS_PROCFS_H
20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."20# error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/pthreadtypes-arch.h+2-53
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_PTHREADTYPES_ARCH_H18#ifndef _BITS_PTHREADTYPES_ARCH_H
19#define _BITS_PTHREADTYPES_ARCH_H 119#define _BITS_PTHREADTYPES_ARCH_H 1
...@@ -24,20 +24,17 @@...@@ -24,20 +24,17 @@
24# if __WORDSIZE == 6424# if __WORDSIZE == 64
25# define __SIZEOF_PTHREAD_MUTEX_T 4025# define __SIZEOF_PTHREAD_MUTEX_T 40
26# define __SIZEOF_PTHREAD_ATTR_T 5626# define __SIZEOF_PTHREAD_ATTR_T 56
27# define __SIZEOF_PTHREAD_MUTEX_T 40
28# define __SIZEOF_PTHREAD_RWLOCK_T 5627# define __SIZEOF_PTHREAD_RWLOCK_T 56
29# define __SIZEOF_PTHREAD_BARRIER_T 3228# define __SIZEOF_PTHREAD_BARRIER_T 32
30# else29# else
31# define __SIZEOF_PTHREAD_MUTEX_T 3230# define __SIZEOF_PTHREAD_MUTEX_T 32
32# define __SIZEOF_PTHREAD_ATTR_T 3231# define __SIZEOF_PTHREAD_ATTR_T 32
33# define __SIZEOF_PTHREAD_MUTEX_T 32
34# define __SIZEOF_PTHREAD_RWLOCK_T 4432# define __SIZEOF_PTHREAD_RWLOCK_T 44
35# define __SIZEOF_PTHREAD_BARRIER_T 2033# define __SIZEOF_PTHREAD_BARRIER_T 20
36# endif34# endif
37#else35#else
38# define __SIZEOF_PTHREAD_MUTEX_T 2436# define __SIZEOF_PTHREAD_MUTEX_T 24
39# define __SIZEOF_PTHREAD_ATTR_T 3637# define __SIZEOF_PTHREAD_ATTR_T 36
40# define __SIZEOF_PTHREAD_MUTEX_T 24
41# define __SIZEOF_PTHREAD_RWLOCK_T 3238# define __SIZEOF_PTHREAD_RWLOCK_T 32
42# define __SIZEOF_PTHREAD_BARRIER_T 2039# define __SIZEOF_PTHREAD_BARRIER_T 20
43#endif40#endif
...@@ -47,57 +44,9 @@...@@ -47,57 +44,9 @@
47#define __SIZEOF_PTHREAD_RWLOCKATTR_T 844#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
48#define __SIZEOF_PTHREAD_BARRIERATTR_T 445#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
4946
50/* Definitions for internal mutex struct. */
51#define __PTHREAD_COMPAT_PADDING_MID
52#define __PTHREAD_COMPAT_PADDING_END
53#define __PTHREAD_MUTEX_LOCK_ELISION 1
54#ifdef __x86_64__
55# define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 0
56# define __PTHREAD_MUTEX_USE_UNION 0
57#else
58# define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 1
59# define __PTHREAD_MUTEX_USE_UNION 1
60#endif
61
62#define __LOCK_ALIGNMENT47#define __LOCK_ALIGNMENT
63#define __ONCE_ALIGNMENT48#define __ONCE_ALIGNMENT
6449
65struct __pthread_rwlock_arch_t
66{
67 unsigned int __readers;
68 unsigned int __writers;
69 unsigned int __wrphase_futex;
70 unsigned int __writers_futex;
71 unsigned int __pad3;
72 unsigned int __pad4;
73#ifdef __x86_64__
74 int __cur_writer;
75 int __shared;
76 signed char __rwelision;
77# ifdef __ILP32__
78 unsigned char __pad1[3];
79# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0 }
80# else
81 unsigned char __pad1[7];
82# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0, 0, 0, 0, 0 }
83# endif
84 unsigned long int __pad2;
85 /* FLAGS must stay at this position in the structure to maintain
86 binary compatibility. */
87 unsigned int __flags;
88# define __PTHREAD_RWLOCK_INT_FLAGS_SHARED 1
89#else
90 /* FLAGS must stay at this position in the structure to maintain
91 binary compatibility. */
92 unsigned char __flags;
93 unsigned char __shared;
94 signed char __rwelision;
95# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
96 unsigned char __pad2;
97 int __cur_writer;
98#endif
99};
100
101#ifndef __x86_64__50#ifndef __x86_64__
102/* Extra attributes for the cleanup functions. */51/* Extra attributes for the cleanup functions. */
103# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))52# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
lib/libc/include/x86_64-linux-gnux32/bits/select.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_SELECT_H18#ifndef _SYS_SELECT_H
19# error "Never use <bits/select.h> directly; include <sys/select.h> instead."19# error "Never use <bits/select.h> directly; include <sys/select.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/sem-pad.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Define where padding goes in struct semid_ds. x86 version.1/* Define where padding goes in struct semid_ds. x86 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SYS_SEM_H19#ifndef _SYS_SEM_H
20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."20# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/semaphore.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
3 Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.3 Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
44
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _SEMAPHORE_H19#ifndef _SEMAPHORE_H
20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."20# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/setjmp.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18/* Define the machine-dependent type `jmp_buf'. x86-64 version. */18/* Define the machine-dependent type `jmp_buf'. x86-64 version. */
19#ifndef _BITS_SETJMP_H19#ifndef _BITS_SETJMP_H
lib/libc/include/x86_64-linux-gnux32/bits/sigcontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _BITS_SIGCONTEXT_H18#ifndef _BITS_SIGCONTEXT_H
19#define _BITS_SIGCONTEXT_H 119#define _BITS_SIGCONTEXT_H 1
lib/libc/include/x86_64-linux-gnux32/bits/stat.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if !defined _SYS_STAT_H && !defined _FCNTL_H18#if !defined _SYS_STAT_H && !defined _FCNTL_H
19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."19# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
lib/libc/include/x86_64-linux-gnux32/bits/struct_mutex.h created+63
...@@ -0,0 +1,63 @@
1/* x86 internal mutex struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19#ifndef _THREAD_MUTEX_INTERNAL_H
20#define _THREAD_MUTEX_INTERNAL_H 1
21
22struct __pthread_mutex_s
23{
24 int __lock;
25 unsigned int __count;
26 int __owner;
27#ifdef __x86_64__
28 unsigned int __nusers;
29#endif
30 /* KIND must stay at this position in the structure to maintain
31 binary compatibility with static initializers. */
32 int __kind;
33#ifdef __x86_64__
34 short __spins;
35 short __elision;
36 __pthread_list_t __list;
37# define __PTHREAD_MUTEX_HAVE_PREV 1
38#else
39 unsigned int __nusers;
40 __extension__ union
41 {
42 struct
43 {
44 short __espins;
45 short __eelision;
46# define __spins __elision_data.__espins
47# define __elision __elision_data.__eelision
48 } __elision_data;
49 __pthread_slist_t __list;
50 };
51# define __PTHREAD_MUTEX_HAVE_PREV 0
52#endif
53};
54
55#ifdef __x86_64__
56# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
57 0, 0, 0, 0, __kind, 0, 0, { 0, 0 }
58#else
59# define __PTHREAD_MUTEX_INITIALIZER(__kind) \
60 0, 0, 0, __kind, 0, { { 0, 0 } }
61#endif
62
63#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/struct_rwlock.h created+65
...@@ -0,0 +1,65 @@
1/* x86 internal rwlock struct definitions.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
19
20#ifndef _RWLOCK_INTERNAL_H
21#define _RWLOCK_INTERNAL_H
22
23struct __pthread_rwlock_arch_t
24{
25 unsigned int __readers;
26 unsigned int __writers;
27 unsigned int __wrphase_futex;
28 unsigned int __writers_futex;
29 unsigned int __pad3;
30 unsigned int __pad4;
31#ifdef __x86_64__
32 int __cur_writer;
33 int __shared;
34 signed char __rwelision;
35# ifdef __ILP32__
36 unsigned char __pad1[3];
37# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0 }
38# else
39 unsigned char __pad1[7];
40# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0, 0, 0, 0, 0 }
41# endif
42 unsigned long int __pad2;
43 /* FLAGS must stay at this position in the structure to maintain
44 binary compatibility. */
45 unsigned int __flags;
46#else /* __x86_64__ */
47 /* FLAGS must stay at this position in the structure to maintain
48 binary compatibility. */
49 unsigned char __flags;
50 unsigned char __shared;
51 signed char __rwelision;
52 unsigned char __pad2;
53 int __cur_writer;
54#endif
55};
56
57#ifdef __x86_64__
58# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
59 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, __flags
60#else
61# define __PTHREAD_RWLOCK_INITIALIZER(__flags) \
62 0, 0, 0, 0, 0, 0, __flags, 0, 0, 0, 0
63#endif
64
65#endif
\ No newline at end of file
lib/libc/include/x86_64-linux-gnux32/bits/sysctl.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2012-2019 Free Software Foundation, Inc.1/* Copyright (C) 2012-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#if defined __x86_64__ && defined __ILP32__18#if defined __x86_64__ && defined __ILP32__
19# error "sysctl system call is unsupported in x32 kernel"19# error "sysctl system call is unsupported in x32 kernel"
lib/libc/include/x86_64-linux-gnux32/bits/timesize.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* Bit size of the time_t type at glibc build time, x86-64 and x32 case.1/* Bit size of the time_t type at glibc build time, x86-64 and x32 case.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#if defined __x86_64__ && defined __ILP32__19#if defined __x86_64__ && defined __ILP32__
20/* For x32, time is 64-bit even though word size is 32-bit. */20/* For x32, time is 64-bit even though word size is 32-bit. */
lib/libc/include/x86_64-linux-gnux32/bits/typesizes.h+7-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.1/* bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
44
5 The GNU C Library is free software; you can redistribute it and/or5 The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
1414
15 You should have received a copy of the GNU Lesser General Public15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */17 <https://www.gnu.org/licenses/>. */
1818
19#ifndef _BITS_TYPES_H19#ifndef _BITS_TYPES_H
20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."20# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
...@@ -84,8 +84,13 @@...@@ -84,8 +84,13 @@
8484
85/* And for __rlim_t and __rlim64_t. */85/* And for __rlim_t and __rlim64_t. */
86# define __RLIM_T_MATCHES_RLIM64_T 186# define __RLIM_T_MATCHES_RLIM64_T 1
87
88/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
89# define __STATFS_MATCHES_STATFS64 1
87#else90#else
88# define __RLIM_T_MATCHES_RLIM64_T 091# define __RLIM_T_MATCHES_RLIM64_T 0
92
93# define __STATFS_MATCHES_STATFS64 0
89#endif94#endif
9095
91/* Number of descriptors that can fit in an `fd_set'. */96/* Number of descriptors that can fit in an `fd_set'. */
lib/libc/include/x86_64-linux-gnux32/finclude/math-vector-fortran.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1! Platform-specific declarations of SIMD math functions for Fortran. -*- f90 -*-1! Platform-specific declarations of SIMD math functions for Fortran. -*- f90 -*-
2! Copyright (C) 2019 Free Software Foundation, Inc.2! Copyright (C) 2019-2020 Free Software Foundation, Inc.
3! This file is part of the GNU C Library.3! This file is part of the GNU C Library.
4!4!
5! The GNU C Library is free software; you can redistribute it and/or5! The GNU C Library is free software; you can redistribute it and/or
...@@ -14,7 +14,7 @@...@@ -14,7 +14,7 @@
14!14!
15! You should have received a copy of the GNU Lesser General Public15! You should have received a copy of the GNU Lesser General Public
16! License along with the GNU C Library; if not, see16! License along with the GNU C Library; if not, see
17! <http://www.gnu.org/licenses/>.17! <https://www.gnu.org/licenses/>.
1818
19!GCC$ builtin (cos) attributes simd (notinbranch) if('x86_64')19!GCC$ builtin (cos) attributes simd (notinbranch) if('x86_64')
20!GCC$ builtin (cosf) attributes simd (notinbranch) if('x86_64')20!GCC$ builtin (cosf) attributes simd (notinbranch) if('x86_64')
lib/libc/include/x86_64-linux-gnux32/fpu_control.h+2-2
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* FPU control word bits. x86 version.1/* FPU control word bits. x86 version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.3 This file is part of the GNU C Library.
4 Contributed by Olaf Flebbe.4 Contributed by Olaf Flebbe.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _FPU_CONTROL_H20#ifndef _FPU_CONTROL_H
21#define _FPU_CONTROL_H 121#define _FPU_CONTROL_H 1
lib/libc/include/x86_64-linux-gnux32/sys/elf.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_ELF_H18#ifndef _SYS_ELF_H
19#define _SYS_ELF_H 119#define _SYS_ELF_H 1
lib/libc/include/x86_64-linux-gnux32/sys/ptrace.h+7-3
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1/* `ptrace' debugger support interface. Linux/x86 version.1/* `ptrace' debugger support interface. Linux/x86 version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
4 This file is part of the GNU C Library.4 This file is part of the GNU C Library.
55
...@@ -15,7 +15,7 @@...@@ -15,7 +15,7 @@
1515
16 You should have received a copy of the GNU Lesser General Public16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */18 <https://www.gnu.org/licenses/>. */
1919
20#ifndef _SYS_PTRACE_H20#ifndef _SYS_PTRACE_H
21#define _SYS_PTRACE_H 121#define _SYS_PTRACE_H 1
...@@ -186,8 +186,12 @@ enum __ptrace_request...@@ -186,8 +186,12 @@ enum __ptrace_request
186#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER186#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
187187
188 /* Get seccomp BPF filter metadata. */188 /* Get seccomp BPF filter metadata. */
189 PTRACE_SECCOMP_GET_METADATA = 0x420d189 PTRACE_SECCOMP_GET_METADATA = 0x420d,
190#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA190#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
191
192 /* Get information about system call. */
193 PTRACE_GET_SYSCALL_INFO = 0x420e
194#define PTRACE_GET_SYSCALL_INFO PTRACE_GET_SYSCALL_INFO
191};195};
192196
193197
lib/libc/include/x86_64-linux-gnux32/sys/ucontext.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_UCONTEXT_H18#ifndef _SYS_UCONTEXT_H
19#define _SYS_UCONTEXT_H 119#define _SYS_UCONTEXT_H 1
lib/libc/include/x86_64-linux-gnux32/sys/user.h+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.2 This file is part of the GNU C Library.
33
4 The GNU C Library is free software; you can redistribute it and/or4 The GNU C Library is free software; you can redistribute it and/or
...@@ -13,7 +13,7 @@...@@ -13,7 +13,7 @@
1313
14 You should have received a copy of the GNU Lesser General Public14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, see15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */16 <https://www.gnu.org/licenses/>. */
1717
18#ifndef _SYS_USER_H18#ifndef _SYS_USER_H
19#define _SYS_USER_H 119#define _SYS_USER_H 1
lib/std/fs.zig+8-5
...@@ -663,11 +663,14 @@ pub const Dir = struct {...@@ -663,11 +663,14 @@ pub const Dir = struct {
663 return self.openFileW(&path_w, flags);663 return self.openFileW(&path_w, flags);
664 }664 }
665 const path_c = try os.toPosixPath(sub_path);665 const path_c = try os.toPosixPath(sub_path);
666 return self.openFileC(&path_c, flags);666 return self.openFileZ(&path_c, flags);
667 }667 }
668668
669 /// Deprecated; use `openFileZ`.
670 pub const openFileC = openFileZ;
671
669 /// Same as `openFile` but the path parameter is null-terminated.672 /// Same as `openFile` but the path parameter is null-terminated.
670 pub fn openFileC(self: Dir, sub_path: [*:0]const u8, flags: File.OpenFlags) File.OpenError!File {673 pub fn openFileZ(self: Dir, sub_path: [*:0]const u8, flags: File.OpenFlags) File.OpenError!File {
671 if (builtin.os.tag == .windows) {674 if (builtin.os.tag == .windows) {
672 const path_w = try os.windows.cStrToPrefixedFileW(sub_path);675 const path_w = try os.windows.cStrToPrefixedFileW(sub_path);
673 return self.openFileW(&path_w, flags);676 return self.openFileW(&path_w, flags);
...@@ -753,9 +756,9 @@ pub const Dir = struct {...@@ -753,9 +756,9 @@ pub const Dir = struct {
753 return self.openFile(sub_path, .{});756 return self.openFile(sub_path, .{});
754 }757 }
755758
756 /// Deprecated; call `openFileC` directly.759 /// Deprecated; call `openFileZ` directly.
757 pub fn openReadC(self: Dir, sub_path: [*:0]const u8) File.OpenError!File {760 pub fn openReadC(self: Dir, sub_path: [*:0]const u8) File.OpenError!File {
758 return self.openFileC(sub_path, .{});761 return self.openFileZ(sub_path, .{});
759 }762 }
760763
761 /// Deprecated; call `openFileW` directly.764 /// Deprecated; call `openFileW` directly.
...@@ -1403,7 +1406,7 @@ pub fn openFileAbsolute(absolute_path: []const u8, flags: File.OpenFlags) File.O...@@ -1403,7 +1406,7 @@ pub fn openFileAbsolute(absolute_path: []const u8, flags: File.OpenFlags) File.O
1403/// Same as `openFileAbsolute` but the path parameter is null-terminated.1406/// Same as `openFileAbsolute` but the path parameter is null-terminated.
1404pub fn openFileAbsoluteC(absolute_path_c: [*:0]const u8, flags: File.OpenFlags) File.OpenError!File {1407pub fn openFileAbsoluteC(absolute_path_c: [*:0]const u8, flags: File.OpenFlags) File.OpenError!File {
1405 assert(path.isAbsoluteC(absolute_path_c));1408 assert(path.isAbsoluteC(absolute_path_c));
1406 return cwd().openFileC(absolute_path_c, flags);1409 return cwd().openFileZ(absolute_path_c, flags);
1407}1410}
14081411
1409/// Same as `openFileAbsolute` but the path parameter is WTF-16 encoded.1412/// Same as `openFileAbsolute` but the path parameter is WTF-16 encoded.
src-self-hosted/introspect.zig+21-2
...@@ -8,13 +8,32 @@ const warn = std.debug.warn;...@@ -8,13 +8,32 @@ const warn = std.debug.warn;
88
9/// Caller must free result9/// Caller must free result
10pub fn testZigInstallPrefix(allocator: *mem.Allocator, test_path: []const u8) ![]u8 {10pub fn testZigInstallPrefix(allocator: *mem.Allocator, test_path: []const u8) ![]u8 {
11 const test_zig_dir = try fs.path.join(allocator, &[_][]const u8{ test_path, "lib", "zig" });11 {
12 const test_zig_dir = try fs.path.join(allocator, &[_][]const u8{ test_path, "lib", "zig" });
13 errdefer allocator.free(test_zig_dir);
14
15 const test_index_file = try fs.path.join(allocator, &[_][]const u8{ test_zig_dir, "std", "std.zig" });
16 defer allocator.free(test_index_file);
17
18 if (fs.cwd().openFile(test_index_file, .{})) |file| {
19 file.close();
20 return test_zig_dir;
21 } else |err| switch (err) {
22 error.FileNotFound => {
23 allocator.free(test_zig_dir);
24 },
25 else => |e| return e,
26 }
27 }
28
29 // Also try without "zig"
30 const test_zig_dir = try fs.path.join(allocator, &[_][]const u8{ test_path, "lib" });
12 errdefer allocator.free(test_zig_dir);31 errdefer allocator.free(test_zig_dir);
1332
14 const test_index_file = try fs.path.join(allocator, &[_][]const u8{ test_zig_dir, "std", "std.zig" });33 const test_index_file = try fs.path.join(allocator, &[_][]const u8{ test_zig_dir, "std", "std.zig" });
15 defer allocator.free(test_index_file);34 defer allocator.free(test_index_file);
1635
17 var file = try fs.cwd().openRead(test_index_file);36 const file = try fs.cwd().openFile(test_index_file, .{});
18 file.close();37 file.close();
1938
20 return test_zig_dir;39 return test_zig_dir;
src-self-hosted/print_targets.zig+35-46
...@@ -4,6 +4,9 @@ const io = std.io;...@@ -4,6 +4,9 @@ const io = std.io;
4const mem = std.mem;4const mem = std.mem;
5const Allocator = mem.Allocator;5const Allocator = mem.Allocator;
6const Target = std.Target;6const Target = std.Target;
7const assert = std.debug.assert;
8
9const introspect = @import("introspect.zig");
710
8// TODO this is hard-coded until self-hosted gains this information canonically11// TODO this is hard-coded until self-hosted gains this information canonically
9const available_libcs = [_][]const u8{12const available_libcs = [_][]const u8{
...@@ -55,57 +58,40 @@ const available_libcs = [_][]const u8{...@@ -55,57 +58,40 @@ const available_libcs = [_][]const u8{
55 "x86_64-windows-gnu",58 "x86_64-windows-gnu",
56};59};
5760
58// TODO this is hard-coded until self-hosted gains this information canonically
59const available_glibcs = [_][]const u8{
60 "2.0",
61 "2.1",
62 "2.1.1",
63 "2.1.2",
64 "2.1.3",
65 "2.2",
66 "2.2.1",
67 "2.2.2",
68 "2.2.3",
69 "2.2.4",
70 "2.2.5",
71 "2.2.6",
72 "2.3",
73 "2.3.2",
74 "2.3.3",
75 "2.3.4",
76 "2.4",
77 "2.5",
78 "2.6",
79 "2.7",
80 "2.8",
81 "2.9",
82 "2.10",
83 "2.11",
84 "2.12",
85 "2.13",
86 "2.14",
87 "2.15",
88 "2.16",
89 "2.17",
90 "2.18",
91 "2.19",
92 "2.22",
93 "2.23",
94 "2.24",
95 "2.25",
96 "2.26",
97 "2.27",
98 "2.28",
99 "2.29",
100 "2.30",
101};
102
103pub fn cmdTargets(61pub fn cmdTargets(
104 allocator: *Allocator,62 allocator: *Allocator,
105 args: []const []const u8,63 args: []const []const u8,
106 stdout: *io.OutStream(fs.File.WriteError),64 stdout: *io.OutStream(fs.File.WriteError),
107 native_target: Target,65 native_target: Target,
108) !void {66) !void {
67 const available_glibcs = blk: {
68 const zig_lib_dir = introspect.resolveZigLibDir(allocator) catch |err| {
69 std.debug.warn("unable to find zig installation directory: {}\n", .{@errorName(err)});
70 std.process.exit(1);
71 };
72 defer allocator.free(zig_lib_dir);
73
74 var dir = try std.fs.cwd().openDirList(zig_lib_dir);
75 defer dir.close();
76
77 const vers_txt = try dir.readFileAlloc(allocator, "libc/glibc/vers.txt", 10 * 1024);
78 defer allocator.free(vers_txt);
79
80 var list = std.ArrayList(std.builtin.Version).init(allocator);
81 defer list.deinit();
82
83 var it = mem.tokenize(vers_txt, "\r\n");
84 while (it.next()) |line| {
85 const prefix = "GLIBC_";
86 assert(mem.startsWith(u8, line, prefix));
87 const adjusted_line = line[prefix.len..];
88 const ver = try std.builtin.Version.parse(adjusted_line);
89 try list.append(ver);
90 }
91 break :blk list.toOwnedSlice();
92 };
93 defer allocator.free(available_glibcs);
94
109 const BOS = io.BufferedOutStream(fs.File.WriteError);95 const BOS = io.BufferedOutStream(fs.File.WriteError);
110 var bos = BOS.init(stdout);96 var bos = BOS.init(stdout);
111 var jws = std.json.WriteStream(BOS.Stream, 6).init(&bos.stream);97 var jws = std.json.WriteStream(BOS.Stream, 6).init(&bos.stream);
...@@ -150,7 +136,10 @@ pub fn cmdTargets(...@@ -150,7 +136,10 @@ pub fn cmdTargets(
150 try jws.beginArray();136 try jws.beginArray();
151 for (available_glibcs) |glibc| {137 for (available_glibcs) |glibc| {
152 try jws.arrayElem();138 try jws.arrayElem();
153 try jws.emitString(glibc);139
140 const tmp = try std.fmt.allocPrint(allocator, "{}", .{glibc});
141 defer allocator.free(tmp);
142 try jws.emitString(tmp);
154 }143 }
155 try jws.endArray();144 try jws.endArray();
156145
tools/process_headers.zig+20-19
...@@ -11,10 +11,9 @@...@@ -11,10 +11,9 @@
11// You'll then have to manually update Zig source repo with these new files.11// You'll then have to manually update Zig source repo with these new files.
1212
13const std = @import("std");13const std = @import("std");
14const builtin = @import("builtin");14const Arch = std.Target.Cpu.Arch;
15const Arch = builtin.Arch;15const Abi = std.Target.Abi;
16const Abi = builtin.Abi;16const OsTag = std.Target.Os.Tag;
17const Os = builtin.Os;
18const assert = std.debug.assert;17const assert = std.debug.assert;
1918
20const LibCTarget = struct {19const LibCTarget = struct {
...@@ -29,12 +28,12 @@ const MultiArch = union(enum) {...@@ -29,12 +28,12 @@ const MultiArch = union(enum) {
29 mips,28 mips,
30 mips64,29 mips64,
31 powerpc64,30 powerpc64,
32 specific: @TagType(Arch),31 specific: Arch,
3332
34 fn eql(a: MultiArch, b: MultiArch) bool {33 fn eql(a: MultiArch, b: MultiArch) bool {
35 if (@enumToInt(a) != @enumToInt(b))34 if (@enumToInt(a) != @enumToInt(b))
36 return false;35 return false;
37 if (@TagType(MultiArch)(a) != .specific)36 if (a != .specific)
38 return true;37 return true;
39 return a.specific == b.specific;38 return a.specific == b.specific;
40 }39 }
...@@ -221,7 +220,7 @@ const musl_targets = [_]LibCTarget{...@@ -221,7 +220,7 @@ const musl_targets = [_]LibCTarget{
221220
222const DestTarget = struct {221const DestTarget = struct {
223 arch: MultiArch,222 arch: MultiArch,
224 os: Os,223 os: OsTag,
225 abi: Abi,224 abi: Abi,
226225
227 fn hash(a: DestTarget) u32 {226 fn hash(a: DestTarget) u32 {
...@@ -305,8 +304,8 @@ pub fn main() !void {...@@ -305,8 +304,8 @@ pub fn main() !void {
305 // TODO compiler crashed when I wrote this the canonical way304 // TODO compiler crashed when I wrote this the canonical way
306 var libc_targets: []const LibCTarget = undefined;305 var libc_targets: []const LibCTarget = undefined;
307 switch (vendor) {306 switch (vendor) {
308 .musl => libc_targets = musl_targets,307 .musl => libc_targets = &musl_targets,
309 .glibc => libc_targets = glibc_targets,308 .glibc => libc_targets = &glibc_targets,
310 }309 }
311310
312 var path_table = PathTable.init(allocator);311 var path_table = PathTable.init(allocator);
...@@ -340,15 +339,17 @@ pub fn main() !void {...@@ -340,15 +339,17 @@ pub fn main() !void {
340 try dir_stack.append(target_include_dir);339 try dir_stack.append(target_include_dir);
341340
342 while (dir_stack.popOrNull()) |full_dir_name| {341 while (dir_stack.popOrNull()) |full_dir_name| {
343 var dir = std.fs.Dir.cwd().openDirList(full_dir_name) catch |err| switch (err) {342 var dir = std.fs.cwd().openDirList(full_dir_name) catch |err| switch (err) {
344 error.FileNotFound => continue :search,343 error.FileNotFound => continue :search,
345 error.AccessDenied => continue :search,344 error.AccessDenied => continue :search,
346 else => return err,345 else => return err,
347 };346 };
348 defer dir.close();347 defer dir.close();
349348
350 while (try dir.next()) |entry| {349 var dir_it = dir.iterate();
351 const full_path = try std.fs.path.join(allocator, [_][]const u8{ full_dir_name, entry.name });350
351 while (try dir_it.next()) |entry| {
352 const full_path = try std.fs.path.join(allocator, &[_][]const u8{ full_dir_name, entry.name });
352 switch (entry.kind) {353 switch (entry.kind) {
353 .Directory => try dir_stack.append(full_path),354 .Directory => try dir_stack.append(full_path),
354 .File => {355 .File => {
...@@ -396,8 +397,8 @@ pub fn main() !void {...@@ -396,8 +397,8 @@ pub fn main() !void {
396 std.debug.warn("warning: libc target not found: {}\n", .{libc_target.name});397 std.debug.warn("warning: libc target not found: {}\n", .{libc_target.name});
397 }398 }
398 }399 }
399 std.debug.warn("summary: {Bi:2} could be reduced to {Bi:2}\n", .{total_bytes, total_bytes - max_bytes_saved});400 std.debug.warn("summary: {Bi:2} could be reduced to {Bi:2}\n", .{ total_bytes, total_bytes - max_bytes_saved });
400 try std.fs.makePath(allocator, out_dir);401 try std.fs.cwd().makePath(out_dir);
401402
402 var missed_opportunity_bytes: usize = 0;403 var missed_opportunity_bytes: usize = 0;
403 // iterate path_table. for each path, put all the hashes into a list. sort by hit_count.404 // iterate path_table. for each path, put all the hashes into a list. sort by hit_count.
...@@ -417,15 +418,15 @@ pub fn main() !void {...@@ -417,15 +418,15 @@ pub fn main() !void {
417 var best_contents = contents_list.popOrNull().?;418 var best_contents = contents_list.popOrNull().?;
418 if (best_contents.hit_count > 1) {419 if (best_contents.hit_count > 1) {
419 // worth it to make it generic420 // worth it to make it generic
420 const full_path = try std.fs.path.join(allocator, [_][]const u8{ out_dir, generic_name, path_kv.key });421 const full_path = try std.fs.path.join(allocator, &[_][]const u8{ out_dir, generic_name, path_kv.key });
421 try std.fs.makePath(allocator, std.fs.path.dirname(full_path).?);422 try std.fs.cwd().makePath(std.fs.path.dirname(full_path).?);
422 try std.io.writeFile(full_path, best_contents.bytes);423 try std.io.writeFile(full_path, best_contents.bytes);
423 best_contents.is_generic = true;424 best_contents.is_generic = true;
424 while (contents_list.popOrNull()) |contender| {425 while (contents_list.popOrNull()) |contender| {
425 if (contender.hit_count > 1) {426 if (contender.hit_count > 1) {
426 const this_missed_bytes = contender.hit_count * contender.bytes.len;427 const this_missed_bytes = contender.hit_count * contender.bytes.len;
427 missed_opportunity_bytes += this_missed_bytes;428 missed_opportunity_bytes += this_missed_bytes;
428 std.debug.warn("Missed opportunity ({Bi:2}): {}\n", .{this_missed_bytes, path_kv.key});429 std.debug.warn("Missed opportunity ({Bi:2}): {}\n", .{ this_missed_bytes, path_kv.key });
429 } else break;430 } else break;
430 }431 }
431 }432 }
...@@ -444,8 +445,8 @@ pub fn main() !void {...@@ -444,8 +445,8 @@ pub fn main() !void {
444 @tagName(dest_target.os),445 @tagName(dest_target.os),
445 @tagName(dest_target.abi),446 @tagName(dest_target.abi),
446 });447 });
447 const full_path = try std.fs.path.join(allocator, [_][]const u8{ out_dir, out_subpath, path_kv.key });448 const full_path = try std.fs.path.join(allocator, &[_][]const u8{ out_dir, out_subpath, path_kv.key });
448 try std.fs.makePath(allocator, std.fs.path.dirname(full_path).?);449 try std.fs.cwd().makePath(std.fs.path.dirname(full_path).?);
449 try std.io.writeFile(full_path, contents.bytes);450 try std.io.writeFile(full_path, contents.bytes);
450 }451 }
451 }452 }
tools/update_glibc.zig+38-35
...@@ -1,5 +1,4 @@...@@ -1,5 +1,4 @@
1const std = @import("std");1const std = @import("std");
2const builtin = @import("builtin");
3const fs = std.fs;2const fs = std.fs;
4const fmt = std.fmt;3const fmt = std.fmt;
5const assert = std.debug.assert;4const assert = std.debug.assert;
...@@ -11,8 +10,8 @@ const AbiList = struct {...@@ -11,8 +10,8 @@ const AbiList = struct {
11 path: []const u8,10 path: []const u8,
12};11};
13const ZigTarget = struct {12const ZigTarget = struct {
14 arch: @TagType(builtin.Arch),13 arch: std.Target.Cpu.Arch,
15 abi: builtin.Abi,14 abi: std.Target.Abi,
16};15};
1716
18const lib_names = [_][]const u8{17const lib_names = [_][]const u8{
...@@ -27,18 +26,18 @@ const lib_names = [_][]const u8{...@@ -27,18 +26,18 @@ const lib_names = [_][]const u8{
27// n64/n32 are hardcoded elsewhere, based on .gnuabi64/.gnuabin3226// n64/n32 are hardcoded elsewhere, based on .gnuabi64/.gnuabin32
28const abi_lists = [_]AbiList{27const abi_lists = [_]AbiList{
29 AbiList{28 AbiList{
30 .targets = [_]ZigTarget{29 .targets = &[_]ZigTarget{
31 ZigTarget{ .arch = .aarch64, .abi = .gnu },30 ZigTarget{ .arch = .aarch64, .abi = .gnu },
32 ZigTarget{ .arch = .aarch64_be, .abi = .gnu },31 ZigTarget{ .arch = .aarch64_be, .abi = .gnu },
33 },32 },
34 .path = "aarch64",33 .path = "aarch64",
35 },34 },
36 AbiList{35 AbiList{
37 .targets = [_]ZigTarget{ZigTarget{ .arch = .s390x, .abi = .gnu }},36 .targets = &[_]ZigTarget{ZigTarget{ .arch = .s390x, .abi = .gnu }},
38 .path = "s390/s390-64",37 .path = "s390/s390-64",
39 },38 },
40 AbiList{39 AbiList{
41 .targets = [_]ZigTarget{40 .targets = &[_]ZigTarget{
42 ZigTarget{ .arch = .arm, .abi = .gnueabi },41 ZigTarget{ .arch = .arm, .abi = .gnueabi },
43 ZigTarget{ .arch = .armeb, .abi = .gnueabi },42 ZigTarget{ .arch = .armeb, .abi = .gnueabi },
44 ZigTarget{ .arch = .arm, .abi = .gnueabihf },43 ZigTarget{ .arch = .arm, .abi = .gnueabihf },
...@@ -47,66 +46,66 @@ const abi_lists = [_]AbiList{...@@ -47,66 +46,66 @@ const abi_lists = [_]AbiList{
47 .path = "arm",46 .path = "arm",
48 },47 },
49 AbiList{48 AbiList{
50 .targets = [_]ZigTarget{49 .targets = &[_]ZigTarget{
51 ZigTarget{ .arch = .sparc, .abi = .gnu },50 ZigTarget{ .arch = .sparc, .abi = .gnu },
52 ZigTarget{ .arch = .sparcel, .abi = .gnu },51 ZigTarget{ .arch = .sparcel, .abi = .gnu },
53 },52 },
54 .path = "sparc/sparc32",53 .path = "sparc/sparc32",
55 },54 },
56 AbiList{55 AbiList{
57 .targets = [_]ZigTarget{ZigTarget{ .arch = .sparcv9, .abi = .gnu }},56 .targets = &[_]ZigTarget{ZigTarget{ .arch = .sparcv9, .abi = .gnu }},
58 .path = "sparc/sparc64",57 .path = "sparc/sparc64",
59 },58 },
60 AbiList{59 AbiList{
61 .targets = [_]ZigTarget{60 .targets = &[_]ZigTarget{
62 ZigTarget{ .arch = .mips64el, .abi = .gnuabi64 },61 ZigTarget{ .arch = .mips64el, .abi = .gnuabi64 },
63 ZigTarget{ .arch = .mips64, .abi = .gnuabi64 },62 ZigTarget{ .arch = .mips64, .abi = .gnuabi64 },
64 },63 },
65 .path = "mips/mips64",64 .path = "mips/mips64",
66 },65 },
67 AbiList{66 AbiList{
68 .targets = [_]ZigTarget{67 .targets = &[_]ZigTarget{
69 ZigTarget{ .arch = .mips64el, .abi = .gnuabin32 },68 ZigTarget{ .arch = .mips64el, .abi = .gnuabin32 },
70 ZigTarget{ .arch = .mips64, .abi = .gnuabin32 },69 ZigTarget{ .arch = .mips64, .abi = .gnuabin32 },
71 },70 },
72 .path = "mips/mips64",71 .path = "mips/mips64",
73 },72 },
74 AbiList{73 AbiList{
75 .targets = [_]ZigTarget{74 .targets = &[_]ZigTarget{
76 ZigTarget{ .arch = .mipsel, .abi = .gnueabihf },75 ZigTarget{ .arch = .mipsel, .abi = .gnueabihf },
77 ZigTarget{ .arch = .mips, .abi = .gnueabihf },76 ZigTarget{ .arch = .mips, .abi = .gnueabihf },
78 },77 },
79 .path = "mips/mips32",78 .path = "mips/mips32",
80 },79 },
81 AbiList{80 AbiList{
82 .targets = [_]ZigTarget{81 .targets = &[_]ZigTarget{
83 ZigTarget{ .arch = .mipsel, .abi = .gnueabi },82 ZigTarget{ .arch = .mipsel, .abi = .gnueabi },
84 ZigTarget{ .arch = .mips, .abi = .gnueabi },83 ZigTarget{ .arch = .mips, .abi = .gnueabi },
85 },84 },
86 .path = "mips/mips32",85 .path = "mips/mips32",
87 },86 },
88 AbiList{87 AbiList{
89 .targets = [_]ZigTarget{ZigTarget{ .arch = .x86_64, .abi = .gnu }},88 .targets = &[_]ZigTarget{ZigTarget{ .arch = .x86_64, .abi = .gnu }},
90 .path = "x86_64/64",89 .path = "x86_64/64",
91 },90 },
92 AbiList{91 AbiList{
93 .targets = [_]ZigTarget{ZigTarget{ .arch = .x86_64, .abi = .gnux32 }},92 .targets = &[_]ZigTarget{ZigTarget{ .arch = .x86_64, .abi = .gnux32 }},
94 .path = "x86_64/x32",93 .path = "x86_64/x32",
95 },94 },
96 AbiList{95 AbiList{
97 .targets = [_]ZigTarget{ZigTarget{ .arch = .i386, .abi = .gnu }},96 .targets = &[_]ZigTarget{ZigTarget{ .arch = .i386, .abi = .gnu }},
98 .path = "i386",97 .path = "i386",
99 },98 },
100 AbiList{99 AbiList{
101 .targets = [_]ZigTarget{ZigTarget{ .arch = .powerpc64le, .abi = .gnu }},100 .targets = &[_]ZigTarget{ZigTarget{ .arch = .powerpc64le, .abi = .gnu }},
102 .path = "powerpc/powerpc64/le",101 .path = "powerpc/powerpc64/le",
103 },102 },
104 AbiList{103 AbiList{
105 .targets = [_]ZigTarget{ZigTarget{ .arch = .powerpc64, .abi = .gnu }},104 .targets = &[_]ZigTarget{ZigTarget{ .arch = .powerpc64, .abi = .gnu }},
106 .path = "powerpc/powerpc64/be",105 .path = "powerpc/powerpc64/be",
107 },106 },
108 AbiList{107 AbiList{
109 .targets = [_]ZigTarget{108 .targets = &[_]ZigTarget{
110 ZigTarget{ .arch = .powerpc, .abi = .gnueabi },109 ZigTarget{ .arch = .powerpc, .abi = .gnueabi },
111 ZigTarget{ .arch = .powerpc, .abi = .gnueabihf },110 ZigTarget{ .arch = .powerpc, .abi = .gnueabihf },
112 },111 },
...@@ -137,8 +136,8 @@ pub fn main() !void {...@@ -137,8 +136,8 @@ pub fn main() !void {
137 const in_glibc_dir = args[1]; // path to the unzipped tarball of glibc, e.g. ~/downloads/glibc-2.25136 const in_glibc_dir = args[1]; // path to the unzipped tarball of glibc, e.g. ~/downloads/glibc-2.25
138 const zig_src_dir = args[2]; // path to the source checkout of zig, lib dir, e.g. ~/zig-src/lib137 const zig_src_dir = args[2]; // path to the source checkout of zig, lib dir, e.g. ~/zig-src/lib
139138
140 const prefix = try fs.path.join(allocator, [_][]const u8{ in_glibc_dir, "sysdeps", "unix", "sysv", "linux" });139 const prefix = try fs.path.join(allocator, &[_][]const u8{ in_glibc_dir, "sysdeps", "unix", "sysv", "linux" });
141 const glibc_out_dir = try fs.path.join(allocator, [_][]const u8{ zig_src_dir, "libc", "glibc" });140 const glibc_out_dir = try fs.path.join(allocator, &[_][]const u8{ zig_src_dir, "libc", "glibc" });
142141
143 var global_fn_set = std.StringHashMap(Function).init(allocator);142 var global_fn_set = std.StringHashMap(Function).init(allocator);
144 var global_ver_set = std.StringHashMap(usize).init(allocator);143 var global_ver_set = std.StringHashMap(usize).init(allocator);
...@@ -158,26 +157,30 @@ pub fn main() !void {...@@ -158,26 +157,30 @@ pub fn main() !void {
158 const basename = try fmt.allocPrint(allocator, "lib{}.abilist", .{lib_name});157 const basename = try fmt.allocPrint(allocator, "lib{}.abilist", .{lib_name});
159 const abi_list_filename = blk: {158 const abi_list_filename = blk: {
160 if (abi_list.targets[0].abi == .gnuabi64 and std.mem.eql(u8, lib_name, "c")) {159 if (abi_list.targets[0].abi == .gnuabi64 and std.mem.eql(u8, lib_name, "c")) {
161 break :blk try fs.path.join(allocator, [_][]const u8{ prefix, abi_list.path, "n64", basename });160 break :blk try fs.path.join(allocator, &[_][]const u8{ prefix, abi_list.path, "n64", basename });
162 } else if (abi_list.targets[0].abi == .gnuabin32 and std.mem.eql(u8, lib_name, "c")) {161 } else if (abi_list.targets[0].abi == .gnuabin32 and std.mem.eql(u8, lib_name, "c")) {
163 break :blk try fs.path.join(allocator, [_][]const u8{ prefix, abi_list.path, "n32", basename });162 break :blk try fs.path.join(allocator, &[_][]const u8{ prefix, abi_list.path, "n32", basename });
164 } else if (abi_list.targets[0].arch != .arm and163 } else if (abi_list.targets[0].arch != .arm and
165 abi_list.targets[0].abi == .gnueabihf and164 abi_list.targets[0].abi == .gnueabihf and
166 (std.mem.eql(u8, lib_name, "c") or165 (std.mem.eql(u8, lib_name, "c") or
167 (std.mem.eql(u8, lib_name, "m") and abi_list.targets[0].arch == .powerpc)))166 (std.mem.eql(u8, lib_name, "m") and abi_list.targets[0].arch == .powerpc)))
168 {167 {
169 break :blk try fs.path.join(allocator, [_][]const u8{ prefix, abi_list.path, "fpu", basename });168 break :blk try fs.path.join(allocator, &[_][]const u8{ prefix, abi_list.path, "fpu", basename });
170 } else if (abi_list.targets[0].arch != .arm and169 } else if (abi_list.targets[0].arch != .arm and
171 abi_list.targets[0].abi == .gnueabi and170 abi_list.targets[0].abi == .gnueabi and
172 (std.mem.eql(u8, lib_name, "c") or171 (std.mem.eql(u8, lib_name, "c") or
173 (std.mem.eql(u8, lib_name, "m") and abi_list.targets[0].arch == .powerpc)))172 (std.mem.eql(u8, lib_name, "m") and abi_list.targets[0].arch == .powerpc)))
174 {173 {
175 break :blk try fs.path.join(allocator, [_][]const u8{ prefix, abi_list.path, "nofpu", basename });174 break :blk try fs.path.join(allocator, &[_][]const u8{ prefix, abi_list.path, "nofpu", basename });
175 } else if (abi_list.targets[0].arch == .arm) {
176 break :blk try fs.path.join(allocator, &[_][]const u8{ prefix, abi_list.path, "le", basename });
177 } else if (abi_list.targets[0].arch == .armeb) {
178 break :blk try fs.path.join(allocator, &[_][]const u8{ prefix, abi_list.path, "be", basename });
176 }179 }
177 break :blk try fs.path.join(allocator, [_][]const u8{ prefix, abi_list.path, basename });180 break :blk try fs.path.join(allocator, &[_][]const u8{ prefix, abi_list.path, basename });
178 };181 };
179 const contents = std.io.readFileAlloc(allocator, abi_list_filename) catch |err| {182 const contents = std.io.readFileAlloc(allocator, abi_list_filename) catch |err| {
180 std.debug.warn("unable to open {}: {}\n", .{abi_list_filename, err});183 std.debug.warn("unable to open {}: {}\n", .{ abi_list_filename, err });
181 std.process.exit(1);184 std.process.exit(1);
182 };185 };
183 var lines_it = std.mem.tokenize(contents, "\n");186 var lines_it = std.mem.tokenize(contents, "\n");
...@@ -228,8 +231,8 @@ pub fn main() !void {...@@ -228,8 +231,8 @@ pub fn main() !void {
228 break :blk list.toSliceConst();231 break :blk list.toSliceConst();
229 };232 };
230 {233 {
231 const vers_txt_path = try fs.path.join(allocator, [_][]const u8{ glibc_out_dir, "vers.txt" });234 const vers_txt_path = try fs.path.join(allocator, &[_][]const u8{ glibc_out_dir, "vers.txt" });
232 const vers_txt_file = try fs.File.openWrite(vers_txt_path);235 const vers_txt_file = try fs.cwd().createFile(vers_txt_path, .{});
233 defer vers_txt_file.close();236 defer vers_txt_file.close();
234 var buffered = std.io.BufferedOutStream(fs.File.WriteError).init(&vers_txt_file.outStream().stream);237 var buffered = std.io.BufferedOutStream(fs.File.WriteError).init(&vers_txt_file.outStream().stream);
235 const vers_txt = &buffered.stream;238 const vers_txt = &buffered.stream;
...@@ -240,15 +243,15 @@ pub fn main() !void {...@@ -240,15 +243,15 @@ pub fn main() !void {
240 try buffered.flush();243 try buffered.flush();
241 }244 }
242 {245 {
243 const fns_txt_path = try fs.path.join(allocator, [_][]const u8{ glibc_out_dir, "fns.txt" });246 const fns_txt_path = try fs.path.join(allocator, &[_][]const u8{ glibc_out_dir, "fns.txt" });
244 const fns_txt_file = try fs.File.openWrite(fns_txt_path);247 const fns_txt_file = try fs.cwd().createFile(fns_txt_path, .{});
245 defer fns_txt_file.close();248 defer fns_txt_file.close();
246 var buffered = std.io.BufferedOutStream(fs.File.WriteError).init(&fns_txt_file.outStream().stream);249 var buffered = std.io.BufferedOutStream(fs.File.WriteError).init(&fns_txt_file.outStream().stream);
247 const fns_txt = &buffered.stream;250 const fns_txt = &buffered.stream;
248 for (global_fn_list) |name, i| {251 for (global_fn_list) |name, i| {
249 const kv = global_fn_set.get(name).?;252 const kv = global_fn_set.get(name).?;
250 kv.value.index = i;253 kv.value.index = i;
251 try fns_txt.print("{} {}\n", .{name, kv.value.lib});254 try fns_txt.print("{} {}\n", .{ name, kv.value.lib });
252 }255 }
253 try buffered.flush();256 try buffered.flush();
254 }257 }
...@@ -271,8 +274,8 @@ pub fn main() !void {...@@ -271,8 +274,8 @@ pub fn main() !void {
271 }274 }
272275
273 {276 {
274 const abilist_txt_path = try fs.path.join(allocator, [_][]const u8{ glibc_out_dir, "abi.txt" });277 const abilist_txt_path = try fs.path.join(allocator, &[_][]const u8{ glibc_out_dir, "abi.txt" });
275 const abilist_txt_file = try fs.File.openWrite(abilist_txt_path);278 const abilist_txt_file = try fs.cwd().createFile(abilist_txt_path, .{});
276 defer abilist_txt_file.close();279 defer abilist_txt_file.close();
277 var buffered = std.io.BufferedOutStream(fs.File.WriteError).init(&abilist_txt_file.outStream().stream);280 var buffered = std.io.BufferedOutStream(fs.File.WriteError).init(&abilist_txt_file.outStream().stream);
278 const abilist_txt = &buffered.stream;281 const abilist_txt = &buffered.stream;
...@@ -282,7 +285,7 @@ pub fn main() !void {...@@ -282,7 +285,7 @@ pub fn main() !void {
282 const fn_vers_list = &target_functions.get(@ptrToInt(abi_list)).?.value.fn_vers_list;285 const fn_vers_list = &target_functions.get(@ptrToInt(abi_list)).?.value.fn_vers_list;
283 for (abi_list.targets) |target, it_i| {286 for (abi_list.targets) |target, it_i| {
284 if (it_i != 0) try abilist_txt.writeByte(' ');287 if (it_i != 0) try abilist_txt.writeByte(' ');
285 try abilist_txt.print("{}-linux-{}", .{@tagName(target.arch), @tagName(target.abi)});288 try abilist_txt.print("{}-linux-{}", .{ @tagName(target.arch), @tagName(target.abi) });
286 }289 }
287 try abilist_txt.writeByte('\n');290 try abilist_txt.writeByte('\n');
288 // next, each line implicitly corresponds to a function291 // next, each line implicitly corresponds to a function
...@@ -304,7 +307,7 @@ pub fn main() !void {...@@ -304,7 +307,7 @@ pub fn main() !void {
304}307}
305308
306pub fn strCmpLessThan(a: []const u8, b: []const u8) bool {309pub fn strCmpLessThan(a: []const u8, b: []const u8) bool {
307 return std.mem.compare(u8, a, b) == .LessThan;310 return std.mem.order(u8, a, b) == .lt;
308}311}
309312
310pub fn versionLessThan(a: []const u8, b: []const u8) bool {313pub fn versionLessThan(a: []const u8, b: []const u8) bool {