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
2735273529
2736273629
2737273729
273841
2738273929
2739274040
2740274129
......@@ -3420,22 +3421,22 @@ aarch64-linux-gnu aarch64_be-linux-gnu
3420342129
3421342229
3422342329
342335
342435
342537
342637
342737
342837
342937
343035
343135
343235
343337
343437
343537
343637
343737
343835
342435 41
342535 41
342637 41
342737 41
342837 41
342937 41
343037 41
343135 41
343235 41
343335 41
343437 41
343537 41
343637 41
343737 41
343837 41
343935 41
3439344029
3440344129
3441344229
......@@ -4240,7 +4241,7 @@ s390x-linux-gnu
424042415
424142425
424242435
4243
424411
4244424527
42454246
4246424727
......@@ -6461,6 +6462,7 @@ s390x-linux-gnu
646164625
646264635
646364645
646541
646464665 13
6465646740
646664685 13
......@@ -7146,22 +7148,22 @@ s390x-linux-gnu
714671485
714771495
7148715012
714935
715035
715137
715237
715337
715437
715537
715635
715735
715835
715937
716037
716137
716237
716337
716435
715135 41
715235 41
715337 41
715437 41
715537 41
715637 41
715737 41
715835 41
715935 41
716035 41
716137 41
716237 41
716337 41
716437 41
716537 41
716635 41
716571675
7166716812
716771695
......@@ -10187,6 +10189,7 @@ arm-linux-gnueabi armeb-linux-gnueabi arm-linux-gnueabihf armeb-linux-gnueabihf
101871018916
101881019016
101891019116
1019241
101901019316
101911019440
101921019516
......@@ -10872,22 +10875,22 @@ arm-linux-gnueabi armeb-linux-gnueabi arm-linux-gnueabihf armeb-linux-gnueabihf
108721087516
108731087616
108741087716
1087535
1087635
1087835 41
1087935 41
1087710880
1087837
1087937
1088037
1088137 41
1088237 41
1088337 41
1088110884
1088235
1088335
1088435
1088535 41
1088635 41
1088735 41
1088510888
1088637
1088737
1088837
1088937 41
1089037 41
1089137 41
1088910892
1089035
1089335 41
108911089416
108921089516
108931089616
......@@ -11692,7 +11695,7 @@ sparc-linux-gnu sparcel-linux-gnu
11692116951
11693116960
11694116970
116953
116983 11
116961169927
1169711700
116981170127
......@@ -13913,6 +13916,7 @@ sparc-linux-gnu sparcel-linux-gnu
13913139165
13914139175
13915139180
1391941
13916139200 13
139171392140
13918139220 13
......@@ -14598,22 +14602,22 @@ sparc-linux-gnu sparcel-linux-gnu
14598146020
14599146030
146001460412
1460135
1460235
1460337
1460437
1460537
1460637
1460737
1460835
1460935
1461035
1461137
1461237
1461337
1461437
1461537
1461635
1460535 41
1460635 41
1460737 41
1460837 41
1460937 41
1461037 41
1461137 41
1461235 41
1461335 41
1461435 41
1461537 41
1461637 41
1461737 41
1461837 41
1461937 41
1462035 41
14617146210
146181462212
14619146230
......@@ -15418,7 +15422,7 @@ sparcv9-linux-gnu
15418154225
15419154235
15420154245
15421
1542511
154221542627
1542315427
154241542827
......@@ -17639,6 +17643,7 @@ sparcv9-linux-gnu
17639176435
17640176445
17641176455
1764641
17642176475 13
176431764840
17644176495 13
......@@ -18324,22 +18329,22 @@ sparcv9-linux-gnu
18324183295
18325183305
183261833112
1832735
1832835
1832937
1833037
1833137
1833237
1833337
1833435
1833535
1833635
1833737
1833837
1833937
1834037
1834137
1834235
1833235 41
1833335 41
1833437 41
1833537 41
1833637 41
1833737 41
1833837 41
1833935 41
1834035 41
1834135 41
1834237 41
1834337 41
1834437 41
1834537 41
1834637 41
1834735 41
18343183485
183441834912
18345183505
......@@ -19144,7 +19149,7 @@ mips64el-linux-gnuabi64 mips64-linux-gnuabi64
19144191495
19145191500
19146191510
19147
1915211
191481915327
1914919154
191501915527
......@@ -21365,6 +21370,7 @@ mips64el-linux-gnuabi64 mips64-linux-gnuabi64
21365213705
21366213715
21367213720
2137341
21368213740 13
213692137540
21370213760 13
......@@ -22050,22 +22056,22 @@ mips64el-linux-gnuabi64 mips64-linux-gnuabi64
22050220560
22051220570
220522205812
2205335
2205435
2205537
2205637
2205737
2205837
2205937
2206035
2206135
2206235
2206337
2206437
2206537
2206637
2206737
2206835
2205935 41
2206035 41
2206137 41
2206237 41
2206337 41
2206437 41
2206537 41
2206635 41
2206735 41
2206835 41
2206937 41
2207037 41
2207137 41
2207237 41
2207337 41
2207435 41
22069220750
220702207612
22071220770
......@@ -22870,7 +22876,7 @@ mips64el-linux-gnuabin32 mips64-linux-gnuabin32
22870228765
22871228770
22872228780
22873
2287911
228742288027
2287522881
228762288227
......@@ -25091,6 +25097,7 @@ mips64el-linux-gnuabin32 mips64-linux-gnuabin32
25091250975
25092250985
25093250990
2510041
25094251010 13
250952510240
25096251030 13
......@@ -25776,22 +25783,22 @@ mips64el-linux-gnuabin32 mips64-linux-gnuabin32
25776257830
25777257840
257782578512
2577935
2578035
2578137
2578237
2578337
2578437
2578537
2578635
2578735
2578835
2578937
2579037
2579137
2579237
2579337
2579435
2578635 41
2578735 41
2578837 41
2578937 41
2579037 41
2579137 41
2579237 41
2579335 41
2579435 41
2579535 41
2579637 41
2579737 41
2579837 41
2579937 41
2580037 41
2580135 41
25795258020
257962580312
25797258040
......@@ -26596,7 +26603,7 @@ mipsel-linux-gnueabihf mips-linux-gnueabihf
26596266035
26597266040
26598266050
26599
2660611
266002660727
2660126608
266022660927
......@@ -28817,6 +28824,7 @@ mipsel-linux-gnueabihf mips-linux-gnueabihf
28817288245
28818288255
28819288260
2882741
28820288280 13
288212882940
28822288300 13
......@@ -29502,22 +29510,22 @@ mipsel-linux-gnueabihf mips-linux-gnueabihf
29502295100
29503295110
295042951212
2950535
2950635
2951335 41
2951435 41
2950729515
2950837
2950937
2951037
2951637 41
2951737 41
2951837 41
2951129519
2951235
2951335
2951435
2952035 41
2952135 41
2952235 41
2951529523
2951637
2951737
2951837
2952437 41
2952537 41
2952637 41
2951929527
2952035
2952835 41
29521295290
295222953012
29523295310
......@@ -30322,7 +30330,7 @@ mipsel-linux-gnueabi mips-linux-gnueabi
30322303305
30323303310
30324303320
30325
3033311
303263033427
3032730335
303283033627
......@@ -32543,6 +32551,7 @@ mipsel-linux-gnueabi mips-linux-gnueabi
32543325515
32544325525
32545325530
3255441
32546325550 13
325473255640
32548325570 13
......@@ -33228,22 +33237,22 @@ mipsel-linux-gnueabi mips-linux-gnueabi
33228332370
33229332380
332303323912
3323135
3323235
3324035 41
3324135 41
3323333242
3323437
3323537
3323637
3324337 41
3324437 41
3324537 41
3323733246
3323835
3323935
3324035
3324735 41
3324835 41
3324935 41
3324133250
3324237
3324337
3324437
3325137 41
3325237 41
3325337 41
3324533254
3324635
3325535 41
33247332560
332483325712
33249332580
......@@ -34048,7 +34057,7 @@ x86_64-linux-gnu
340483405710
340493405810
340503405910
34051
3406011
340523406127
340533406236
340543406327
......@@ -36269,6 +36278,7 @@ x86_64-linux-gnu
362693627810
362703627910
362713628010
3628141
362723628210 13
362733628340
362743628410 13
......@@ -36954,22 +36964,22 @@ x86_64-linux-gnu
369543696410
369553696510
369563696612
3695735
3695835
3695936
3696037
3696137
3696237
3696337
3696435
3696535
3696635
3696736
3696837
3696937
3697037
3697137
3697235
3696735 41
3696835 41
3696936 41
3697037 41
3697137 41
3697237 41
3697337 41
3697435 41
3697535 41
3697635 41
3697736 41
3697837 41
3697937 41
3698037 41
3698137 41
3698235 41
369733698310
369743698412
369753698510
......@@ -38600,11 +38610,11 @@ x86_64-linux-gnux32
386003861028
386013861128
386023861228
3860329 28
3860429 28
3860529 28
3860629 28
3860729 28
3861328 29
3861428 29
3861528 29
3861628 29
3861728 29
386083861828
386093861928
386103862028
......@@ -39995,6 +40005,7 @@ x86_64-linux-gnux32
399954000528
399964000628
399974000728
4000841
399984000928
399994001040
400004001128
......@@ -40680,22 +40691,22 @@ x86_64-linux-gnux32
406804069128
406814069228
406824069328
4068335
4068435
4068536
4068637
4068737
4068837
4068937
4069035
4069135
4069235
4069336
4069437
4069537
4069637
4069737
4069835
4069435 41
4069535 41
4069636 41
4069737 41
4069837 41
4069937 41
4070037 41
4070135 41
4070235 41
4070335 41
4070436 41
4070537 41
4070637 41
4070737 41
4070837 41
4070935 41
406994071028
407004071128
407014071228
......@@ -41500,7 +41511,7 @@ i386-linux-gnu
41500415111
41501415120
41502415130
415033
415143 11
415044151527
415054151636
415064151727
......@@ -43721,6 +43732,7 @@ i386-linux-gnu
43721437325
43722437335
43723437340
4373541
43724437360 13
437254373740
43726437380 13
......@@ -44406,22 +44418,22 @@ i386-linux-gnu
44406444180
44407444190
444084442012
4440935
4441035
4441136
4441237
4441337
4441437
4441537
4441635
4441735
4441835
4441936
4442037
4442137
4442237
4442337
4442435
4442135 41
4442235 41
4442336 41
4442437 41
4442537 41
4442637 41
4442737 41
4442835 41
4442935 41
4443035 41
4443136 41
4443237 41
4443337 41
4443437 41
4443537 41
4443635 41
44425444370
444264443812
44427444390
......@@ -47447,6 +47459,7 @@ powerpc64le-linux-gnu
474474745929
474484746029
474494746129
4746241
474504746329
474514746440
474524746529
......@@ -48132,22 +48145,22 @@ powerpc64le-linux-gnu
481324814529
481334814629
481344814729
4813535
4813635
4813736
4813837
4813937
4814037
4814137
4814235
4814335
4814435
4814536
4814637
4814737
4814837
4814937
4815035
4814835 41
4814935 41
4815036 41
4815137 41
4815237 41
4815337 41
4815437 41
4815535 41
4815635 41
4815735 41
4815836 41
4815937 41
4816037 41
4816137 41
4816237 41
4816335 41
481514816429
481524816529
481534816629
......@@ -51173,6 +51186,7 @@ powerpc64-linux-gnu
511735118612
511745118712
511755118812
5118941
511765119012 13
511775119140
511785119212 13
......@@ -51858,22 +51872,22 @@ powerpc64-linux-gnu
518585187212
518595187312
518605187412
5186135
5186235
5187535 41
5187635 41
5186351877
5186437
5186537
5186637
5187837 41
5187937 41
5188037 41
5186751881
5186835
5186935
5187035
5188235 41
5188335 41
5188435 41
5187151885
5187237
5187337
5187437
5188637 41
5188737 41
5188837 41
5187551889
5187635
5189035 41
518775189112
518785189212
518795189312
......@@ -52678,7 +52692,7 @@ powerpc-linux-gnueabi powerpc-linux-gnueabihf
52678526921
52679526930
52680526940
526813
526953 11
526825269627
5268352697
526845269827
......@@ -54899,6 +54913,7 @@ powerpc-linux-gnueabi powerpc-linux-gnueabihf
54899549135
54900549145
54901549150
5491641
54902549170 13
549035491840
54904549190 13
......@@ -55584,22 +55599,22 @@ powerpc-linux-gnueabi powerpc-linux-gnueabihf
55584555990
55585556000
555865560112
5558735
5558835
5560235 41
5560335 41
5558955604
5559037
5559137
5559237
5560537 41
5560637 41
5560737 41
5559355608
5559435
5559535
5559635
5560935 41
5561035 41
5561135 41
5559755612
5559837
5559937
5560037
5561337 41
5561437 41
5561537 41
5560155616
5560235
5561735 41
55603556180
556045561912
55605556200
lib/libc/glibc/fns.txt+1
......@@ -2734,6 +2734,7 @@ pthread_barrierattr_getpshared pthread
27342734pthread_barrierattr_init pthread
27352735pthread_barrierattr_setpshared pthread
27362736pthread_cancel pthread
2737pthread_clockjoin_np pthread
27372738pthread_cond_broadcast c
27382739pthread_cond_clockwait pthread
27392740pthread_cond_destroy c
lib/libc/glibc/vers.txt+1
......@@ -39,3 +39,4 @@ GLIBC_2.27
3939GLIBC_2.28
4040GLIBC_2.29
4141GLIBC_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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _FCNTL_H
2121# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FENV_H
2020# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -73,7 +73,7 @@ fenv_t;
7373# define FE_NOMASK_ENV ((const fenv_t *) -2)
7474#endif
7575
76#if __GLIBC_USE (IEC_60559_BFP_EXT)
76#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
7777/* Type representing floating-point control modes. */
7878typedef unsigned int femode_t;
7979
lib/libc/include/aarch64-linux-gnu/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/aarch64-linux-gnu/bits/fp-fast.h+2-2
......@@ -1,5 +1,5 @@
11/* Define FP_FAST_* macros. AArch64 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined (_SYS_AUXV_H)
2020# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _LINK_H
2020# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020/* The kernel header pollutes the namespace with the NR_OPEN symbol
2121 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,8 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,12 +14,12 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_PTHREADTYPES_ARCH_H
2020#define _BITS_PTHREADTYPES_ARCH_H 1
2121
22#include <endian.h>
22#include <bits/endian.h>
2323
2424#ifdef __ILP32__
2525# define __SIZEOF_PTHREAD_ATTR_T 32
......@@ -41,31 +41,7 @@
4141#define __SIZEOF_PTHREAD_COND_T 48
4242#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
5144#define __LOCK_ALIGNMENT
5245#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
7147#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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SEMAPHORE_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SETJMP_H
2020#define _BITS_SETJMP_H 1
lib/libc/include/aarch64-linux-gnu/bits/sigstack.h+2-2
......@@ -1,5 +1,5 @@
11/* sigstack, sigaltstack definitions.
2 Copyright (C) 2015-2019 Free Software Foundation, Inc.
2 Copyright (C) 2015-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGSTACK_H
2020#define _BITS_SIGSTACK_H 1
lib/libc/include/aarch64-linux-gnu/bits/stat.h+7-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined _SYS_STAT_H && !defined _FCNTL_H
2020# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
......@@ -23,7 +23,7 @@
2323#ifndef _BITS_STAT_H
2424#define _BITS_STAT_H 1
2525
26#include <endian.h>
26#include <bits/endian.h>
2727#include <bits/wordsize.h>
2828
2929/* 64-bit libc uses the kernel's 'struct stat', accessed via the
......@@ -42,7 +42,10 @@
4242
4343#if defined __USE_FILE_OFFSET64
4444# define __field64(type, type64, name) type64 name
45#elif __WORDSIZE == 64
45#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
4649# define __field64(type, type64, name) type name
4750#elif __BYTE_ORDER == __LITTLE_ENDIAN
4851# define __field64(type, type64, name) \
lib/libc/include/aarch64-linux-gnu/bits/statfs.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
44
......@@ -14,13 +14,13 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_STATFS_H
2020# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
2121#endif
2222
23#include <endian.h>
23#include <bits/endian.h>
2424#include <bits/types.h>
2525#include <bits/wordsize.h>
2626
......@@ -34,7 +34,7 @@
3434
3535#if defined __USE_FILE_OFFSET64
3636# define __field64(type, type64, name) type64 name
37#elif __WORDSIZE == 64
37#elif __WORDSIZE == 64 || __STATFS_MATCHES_STATFS64
3838# define __field64(type, type64, name) type name
3939#elif __BYTE_ORDER == __LITTLE_ENDIAN
4040# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _BITS_TYPES_H
2121# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
......@@ -73,10 +73,14 @@
7373
7474/* And for __rlim_t and __rlim64_t. */
7575# 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
7679#else
7780# define __RLIM_T_MATCHES_RLIM64_T 0
78#endif
7981
82# define __STATFS_MATCHES_STATFS64 0
83#endif
8084/* Number of descriptors that can fit in an `fd_set'. */
8185#define __FD_SETSIZE 1024
8286
lib/libc/include/aarch64-linux-gnu/bits/wordsize.h+2-2
......@@ -1,6 +1,6 @@
11/* 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.
44 This file is part of the GNU C Library.
55
66 The GNU C Library is free software; you can redistribute it and/or
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifdef __LP64__
2121# define __WORDSIZE 64
lib/libc/include/aarch64-linux-gnu/fpu_control.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _AARCH64_FPU_CONTROL_H
2020#define _AARCH64_FPU_CONTROL_H
lib/libc/include/aarch64-linux-gnu/ieee754.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,14 +13,14 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#include <features.h>
2222
23#include <endian.h>
23#include <bits/endian.h>
2424
2525__BEGIN_DECLS
2626
lib/libc/include/aarch64-linux-gnu/sys/elf.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_ELF_H
2020#define _SYS_ELF_H 1
lib/libc/include/aarch64-linux-gnu/sys/ptrace.h+7-3
......@@ -1,5 +1,5 @@
11/* `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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PTRACE_H
2121#define _SYS_PTRACE_H 1
......@@ -136,8 +136,12 @@ enum __ptrace_request
136136#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
137137
138138 /* Get seccomp BPF filter metadata. */
139 PTRACE_SECCOMP_GET_METADATA = 0x420d
139 PTRACE_SECCOMP_GET_METADATA = 0x420d,
140140#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
141145};
142146
143147
lib/libc/include/aarch64-linux-gnu/sys/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* 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/* Copyright (C) 2009-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2009-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_USER_H
2020#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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _FCNTL_H
2121# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FENV_H
2020# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -73,7 +73,7 @@ fenv_t;
7373# define FE_NOMASK_ENV ((const fenv_t *) -2)
7474#endif
7575
76#if __GLIBC_USE (IEC_60559_BFP_EXT)
76#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
7777/* Type representing floating-point control modes. */
7878typedef unsigned int femode_t;
7979
lib/libc/include/aarch64_be-linux-gnu/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/aarch64_be-linux-gnu/bits/fp-fast.h+2-2
......@@ -1,5 +1,5 @@
11/* Define FP_FAST_* macros. AArch64 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined (_SYS_AUXV_H)
2020# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _LINK_H
2020# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020/* The kernel header pollutes the namespace with the NR_OPEN symbol
2121 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,8 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,12 +14,12 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_PTHREADTYPES_ARCH_H
2020#define _BITS_PTHREADTYPES_ARCH_H 1
2121
22#include <endian.h>
22#include <bits/endian.h>
2323
2424#ifdef __ILP32__
2525# define __SIZEOF_PTHREAD_ATTR_T 32
......@@ -41,31 +41,7 @@
4141#define __SIZEOF_PTHREAD_COND_T 48
4242#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
5144#define __LOCK_ALIGNMENT
5245#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
7147#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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SEMAPHORE_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SETJMP_H
2020#define _BITS_SETJMP_H 1
lib/libc/include/aarch64_be-linux-gnu/bits/sigstack.h+2-2
......@@ -1,5 +1,5 @@
11/* sigstack, sigaltstack definitions.
2 Copyright (C) 2015-2019 Free Software Foundation, Inc.
2 Copyright (C) 2015-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGSTACK_H
2020#define _BITS_SIGSTACK_H 1
lib/libc/include/aarch64_be-linux-gnu/bits/stat.h+7-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined _SYS_STAT_H && !defined _FCNTL_H
2020# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
......@@ -23,7 +23,7 @@
2323#ifndef _BITS_STAT_H
2424#define _BITS_STAT_H 1
2525
26#include <endian.h>
26#include <bits/endian.h>
2727#include <bits/wordsize.h>
2828
2929/* 64-bit libc uses the kernel's 'struct stat', accessed via the
......@@ -42,7 +42,10 @@
4242
4343#if defined __USE_FILE_OFFSET64
4444# define __field64(type, type64, name) type64 name
45#elif __WORDSIZE == 64
45#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
4649# define __field64(type, type64, name) type name
4750#elif __BYTE_ORDER == __LITTLE_ENDIAN
4851# define __field64(type, type64, name) \
lib/libc/include/aarch64_be-linux-gnu/bits/statfs.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
44
......@@ -14,13 +14,13 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_STATFS_H
2020# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
2121#endif
2222
23#include <endian.h>
23#include <bits/endian.h>
2424#include <bits/types.h>
2525#include <bits/wordsize.h>
2626
......@@ -34,7 +34,7 @@
3434
3535#if defined __USE_FILE_OFFSET64
3636# define __field64(type, type64, name) type64 name
37#elif __WORDSIZE == 64
37#elif __WORDSIZE == 64 || __STATFS_MATCHES_STATFS64
3838# define __field64(type, type64, name) type name
3939#elif __BYTE_ORDER == __LITTLE_ENDIAN
4040# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _BITS_TYPES_H
2121# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
......@@ -73,10 +73,14 @@
7373
7474/* And for __rlim_t and __rlim64_t. */
7575# 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
7679#else
7780# define __RLIM_T_MATCHES_RLIM64_T 0
78#endif
7981
82# define __STATFS_MATCHES_STATFS64 0
83#endif
8084/* Number of descriptors that can fit in an `fd_set'. */
8185#define __FD_SETSIZE 1024
8286
lib/libc/include/aarch64_be-linux-gnu/bits/wordsize.h+2-2
......@@ -1,6 +1,6 @@
11/* 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.
44 This file is part of the GNU C Library.
55
66 The GNU C Library is free software; you can redistribute it and/or
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifdef __LP64__
2121# define __WORDSIZE 64
lib/libc/include/aarch64_be-linux-gnu/fpu_control.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _AARCH64_FPU_CONTROL_H
2020#define _AARCH64_FPU_CONTROL_H
lib/libc/include/aarch64_be-linux-gnu/ieee754.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,14 +13,14 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#include <features.h>
2222
23#include <endian.h>
23#include <bits/endian.h>
2424
2525__BEGIN_DECLS
2626
lib/libc/include/aarch64_be-linux-gnu/sys/elf.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_ELF_H
2020#define _SYS_ELF_H 1
lib/libc/include/aarch64_be-linux-gnu/sys/ptrace.h+7-3
......@@ -1,5 +1,5 @@
11/* `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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PTRACE_H
2121#define _SYS_PTRACE_H 1
......@@ -136,8 +136,12 @@ enum __ptrace_request
136136#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
137137
138138 /* Get seccomp BPF filter metadata. */
139 PTRACE_SECCOMP_GET_METADATA = 0x420d
139 PTRACE_SECCOMP_GET_METADATA = 0x420d,
140140#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
141145};
142146
143147
lib/libc/include/aarch64_be-linux-gnu/sys/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* 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/* Copyright (C) 2009-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2009-2020 Free Software Foundation, Inc.
22
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_USER_H
2020#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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -81,7 +81,7 @@ fenv_t;
8181# define FE_NOMASK_ENV ((const fenv_t *) -2)
8282#endif
8383
84#if __GLIBC_USE (IEC_60559_BFP_EXT)
84#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
8585/* Type representing floating-point control modes. */
8686typedef unsigned int femode_t;
8787
lib/libc/include/arm-linux-gnueabi/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* Defined to 1 if the current compiler invocation provides a
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)
2020# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _LINK_H
1919# 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 @@
11/* Properties of long double type.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* This header is included by <sys/cdefs.h>.
2020
......@@ -36,4 +36,5 @@
3636 ABI-compatible with double. */
3737#ifndef __NO_LONG_DOUBLE_MATH
3838# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SEMAPHORE_H
1919# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* 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 @@
11/* Define SHMLBA. ARM version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#define __WORDSIZE 32
1919#define __WORDSIZE_TIME64_COMPAT32 0
lib/libc/include/arm-linux-gnueabi/fpu_control.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FPU_CONTROL_H
2020#define _FPU_CONTROL_H
lib/libc/include/arm-linux-gnueabi/sys/ptrace.h+6-2
......@@ -1,5 +1,5 @@
11/* `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
44 This file is part of the GNU C Library.
55
......@@ -196,8 +196,12 @@ enum __ptrace_request
196196#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
197197
198198 /* Get seccomp BPF filter metadata. */
199 PTRACE_SECCOMP_GET_METADATA = 0x420d
199 PTRACE_SECCOMP_GET_METADATA = 0x420d,
200200#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
201205};
202206
203207
lib/libc/include/arm-linux-gnueabi/sys/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* 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/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_USER_H
1919#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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -81,7 +81,7 @@ fenv_t;
8181# define FE_NOMASK_ENV ((const fenv_t *) -2)
8282#endif
8383
84#if __GLIBC_USE (IEC_60559_BFP_EXT)
84#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
8585/* Type representing floating-point control modes. */
8686typedef unsigned int femode_t;
8787
lib/libc/include/arm-linux-gnueabihf/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* Defined to 1 if the current compiler invocation provides a
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)
2020# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _LINK_H
1919# 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 @@
11/* Properties of long double type.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* This header is included by <sys/cdefs.h>.
2020
......@@ -36,4 +36,5 @@
3636 ABI-compatible with double. */
3737#ifndef __NO_LONG_DOUBLE_MATH
3838# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SEMAPHORE_H
1919# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* 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 @@
11/* Define SHMLBA. ARM version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#define __WORDSIZE 32
1919#define __WORDSIZE_TIME64_COMPAT32 0
lib/libc/include/arm-linux-gnueabihf/fpu_control.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FPU_CONTROL_H
2020#define _FPU_CONTROL_H
lib/libc/include/arm-linux-gnueabihf/sys/ptrace.h+6-2
......@@ -1,5 +1,5 @@
11/* `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
44 This file is part of the GNU C Library.
55
......@@ -196,8 +196,12 @@ enum __ptrace_request
196196#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
197197
198198 /* Get seccomp BPF filter metadata. */
199 PTRACE_SECCOMP_GET_METADATA = 0x420d
199 PTRACE_SECCOMP_GET_METADATA = 0x420d,
200200#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
201205};
202206
203207
lib/libc/include/arm-linux-gnueabihf/sys/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* 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/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_USER_H
1919#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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -81,7 +81,7 @@ fenv_t;
8181# define FE_NOMASK_ENV ((const fenv_t *) -2)
8282#endif
8383
84#if __GLIBC_USE (IEC_60559_BFP_EXT)
84#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
8585/* Type representing floating-point control modes. */
8686typedef unsigned int femode_t;
8787
lib/libc/include/armeb-linux-gnueabi/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* Defined to 1 if the current compiler invocation provides a
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)
2020# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _LINK_H
1919# 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 @@
11/* Properties of long double type.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* This header is included by <sys/cdefs.h>.
2020
......@@ -36,4 +36,5 @@
3636 ABI-compatible with double. */
3737#ifndef __NO_LONG_DOUBLE_MATH
3838# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SEMAPHORE_H
1919# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* 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 @@
11/* Define SHMLBA. ARM version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#define __WORDSIZE 32
1919#define __WORDSIZE_TIME64_COMPAT32 0
lib/libc/include/armeb-linux-gnueabi/fpu_control.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FPU_CONTROL_H
2020#define _FPU_CONTROL_H
lib/libc/include/armeb-linux-gnueabi/sys/ptrace.h+6-2
......@@ -1,5 +1,5 @@
11/* `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
44 This file is part of the GNU C Library.
55
......@@ -196,8 +196,12 @@ enum __ptrace_request
196196#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
197197
198198 /* Get seccomp BPF filter metadata. */
199 PTRACE_SECCOMP_GET_METADATA = 0x420d
199 PTRACE_SECCOMP_GET_METADATA = 0x420d,
200200#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
201205};
202206
203207
lib/libc/include/armeb-linux-gnueabi/sys/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* 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/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_USER_H
1919#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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -81,7 +81,7 @@ fenv_t;
8181# define FE_NOMASK_ENV ((const fenv_t *) -2)
8282#endif
8383
84#if __GLIBC_USE (IEC_60559_BFP_EXT)
84#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
8585/* Type representing floating-point control modes. */
8686typedef unsigned int femode_t;
8787
lib/libc/include/armeb-linux-gnueabihf/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* Defined to 1 if the current compiler invocation provides a
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H)
2020# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _LINK_H
1919# 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 @@
11/* Properties of long double type.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* This header is included by <sys/cdefs.h>.
2020
......@@ -36,4 +36,5 @@
3636 ABI-compatible with double. */
3737#ifndef __NO_LONG_DOUBLE_MATH
3838# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SEMAPHORE_H
1919# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* 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 @@
11/* Define SHMLBA. ARM version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#define __WORDSIZE 32
1919#define __WORDSIZE_TIME64_COMPAT32 0
lib/libc/include/armeb-linux-gnueabihf/fpu_control.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FPU_CONTROL_H
2020#define _FPU_CONTROL_H
lib/libc/include/armeb-linux-gnueabihf/sys/ptrace.h+6-2
......@@ -1,5 +1,5 @@
11/* `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
44 This file is part of the GNU C Library.
55
......@@ -196,8 +196,12 @@ enum __ptrace_request
196196#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
197197
198198 /* Get seccomp BPF filter metadata. */
199 PTRACE_SECCOMP_GET_METADATA = 0x420d
199 PTRACE_SECCOMP_GET_METADATA = 0x420d,
200200#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
201205};
202206
203207
lib/libc/include/armeb-linux-gnueabihf/sys/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* 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/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_USER_H
1919#define _SYS_USER_H 1
lib/libc/include/generic-glibc/aio.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * 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/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _ALIASES_H
1919#define _ALIASES_H 1
lib/libc/include/generic-glibc/alloca.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _ALLOCA_H
1919#define _ALLOCA_H 1
lib/libc/include/generic-glibc/ar.h+2-2
......@@ -1,5 +1,5 @@
11/* Header describing `ar' archive file format.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _AR_H
2020#define _AR_H 1
lib/libc/include/generic-glibc/argp.h+2-2
......@@ -1,5 +1,5 @@
11/* Hierarchial argument parsing, layered over getopt.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44 Written by Miles Bader <miles@gnu.ai.mit.edu>.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _ARGP_H
2121#define _ARGP_H
lib/libc/include/generic-glibc/argz.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _ARGZ_H
2020#define _ARGZ_H 1
lib/libc/include/generic-glibc/arpa/inet.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _ARPA_INET_H
1919#define _ARPA_INET_H 1
lib/libc/include/generic-glibc/assert.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.2 Diagnostics <assert.h>
lib/libc/include/generic-glibc/bits/argp-ldbl.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _ARGP_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined _BYTESWAP_H && !defined _NETINET_IN_H && !defined _ENDIAN_H
2020# 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 @@
11/* Prototype declarations for complex math functions;
22 helper file for <complex.h>.
3 Copyright (C) 1997-2019 Free Software Foundation, Inc.
3 Copyright (C) 1997-2020 Free Software Foundation, Inc.
44 This file is part of the GNU C Library.
55
66 The GNU C Library is free software; you can redistribute it and/or
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020/* NOTE: Because of the special way this file is used by <complex.h>, this
2121 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 @@
11/* `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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _UNISTD_H
2020# 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 @@
11/* Definition of the cpu_set_t structure used by the POSIX 1003.1b-1993
22 scheduling interface.
3 Copyright (C) 1996-2019 Free Software Foundation, Inc.
3 Copyright (C) 1996-2020 Free Software Foundation, Inc.
44 This file is part of the GNU C Library.
55
66 The GNU C Library is free software; you can redistribute it and/or
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _BITS_CPU_SET_H
2121#define _BITS_CPU_SET_H 1
lib/libc/include/generic-glibc/bits/dirent.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _DIRENT_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _DIRENT_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _DLFCN_H
2020# 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/* The MIPS architecture has selectable endianness.
2 It exists in both little and big endian flavours and we
3 want to be able to share the installed header files between
4 both, so we define __BYTE_ORDER based on GCC's predefines. */
1/* Endian macros for string.h functions
2 Copyright (C) 1992-2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
54
6#ifndef _ENDIAN_H
7# error "Never use <bits/endian.h> directly; include <endian.h> instead."
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_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
841#endif
942
10#ifdef __MIPSEB
11# define __BYTE_ORDER __BIG_ENDIAN
43#if __BYTE_ORDER == __LITTLE_ENDIAN
44# define __LONG_LONG_PAIR(HI, LO) LO, HI
45#elif __BYTE_ORDER == __BIG_ENDIAN
46# define __LONG_LONG_PAIR(HI, LO) HI, LO
1247#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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _UNISTD_H
1919# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EPOLL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _ERR_H
2020# 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 @@
11/* Error constants. Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_ERRNO_H
2020#define _BITS_ERRNO_H 1
lib/libc/include/generic-glibc/bits/error-ldbl.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _ERROR_H
2020# 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 @@
11/* Specializations for error functions.
2 Copyright (C) 2007-2019 Free Software Foundation, Inc.
2 Copyright (C) 2007-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _ERROR_H
2020# 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/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EVENTFD_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# error "Never use <bits/fcntl-linux.h> directly; include <fcntl.h> instead."
......@@ -334,6 +334,11 @@ struct f_owner_ex
334334# define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
335335 the range after performing the
336336 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
338343/* Flags for SPLICE and VMSPLICE. */
339344# define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
lib/libc/include/generic-glibc/bits/fcntl.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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 @@
11/* Checking macros for fcntl functions.
2 Copyright (C) 2007-2019 Free Software Foundation, Inc.
2 Copyright (C) 2007-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -104,7 +104,7 @@ fenv_t;
104104# define FE_NOMASK_ENV ((const fenv_t *) -2)
105105#endif
106106
107#if __GLIBC_USE (IEC_60559_BFP_EXT)
107#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
108108/* Type representing floating-point control modes. */
109109typedef unsigned int femode_t;
110110
lib/libc/include/generic-glibc/bits/floatn-common.h+2-2
......@@ -1,6 +1,6 @@
11/* Macros to control TS 18661-3 glibc features where the same
22 definitions are appropriate for all platforms.
3 Copyright (C) 2017-2019 Free Software Foundation, Inc.
3 Copyright (C) 2017-2020 Free Software Foundation, Inc.
44 This file is part of the GNU C Library.
55
66 The GNU C Library is free software; you can redistribute it and/or
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _BITS_FLOATN_COMMON_H
2121#define _BITS_FLOATN_COMMON_H
lib/libc/include/generic-glibc/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/generic-glibc/bits/flt-eval-method.h+2-2
......@@ -1,5 +1,5 @@
11/* Define __GLIBC_FLT_EVAL_METHOD.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* Define FP_FAST_* macros.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library and is also part of gnulib.
44 Patches to this file should be submitted to both projects.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _GETOPT_CORE_H
2121#define _GETOPT_CORE_H 1
lib/libc/include/generic-glibc/bits/getopt_ext.h+2-2
......@@ -1,5 +1,5 @@
11/* Declarations for getopt (GNU extensions).
2 Copyright (C) 1989-2019 Free Software Foundation, Inc.
2 Copyright (C) 1989-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library and is also part of gnulib.
44 Patches to this file should be submitted to both projects.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _GETOPT_EXT_H
2121#define _GETOPT_EXT_H 1
lib/libc/include/generic-glibc/bits/getopt_posix.h+2-2
......@@ -1,5 +1,5 @@
11/* Declarations for getopt (POSIX compatibility shim).
2 Copyright (C) 1989-2019 Free Software Foundation, Inc.
2 Copyright (C) 1989-2020 Free Software Foundation, Inc.
33 Unlike the bulk of the getopt implementation, this file is NOT part
44 of gnulib.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _GETOPT_POSIX_H
2121#define _GETOPT_POSIX_H 1
lib/libc/include/generic-glibc/bits/hwcap.h+2-2
......@@ -1,5 +1,5 @@
11/* Defines for bits in AT_HWCAP.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.
2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_AUXV_H
2020# 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/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* Linux version. */
1919
lib/libc/include/generic-glibc/bits/indirect-return.h+2-2
......@@ -1,5 +1,5 @@
11/* Definition of __INDIRECT_RETURN. Generic version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _UCONTEXT_H
2020# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_INOTIFY_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IOCTL_H
2020# 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/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_IOCTL_H
1919# 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/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_IPC_H
1919# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
......@@ -37,19 +37,4 @@
3737/* Special key values. */
3838#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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * Never include <bits/ipctypes.h> directly.
lib/libc/include/generic-glibc/bits/iscanonical.h+2-2
......@@ -1,5 +1,5 @@
11/* Define iscanonical macro.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* This header is internal to glibc and should not be included outside
2020 of glibc headers. Headers including it must define
......@@ -43,22 +43,38 @@
4343#endif
4444
4545/* 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. */
4749#undef __GLIBC_USE_IEC_60559_BFP_EXT
4850#if defined __USE_GNU || defined __STDC_WANT_IEC_60559_BFP_EXT__
4951# define __GLIBC_USE_IEC_60559_BFP_EXT 1
5052#else
5153# define __GLIBC_USE_IEC_60559_BFP_EXT 0
5254#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
5462/* 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. */
5666#undef __GLIBC_USE_IEC_60559_FUNCS_EXT
5767#if defined __USE_GNU || defined __STDC_WANT_IEC_60559_FUNCS_EXT__
5868# define __GLIBC_USE_IEC_60559_FUNCS_EXT 1
5969#else
6070# define __GLIBC_USE_IEC_60559_FUNCS_EXT 0
6171#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
6379/* ISO/IEC TS 18661-3:2015 defines the
6480 __STDC_WANT_IEC_60559_TYPES_EXT__ macro. */
lib/libc/include/generic-glibc/bits/libm-simd-decl-stubs.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _LINK_H
1919# 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 @@
11/* 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 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 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
1919/* The kernel header pollutes the namespace with the NR_OPEN symbol
2020 and defines LINK_MAX although filesystems have different maxima. A
lib/libc/include/generic-glibc/bits/locale.h+2-2
......@@ -1,5 +1,5 @@
11/* Definition of locale category symbol values.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.
2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined _LOCALE_H && !defined _LANGINFO_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,10 +14,11 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#include <sgidefs.h>
2020
2121#if !defined __NO_LONG_DOUBLE_MATH && _MIPS_SIM == _ABIO32
2222# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# error "Never include <bits/math-vector.h> directly;\
lib/libc/include/generic-glibc/bits/mathcalls-helper-functions.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919
2020/* Classify given number. */
lib/libc/include/generic-glibc/bits/mathcalls-narrow.h+2-2
......@@ -1,5 +1,5 @@
11/* Declare functions returning a narrower type.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* NOTE: Because of the special way this file is used by <math.h>, this
2020 file must NOT be protected from multiple inclusion as header files
......@@ -109,7 +109,7 @@ __MATHCALL (log10,, (_Mdouble_ __x));
109109/* Break VALUE into integral and fractional parts. */
110110__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)
113113/* Compute exponent to base ten. */
114114__MATHCALL (exp10,, (_Mdouble_ __x));
115115#endif
......@@ -261,7 +261,7 @@ __MATHCALL (nextafter,, (_Mdouble_ __x, _Mdouble_ __y));
261261__MATHCALL (nexttoward,, (_Mdouble_ __x, long double __y));
262262# endif
263263
264# if __GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN
264# if __GLIBC_USE (IEC_60559_BFP_EXT_C2X) || __MATH_DECLARING_FLOATN
265265/* Return X - epsilon. */
266266__MATHCALL (nextdown,, (_Mdouble_ __x));
267267/* Return X + epsilon. */
......@@ -280,7 +280,7 @@ __MATHCALL (scalbn,, (_Mdouble_ __x, int __n));
280280__MATHDECL (int,ilogb,, (_Mdouble_ __x));
281281#endif
282282
283#if __GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN
283#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X) || __MATH_DECLARING_FLOATN
284284/* Like ilogb, but returning long int. */
285285__MATHDECL (long int, llogb,, (_Mdouble_ __x));
286286#endif
......@@ -335,7 +335,7 @@ __MATHCALLX (fmin,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));
335335__MATHCALL (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z));
336336#endif /* Use ISO C99. */
337337
338#if __GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN
338#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X) || __MATH_DECLARING_FLOATN
339339/* Round X to nearest integer value, rounding halfway cases to even. */
340340__MATHCALLX (roundeven,, (_Mdouble_ __x), (__const__));
341341
......@@ -367,16 +367,20 @@ __MATHCALLX (fmaxmag,, (_Mdouble_ __x, _Mdouble_ __y), (__const__));
367367/* Return value with minimum magnitude. */
368368__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
370375/* Total order operation. */
371__MATHDECL_1 (int, totalorder,, (_Mdouble_ __x, _Mdouble_ __y))
372 __attribute__ ((__const__));
376__MATHDECL_1 (int, totalorder,, (const _Mdouble_ *__x,
377 const _Mdouble_ *__y))
378 __attribute_pure__;
373379
374380/* Total order operation on absolute values. */
375__MATHDECL_1 (int, totalordermag,, (_Mdouble_ __x, _Mdouble_ __y))
376 __attribute__ ((__const__));
377
378/* Canonicalize floating-point representation. */
379__MATHDECL_1 (int, canonicalize,, (_Mdouble_ *__cx, const _Mdouble_ *__x));
381__MATHDECL_1 (int, totalordermag,, (const _Mdouble_ *__x,
382 const _Mdouble_ *__y))
383 __attribute_pure__;
380384
381385/* Get NaN payload. */
382386__MATHCALL (getpayload,, (const _Mdouble_ *__x));
lib/libc/include/generic-glibc/bits/mathdef.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _COMPLEX_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# error "Never use <bits/mman-linux.h> directly; include <sys/mman.h> instead."
......@@ -87,6 +87,8 @@
8787# define MADV_DODUMP 17 /* Clear the MADV_DONTDUMP flag. */
8888# define MADV_WIPEONFORK 18 /* Zero memory on fork, child only. */
8989# define MADV_KEEPONFORK 19 /* Undo MADV_WIPEONFORK. */
90# define MADV_COLD 20 /* Deactivate these pages. */
91# define MADV_PAGEOUT 21 /* Reclaim these pages. */
9092# define MADV_HWPOISON 100 /* Poison a page for testing. */
9193#endif
9294
lib/libc/include/generic-glibc/bits/mman-map-flags-generic.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# 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 @@
11/* -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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MONETARY_H
2020# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _MQUEUE_H
1919# 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 @@
11/* Checking macros for mq functions.
2 Copyright (C) 2007-2019 Free Software Foundation, Inc.
2 Copyright (C) 2007-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MSG_H
2020# 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/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_MSG_H
1919# 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/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NETDB_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PARAM_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_POLL_H
1919# 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 @@
11/* Checking macros for poll functions.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.
2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_POLL_H
2020# 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/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * 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/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * Never include this file directly; include <limits.h> instead.
lib/libc/include/generic-glibc/bits/posix_opt.h+2-2
......@@ -1,5 +1,5 @@
11/* Define POSIX options for Linux.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 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
1919#ifndef _BITS_POSIX_OPT_H
2020#define _BITS_POSIX_OPT_H 1
lib/libc/include/generic-glibc/bits/ppc.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_PPC_H
2020#define _BITS_PPC_H
lib/libc/include/generic-glibc/bits/printf-ldbl.h+2-2
......@@ -1,5 +1,5 @@
11/* -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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _PRINTF_H
2020# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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/* Machine-specific pthread type layouts. MIPS version.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Machine-specific pthread type layouts. Generic version.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
3
34 This file is part of the GNU C Library.
45
56 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,77 +14,32 @@
1314 Lesser General Public License for more details.
1415
1516 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 License along with the GNU C Library; if not, see
1718 <http://www.gnu.org/licenses/>. */
1819
1920#ifndef _BITS_PTHREADTYPES_ARCH_H
2021#define _BITS_PTHREADTYPES_ARCH_H 1
2122
22#include <endian.h>
23#include <bits/wordsize.h>
2324
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
25#if __WORDSIZE == 64
26# define __SIZEOF_PTHREAD_ATTR_T 56
27# define __SIZEOF_PTHREAD_MUTEX_T 40
28# define __SIZEOF_PTHREAD_RWLOCK_T 56
29# define __SIZEOF_PTHREAD_BARRIER_T 32
2930#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
31# define __SIZEOF_PTHREAD_ATTR_T 36
32# define __SIZEOF_PTHREAD_MUTEX_T 24
33# define __SIZEOF_PTHREAD_RWLOCK_T 32
34# define __SIZEOF_PTHREAD_BARRIER_T 20
3435#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/* 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)
36#define __SIZEOF_PTHREAD_MUTEXATTR_T 4
37#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
38#define __SIZEOF_PTHREAD_BARRIERATTR_T 4
39#define __SIZEOF_PTHREAD_COND_T 48
40#define __SIZEOF_PTHREAD_CONDATTR_T 4
4741
4842#define __LOCK_ALIGNMENT
4943#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
8945#endif /* bits/pthreadtypes.h */
\ No newline at end of file
lib/libc/include/generic-glibc/bits/pthreadtypes.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_PTHREADTYPES_COMMON_H
2020# define _BITS_PTHREADTYPES_COMMON_H 1
lib/libc/include/generic-glibc/bits/ptrace-shared.h+49-2
......@@ -1,6 +1,6 @@
11/* `ptrace' debugger support interface. Linux version,
22 not architecture-specific.
3 Copyright (C) 1996-2019 Free Software Foundation, Inc.
3 Copyright (C) 1996-2020 Free Software Foundation, Inc.
44
55 This file is part of the GNU C Library.
66
......@@ -16,7 +16,7 @@
1616
1717 You should have received a copy of the GNU Lesser General Public
1818 License along with the GNU C Library; if not, see
19 <http://www.gnu.org/licenses/>. */
19 <https://www.gnu.org/licenses/>. */
2020
2121#ifndef _SYS_PTRACE_H
2222# error "Never use <bits/ptrace-shared.h> directly; include <sys/ptrace.h> instead."
......@@ -52,6 +52,15 @@ enum __ptrace_eventcodes
5252 PTRACE_EVENT_STOP = 128
5353};
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
5564/* Arguments for PTRACE_PEEKSIGINFO. */
5665struct __ptrace_peeksiginfo_args
5766{
......@@ -73,6 +82,44 @@ struct __ptrace_seccomp_metadata
7382 __uint64_t flags; /* Output: filter's flags. */
7483};
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
76123/* Perform process tracing functions. REQUEST is one of the values
77124 above, and determines the action to be taken.
78125 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_RESOURCE_H
2020# 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 @@
11/* Definitions of constants and data structure for POSIX 1003.1b-1993
22 scheduling interface.
3 Copyright (C) 1996-2019 Free Software Foundation, Inc.
3 Copyright (C) 1996-2020 Free Software Foundation, Inc.
44 This file is part of the GNU C Library.
55
66 The GNU C Library is free software; you can redistribute it and/or
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _BITS_SCHED_H
2121#define _BITS_SCHED_H 1
......@@ -44,6 +44,8 @@
4444# define CLONE_FS 0x00000200 /* Set if fs info shared between processes. */
4545# define CLONE_FILES 0x00000400 /* Set if open files shared between processes. */
4646# define CLONE_SIGHAND 0x00000800 /* Set if signal handlers shared. */
47# define CLONE_PIDFD 0x00001000 /* Set if a pidfd should be placed
48 in parent. */
4749# define CLONE_PTRACE 0x00002000 /* Set if tracing continues on the child. */
4850# define CLONE_VFORK 0x00004000 /* Set if the parent wants the child to
4951 wake it up on mm_release. */
lib/libc/include/generic-glibc/bits/select.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SELECT_H
1919# 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 @@
11/* Checking macros for select functions.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.
2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SELECT_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SEM_H
1919# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SEMAPHORE_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MIPS_BITS_SETJMP_H
2020#define _MIPS_BITS_SETJMP_H 1
lib/libc/include/generic-glibc/bits/setjmp2.h+2-2
......@@ -1,5 +1,5 @@
11/* Checking macros for setjmp functions.
2 Copyright (C) 2009-2019 Free Software Foundation, Inc.
2 Copyright (C) 2009-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SETJMP_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SHM_H
1919# 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 @@
11/* Define SHMLBA. Generic version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGACTION_H
2020#define _BITS_SIGACTION_H 1
lib/libc/include/generic-glibc/bits/sigcontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_SIGCONTEXT_H
1919#define _BITS_SIGCONTEXT_H 1
lib/libc/include/generic-glibc/bits/sigevent-consts.h+2-2
......@@ -1,5 +1,5 @@
11/* sigevent constants. Linux version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.
2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGEVENT_CONSTS_H
2020#define _BITS_SIGEVENT_CONSTS_H 1
lib/libc/include/generic-glibc/bits/siginfo-consts.h+2-2
......@@ -1,5 +1,5 @@
11/* siginfo constants. Linux version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.
2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGINFO_CONSTS_H
2020#define _BITS_SIGINFO_CONSTS_H 1
lib/libc/include/generic-glibc/bits/signal_ext.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SIGNAL_H
2020# 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/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SIGNALFD_H
1919# 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 @@
11/* Signal number constants. Generic template.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.
2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGNUM_GENERIC_H
2020#define _BITS_SIGNUM_GENERIC_H 1
lib/libc/include/generic-glibc/bits/signum.h+2-2
......@@ -1,5 +1,5 @@
11/* Signal number definitions. Linux version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGNUM_H
2020#define _BITS_SIGNUM_H 1
lib/libc/include/generic-glibc/bits/sigstack.h+2-2
......@@ -1,5 +1,5 @@
11/* sigstack, sigaltstack definitions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGSTACK_H
2020#define _BITS_SIGSTACK_H 1
lib/libc/include/generic-glibc/bits/sigthread.h+2-2
......@@ -1,5 +1,5 @@
11/* Signal handling function for threaded programs.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 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
1919#ifndef _BITS_SIGTHREAD_H
2020#define _BITS_SIGTHREAD_H 1
lib/libc/include/generic-glibc/bits/sockaddr.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * 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 @@
11/* Socket constants which vary among Linux architectures.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __BITS_SOCKET_H
2020#define __BITS_SOCKET_H
......@@ -169,7 +169,7 @@ typedef __socklen_t socklen_t;
169169#define SOL_XDP 283
170170
171171/* Maximum queue length specifiable by listen. */
172#define SOMAXCONN 128
172#define SOMAXCONN 4096
173173
174174/* Get the definition of the macro to define the common sockaddr members. */
175175#include <bits/sockaddr.h>
lib/libc/include/generic-glibc/bits/socket2.h+2-2
......@@ -1,5 +1,5 @@
11/* Checking macros for socket functions.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.
2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SS_FLAGS_H
2020#define _BITS_SS_FLAGS_H 1
lib/libc/include/generic-glibc/bits/stab.def+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* This contains contribution from Cygnus Support. */
2020
lib/libc/include/generic-glibc/bits/stat.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_STATFS_H
1919# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_STATVFS_H
1919# 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 @@
11/* Generic statx-related definitions and declarations.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* This interface is based on <linux/stat.h> in Linux. */
2020
......@@ -26,11 +26,13 @@
2626
2727/* Use "" to work around incorrect macro expansion of the
2828 __has_include argument (GCC PR 80005). */
29#if __glibc_has_include ("linux/stat.h")
30# include "linux/stat.h"
31# ifdef STATX_TYPE
32# define __statx_timestamp_defined 1
33# define __statx_defined 1
29#ifdef __has_include
30# if __has_include ("linux/stat.h")
31# include "linux/stat.h"
32# ifdef STATX_TYPE
33# define __statx_timestamp_defined 1
34# define __statx_defined 1
35# endif
3436# endif
3537#endif
3638
lib/libc/include/generic-glibc/bits/stdint-intn.h+2-2
......@@ -1,5 +1,5 @@
11/* Define intN_t types.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.
2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_STDINT_INTN_H
2020#define _BITS_STDINT_INTN_H 1
lib/libc/include/generic-glibc/bits/stdint-uintn.h+2-2
......@@ -1,5 +1,5 @@
11/* Define uintN_t types.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.
2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_STDINT_UINTN_H
2020#define _BITS_STDINT_UINTN_H 1
lib/libc/include/generic-glibc/bits/stdio-ldbl.h+2-2
......@@ -1,5 +1,5 @@
11/* -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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _STDIO_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_STDIO_H
2020#define _BITS_STDIO_H 1
lib/libc/include/generic-glibc/bits/stdio2.h+2-2
......@@ -1,5 +1,5 @@
11/* Checking macros for stdio functions.
2 Copyright (C) 2004-2019 Free Software Foundation, Inc.
2 Copyright (C) 2004-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_STDIO2_H
2020#define _BITS_STDIO2_H 1
lib/libc/include/generic-glibc/bits/stdio_lim.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1994-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1994-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_STDIO_LIM_H
1919#define _BITS_STDIO_LIM_H 1
lib/libc/include/generic-glibc/bits/stdlib-bsearch.h+2-2
......@@ -1,5 +1,5 @@
11/* Perform binary search - inline version.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.
2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919__extern_inline void *
2020bsearch (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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _STDLIB_H
2020# 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 @@
11/* -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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _STDLIB_H
2020# error "Never include <bits/stdlib-ldbl.h> directly; use <stdlib.h> instead."
......@@ -28,7 +28,7 @@ __LDBL_REDIR1_DECL (strtold, strtod)
2828__LDBL_REDIR1_DECL (strtold_l, strtod_l)
2929#endif
3030
31#if __GLIBC_USE (IEC_60559_BFP_EXT)
31#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
3232__LDBL_REDIR1_DECL (strfroml, strfromd)
3333#endif
3434
lib/libc/include/generic-glibc/bits/stdlib.h+2-2
......@@ -1,5 +1,5 @@
11/* Checking macros for stdlib functions.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.
2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _STDLIB_H
2020# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_STRING_FORTIFIED_H
1919#define _BITS_STRING_FORTIFIED_H 1
lib/libc/include/generic-glibc/bits/strings_fortified.h+2-2
......@@ -1,5 +1,5 @@
11/* Fortify macros for strings.h functions.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.
2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __STRINGS_FORTIFIED
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _STDIO_H
2020# 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 @@
11/* 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
44#ifndef _SYSCALL_H
55# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."
66#endif
77
8#define __GLIBC_LINUX_VERSION_CODE 328192
8#define __GLIBC_LINUX_VERSION_CODE 328704
99
1010#ifdef __NR_FAST_atomic_update
1111# define SYS_FAST_atomic_update __NR_FAST_atomic_update
......@@ -207,6 +207,10 @@
207207# define SYS_clone2 __NR_clone2
208208#endif
209209
210#ifdef __NR_clone3
211# define SYS_clone3 __NR_clone3
212#endif
213
210214#ifdef __NR_close
211215# define SYS_close __NR_close
212216#endif
......@@ -1547,6 +1551,10 @@
15471551# define SYS_personality __NR_personality
15481552#endif
15491553
1554#ifdef __NR_pidfd_open
1555# define SYS_pidfd_open __NR_pidfd_open
1556#endif
1557
15501558#ifdef __NR_pidfd_send_signal
15511559# define SYS_pidfd_send_signal __NR_pidfd_send_signal
15521560#endif
lib/libc/include/generic-glibc/bits/syslog-ldbl.h+2-2
......@@ -1,5 +1,5 @@
11/* -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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SYSLOG_H
2020# 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 @@
11/* <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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SYSLOG_H
2020# 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 @@
11/* Checking macros for syslog functions.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.
2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SYSLOG_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SYSMACROS_H
2020#define _BITS_SYSMACROS_H 1
lib/libc/include/generic-glibc/bits/termios-baud.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios control mode definitions. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios input mode definitions. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios output mode definitions. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* struct termios definition. Linux/generic version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _THREAD_SHARED_TYPES_H
2020#define _THREAD_SHARED_TYPES_H 1
......@@ -32,36 +32,6 @@
3232 __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
3333 __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
6535 The additional macro defines any constraint for the lock alignment
6636 inside the thread structures:
6737
......@@ -69,101 +39,52 @@
6939
7040 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 */
7744#include <bits/pthreadtypes-arch.h>
7845
46
7947/* Common definition of pthread_mutex_t. */
8048
81#if !__PTHREAD_MUTEX_USE_UNION
8249typedef struct __pthread_internal_list
8350{
8451 struct __pthread_internal_list *__prev;
8552 struct __pthread_internal_list *__next;
8653} __pthread_list_t;
87#else
54
8855typedef struct __pthread_internal_slist
8956{
9057 struct __pthread_internal_slist *__next;
9158} __pthread_slist_t;
92#endif
93
94/* Lock elision support. */
95#if __PTHREAD_MUTEX_LOCK_ELISION
96# if !__PTHREAD_MUTEX_USE_UNION
97# define __PTHREAD_SPINS_DATA \
98 short __spins; \
99 short __elision
100# define __PTHREAD_SPINS 0, 0
101# else
102# define __PTHREAD_SPINS_DATA \
103 struct \
104 { \
105 short __espins; \
106 short __eelision; \
107 } __elision_data
108# define __PTHREAD_SPINS { 0, 0 }
109# define __spins __elision_data.__espins
110# define __elision __elision_data.__eelision
111# endif
112#else
113# define __PTHREAD_SPINS_DATA int __spins
114/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
115# define __PTHREAD_SPINS 0
116#endif
117
118struct __pthread_mutex_s
119{
120 int __lock __LOCK_ALIGNMENT;
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};
59
60/* Arch-specific mutex definitions. A generic implementation is provided
61 by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture
62 can override it by defining:
63
64 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
65 definition). It should contains at least the internal members
66 defined in the generic version.
67
68 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
69 atomic operations.
70
71 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
72 It should initialize the mutex internal flag. */
73
74#include <bits/struct_mutex.h>
75
76/* Arch-sepecific read-write lock definitions. A generic implementation is
77 provided by struct_rwlock.h. If required, an architecture can override it
78 by defining:
79
80 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
81 It should contain at least the internal members defined in the
82 generic version.
83
84 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
85 It should initialize the rwlock internal type. */
86
87#include <bits/struct_rwlock.h>
16788
16889
16990/* Common definition of pthread_cond_t. */
lib/libc/include/generic-glibc/bits/time.h+2-2
......@@ -1,5 +1,5 @@
11/* System-dependent timing definitions. Linux version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * Never include this file directly; use <time.h> instead.
lib/libc/include/generic-glibc/bits/time64.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_TYPES_H
2020# 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/* Copyright (C) 2008-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIMERFD_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#include <bits/wordsize.h>
2020
lib/libc/include/generic-glibc/bits/timex.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_TIMEX_H
1919#define _BITS_TIMEX_H 1
lib/libc/include/generic-glibc/bits/types.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _BITS_TYPES___LOCALE_T_H
2121#define _BITS_TYPES___LOCALE_T_H 1
lib/libc/include/generic-glibc/bits/types/__sigval_t.h+2-2
......@@ -1,5 +1,5 @@
11/* Define __sigval_t.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.
2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef ____sigval_t_defined
2020#define ____sigval_t_defined
lib/libc/include/generic-glibc/bits/types/cookie_io_functions_t.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef __cookie_io_functions_t_defined
1919#define __cookie_io_functions_t_defined 1
lib/libc/include/generic-glibc/bits/types/error_t.h+2-2
......@@ -1,5 +1,5 @@
11/* Define error_t.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.
2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __error_t_defined
2020# define __error_t_defined 1
lib/libc/include/generic-glibc/bits/types/locale_t.h+2-2
......@@ -1,5 +1,5 @@
11/* Definition of locale_t.
2 Copyright (C) 2017-2019 Free Software Foundation, Inc.
2 Copyright (C) 2017-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_TYPES_LOCALE_T_H
2020#define _BITS_TYPES_LOCALE_T_H 1
lib/libc/include/generic-glibc/bits/types/stack_t.h+2-2
......@@ -1,5 +1,5 @@
11/* Define stack_t. Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __stack_t_defined
2020#define __stack_t_defined 1
lib/libc/include/generic-glibc/bits/types/struct_FILE.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef __struct_FILE_defined
1919#define __struct_FILE_defined 1
lib/libc/include/generic-glibc/bits/types/struct_iovec.h+2-2
......@@ -1,5 +1,5 @@
11/* Define struct iovec.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __iovec_defined
2020#define __iovec_defined 1
lib/libc/include/generic-glibc/bits/types/struct_rusage.h+2-2
......@@ -1,5 +1,5 @@
11/* Define struct rusage.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.
2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __rusage_defined
2020#define __rusage_defined 1
lib/libc/include/generic-glibc/bits/types/struct_sched_param.h+2-2
......@@ -1,5 +1,5 @@
11/* Sched parameter structure. Generic version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_TYPES_STRUCT_SCHED_PARAM
2020#define _BITS_TYPES_STRUCT_SCHED_PARAM 1
lib/libc/include/generic-glibc/bits/types/struct_sigstack.h+2-2
......@@ -1,5 +1,5 @@
11/* Define struct sigstack.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __sigstack_defined
2020#define __sigstack_defined 1
lib/libc/include/generic-glibc/bits/types/struct_statx.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_STAT_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_STAT_H
2020# 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 @@
33#define _STRUCT_TIMESPEC 1
44
55#include <bits/types.h>
6#include <bits/endian.h>
67
78/* POSIX.1b structure for a time value. This is like a `struct timeval' but
89 has nanoseconds instead of microseconds. */
910struct timespec
1011{
1112 __time_t tv_sec; /* Seconds. */
13#if __WORDSIZE == 64 \
14 || (defined __SYSCALL_WORDSIZE && __SYSCALL_WORDSIZE == 64) \
15 || __TIMESIZE == 32
1216 __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
1326};
1427
1528#endif
\ No newline at end of file
lib/libc/include/generic-glibc/bits/typesizes.h+7-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_TYPES_H
2020# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
......@@ -72,8 +72,13 @@
7272
7373/* And for rlim_t and rlim64_t. */
7474# 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
7578#else
7679# define __RLIM_T_MATCHES_RLIM64_T 0
80
81# define __STATFS_MATCHES_STATFS64 0
7782#endif
7883
7984/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined _NETINET_IN_H && !defined _ENDIAN_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_UIO_EXT_H
2020#define _BITS_UIO_EXT_H 1
lib/libc/include/generic-glibc/bits/uio_lim.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_UIO_LIM_H
2020#define _BITS_UIO_LIM_H 1
lib/libc/include/generic-glibc/bits/unistd.h+2-2
......@@ -1,5 +1,5 @@
11/* Checking macros for unistd functions.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.
2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _UNISTD_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _UNISTD_H
2020# 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/* The `struct utmp' type, describing entries in the utmp file. GNU version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.
1/* The `struct utmp' type, describing entries in the utmp file.
2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _UTMP_H
2020# error "Never include <bits/utmp.h> directly; use <utmp.h> instead."
......@@ -61,7 +61,8 @@ struct utmp
6161 pid_t ut_pid; /* Process ID of login process. */
6262 char ut_line[UT_LINESIZE]
6363 __attribute_nonstring__; /* Devicename. */
64 char ut_id[4]; /* Inittab ID. */
64 char ut_id[4]
65 __attribute_nonstring__; /* Inittab ID. */
6566 char ut_user[UT_NAMESIZE]
6667 __attribute_nonstring__; /* Username. */
6768 char ut_host[UT_HOSTSIZE]
lib/libc/include/generic-glibc/bits/utmpx.h+10-6
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _UTMPX_H
2020# error "Never include <bits/utmpx.h> directly; use <utmpx.h> instead."
......@@ -56,10 +56,14 @@ struct utmpx
5656{
5757 short int ut_type; /* Type of login. */
5858 __pid_t ut_pid; /* Process ID of login process. */
59 char ut_line[__UT_LINESIZE]; /* Devicename. */
60 char ut_id[4]; /* Inittab ID. */
61 char ut_user[__UT_NAMESIZE]; /* Username. */
62 char ut_host[__UT_HOSTSIZE]; /* Hostname for remote login. */
59 char ut_line[__UT_LINESIZE]
60 __attribute_nonstring__; /* Devicename. */
61 char ut_id[4]
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. */
6367 struct __exit_status ut_exit; /* Exit status of a process marked
6468 as DEAD_PROCESS. */
6569
lib/libc/include/generic-glibc/bits/utsname.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_UTSNAME_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined _SYS_WAIT_H && !defined _STDLIB_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined _SYS_WAIT_H && !defined _STDLIB_H
2020# 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 @@
11/* -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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _WCHAR_H
2020# 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 @@
11/* wchar_t type related definitions.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.
2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_WCHAR_H
2020#define _BITS_WCHAR_H 1
lib/libc/include/generic-glibc/bits/wchar2.h+2-2
......@@ -1,5 +1,5 @@
11/* Checking macros for wchar functions.
2 Copyright (C) 2005-2019 Free Software Foundation, Inc.
2 Copyright (C) 2005-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _WCHAR_H
2020# 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/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.25
......@@ -42,7 +42,7 @@ typedef unsigned long int wctype_t;
4242 endian). We define the bit value interpretations here dependent on the
4343 machine's byte order. */
4444
45# include <endian.h>
45# include <bits/endian.h>
4646# if __BYTE_ORDER == __BIG_ENDIAN
4747# define _ISwbit(bit) (1 << (bit))
4848# else /* __BYTE_ORDER == __LITTLE_ENDIAN */
lib/libc/include/generic-glibc/bits/wordsize.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#include <sgidefs.h>
1919
lib/libc/include/generic-glibc/bits/xopen_lim.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * Never include this file directly; use <limits.h> instead.
lib/libc/include/generic-glibc/byteswap.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BYTESWAP_H
1919#define _BYTESWAP_H 1
lib/libc/include/generic-glibc/complex.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99: 7.3 Complex arithmetic <complex.h>
lib/libc/include/generic-glibc/cpio.h+2-2
......@@ -1,6 +1,6 @@
11/* Extended cpio format from POSIX.1.
22 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.
44 NOTE: The canonical source of this file is maintained with the GNU cpio.
55
66 The GNU C Library is free software; you can redistribute it and/or
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _CPIO_H
2121#define _CPIO_H 1
lib/libc/include/generic-glibc/crypt.h+2-2
......@@ -1,7 +1,7 @@
11/*
22 * UFC-crypt: ultra fast crypt(3) implementation
33 *
4 * Copyright (C) 1991-2019 Free Software Foundation, Inc.
4 * Copyright (C) 1991-2020 Free Software Foundation, Inc.
55 *
66 * The GNU C Library is free software; you can redistribute it and/or
77 * modify it under the terms of the GNU Lesser General Public
......@@ -15,7 +15,7 @@
1515 *
1616 * You should have received a copy of the GNU Lesser General Public
1717 * License along with the GNU C Library; if not, see
18 * <http://www.gnu.org/licenses/>.
18 * <https://www.gnu.org/licenses/>.
1919 *
2020 * @(#)crypt.h 1.5 12/20/96
2121 *
lib/libc/include/generic-glibc/ctype.h+3-3
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard 7.4: Character handling <ctype.h>
......@@ -36,7 +36,7 @@ __BEGIN_DECLS
3636 endian). We define the bit value interpretations here dependent on the
3737 machine's byte order. */
3838
39# include <endian.h>
39# include <bits/endian.h>
4040# if __BYTE_ORDER == __BIG_ENDIAN
4141# define _ISbit(bit) (1 << (bit))
4242# else /* __BYTE_ORDER == __LITTLE_ENDIAN */
lib/libc/include/generic-glibc/dirent.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * POSIX Standard: 5.1.2 Directory Operations <dirent.h>
lib/libc/include/generic-glibc/dlfcn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _DLFCN_H
2020#define _DLFCN_H 1
lib/libc/include/generic-glibc/elf.h+6-3
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _ELF_H
2020#define _ELF_H 1
......@@ -1715,6 +1715,7 @@ typedef struct
17151715#define SHT_MIPS_EH_REGION 0x70000027
17161716#define SHT_MIPS_XLATE_OLD 0x70000028
17171717#define SHT_MIPS_PDR_EXCEPTION 0x70000029
1718#define SHT_MIPS_XHASH 0x7000002b
17181719
17191720/* Legal values for sh_flags field of Elf32_Shdr. */
17201721
......@@ -1962,7 +1963,9 @@ typedef struct
19621963 in a PIE as it stores a relative offset from the address of the tag
19631964 rather than an absolute address. */
19641965#define DT_MIPS_RLD_MAP_REL 0x70000035
1965#define DT_MIPS_NUM 0x36
1966/* GNU-style hash table with xlat. */
1967#define DT_MIPS_XHASH 0x70000036
1968#define DT_MIPS_NUM 0x37
19661969
19671970/* Legal values for DT_MIPS_FLAGS Elf32_Dyn entry. */
19681971
lib/libc/include/generic-glibc/endian.h+4-29
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,48 +13,23 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _ENDIAN_H
1919#define _ENDIAN_H 1
2020
2121#include <features.h>
2222
23/* Definitions for byte order, according to significance of bytes,
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. */
23/* Get the definitions of __*_ENDIAN, __BYTE_ORDER, and __FLOAT_WORD_ORDER. */
3624#include <bits/endian.h>
3725
38/* Some machines may need to use a different endianness for floating point
39 values. */
40#ifndef __FLOAT_WORD_ORDER
41# define __FLOAT_WORD_ORDER __BYTE_ORDER
42#endif
43
44#ifdef __USE_MISC
26#ifdef __USE_MISC
4527# define LITTLE_ENDIAN __LITTLE_ENDIAN
4628# define BIG_ENDIAN __BIG_ENDIAN
4729# define PDP_ENDIAN __PDP_ENDIAN
4830# define BYTE_ORDER __BYTE_ORDER
4931#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
5833#if defined __USE_MISC && !defined __ASSEMBLER__
5934/* Conversion interfaces. */
6035# include <bits/byteswap.h>
lib/libc/include/generic-glibc/envz.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _ENVZ_H
2020#define _ENVZ_H 1
lib/libc/include/generic-glibc/err.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _ERR_H
2020#define _ERR_H 1
lib/libc/include/generic-glibc/errno.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.5 Errors <errno.h>
lib/libc/include/generic-glibc/error.h+2-2
......@@ -1,5 +1,5 @@
11/* Declaration for error-reporting function
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _ERROR_H
2020#define _ERROR_H 1
lib/libc/include/generic-glibc/execinfo.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _EXECINFO_H
1919#define _EXECINFO_H 1
lib/libc/include/generic-glibc/fcntl.h+3-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * POSIX Standard: 6.5 File Control Operations <fcntl.h>
......@@ -161,6 +161,7 @@ typedef __pid_t pid_t;
161161# define AT_STATX_SYNC_AS_STAT 0x0000
162162# define AT_STATX_FORCE_SYNC 0x2000
163163# define AT_STATX_DONT_SYNC 0x4000
164# define AT_RECURSIVE 0x8000 /* Apply to the entire subtree. */
164165# endif
165166# define AT_EACCESS 0x200 /* Test access permitted for
166167 effective IDs, not real IDs. */
lib/libc/include/generic-glibc/features.h+21-6
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FEATURES_H
1919#define _FEATURES_H 1
......@@ -24,6 +24,7 @@
2424 __STRICT_ANSI__ ISO Standard C.
2525 _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
2626 _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
27 _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
2728 __STDC_WANT_LIB_EXT2__
2829 Extensions to ISO C99 from TR 27431-2:2010.
2930 __STDC_WANT_IEC_60559_BFP_EXT__
......@@ -139,6 +140,7 @@
139140#undef __USE_GNU
140141#undef __USE_FORTIFY_LEVEL
141142#undef __KERNEL_STRICT_NAMES
143#undef __GLIBC_USE_ISOC2X
142144#undef __GLIBC_USE_DEPRECATED_GETS
143145#undef __GLIBC_USE_DEPRECATED_SCANF
144146
......@@ -195,6 +197,8 @@
195197# define _ISOC99_SOURCE 1
196198# undef _ISOC11_SOURCE
197199# define _ISOC11_SOURCE 1
200# undef _ISOC2X_SOURCE
201# define _ISOC2X_SOURCE 1
198202# undef _POSIX_SOURCE
199203# define _POSIX_SOURCE 1
200204# undef _POSIX_C_SOURCE
......@@ -216,26 +220,37 @@
216220#if (defined _DEFAULT_SOURCE \
217221 || (!defined __STRICT_ANSI__ \
218222 && !defined _ISOC99_SOURCE && !defined _ISOC11_SOURCE \
223 && !defined _ISOC2X_SOURCE \
219224 && !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE \
220225 && !defined _XOPEN_SOURCE))
221226# undef _DEFAULT_SOURCE
222227# define _DEFAULT_SOURCE 1
223228#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
225238/* This is to enable the ISO C11 extension. */
226#if (defined _ISOC11_SOURCE \
239#if (defined _ISOC11_SOURCE || defined _ISOC2X_SOURCE \
227240 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L))
228241# define __USE_ISOC11 1
229242#endif
230243
231244/* 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 \
233247 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L))
234248# define __USE_ISOC99 1
235249#endif
236250
237251/* 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 \
239254 || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199409L))
240255# define __USE_ISOC95 1
241256#endif
......@@ -439,7 +454,7 @@
439454/* Major and minor version number of the GNU C library package. Use
440455 these macros to test for features in specific releases. */
441456#define __GLIBC__ 2
442#define __GLIBC_MINOR__ 30
457#define __GLIBC_MINOR__ 31
443458
444459#define __GLIBC_PREREQ(maj, min) \
445460 ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
lib/libc/include/generic-glibc/fenv.h+6-6
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 7.6: Floating-point environment <fenv.h>
......@@ -77,7 +77,7 @@ extern int fegetexceptflag (fexcept_t *__flagp, int __excepts) __THROW;
7777/* Raise the supported exceptions represented by EXCEPTS. */
7878extern int feraiseexcept (int __excepts) __THROW;
7979
80#if __GLIBC_USE (IEC_60559_BFP_EXT)
80#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
8181/* Set the supported exception flags represented by EXCEPTS, without
8282 causing enabled traps to be taken. */
8383extern int fesetexcept (int __excepts) __THROW;
......@@ -91,7 +91,7 @@ extern int fesetexceptflag (const fexcept_t *__flagp, int __excepts) __THROW;
9191 currently set. */
9292extern int fetestexcept (int __excepts) __THROW;
9393
94#if __GLIBC_USE (IEC_60559_BFP_EXT)
94#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
9595/* Determine which of subset of the exceptions specified by EXCEPTS
9696 are set in *FLAGP. */
9797extern int fetestexceptflag (const fexcept_t *__flagp, int __excepts) __THROW;
......@@ -130,7 +130,7 @@ extern int feupdateenv (const fenv_t *__envp) __THROW;
130130
131131/* Control modes. */
132132
133#if __GLIBC_USE (IEC_60559_BFP_EXT)
133#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
134134/* Store the current floating-point control modes in the object
135135 pointed to by MODEP. */
136136extern int fegetmode (femode_t *__modep) __THROW;
......@@ -147,7 +147,7 @@ extern int fesetmode (const femode_t *__modep) __THROW;
147147
148148/* NaN support. */
149149
150#if (__GLIBC_USE (IEC_60559_BFP_EXT) \
150#if (__GLIBC_USE (IEC_60559_BFP_EXT_C2X) \
151151 && defined FE_INVALID \
152152 && defined __SUPPORT_SNAN__)
153153# define FE_SNANS_ALWAYS_SIGNAL 1
lib/libc/include/generic-glibc/finclude/math-vector-fortran.h+2-2
......@@ -1,5 +1,5 @@
11! 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.
33! This file is part of the GNU C Library.
44!
55! The GNU C Library is free software; you can redistribute it and/or
......@@ -14,6 +14,6 @@
1414!
1515! You should have received a copy of the GNU Lesser General Public
1616! License along with the GNU C Library; if not, see
17! <http://www.gnu.org/licenses/>.
17! <https://www.gnu.org/licenses/>.
1818
1919! 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 @@
11/* Message display handling.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.
2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __FMTMSG_H
2020#define __FMTMSG_H 1
lib/libc/include/generic-glibc/fnmatch.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FNMATCH_H
1919#define _FNMATCH_H 1
lib/libc/include/generic-glibc/fpregdef.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FPREGDEF_H
1919#define _FPREGDEF_H
lib/libc/include/generic-glibc/fpu_control.h+2-3
......@@ -1,7 +1,6 @@
11/* FPU control word bits. Mips version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
4 Contributed by Olaf Flebbe and Ralf Baechle.
54
65 The GNU C Library is free software; you can redistribute it and/or
76 modify it under the terms of the GNU Lesser General Public
......@@ -15,7 +14,7 @@
1514
1615 You should have received a copy of the GNU Lesser General Public
1716 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1918
2019#ifndef _FPU_CONTROL_H
2120#define _FPU_CONTROL_H
lib/libc/include/generic-glibc/fts.h+2-2
......@@ -1,5 +1,5 @@
11/* File tree traversal functions declarations.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.
2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * Copyright (c) 1989, 1993
lib/libc/include/generic-glibc/ftw.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * X/Open Portability Guide 4.2: ftw.h
lib/libc/include/generic-glibc/gconv.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* This header provides no interface for a user to the internals of
1919 the gconv implementation in the libc. Therefore there is no use
lib/libc/include/generic-glibc/getopt.h+2-2
......@@ -1,5 +1,5 @@
11/* Declarations for getopt.
2 Copyright (C) 1989-2019 Free Software Foundation, Inc.
2 Copyright (C) 1989-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44 Unlike the bulk of the getopt implementation, this file is NOT part
55 of gnulib; gnulib also has a getopt.h but it is different.
......@@ -16,7 +16,7 @@
1616
1717 You should have received a copy of the GNU Lesser General Public
1818 License along with the GNU C Library; if not, see
19 <http://www.gnu.org/licenses/>. */
19 <https://www.gnu.org/licenses/>. */
2020
2121#ifndef _GETOPT_H
2222#define _GETOPT_H 1
lib/libc/include/generic-glibc/glob.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _GLOB_H
1919#define _GLOB_H 1
lib/libc/include/generic-glibc/gnu-versions.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _GNU_VERSIONS_H
2020#define _GNU_VERSIONS_H 1
lib/libc/include/generic-glibc/gnu/libc-version.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _GNU_LIBC_VERSION_H
2020#define _GNU_LIBC_VERSION_H 1
lib/libc/include/generic-glibc/grp.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * POSIX Standard: 9.2.1 Group Database Access <grp.h>
lib/libc/include/generic-glibc/gshadow.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2009-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2009-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* Declaration of types and functions for shadow group suite. */
1919
lib/libc/include/generic-glibc/iconv.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _ICONV_H
1919#define _ICONV_H 1
lib/libc/include/generic-glibc/ieee754.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,14 +13,14 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#include <features.h>
2222
23#include <endian.h>
23#include <bits/endian.h>
2424
2525__BEGIN_DECLS
2626
lib/libc/include/generic-glibc/ifaddrs.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _IFADDRS_H
2020#define _IFADDRS_H 1
lib/libc/include/generic-glibc/inttypes.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99: 7.8 Format conversion of integer types <inttypes.h>
lib/libc/include/generic-glibc/langinfo.h+2-2
......@@ -1,5 +1,5 @@
11/* Access to locale-dependent parameters.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _LANGINFO_H
2020#define _LANGINFO_H 1
lib/libc/include/generic-glibc/libgen.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _LIBGEN_H
1919#define _LIBGEN_H 1
lib/libc/include/generic-glibc/libintl.h+2-2
......@@ -1,5 +1,5 @@
11/* Message catalogs for internationalization.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44 This file is derived from the file libgettext.h in the GNU gettext package.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _LIBINTL_H
2121#define _LIBINTL_H 1
lib/libc/include/generic-glibc/limits.h+3-3
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.10/5.2.4.2.1 Sizes of integer types <limits.h>
......@@ -142,7 +142,7 @@
142142/* The integer width macros are not defined by GCC's <limits.h> before
143143 GCC 7, or if _GNU_SOURCE rather than
144144 __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)
146146# ifndef CHAR_WIDTH
147147# define CHAR_WIDTH 8
148148# endif
lib/libc/include/generic-glibc/link.h+2-2
......@@ -1,6 +1,6 @@
11/* Data structure for communication from the run-time dynamic linker for
22 loaded ELF shared objects.
3 Copyright (C) 1995-2019 Free Software Foundation, Inc.
3 Copyright (C) 1995-2020 Free Software Foundation, Inc.
44 This file is part of the GNU C Library.
55
66 The GNU C Library is free software; you can redistribute it and/or
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _LINK_H
2121#define _LINK_H 1
lib/libc/include/generic-glibc/locale.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.11 Localization <locale.h>
lib/libc/include/generic-glibc/malloc.h+3-4
......@@ -1,5 +1,5 @@
11/* Prototypes and definition for malloc implementation.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MALLOC_H
2020#define _MALLOC_H 1
......@@ -71,8 +71,7 @@ extern void *valloc (size_t __size) __THROW __attribute_malloc__
7171
7272/* Equivalent to valloc(minimum-page-that-holds(n)), that is, round up
7373 __size to nearest pagesize. */
74extern void *pvalloc (size_t __size) __THROW __attribute_malloc__
75 __attribute_alloc_size__ ((1)) __wur;
74extern void *pvalloc (size_t __size) __THROW __attribute_malloc__ __wur;
7675
7776/* Underlying allocation function; successive calls should return
7877 contiguous pieces of memory. */
lib/libc/include/generic-glibc/math.h+8-228
......@@ -1,5 +1,5 @@
11/* Declarations for math functions.
2 Copyright (C) 1991-2019 Free Software Foundation, Inc.
2 Copyright (C) 1991-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * ISO C99 Standard: 7.12 Mathematics <math.h>
......@@ -104,7 +104,7 @@ __BEGIN_DECLS
104104# endif
105105#endif /* __USE_ISOC99 */
106106
107#if __GLIBC_USE (IEC_60559_BFP_EXT)
107#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
108108/* Signaling NaN macros, if supported. */
109109# if __GNUC_PREREQ (3, 3)
110110# define SNANF (__builtin_nansf (""))
......@@ -200,7 +200,7 @@ typedef _Float128x double_t;
200200# define FP_ILOGBNAN 2147483647
201201# endif
202202#endif
203#if __GLIBC_USE (IEC_60559_BFP_EXT)
203#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
204204# if __WORDSIZE == 32
205205# define __FP_LONG_MAX 0x7fffffffL
206206# else
......@@ -232,7 +232,7 @@ typedef _Float128x double_t;
232232
233233#include <bits/fp-fast.h>
234234
235#if __GLIBC_USE (IEC_60559_BFP_EXT)
235#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
236236/* Rounding direction macros for fromfp functions. */
237237enum
238238 {
......@@ -495,7 +495,7 @@ extern long double __REDIRECT_NTH (nexttowardl,
495495#define __MATHCALL_NARROW(func, redir, nargs) \
496496 __MATHCALL_NARROW_NORMAL (func, nargs)
497497
498#if __GLIBC_USE (IEC_60559_BFP_EXT)
498#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
499499
500500# define _Mret_ float
501501# define _Marg_ double
......@@ -969,7 +969,7 @@ enum
969969
970970#endif /* Use ISO C99. */
971971
972#if __GLIBC_USE (IEC_60559_BFP_EXT)
972#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
973973# include <bits/iscanonical.h>
974974
975975/* Return nonzero value if X is a signaling NaN. */
......@@ -1245,228 +1245,8 @@ iszero (__T __val)
12451245# include <bits/mathinline.h>
12461246#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)
14701250/* An expression whose type has the widest of the evaluation formats
14711251 of X and Y (which are of floating-point types). */
14721252# if __FLT_EVAL_METHOD__ == 2 || __FLT_EVAL_METHOD__ > 64
lib/libc/include/generic-glibc/mcheck.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _MCHECK_H
1919#define _MCHECK_H 1
lib/libc/include/generic-glibc/memory.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * SVID
lib/libc/include/generic-glibc/mntent.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MNTENT_H
2020#define _MNTENT_H 1
lib/libc/include/generic-glibc/monetary.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MONETARY_H
2020#define _MONETARY_H 1
lib/libc/include/generic-glibc/mqueue.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _MQUEUE_H
1919#define _MQUEUE_H 1
lib/libc/include/generic-glibc/net/ethernet.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* Based on the FreeBSD version of this file. Curiously, that file
1919 lacks a copyright in the header. */
lib/libc/include/generic-glibc/net/if.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _NET_IF_H
2020#define _NET_IF_H 1
lib/libc/include/generic-glibc/net/if_arp.h+2-2
......@@ -1,5 +1,5 @@
11/* Definitions for Address Resolution Protocol.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.
2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __IF_PACKET_H
2020#define __IF_PACKET_H
lib/libc/include/generic-glibc/net/if_shaper.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NET_IF_SHAPER_H
1919#define _NET_IF_SHAPER_H 1
lib/libc/include/generic-glibc/net/if_slip.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NET_IF_SLIP_H
1919#define _NET_IF_SLIP_H 1
lib/libc/include/generic-glibc/net/route.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _NETASH_ASH_H
2020#define _NETASH_ASH_H 1
lib/libc/include/generic-glibc/netatalk/at.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NETATALK_AT_H
1919#define _NETATALK_AT_H 1
lib/libc/include/generic-glibc/netax25/ax25.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NETAX25_AX25_H
1919#define _NETAX25_AX25_H 1
lib/libc/include/generic-glibc/netdb.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* All data returned by the network data base library are supplied in
1919 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _NETECONET_EC_H
2020#define _NETECONET_EC_H 1
lib/libc/include/generic-glibc/netinet/ether.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _NETINET_ETHER_H
2020#define _NETINET_ETHER_H 1
lib/libc/include/generic-glibc/netinet/icmp6.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NETINET_ICMP6_H
1919#define _NETINET_ICMP6_H 1
lib/libc/include/generic-glibc/netinet/if_ether.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef __NETINET_IF_ETHER_H
1919
lib/libc/include/generic-glibc/netinet/if_fddi.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NETINET_IF_FDDI_H
1919#define _NETINET_IF_FDDI_H 1
lib/libc/include/generic-glibc/netinet/if_tr.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NETINET_IF_TR_H
1919#define _NETINET_IF_TR_H 1
lib/libc/include/generic-glibc/netinet/igmp.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NETINET_IGMP_H
1919#define _NETINET_IGMP_H 1
lib/libc/include/generic-glibc/netinet/in.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NETINET_IN_H
1919#define _NETINET_IN_H 1
lib/libc/include/generic-glibc/netinet/in_systm.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _NETINET_IN_SYSTM_H
2020#define _NETINET_IN_SYSTM_H 1
lib/libc/include/generic-glibc/netinet/ip.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef __NETINET_IP_H
1919#define __NETINET_IP_H 1
lib/libc/include/generic-glibc/netinet/ip6.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NETINET_IP6_H
1919#define _NETINET_IP6_H 1
lib/libc/include/generic-glibc/netinet/ip_icmp.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef __NETINET_IP_ICMP_H
1919#define __NETINET_IP_ICMP_H 1
lib/libc/include/generic-glibc/netinet/tcp.h+1
......@@ -79,6 +79,7 @@
7979#define TCP_INQ 36 /* Notify bytes available to read
8080 as a cmsg on read. */
8181#define TCP_CM_INQ TCP_INQ
82#define TCP_TX_DELAY 37 /* Delay outgoing packets by XX usec. */
8283
8384#define TCP_REPAIR_ON 1
8485#define TCP_REPAIR_OFF 0
lib/libc/include/generic-glibc/netinet/udp.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * 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/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef __NETIPX_IPX_H
1919#define __NETIPX_IPX_H 1
lib/libc/include/generic-glibc/netiucv/iucv.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef __NETIUCV_IUCV_H
1919#define __NETIUCV_IUCV_H 1
lib/libc/include/generic-glibc/netpacket/packet.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __NETPACKET_PACKET_H
2020#define __NETPACKET_PACKET_H 1
lib/libc/include/generic-glibc/netrom/netrom.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NETROM_NETROM_H
1919#define _NETROM_NETROM_H 1
lib/libc/include/generic-glibc/netrose/rose.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* 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/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _NL_TYPES_H
1919#define _NL_TYPES_H 1
lib/libc/include/generic-glibc/nss.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* Define interface to NSS. This is meant for the interface functions
1919 and for implementors of new services. */
lib/libc/include/generic-glibc/obstack.h+2-2
......@@ -1,5 +1,5 @@
11/* obstack.h - object stack macros
2 Copyright (C) 1988-2019 Free Software Foundation, Inc.
2 Copyright (C) 1988-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* Summary:
2020
lib/libc/include/generic-glibc/printf.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _PRINTF_H
1919
lib/libc/include/generic-glibc/proc_service.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _PROC_SERVICE_H
2020#define _PROC_SERVICE_H 1
lib/libc/include/generic-glibc/pthread.h+26-51
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,16 +13,16 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _PTHREAD_H
1919#define _PTHREAD_H 1
2020
2121#include <features.h>
22#include <endian.h>
2322#include <sched.h>
2423#include <time.h>
2524
25#include <bits/endian.h>
2626#include <bits/pthreadtypes.h>
2727#include <bits/setjmp.h>
2828#include <bits/wordsize.h>
......@@ -83,30 +83,15 @@ enum
8383#endif
8484
8585
86#if __PTHREAD_MUTEX_HAVE_PREV
87# define PTHREAD_MUTEX_INITIALIZER \
88 { { 0, 0, 0, 0, 0, __PTHREAD_SPINS, { 0, 0 } } }
89# ifdef __USE_GNU
90# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
91 { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, __PTHREAD_SPINS, { 0, 0 } } }
92# define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
93 { { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, __PTHREAD_SPINS, { 0, 0 } } }
94# define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_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
86#define PTHREAD_MUTEX_INITIALIZER \
87 { { __PTHREAD_MUTEX_INITIALIZER (PTHREAD_MUTEX_TIMED_NP) } }
88#ifdef __USE_GNU
89# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
90 { { __PTHREAD_MUTEX_INITIALIZER (PTHREAD_MUTEX_RECURSIVE_NP) } }
91# define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
92 { { __PTHREAD_MUTEX_INITIALIZER (PTHREAD_MUTEX_ERRORCHECK_NP) } }
93# define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
94 { { __PTHREAD_MUTEX_INITIALIZER (PTHREAD_MUTEX_ADAPTIVE_NP) } }
11095#endif
11196
11297
......@@ -120,34 +105,13 @@ enum
120105 PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP
121106};
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
132109/* Read-write lock initializers. */
133110# 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) } }
135112# ifdef __USE_GNU
136# ifdef __PTHREAD_RWLOCK_INT_FLAGS_SHARED
137# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_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
113# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
114 { { __PTHREAD_RWLOCK_INITIALIZER (PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP) } }
151115# endif
152116#endif /* Unix98 or XOpen2K */
153117
......@@ -263,6 +227,17 @@ extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) __THROW;
263227 __THROW. */
264228extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return,
265229 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);
266241#endif
267242
268243/* 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 @@
11/* Functions for pseudo TTY handling.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _PTY_H
2020#define _PTY_H 1
lib/libc/include/generic-glibc/pwd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * 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/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _RE_COMP_H
1919#define _RE_COMP_H 1
lib/libc/include/generic-glibc/regdef.h+2-3
......@@ -1,6 +1,5 @@
1/* Copyright (C) 1994-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1994-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
3 Contributed by Ralf Baechle <ralf@gnu.org>.
43
54 The GNU C Library is free software; you can redistribute it and/or
65 modify it under the terms of the GNU Lesser General Public
......@@ -14,7 +13,7 @@
1413
1514 You should have received a copy of the GNU Lesser General Public
1615 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1817
1918#ifndef _REGDEF_H
2019#define _REGDEF_H
lib/libc/include/generic-glibc/regex.h+1-1
......@@ -1,6 +1,6 @@
11/* Definitions for data structures and routines for the regular
22 expression library.
3 Copyright (C) 1985, 1989-2019 Free Software Foundation, Inc.
3 Copyright (C) 1985, 1989-2020 Free Software Foundation, Inc.
44 This file is part of the GNU C Library.
55
66 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/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _REGEXP_H
2020#define _REGEXP_H 1
lib/libc/include/generic-glibc/resolv.h+1
......@@ -131,6 +131,7 @@ struct res_sym {
131131#define RES_NOTLDQUERY 0x01000000 /* Do not look up unqualified name
132132 as a TLD. */
133133#define RES_NORELOAD 0x02000000 /* No automatic configuration reload. */
134#define RES_TRUSTAD 0x04000000 /* Request AD bit, keep it in responses. */
134135
135136#define RES_DEFAULT (RES_RECURSE|RES_DEFNAMES|RES_DNSRCH)
136137
lib/libc/include/generic-glibc/sched.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SCHED_H
2020#define _SCHED_H 1
lib/libc/include/generic-glibc/scsi/scsi.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * 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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SCSI_IOCTL_H
1919#define _SCSI_IOCTL_H
lib/libc/include/generic-glibc/scsi/sg.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 History:
lib/libc/include/generic-glibc/search.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SEARCH_H
2020#define _SEARCH_H 1
lib/libc/include/generic-glibc/semaphore.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SEMAPHORE_H
1919#define _SEMAPHORE_H 1
lib/libc/include/generic-glibc/setjmp.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.13 Nonlocal jumps <setjmp.h>
lib/libc/include/generic-glibc/sgidefs.h+2-3
......@@ -1,6 +1,5 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
3 Contributed by Ralf Baechle <ralf@gnu.org>.
43
54 The GNU C Library is free software; you can redistribute it and/or
65 modify it under the terms of the GNU Lesser General Public
......@@ -14,7 +13,7 @@
1413
1514 You should have received a copy of the GNU Lesser General Public
1615 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1817
1918#ifndef _SGIDEFS_H
2019#define _SGIDEFS_H 1
lib/libc/include/generic-glibc/sgtty.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SGTTY_H
1919#define _SGTTY_H 1
lib/libc/include/generic-glibc/shadow.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* Declaration of types and functions for "shadow" storage of hashed
1919 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/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.14 Signal handling <signal.h>
lib/libc/include/generic-glibc/spawn.h+2-2
......@@ -1,5 +1,5 @@
11/* Definitions for POSIX spawn interface.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.
2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SPAWN_H
2020#define _SPAWN_H 1
lib/libc/include/generic-glibc/stdc-predef.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _STDC_PREDEF_H
1919#define _STDC_PREDEF_H 1
lib/libc/include/generic-glibc/stdint.h+3-3
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99: 7.18 Integer types <stdint.h>
......@@ -273,7 +273,7 @@ typedef __uintmax_t uintmax_t;
273273# define UINTMAX_C(c) c ## ULL
274274# endif
275275
276#if __GLIBC_USE (IEC_60559_BFP_EXT)
276#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
277277
278278# define INT8_WIDTH 8
279279# define UINT8_WIDTH 8
lib/libc/include/generic-glibc/stdio.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * ISO C99 Standard: 7.19 Input/output <stdio.h>
lib/libc/include/generic-glibc/stdio_ext.h+2-2
......@@ -1,5 +1,5 @@
11/* Functions to access FILE structure internals.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.
2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* This header contains the same definitions as the header of the same name
2020 on Sun's Solaris OS. */
lib/libc/include/generic-glibc/stdlib.h+3-3
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.20 General utilities <stdlib.h>
......@@ -208,7 +208,7 @@ extern unsigned long long int strtoull (const char *__restrict __nptr,
208208#endif /* ISO C99 or use MISC. */
209209
210210/* 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)
212212extern int strfromd (char *__dest, size_t __size, const char *__format,
213213 double __f)
214214 __THROW __nonnull ((3));
lib/libc/include/generic-glibc/string.h+7-6
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.21 String handling <string.h>
......@@ -33,7 +33,8 @@ __BEGIN_DECLS
3333#include <stddef.h>
3434
3535/* 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))
3738# define __CORRECT_ISO_CPP_STRING_H_PROTO
3839#endif
3940
......@@ -49,7 +50,7 @@ extern void *memmove (void *__dest, const void *__src, size_t __n)
4950/* Copy no more than N bytes of SRC to DEST, stopping when C is found.
5051 Return the position in DEST one byte past where C was copied,
5152 or NULL if C was not found in the first N bytes of SRC. */
52#if defined __USE_MISC || defined __USE_XOPEN
53#if defined __USE_MISC || defined __USE_XOPEN || __GLIBC_USE (ISOC2X)
5354extern void *memccpy (void *__restrict __dest, const void *__restrict __src,
5455 int __c, size_t __n)
5556 __THROW __nonnull ((1, 2));
......@@ -161,7 +162,7 @@ extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,
161162#endif
162163
163164#if (defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 \
164 || __GLIBC_USE (LIB_EXT2))
165 || __GLIBC_USE (LIB_EXT2) || __GLIBC_USE (ISOC2X))
165166/* Duplicate S, returning an identical malloc'd string. */
166167extern char *strdup (const char *__s)
167168 __THROW __attribute_malloc__ __nonnull ((1));
......@@ -170,7 +171,7 @@ extern char *strdup (const char *__s)
170171/* Return a malloc'd copy of at most N bytes of STRING. The
171172 resultant string is terminated even if no null terminator
172173 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)
174175extern char *strndup (const char *__string, size_t __n)
175176 __THROW __attribute_malloc__ __nonnull ((1));
176177#endif
lib/libc/include/generic-glibc/strings.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _STRINGS_H
1919#define _STRINGS_H 1
lib/libc/include/generic-glibc/sys/acct.h+3-3
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,14 +13,14 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_ACCT_H
1919#define _SYS_ACCT_H 1
2020
2121#include <sys/types.h>
2222#include <stdint.h>
23#include <endian.h>
23#include <bits/endian.h>
2424#include <bits/types/time_t.h>
2525
2626__BEGIN_DECLS
lib/libc/include/generic-glibc/sys/asm.h+2-3
......@@ -1,6 +1,5 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
3 Contributed by Ralf Baechle <ralf@gnu.org>.
43
54 The GNU C Library is free software; you can redistribute it and/or
65 modify it under the terms of the GNU Lesser General Public
......@@ -14,7 +13,7 @@
1413
1514 You should have received a copy of the GNU Lesser General Public
1615 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1817
1918#ifndef _SYS_ASM_H
2019#define _SYS_ASM_H
lib/libc/include/generic-glibc/sys/auxv.h+2-2
......@@ -1,5 +1,5 @@
11/* Access to the auxiliary vector.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.
2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_AUXV_H
2020#define _SYS_AUXV_H 1
lib/libc/include/generic-glibc/sys/cachectl.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_CACHECTL_H
1919#define _SYS_CACHECTL_H 1
lib/libc/include/generic-glibc/sys/cdefs.h+2-10
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_CDEFS_H
1919#define _SYS_CDEFS_H 1
......@@ -412,14 +412,6 @@
412412# define __glibc_has_attribute(attr) 0
413413#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
423415#if (!defined _Noreturn \
424416 && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \
425417 && !__GNUC_PREREQ (4,7))
lib/libc/include/generic-glibc/sys/debugreg.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_DEBUGREG_H
1919#define _SYS_DEBUGREG_H 1
lib/libc/include/generic-glibc/sys/dir.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_DIR_H
1919#define _SYS_DIR_H 1
lib/libc/include/generic-glibc/sys/elf.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_ELF_H
1919#define _SYS_ELF_H 1
lib/libc/include/generic-glibc/sys/epoll.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EPOLL_H
1919#define _SYS_EPOLL_H 1
lib/libc/include/generic-glibc/sys/eventfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EVENTFD_H
1919#define _SYS_EVENTFD_H 1
lib/libc/include/generic-glibc/sys/fanotify.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2010-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2010-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_FANOTIFY_H
1919#define _SYS_FANOTIFY_H 1
lib/libc/include/generic-glibc/sys/file.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_FILE_H
1919#define _SYS_FILE_H 1
lib/libc/include/generic-glibc/sys/fpregdef.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_FPREGDEF_H
1919#define _SYS_FPREGDEF_H
lib/libc/include/generic-glibc/sys/fsuid.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_FSUID_H
1919#define _SYS_FSUID_H 1
lib/libc/include/generic-glibc/sys/gmon_out.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by David Mosberger <davidm@cs.arizona.edu>.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* This file specifies the format of gmon.out files. It should have
2020 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 @@
11/* Definitions used by AArch64 indirect function resolvers.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IFUNC_H
2020#define _SYS_IFUNC_H
lib/libc/include/generic-glibc/sys/inotify.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_INOTIFY_H
1919#define _SYS_INOTIFY_H 1
lib/libc/include/generic-glibc/sys/io.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_IO_H
1919#define _SYS_IO_H 1
lib/libc/include/generic-glibc/sys/ioctl.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_IOCTL_H
1919#define _SYS_IOCTL_H 1
lib/libc/include/generic-glibc/sys/ipc.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_IPC_H
1919#define _SYS_IPC_H 1
lib/libc/include/generic-glibc/sys/kd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_KD_H
1919#define _SYS_KD_H 1
lib/libc/include/generic-glibc/sys/klog.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_KLOG_H
1919
lib/libc/include/generic-glibc/sys/mman.h+2-2
......@@ -1,5 +1,5 @@
11/* Definitions for BSD-style memory management.
2 Copyright (C) 1994-2019 Free Software Foundation, Inc.
2 Copyright (C) 1994-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020#define _SYS_MMAN_H 1
lib/libc/include/generic-glibc/sys/mount.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* 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/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_MSG_H
1919#define _SYS_MSG_H
lib/libc/include/generic-glibc/sys/mtio.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* Written by H. Bergman <hennus@cybercomm.nl>. */
2020
lib/libc/include/generic-glibc/sys/param.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PARAM_H
2020#define _SYS_PARAM_H 1
lib/libc/include/generic-glibc/sys/pci.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_PCI_H
1919#define _SYS_PCI_H 1
lib/libc/include/generic-glibc/sys/perm.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_PERM_H
1919
lib/libc/include/generic-glibc/sys/personality.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* 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 @@
11/* Facilities specific to the PowerPC architecture
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.
2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PLATFORM_PPC_H
2020#define _SYS_PLATFORM_PPC_H 1
lib/libc/include/generic-glibc/sys/poll.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_POLL_H
2020#define _SYS_POLL_H 1
lib/libc/include/generic-glibc/sys/prctl.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_PRCTL_H
1919#define _SYS_PRCTL_H 1
lib/libc/include/generic-glibc/sys/procfs.h+2-2
......@@ -1,5 +1,5 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121#define _SYS_PROCFS_H 1
lib/libc/include/generic-glibc/sys/profil.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _PROFIL_H
1919#define _PROFIL_H 1
lib/libc/include/generic-glibc/sys/ptrace.h+7-3
......@@ -1,5 +1,5 @@
11/* `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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PTRACE_H
2121#define _SYS_PTRACE_H 1
......@@ -166,8 +166,12 @@ enum __ptrace_request
166166#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
167167
168168 /* Get seccomp BPF filter metadata. */
169 PTRACE_SECCOMP_GET_METADATA = 0x420d
169 PTRACE_SECCOMP_GET_METADATA = 0x420d,
170170#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
171175};
172176
173177
lib/libc/include/generic-glibc/sys/quota.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * Copyright (c) 1982, 1986 Regents of the University of California.
lib/libc/include/generic-glibc/sys/random.h+2-2
......@@ -1,5 +1,5 @@
11/* Interfaces for obtaining random bytes.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_RANDOM_H
2020#define _SYS_RANDOM_H 1
lib/libc/include/generic-glibc/sys/raw.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_RAW_H
1919#define _SYS_RAW_H 1
lib/libc/include/generic-glibc/sys/reboot.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* This file should define RB_* macros to be used as flag
1919 bits in the argument to the `reboot' system call. */
lib/libc/include/generic-glibc/sys/reg.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_REG_H
1919#define _SYS_REG_H 1
lib/libc/include/generic-glibc/sys/regdef.h+2-3
......@@ -1,6 +1,5 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
3 Contributed by Ralf Baechle <ralf@gnu.org>.
43
54 The GNU C Library is free software; you can redistribute it and/or
65 modify it under the terms of the GNU Lesser General Public
......@@ -14,7 +13,7 @@
1413
1514 You should have received a copy of the GNU Lesser General Public
1615 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1817
1918#ifndef _SYS_REGDEF_H
2019#define _SYS_REGDEF_H
lib/libc/include/generic-glibc/sys/resource.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_RESOURCE_H
1919#define _SYS_RESOURCE_H 1
lib/libc/include/generic-glibc/sys/select.h+2-2
......@@ -1,5 +1,5 @@
11/* `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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* 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/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SEM_H
1919#define _SYS_SEM_H 1
lib/libc/include/generic-glibc/sys/sendfile.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SENDFILE_H
2020#define _SYS_SENDFILE_H 1
lib/libc/include/generic-glibc/sys/shm.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SHM_H
1919#define _SYS_SHM_H 1
lib/libc/include/generic-glibc/sys/signalfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SIGNALFD_H
1919#define _SYS_SIGNALFD_H 1
lib/libc/include/generic-glibc/sys/socket.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020#define _SYS_SOCKET_H 1
lib/libc/include/generic-glibc/sys/stat.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * POSIX Standard: 5.6 File Characteristics <sys/stat.h>
lib/libc/include/generic-glibc/sys/statfs.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_STATFS_H
2020#define _SYS_STATFS_H 1
lib/libc/include/generic-glibc/sys/statvfs.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_STATVFS_H
2020#define _SYS_STATVFS_H 1
lib/libc/include/generic-glibc/sys/swap.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SWAP_H
2020
lib/libc/include/generic-glibc/sys/syscall.h+6-9
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYSCALL_H
1919#define _SYSCALL_H 1
......@@ -23,12 +23,9 @@
2323 from the kernel sources. */
2424#include <asm/unistd.h>
2525
26#ifndef _LIBC
27/* The Linux kernel header file defines macros `__NR_<name>', but some
28 programs expect the traditional form `SYS_<name>'. So in building libc
29 we scan the kernel's list and produce <bits/syscall.h> with macros for
30 all the `SYS_' names. */
31# include <bits/syscall.h>
32#endif
26/* The Linux kernel header file defines macros __NR_*, but some
27 programs expect the traditional form SYS_*. <bits/syscall.h>
28 defines SYS_* macros for __NR_* macros of known names. */
29#include <bits/syscall.h>
3330
3431#endif
\ No newline at end of file
lib/libc/include/generic-glibc/sys/sysctl.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SYSCTL_H
1919#define _SYS_SYSCTL_H 1
lib/libc/include/generic-glibc/sys/sysinfo.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SYSINFO_H
1919#define _SYS_SYSINFO_H 1
lib/libc/include/generic-glibc/sys/sysmacros.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SYSMACROS_H
2020#define _SYS_SYSMACROS_H 1
lib/libc/include/generic-glibc/sys/sysmips.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SYSMIPS_H
1919#define _SYS_SYSMIPS_H 1
lib/libc/include/generic-glibc/sys/tas.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Maciej W. Rozycki <macro@ds2.pg.gda.pl>, 2000.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_TAS_H
2020#define _SYS_TAS_H 1
lib/libc/include/generic-glibc/sys/time.h+14-13
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIME_H
1919#define _SYS_TIME_H 1
......@@ -54,23 +54,24 @@ struct timezone
5454 int tz_minuteswest; /* Minutes west of GMT. */
5555 int tz_dsttime; /* Nonzero if DST is ever in effect. */
5656 };
57
58typedef struct timezone *__restrict __timezone_ptr_t;
59#else
60typedef void *__restrict __timezone_ptr_t;
6157#endif
6258
63/* Get the current time of day and timezone information,
64 putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled.
65 Returns 0 on success, -1 on errors.
66 NOTE: This form of timezone information is obsolete.
67 Use the functions and variables declared in <time.h> instead. */
59/* Get the current time of day, putting it into *TV.
60 If TZ is not null, *TZ must be a struct timezone, and both fields
61 will be set to zero.
62 Calling this function with a non-null TZ is obsolete;
63 use localtime etc. instead.
64 This function itself is semi-obsolete;
65 most callers should use time or clock_gettime instead. */
6866extern int gettimeofday (struct timeval *__restrict __tv,
69 __timezone_ptr_t __tz) __THROW __nonnull ((1));
67 void *__restrict __tz) __THROW __nonnull ((1));
7068
7169#ifdef __USE_MISC
7270/* 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. */
7475extern int settimeofday (const struct timeval *__tv,
7576 const struct timezone *__tz)
7677 __THROW;
lib/libc/include/generic-glibc/sys/timeb.h+4-3
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1994-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1994-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIMEB_H
1919#define _SYS_TIMEB_H 1
......@@ -36,7 +36,8 @@ struct timeb
3636
3737/* 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
4142__END_DECLS
4243
lib/libc/include/generic-glibc/sys/timerfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2008-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIMERFD_H
1919#define _SYS_TIMERFD_H 1
lib/libc/include/generic-glibc/sys/times.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * 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/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIMEX_H
1919#define _SYS_TIMEX_H 1
lib/libc/include/generic-glibc/sys/types.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * 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/* 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
33 The GNU C Library is free software; you can redistribute it and/or
44 modify it under the terms of the GNU Lesser General Public
......@@ -12,7 +12,7 @@
1212
1313 You should have received a copy of the GNU Lesser General Public
1414 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */
15 <https://www.gnu.org/licenses/>. */
1616
1717/* Don't rely on this, the interface is currently messed up and may need to
1818 be broken to be fixed. */
lib/libc/include/generic-glibc/sys/uio.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_UIO_H
1919#define _SYS_UIO_H 1
lib/libc/include/generic-glibc/sys/un.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_UN_H
1919#define _SYS_UN_H 1
lib/libc/include/generic-glibc/sys/user.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_USER_H
1919#define _SYS_USER_H 1
lib/libc/include/generic-glibc/sys/utsname.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * POSIX Standard: 4.4 System Identification <sys/utsname.h>
lib/libc/include/generic-glibc/sys/vlimit.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_VLIMIT_H
1919#define _SYS_VLIMIT_H 1
lib/libc/include/generic-glibc/sys/vm86.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_VM86_H
1919
lib/libc/include/generic-glibc/sys/vtimes.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_VTIMES_H
1919#define _SYS_VTIMES_H 1
lib/libc/include/generic-glibc/sys/wait.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_XATTR_H
1919#define _SYS_XATTR_H 1
lib/libc/include/generic-glibc/tar.h+2-2
......@@ -1,5 +1,5 @@
11/* Extended tar format from POSIX.1.
2 Copyright (C) 1992-2019 Free Software Foundation, Inc.
2 Copyright (C) 1992-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44 Written by David J. MacKenzie.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _TAR_H
2121#define _TAR_H 1
lib/libc/include/generic-glibc/termios.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * POSIX Standard: 7.1-2 General Terminal Interface <termios.h>
lib/libc/include/generic-glibc/tgmath.h+171-26
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.22 Type-generic math <tgmath.h>
......@@ -43,6 +43,25 @@
4343
4444#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
4665# if __HAVE_BUILTIN_TGMATH
4766
4867# if __HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)
......@@ -94,6 +113,33 @@
94113# define __TGMATH_2C(F, C, X, Y) __builtin_tgmath (__TGMATH_RCFUNCS (F, C) \
95114 (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
97143# else /* !__HAVE_BUILTIN_TGMATH. */
98144
99145# ifdef __NO_LONG_DOUBLE_MATH
......@@ -230,8 +276,6 @@
230276 __TGMATH_2 (Fct, (Val1), (Val2))
231277# define __TGMATH_BINARY_REAL_STD_ONLY(Val1, Val2, Fct) \
232278 __TGMATH_2STD (Fct, (Val1), (Val2))
233# define __TGMATH_BINARY_REAL_RET_ONLY(Val1, Val2, Fct) \
234 __TGMATH_2 (Fct, (Val1), (Val2))
235279# define __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY(Val1, Val2, Val3, Fct) \
236280 __TGMATH_3 (Fct, (Val1), (Val2), (Val3))
237281# define __TGMATH_TERNARY_REAL_ONLY(Val1, Val2, Val3, Fct) \
......@@ -326,18 +370,6 @@
326370 + (__tgmath_real_type (Val2)) 0)) \
327371 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
341373# define __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY(Val1, Val2, Val3, Fct) \
342374 (__extension__ ((sizeof ((Val1) + (Val2)) > sizeof (double) \
343375 && __builtin_classify_type ((Val1) + (Val2)) == 8) \
......@@ -507,6 +539,65 @@
507539 : (__typeof ((__tgmath_complex_type (Val1)) 0 \
508540 + (__tgmath_complex_type (Val2)) 0)) \
509541 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
510601# endif /* !__HAVE_BUILTIN_TGMATH. */
511602#else
512603# error "Unsupported compiler; you cannot use <tgmath.h>"
......@@ -661,7 +752,7 @@
661752 prevailing rounding mode. */
662753#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)
665756/* Return X - epsilon. */
666757# define nextdown(Val) __TGMATH_UNARY_REAL_ONLY (Val, nextdown)
667758/* Return X + epsilon. */
......@@ -706,7 +797,7 @@
706797#define fma(Val1, Val2, Val3) \
707798 __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)
710801/* Round X to nearest integer value, rounding halfway cases to even. */
711802# define roundeven(Val) __TGMATH_UNARY_REAL_ONLY (Val, roundeven)
712803
......@@ -730,14 +821,6 @@
730821
731822/* Return value with minimum magnitude. */
732823# 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)
741824#endif
742825
743826
......@@ -761,4 +844,66 @@
761844/* Real part of Z. */
762845#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
764909#endif /* tgmath.h */
\ No newline at end of file
lib/libc/include/generic-glibc/thread_db.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _THREAD_DB_H
2020#define _THREAD_DB_H 1
lib/libc/include/generic-glibc/threads.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _THREADS_H
2020#define _THREADS_H 1
lib/libc/include/generic-glibc/time.h+6-12
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.23 Date and time <time.h>
......@@ -122,7 +122,7 @@ extern struct tm *gmtime (const time_t *__timer) __THROW;
122122 of *TIMER in the local timezone. */
123123extern struct tm *localtime (const time_t *__timer) __THROW;
124124
125#ifdef __USE_POSIX
125#if defined __USE_POSIX || __GLIBC_USE (ISOC2X)
126126/* Return the `struct tm' representation of *TIMER in UTC,
127127 using *TP to store the result. */
128128extern struct tm *gmtime_r (const time_t *__restrict __timer,
......@@ -132,7 +132,7 @@ extern struct tm *gmtime_r (const time_t *__restrict __timer,
132132 using *TP to store the result. */
133133extern struct tm *localtime_r (const time_t *__restrict __timer,
134134 struct tm *__restrict __tp) __THROW;
135#endif /* POSIX */
135#endif /* POSIX || C2X */
136136
137137/* Return a string of the form "Day Mon dd hh:mm:ss yyyy\n"
138138 that is the representation of TP in this format. */
......@@ -141,7 +141,7 @@ extern char *asctime (const struct tm *__tp) __THROW;
141141/* Equivalent to `asctime (localtime (timer))'. */
142142extern char *ctime (const time_t *__timer) __THROW;
143143
144#ifdef __USE_POSIX
144#if defined __USE_POSIX || __GLIBC_USE (ISOC2X)
145145/* Reentrant versions of the above functions. */
146146
147147/* 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,
152152/* Equivalent to `asctime_r (localtime_r (timer, *TMP*), buf)'. */
153153extern char *ctime_r (const time_t *__restrict __timer,
154154 char *__restrict __buf) __THROW;
155#endif /* POSIX */
155#endif /* POSIX || C2X */
156156
157157
158158/* Defined in localtime.c. */
......@@ -175,12 +175,6 @@ extern int daylight;
175175extern long int timezone;
176176#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
185179/* Nonzero if YEAR is a leap year (every 4 years,
186180 except every 100th isn't, and every 400th is). */
lib/libc/include/generic-glibc/uchar.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C11 Standard: 7.28
lib/libc/include/generic-glibc/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* System V ABI compliant user-level context switching support. */
1919
lib/libc/include/generic-glibc/ulimit.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _ULIMIT_H
1919#define _ULIMIT_H 1
lib/libc/include/generic-glibc/unistd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * POSIX Standard: 2.10 Symbolic Constants <unistd.h>
lib/libc/include/generic-glibc/utime.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * 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/* Copyright (C) 1993-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1993-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _UTMP_H
1919#define _UTMP_H 1
lib/libc/include/generic-glibc/utmpx.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _UTMPX_H
1919#define _UTMPX_H 1
lib/libc/include/generic-glibc/values.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* This interface is obsolete. New programs should use
2020 <limits.h> and/or <float.h> instead of <values.h>. */
lib/libc/include/generic-glibc/wchar.h+4-3
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1995-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.24
......@@ -685,7 +685,8 @@ extern int vswscanf (const wchar_t *__restrict __s,
685685 __gnuc_va_list __arg)
686686 __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) \
689690 && (!defined __LDBL_COMPAT || !defined __REDIRECT) \
690691 && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
691692# ifdef __REDIRECT
lib/libc/include/generic-glibc/wctype.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/*
1919 * ISO C99 Standard: 7.25
lib/libc/include/generic-glibc/wordexp.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _WORDEXP_H
1919#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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _UNISTD_H
1919# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EPOLL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -101,7 +101,7 @@ fenv_t;
101101# define FE_NOMASK_ENV ((const fenv_t *) -2)
102102#endif
103103
104#if __GLIBC_USE (IEC_60559_BFP_EXT)
104#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
105105/* Type representing floating-point control modes. */
106106typedef struct
107107 {
lib/libc/include/i386-linux-gnu/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/i386-linux-gnu/bits/flt-eval-method.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* Definition of __INDIRECT_RETURN. x86 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _UCONTEXT_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IPC_H
2020# 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 @@
11/* Define iscanonical macro. ldbl-96 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _LINK_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,8 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# error "Never include <bits/math-vector.h> directly;\
lib/libc/include/i386-linux-gnu/bits/mman.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_PTHREADTYPES_ARCH_H
1919#define _BITS_PTHREADTYPES_ARCH_H 1
......@@ -24,20 +24,17 @@
2424# if __WORDSIZE == 64
2525# define __SIZEOF_PTHREAD_MUTEX_T 40
2626# define __SIZEOF_PTHREAD_ATTR_T 56
27# define __SIZEOF_PTHREAD_MUTEX_T 40
2827# define __SIZEOF_PTHREAD_RWLOCK_T 56
2928# define __SIZEOF_PTHREAD_BARRIER_T 32
3029# else
3130# define __SIZEOF_PTHREAD_MUTEX_T 32
3231# define __SIZEOF_PTHREAD_ATTR_T 32
33# define __SIZEOF_PTHREAD_MUTEX_T 32
3432# define __SIZEOF_PTHREAD_RWLOCK_T 44
3533# define __SIZEOF_PTHREAD_BARRIER_T 20
3634# endif
3735#else
3836# define __SIZEOF_PTHREAD_MUTEX_T 24
3937# define __SIZEOF_PTHREAD_ATTR_T 36
40# define __SIZEOF_PTHREAD_MUTEX_T 24
4138# define __SIZEOF_PTHREAD_RWLOCK_T 32
4239# define __SIZEOF_PTHREAD_BARRIER_T 20
4340#endif
......@@ -47,57 +44,9 @@
4744#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
4845#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
6247#define __LOCK_ALIGNMENT
6348#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
10150#ifndef __x86_64__
10251/* Extra attributes for the cleanup functions. */
10352# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
lib/libc/include/i386-linux-gnu/bits/select.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SELECT_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SEMAPHORE_H
2020# 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/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* Define the machine-dependent type `jmp_buf'. x86-64 version. */
1919#ifndef _BITS_SETJMP_H
lib/libc/include/i386-linux-gnu/bits/sigcontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_SIGCONTEXT_H
1919#define _BITS_SIGCONTEXT_H 1
lib/libc/include/i386-linux-gnu/bits/stat.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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/* Copyright (C) 2012-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2012-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if defined __x86_64__ && defined __ILP32__
1919# error "sysctl system call is unsupported in x32 kernel"
lib/libc/include/i386-linux-gnu/bits/timesize.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if defined __x86_64__ && defined __ILP32__
2020/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_TYPES_H
2020# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
......@@ -84,8 +84,13 @@
8484
8585/* And for __rlim_t and __rlim64_t. */
8686# 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
8790#else
8891# define __RLIM_T_MATCHES_RLIM64_T 0
92
93# define __STATFS_MATCHES_STATFS64 0
8994#endif
9095
9196/* 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 @@
11! 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.
33! This file is part of the GNU C Library.
44!
55! The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414!
1515! You should have received a copy of the GNU Lesser General Public
1616! License along with the GNU C Library; if not, see
17! <http://www.gnu.org/licenses/>.
17! <https://www.gnu.org/licenses/>.
1818
1919!GCC$ builtin (cos) attributes simd (notinbranch) if('x86_64')
2020!GCC$ builtin (cosf) attributes simd (notinbranch) if('x86_64')
lib/libc/include/i386-linux-gnu/fpu_control.h+2-2
......@@ -1,5 +1,5 @@
11/* FPU control word bits. x86 version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.
2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44 Contributed by Olaf Flebbe.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _FPU_CONTROL_H
2121#define _FPU_CONTROL_H 1
lib/libc/include/i386-linux-gnu/sys/elf.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_ELF_H
1919#define _SYS_ELF_H 1
lib/libc/include/i386-linux-gnu/sys/ptrace.h+7-3
......@@ -1,5 +1,5 @@
11/* `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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PTRACE_H
2121#define _SYS_PTRACE_H 1
......@@ -186,8 +186,12 @@ enum __ptrace_request
186186#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
187187
188188 /* Get seccomp BPF filter metadata. */
189 PTRACE_SECCOMP_GET_METADATA = 0x420d
189 PTRACE_SECCOMP_GET_METADATA = 0x420d,
190190#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
191195};
192196
193197
lib/libc/include/i386-linux-gnu/sys/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_UCONTEXT_H
1919#define _SYS_UCONTEXT_H 1
lib/libc/include/i386-linux-gnu/sys/user.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_USER_H
1919#define _SYS_USER_H 1
lib/libc/include/mips-linux-gnu/bits/dlfcn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _DLFCN_H
2020# 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 @@
11/* Error constants. MIPS/Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_ERRNO_H
2020
lib/libc/include/mips-linux-gnu/bits/eventfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EVENTFD_H
1919# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_INOTIFY_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IOCTL_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * Never include <bits/ipctypes.h> directly.
lib/libc/include/mips-linux-gnu/bits/local_lim.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* The kernel header pollutes the namespace with the NR_OPEN symbol
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MSG_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_POLL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_RESOURCE_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* Define SHMLBA. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGACTION_H
2020#define _BITS_SIGACTION_H 1
lib/libc/include/mips-linux-gnu/bits/sigcontext.h+2-2
......@@ -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
33 The GNU C Library is free software; you can redistribute it and/or
44 modify it under the terms of the GNU Lesser General Public
......@@ -12,7 +12,7 @@
1212
1313 You should have received a copy of the GNU Lesser General Public
1414 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */
15 <https://www.gnu.org/licenses/>. */
1616
1717#ifndef _BITS_SIGCONTEXT_H
1818#define _BITS_SIGCONTEXT_H 1
lib/libc/include/mips-linux-gnu/bits/signalfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SIGNALFD_H
1919# 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 @@
11/* Signal number definitions. Linux/MIPS version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGNUM_H
2020#define _BITS_SIGNUM_H 1
lib/libc/include/mips-linux-gnu/bits/socket-constants.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_STATFS_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* struct termios definition. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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/* Copyright (C) 2008-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIMERFD_H
1919# 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 @@
11/* Define stack_t. MIPS Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __stack_t_defined
2020#define __stack_t_defined 1
lib/libc/include/mips-linux-gnu/ieee754.h+12-9
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,16 +13,19 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#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
2730__BEGIN_DECLS
2831
......@@ -127,7 +130,7 @@ union ieee754_double
127130
128131#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
129132
130#if LDBL_MANT_DIG == 113
133#if __LDBL_MANT_DIG__ == 113
131134
132135union ieee854_long_double
133136 {
......@@ -184,7 +187,7 @@ union ieee854_long_double
184187
185188#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
186189
187#elif LDBL_MANT_DIG == 64
190#elif __LDBL_MANT_DIG__ == 64
188191
189192union ieee854_long_double
190193 {
......@@ -253,7 +256,7 @@ union ieee854_long_double
253256
254257#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
255258
256#elif LDBL_MANT_DIG == 53
259#elif __LDBL_MANT_DIG__ == 53
257260
258261union ieee854_long_double
259262 {
......@@ -316,7 +319,7 @@ union ieee854_long_double
316319
317320#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
318321
319#endif /* LDBL_MANT_DIG == 53 */
322#endif /* __LDBL_MANT_DIG__ == 53 */
320323
321324__END_DECLS
322325
lib/libc/include/mips64-linux-gnuabi64/bits/dlfcn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _DLFCN_H
2020# 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 @@
11/* Error constants. MIPS/Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_ERRNO_H
2020
lib/libc/include/mips64-linux-gnuabi64/bits/eventfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EVENTFD_H
1919# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_INOTIFY_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IOCTL_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * Never include <bits/ipctypes.h> directly.
lib/libc/include/mips64-linux-gnuabi64/bits/local_lim.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* The kernel header pollutes the namespace with the NR_OPEN symbol
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MSG_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_POLL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_RESOURCE_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* Define SHMLBA. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGACTION_H
2020#define _BITS_SIGACTION_H 1
lib/libc/include/mips64-linux-gnuabi64/bits/sigcontext.h+2-2
......@@ -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
33 The GNU C Library is free software; you can redistribute it and/or
44 modify it under the terms of the GNU Lesser General Public
......@@ -12,7 +12,7 @@
1212
1313 You should have received a copy of the GNU Lesser General Public
1414 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */
15 <https://www.gnu.org/licenses/>. */
1616
1717#ifndef _BITS_SIGCONTEXT_H
1818#define _BITS_SIGCONTEXT_H 1
lib/libc/include/mips64-linux-gnuabi64/bits/signalfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SIGNALFD_H
1919# 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 @@
11/* Signal number definitions. Linux/MIPS version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGNUM_H
2020#define _BITS_SIGNUM_H 1
lib/libc/include/mips64-linux-gnuabi64/bits/socket-constants.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_STATFS_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* struct termios definition. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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/* Copyright (C) 2008-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIMERFD_H
1919# 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 @@
11/* Define stack_t. MIPS Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __stack_t_defined
2020#define __stack_t_defined 1
lib/libc/include/mips64-linux-gnuabi64/ieee754.h+12-9
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,16 +13,19 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#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
2730__BEGIN_DECLS
2831
......@@ -127,7 +130,7 @@ union ieee754_double
127130
128131#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
129132
130#if LDBL_MANT_DIG == 113
133#if __LDBL_MANT_DIG__ == 113
131134
132135union ieee854_long_double
133136 {
......@@ -184,7 +187,7 @@ union ieee854_long_double
184187
185188#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
186189
187#elif LDBL_MANT_DIG == 64
190#elif __LDBL_MANT_DIG__ == 64
188191
189192union ieee854_long_double
190193 {
......@@ -253,7 +256,7 @@ union ieee854_long_double
253256
254257#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
255258
256#elif LDBL_MANT_DIG == 53
259#elif __LDBL_MANT_DIG__ == 53
257260
258261union ieee854_long_double
259262 {
......@@ -316,7 +319,7 @@ union ieee854_long_double
316319
317320#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
318321
319#endif /* LDBL_MANT_DIG == 53 */
322#endif /* __LDBL_MANT_DIG__ == 53 */
320323
321324__END_DECLS
322325
lib/libc/include/mips64-linux-gnuabin32/bits/dlfcn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _DLFCN_H
2020# 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 @@
11/* Error constants. MIPS/Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_ERRNO_H
2020
lib/libc/include/mips64-linux-gnuabin32/bits/eventfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EVENTFD_H
1919# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_INOTIFY_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IOCTL_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * Never include <bits/ipctypes.h> directly.
lib/libc/include/mips64-linux-gnuabin32/bits/local_lim.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* The kernel header pollutes the namespace with the NR_OPEN symbol
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MSG_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_POLL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_RESOURCE_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* Define SHMLBA. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGACTION_H
2020#define _BITS_SIGACTION_H 1
lib/libc/include/mips64-linux-gnuabin32/bits/sigcontext.h+2-2
......@@ -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
33 The GNU C Library is free software; you can redistribute it and/or
44 modify it under the terms of the GNU Lesser General Public
......@@ -12,7 +12,7 @@
1212
1313 You should have received a copy of the GNU Lesser General Public
1414 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */
15 <https://www.gnu.org/licenses/>. */
1616
1717#ifndef _BITS_SIGCONTEXT_H
1818#define _BITS_SIGCONTEXT_H 1
lib/libc/include/mips64-linux-gnuabin32/bits/signalfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SIGNALFD_H
1919# 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 @@
11/* Signal number definitions. Linux/MIPS version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGNUM_H
2020#define _BITS_SIGNUM_H 1
lib/libc/include/mips64-linux-gnuabin32/bits/socket-constants.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_STATFS_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* struct termios definition. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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/* Copyright (C) 2008-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIMERFD_H
1919# 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 @@
11/* Define stack_t. MIPS Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __stack_t_defined
2020#define __stack_t_defined 1
lib/libc/include/mips64-linux-gnuabin32/ieee754.h+12-9
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,16 +13,19 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#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
2730__BEGIN_DECLS
2831
......@@ -127,7 +130,7 @@ union ieee754_double
127130
128131#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
129132
130#if LDBL_MANT_DIG == 113
133#if __LDBL_MANT_DIG__ == 113
131134
132135union ieee854_long_double
133136 {
......@@ -184,7 +187,7 @@ union ieee854_long_double
184187
185188#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
186189
187#elif LDBL_MANT_DIG == 64
190#elif __LDBL_MANT_DIG__ == 64
188191
189192union ieee854_long_double
190193 {
......@@ -253,7 +256,7 @@ union ieee854_long_double
253256
254257#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
255258
256#elif LDBL_MANT_DIG == 53
259#elif __LDBL_MANT_DIG__ == 53
257260
258261union ieee854_long_double
259262 {
......@@ -316,7 +319,7 @@ union ieee854_long_double
316319
317320#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
318321
319#endif /* LDBL_MANT_DIG == 53 */
322#endif /* __LDBL_MANT_DIG__ == 53 */
320323
321324__END_DECLS
322325
lib/libc/include/mips64el-linux-gnuabi64/bits/dlfcn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _DLFCN_H
2020# 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 @@
11/* Error constants. MIPS/Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_ERRNO_H
2020
lib/libc/include/mips64el-linux-gnuabi64/bits/eventfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EVENTFD_H
1919# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_INOTIFY_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IOCTL_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * Never include <bits/ipctypes.h> directly.
lib/libc/include/mips64el-linux-gnuabi64/bits/local_lim.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* The kernel header pollutes the namespace with the NR_OPEN symbol
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MSG_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_POLL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_RESOURCE_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* Define SHMLBA. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGACTION_H
2020#define _BITS_SIGACTION_H 1
lib/libc/include/mips64el-linux-gnuabi64/bits/sigcontext.h+2-2
......@@ -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
33 The GNU C Library is free software; you can redistribute it and/or
44 modify it under the terms of the GNU Lesser General Public
......@@ -12,7 +12,7 @@
1212
1313 You should have received a copy of the GNU Lesser General Public
1414 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */
15 <https://www.gnu.org/licenses/>. */
1616
1717#ifndef _BITS_SIGCONTEXT_H
1818#define _BITS_SIGCONTEXT_H 1
lib/libc/include/mips64el-linux-gnuabi64/bits/signalfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SIGNALFD_H
1919# 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 @@
11/* Signal number definitions. Linux/MIPS version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGNUM_H
2020#define _BITS_SIGNUM_H 1
lib/libc/include/mips64el-linux-gnuabi64/bits/socket-constants.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_STATFS_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* struct termios definition. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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/* Copyright (C) 2008-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIMERFD_H
1919# 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 @@
11/* Define stack_t. MIPS Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __stack_t_defined
2020#define __stack_t_defined 1
lib/libc/include/mips64el-linux-gnuabi64/ieee754.h+12-9
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,16 +13,19 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#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
2730__BEGIN_DECLS
2831
......@@ -127,7 +130,7 @@ union ieee754_double
127130
128131#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
129132
130#if LDBL_MANT_DIG == 113
133#if __LDBL_MANT_DIG__ == 113
131134
132135union ieee854_long_double
133136 {
......@@ -184,7 +187,7 @@ union ieee854_long_double
184187
185188#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
186189
187#elif LDBL_MANT_DIG == 64
190#elif __LDBL_MANT_DIG__ == 64
188191
189192union ieee854_long_double
190193 {
......@@ -253,7 +256,7 @@ union ieee854_long_double
253256
254257#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
255258
256#elif LDBL_MANT_DIG == 53
259#elif __LDBL_MANT_DIG__ == 53
257260
258261union ieee854_long_double
259262 {
......@@ -316,7 +319,7 @@ union ieee854_long_double
316319
317320#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
318321
319#endif /* LDBL_MANT_DIG == 53 */
322#endif /* __LDBL_MANT_DIG__ == 53 */
320323
321324__END_DECLS
322325
lib/libc/include/mips64el-linux-gnuabin32/bits/dlfcn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _DLFCN_H
2020# 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 @@
11/* Error constants. MIPS/Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_ERRNO_H
2020
lib/libc/include/mips64el-linux-gnuabin32/bits/eventfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EVENTFD_H
1919# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_INOTIFY_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IOCTL_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * Never include <bits/ipctypes.h> directly.
lib/libc/include/mips64el-linux-gnuabin32/bits/local_lim.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* The kernel header pollutes the namespace with the NR_OPEN symbol
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MSG_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_POLL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_RESOURCE_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* Define SHMLBA. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGACTION_H
2020#define _BITS_SIGACTION_H 1
lib/libc/include/mips64el-linux-gnuabin32/bits/sigcontext.h+2-2
......@@ -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
33 The GNU C Library is free software; you can redistribute it and/or
44 modify it under the terms of the GNU Lesser General Public
......@@ -12,7 +12,7 @@
1212
1313 You should have received a copy of the GNU Lesser General Public
1414 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */
15 <https://www.gnu.org/licenses/>. */
1616
1717#ifndef _BITS_SIGCONTEXT_H
1818#define _BITS_SIGCONTEXT_H 1
lib/libc/include/mips64el-linux-gnuabin32/bits/signalfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SIGNALFD_H
1919# 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 @@
11/* Signal number definitions. Linux/MIPS version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGNUM_H
2020#define _BITS_SIGNUM_H 1
lib/libc/include/mips64el-linux-gnuabin32/bits/socket-constants.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_STATFS_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* struct termios definition. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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/* Copyright (C) 2008-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIMERFD_H
1919# 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 @@
11/* Define stack_t. MIPS Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __stack_t_defined
2020#define __stack_t_defined 1
lib/libc/include/mips64el-linux-gnuabin32/ieee754.h+12-9
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,16 +13,19 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#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
2730__BEGIN_DECLS
2831
......@@ -127,7 +130,7 @@ union ieee754_double
127130
128131#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
129132
130#if LDBL_MANT_DIG == 113
133#if __LDBL_MANT_DIG__ == 113
131134
132135union ieee854_long_double
133136 {
......@@ -184,7 +187,7 @@ union ieee854_long_double
184187
185188#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
186189
187#elif LDBL_MANT_DIG == 64
190#elif __LDBL_MANT_DIG__ == 64
188191
189192union ieee854_long_double
190193 {
......@@ -253,7 +256,7 @@ union ieee854_long_double
253256
254257#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
255258
256#elif LDBL_MANT_DIG == 53
259#elif __LDBL_MANT_DIG__ == 53
257260
258261union ieee854_long_double
259262 {
......@@ -316,7 +319,7 @@ union ieee854_long_double
316319
317320#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
318321
319#endif /* LDBL_MANT_DIG == 53 */
322#endif /* __LDBL_MANT_DIG__ == 53 */
320323
321324__END_DECLS
322325
lib/libc/include/mipsel-linux-gnu/bits/dlfcn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _DLFCN_H
2020# 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 @@
11/* Error constants. MIPS/Linux specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_ERRNO_H
2020
lib/libc/include/mipsel-linux-gnu/bits/eventfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EVENTFD_H
1919# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_INOTIFY_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IOCTL_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/*
2020 * Never include <bits/ipctypes.h> directly.
lib/libc/include/mipsel-linux-gnu/bits/local_lim.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* The kernel header pollutes the namespace with the NR_OPEN symbol
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MSG_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_POLL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_RESOURCE_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* Define SHMLBA. MIPS version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGACTION_H
2020#define _BITS_SIGACTION_H 1
lib/libc/include/mipsel-linux-gnu/bits/sigcontext.h+2-2
......@@ -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
33 The GNU C Library is free software; you can redistribute it and/or
44 modify it under the terms of the GNU Lesser General Public
......@@ -12,7 +12,7 @@
1212
1313 You should have received a copy of the GNU Lesser General Public
1414 License along with the GNU C Library. If not, see
15 <http://www.gnu.org/licenses/>. */
15 <https://www.gnu.org/licenses/>. */
1616
1717#ifndef _BITS_SIGCONTEXT_H
1818#define _BITS_SIGCONTEXT_H 1
lib/libc/include/mipsel-linux-gnu/bits/signalfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SIGNALFD_H
1919# 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 @@
11/* Signal number definitions. Linux/MIPS version.
2 Copyright (C) 1995-2019 Free Software Foundation, Inc.
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGNUM_H
2020#define _BITS_SIGNUM_H 1
lib/libc/include/mipsel-linux-gnu/bits/socket-constants.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_STATFS_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* struct termios definition. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/mips version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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/* Copyright (C) 2008-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIMERFD_H
1919# 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 @@
11/* Define stack_t. MIPS Linux version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __stack_t_defined
2020#define __stack_t_defined 1
lib/libc/include/mipsel-linux-gnu/ieee754.h+12-9
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,16 +13,19 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#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
2730__BEGIN_DECLS
2831
......@@ -127,7 +130,7 @@ union ieee754_double
127130
128131#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */
129132
130#if LDBL_MANT_DIG == 113
133#if __LDBL_MANT_DIG__ == 113
131134
132135union ieee854_long_double
133136 {
......@@ -184,7 +187,7 @@ union ieee854_long_double
184187
185188#define IEEE854_LONG_DOUBLE_BIAS 0x3fff /* Added to exponent. */
186189
187#elif LDBL_MANT_DIG == 64
190#elif __LDBL_MANT_DIG__ == 64
188191
189192union ieee854_long_double
190193 {
......@@ -253,7 +256,7 @@ union ieee854_long_double
253256
254257#define IEEE854_LONG_DOUBLE_BIAS 0x3fff
255258
256#elif LDBL_MANT_DIG == 53
259#elif __LDBL_MANT_DIG__ == 53
257260
258261union ieee854_long_double
259262 {
......@@ -316,7 +319,7 @@ union ieee854_long_double
316319
317320#define IEEE854_LONG_DOUBLE_BIAS 0x3ff /* Added to exponent. */
318321
319#endif /* LDBL_MANT_DIG == 53 */
322#endif /* __LDBL_MANT_DIG__ == 53 */
320323
321324__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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _UNISTD_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -170,7 +170,7 @@ extern const fenv_t __fe_nonieee_env;
170170
171171#endif
172172
173#if __GLIBC_USE (IEC_60559_BFP_EXT)
173#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
174174/* Type representing floating-point control modes. */
175175typedef double femode_t;
176176
lib/libc/include/powerpc-linux-gnu/bits/fenvinline.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/powerpc-linux-gnu/bits/fp-fast.h+2-2
......@@ -1,5 +1,5 @@
11/* Define FP_FAST_* macros. PowerPC version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IOCTL_H
2020# 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 @@
11/* Define iscanonical macro. ldbl-128ibm version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _LINK_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 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
1919/* The kernel header pollutes the namespace with the NR_OPEN symbol
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,11 +14,12 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __NO_LONG_DOUBLE_MATH
2020# define __LONG_DOUBLE_MATH_OPTIONAL 1
2121# ifndef __LONG_DOUBLE_128__
2222# define __NO_LONG_DOUBLE_MATH 1
2323# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
......@@ -36,6 +36,8 @@
3636# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
3737# define MAP_STACK 0x20000 /* Allocation is for a stack. */
3838# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
39# define MAP_SYNC 0x80000 /* Perform synchronous page
40 faults for the mapping. */
3941# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
4042 underlying mapping. */
4143#endif
lib/libc/include/powerpc-linux-gnu/bits/msq-pad.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MSG_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44 Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SEMAPHORE_H
2121# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* Define the machine-dependent type `jmp_buf'. PowerPC version. */
1919#ifndef _BITS_SETJMP_H
lib/libc/include/powerpc-linux-gnu/bits/shm-pad.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* sigstack, sigaltstack definitions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGSTACK_H
2020#define _BITS_SIGSTACK_H 1
lib/libc/include/powerpc-linux-gnu/bits/socket-constants.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios control mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios input mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/powerpc version.
2 Copyright (C) 2019i Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios output mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* FPU control word definitions. PowerPC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FPU_CONTROL_H
2020#define _FPU_CONTROL_H
lib/libc/include/powerpc-linux-gnu/ieee754.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,14 +13,14 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#include <features.h>
2222
23#include <endian.h>
23#include <bits/endian.h>
2424
2525__BEGIN_DECLS
2626
lib/libc/include/powerpc-linux-gnu/sys/ptrace.h+12-3
......@@ -1,5 +1,5 @@
11/* `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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PTRACE_H
2020#define _SYS_PTRACE_H 1
......@@ -38,6 +38,7 @@ __BEGIN_DECLS
3838# undef PTRACE_GETREGSET
3939# undef PTRACE_GETSIGINFO
4040# undef PTRACE_GETSIGMASK
41# undef PTRACE_GET_SYSCALL_INFO
4142# undef PTRACE_GETVRREGS
4243# undef PTRACE_GETVSRREGS
4344# undef PTRACE_INTERRUPT
......@@ -65,6 +66,10 @@ __BEGIN_DECLS
6566# undef PTRACE_SINGLEBLOCK
6667# undef PTRACE_SINGLESTEP
6768# 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
6873# undef PTRACE_TRACEME
6974#endif
7075
......@@ -241,8 +246,12 @@ enum __ptrace_request
241246#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
242247
243248 /* Get seccomp BPF filter metadata. */
244 PTRACE_SECCOMP_GET_METADATA = 0x420d
249 PTRACE_SECCOMP_GET_METADATA = 0x420d,
245250#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
246255};
247256
248257
lib/libc/include/powerpc-linux-gnu/sys/ucontext.h+6-6
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_UCONTEXT_H
1919#define _SYS_UCONTEXT_H 1
......@@ -75,12 +75,12 @@ typedef struct
7575 * a sigcontext. For older kernel (without Altivec) the sigcontext matches
7676 * the mcontext upto but not including the v_regs field. For kernels that
7777 * 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 field
79 * can be refernced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
78 * v_regs field may not exist and should not be referenced. The v_regs field
79 * can be referenced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
8080 * is set in AT_HWCAP. */
8181
8282/* 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. */
8484# define __NFPREG 33 /* includes fp0-fp31 &fpscr. */
8585# define __NVRREG 34 /* includes v0-v31, vscr, & vrsave in
8686 split vectors */
......@@ -136,7 +136,7 @@ typedef struct {
136136 * either NULL (if this processor does not support the VMX feature) or the
137137 * address of the first quadword within the allocated (vmx_reserve) area.
138138 *
139 * The pointer (v_regs) of vector type (elf_vrreg_t) is essentually
139 * The pointer (v_regs) of vector type (elf_vrreg_t) is essentially
140140 * an array of 34 quadword entries. The entries with
141141 * indexes 0-31 contain the corresponding vector registers. The entry with
142142 * 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/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _UNISTD_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -170,7 +170,7 @@ extern const fenv_t __fe_nonieee_env;
170170
171171#endif
172172
173#if __GLIBC_USE (IEC_60559_BFP_EXT)
173#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
174174/* Type representing floating-point control modes. */
175175typedef double femode_t;
176176
lib/libc/include/powerpc64-linux-gnu/bits/fenvinline.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/powerpc64-linux-gnu/bits/fp-fast.h+2-2
......@@ -1,5 +1,5 @@
11/* Define FP_FAST_* macros. PowerPC version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IOCTL_H
2020# 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 @@
11/* Define iscanonical macro. ldbl-128ibm version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _LINK_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 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
1919/* The kernel header pollutes the namespace with the NR_OPEN symbol
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,11 +14,12 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __NO_LONG_DOUBLE_MATH
2020# define __LONG_DOUBLE_MATH_OPTIONAL 1
2121# ifndef __LONG_DOUBLE_128__
2222# define __NO_LONG_DOUBLE_MATH 1
2323# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
......@@ -36,6 +36,8 @@
3636# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
3737# define MAP_STACK 0x20000 /* Allocation is for a stack. */
3838# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
39# define MAP_SYNC 0x80000 /* Perform synchronous page
40 faults for the mapping. */
3941# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
4042 underlying mapping. */
4143#endif
lib/libc/include/powerpc64-linux-gnu/bits/msq-pad.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MSG_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44 Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SEMAPHORE_H
2121# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* Define the machine-dependent type `jmp_buf'. PowerPC version. */
1919#ifndef _BITS_SETJMP_H
lib/libc/include/powerpc64-linux-gnu/bits/shm-pad.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* sigstack, sigaltstack definitions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGSTACK_H
2020#define _BITS_SIGSTACK_H 1
lib/libc/include/powerpc64-linux-gnu/bits/socket-constants.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios control mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios input mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/powerpc version.
2 Copyright (C) 2019i Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios output mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* FPU control word definitions. PowerPC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FPU_CONTROL_H
2020#define _FPU_CONTROL_H
lib/libc/include/powerpc64-linux-gnu/ieee754.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,14 +13,14 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#include <features.h>
2222
23#include <endian.h>
23#include <bits/endian.h>
2424
2525__BEGIN_DECLS
2626
lib/libc/include/powerpc64-linux-gnu/sys/ptrace.h+12-3
......@@ -1,5 +1,5 @@
11/* `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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PTRACE_H
2020#define _SYS_PTRACE_H 1
......@@ -38,6 +38,7 @@ __BEGIN_DECLS
3838# undef PTRACE_GETREGSET
3939# undef PTRACE_GETSIGINFO
4040# undef PTRACE_GETSIGMASK
41# undef PTRACE_GET_SYSCALL_INFO
4142# undef PTRACE_GETVRREGS
4243# undef PTRACE_GETVSRREGS
4344# undef PTRACE_INTERRUPT
......@@ -65,6 +66,10 @@ __BEGIN_DECLS
6566# undef PTRACE_SINGLEBLOCK
6667# undef PTRACE_SINGLESTEP
6768# 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
6873# undef PTRACE_TRACEME
6974#endif
7075
......@@ -241,8 +246,12 @@ enum __ptrace_request
241246#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
242247
243248 /* Get seccomp BPF filter metadata. */
244 PTRACE_SECCOMP_GET_METADATA = 0x420d
249 PTRACE_SECCOMP_GET_METADATA = 0x420d,
245250#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
246255};
247256
248257
lib/libc/include/powerpc64-linux-gnu/sys/ucontext.h+6-6
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_UCONTEXT_H
1919#define _SYS_UCONTEXT_H 1
......@@ -75,12 +75,12 @@ typedef struct
7575 * a sigcontext. For older kernel (without Altivec) the sigcontext matches
7676 * the mcontext upto but not including the v_regs field. For kernels that
7777 * 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 field
79 * can be refernced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
78 * v_regs field may not exist and should not be referenced. The v_regs field
79 * can be referenced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
8080 * is set in AT_HWCAP. */
8181
8282/* 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. */
8484# define __NFPREG 33 /* includes fp0-fp31 &fpscr. */
8585# define __NVRREG 34 /* includes v0-v31, vscr, & vrsave in
8686 split vectors */
......@@ -136,7 +136,7 @@ typedef struct {
136136 * either NULL (if this processor does not support the VMX feature) or the
137137 * address of the first quadword within the allocated (vmx_reserve) area.
138138 *
139 * The pointer (v_regs) of vector type (elf_vrreg_t) is essentually
139 * The pointer (v_regs) of vector type (elf_vrreg_t) is essentially
140140 * an array of 34 quadword entries. The entries with
141141 * indexes 0-31 contain the corresponding vector registers. The entry with
142142 * 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/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _UNISTD_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -170,7 +170,7 @@ extern const fenv_t __fe_nonieee_env;
170170
171171#endif
172172
173#if __GLIBC_USE (IEC_60559_BFP_EXT)
173#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
174174/* Type representing floating-point control modes. */
175175typedef double femode_t;
176176
lib/libc/include/powerpc64le-linux-gnu/bits/fenvinline.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/powerpc64le-linux-gnu/bits/fp-fast.h+2-2
......@@ -1,5 +1,5 @@
11/* Define FP_FAST_* macros. PowerPC version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IOCTL_H
2020# 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 @@
11/* Define iscanonical macro. ldbl-128ibm version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _LINK_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 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
1919/* The kernel header pollutes the namespace with the NR_OPEN symbol
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,11 +14,12 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __NO_LONG_DOUBLE_MATH
2020# define __LONG_DOUBLE_MATH_OPTIONAL 1
2121# ifndef __LONG_DOUBLE_128__
2222# define __NO_LONG_DOUBLE_MATH 1
2323# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
......@@ -36,6 +36,8 @@
3636# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
3737# define MAP_STACK 0x20000 /* Allocation is for a stack. */
3838# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
39# define MAP_SYNC 0x80000 /* Perform synchronous page
40 faults for the mapping. */
3941# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
4042 underlying mapping. */
4143#endif
lib/libc/include/powerpc64le-linux-gnu/bits/msq-pad.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MSG_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44 Contributed by Paul Mackerras <paulus@au.ibm.com>, 2003.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SEMAPHORE_H
2121# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* Define the machine-dependent type `jmp_buf'. PowerPC version. */
1919#ifndef _BITS_SETJMP_H
lib/libc/include/powerpc64le-linux-gnu/bits/shm-pad.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* sigstack, sigaltstack definitions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGSTACK_H
2020#define _BITS_SIGSTACK_H 1
lib/libc/include/powerpc64le-linux-gnu/bits/socket-constants.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios control mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios input mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios local mode definitions. Linux/powerpc version.
2 Copyright (C) 2019i Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios output mode definitions. Linux/powerpc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* FPU control word definitions. PowerPC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FPU_CONTROL_H
2020#define _FPU_CONTROL_H
lib/libc/include/powerpc64le-linux-gnu/ieee754.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,14 +13,14 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#include <features.h>
2222
23#include <endian.h>
23#include <bits/endian.h>
2424
2525__BEGIN_DECLS
2626
lib/libc/include/powerpc64le-linux-gnu/sys/ptrace.h+12-3
......@@ -1,5 +1,5 @@
11/* `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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PTRACE_H
2020#define _SYS_PTRACE_H 1
......@@ -38,6 +38,7 @@ __BEGIN_DECLS
3838# undef PTRACE_GETREGSET
3939# undef PTRACE_GETSIGINFO
4040# undef PTRACE_GETSIGMASK
41# undef PTRACE_GET_SYSCALL_INFO
4142# undef PTRACE_GETVRREGS
4243# undef PTRACE_GETVSRREGS
4344# undef PTRACE_INTERRUPT
......@@ -65,6 +66,10 @@ __BEGIN_DECLS
6566# undef PTRACE_SINGLEBLOCK
6667# undef PTRACE_SINGLESTEP
6768# 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
6873# undef PTRACE_TRACEME
6974#endif
7075
......@@ -241,8 +246,12 @@ enum __ptrace_request
241246#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
242247
243248 /* Get seccomp BPF filter metadata. */
244 PTRACE_SECCOMP_GET_METADATA = 0x420d
249 PTRACE_SECCOMP_GET_METADATA = 0x420d,
245250#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
246255};
247256
248257
lib/libc/include/powerpc64le-linux-gnu/sys/ucontext.h+6-6
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_UCONTEXT_H
1919#define _SYS_UCONTEXT_H 1
......@@ -75,12 +75,12 @@ typedef struct
7575 * a sigcontext. For older kernel (without Altivec) the sigcontext matches
7676 * the mcontext upto but not including the v_regs field. For kernels that
7777 * 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 field
79 * can be refernced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
78 * v_regs field may not exist and should not be referenced. The v_regs field
79 * can be referenced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
8080 * is set in AT_HWCAP. */
8181
8282/* 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. */
8484# define __NFPREG 33 /* includes fp0-fp31 &fpscr. */
8585# define __NVRREG 34 /* includes v0-v31, vscr, & vrsave in
8686 split vectors */
......@@ -136,7 +136,7 @@ typedef struct {
136136 * either NULL (if this processor does not support the VMX feature) or the
137137 * address of the first quadword within the allocated (vmx_reserve) area.
138138 *
139 * The pointer (v_regs) of vector type (elf_vrreg_t) is essentually
139 * The pointer (v_regs) of vector type (elf_vrreg_t) is essentially
140140 * an array of 34 quadword entries. The entries with
141141 * indexes 0-31 contain the corresponding vector registers. The entry with
142142 * 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/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _FCNTL_H
2121# 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 @@
11/* Floating point environment, RISC-V version.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FENV_H
2020# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -65,7 +65,7 @@ typedef unsigned int fenv_t;
6565/* If the default argument is used we use this value. */
6666#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)
6969/* Type representing floating-point control modes. */
7070typedef unsigned int femode_t;
7171
lib/libc/include/riscv64-linux-gnu/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/riscv64-linux-gnu/bits/link.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _LINK_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,8 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,12 +14,12 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_PTHREADTYPES_ARCH_H
2020#define _BITS_PTHREADTYPES_ARCH_H 1
2121
22#include <endian.h>
22#include <bits/endian.h>
2323
2424#if __riscv_xlen == 64
2525# define __SIZEOF_PTHREAD_ATTR_T 56
......@@ -35,34 +35,7 @@
3535# error "rv32i-based systems are not supported"
3636#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
4438#define __LOCK_ALIGNMENT
4539#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
6841#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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SEMAPHORE_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _RISCV_BITS_SETJMP_H
2020#define _RISCV_BITS_SETJMP_H
lib/libc/include/riscv64-linux-gnu/bits/sigcontext.h+2-2
......@@ -1,5 +1,5 @@
11/* 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
44 The GNU C Library is free software; you can redistribute it and/or
55 modify it under the terms of the GNU Lesser General Public
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library. If not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_SIGCONTEXT_H
1919#define _BITS_SIGCONTEXT_H 1
lib/libc/include/riscv64-linux-gnu/bits/stat.h+7-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined _SYS_STAT_H && !defined _FCNTL_H
2020# error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
......@@ -23,7 +23,7 @@
2323#ifndef _BITS_STAT_H
2424#define _BITS_STAT_H 1
2525
26#include <endian.h>
26#include <bits/endian.h>
2727#include <bits/wordsize.h>
2828
2929/* 64-bit libc uses the kernel's 'struct stat', accessed via the
......@@ -42,7 +42,10 @@
4242
4343#if defined __USE_FILE_OFFSET64
4444# define __field64(type, type64, name) type64 name
45#elif __WORDSIZE == 64
45#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
4649# define __field64(type, type64, name) type name
4750#elif __BYTE_ORDER == __LITTLE_ENDIAN
4851# define __field64(type, type64, name) \
lib/libc/include/riscv64-linux-gnu/bits/statfs.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2011-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2011-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
44
......@@ -14,13 +14,13 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_STATFS_H
2020# error "Never include <bits/statfs.h> directly; use <sys/statfs.h> instead."
2121#endif
2222
23#include <endian.h>
23#include <bits/endian.h>
2424#include <bits/types.h>
2525#include <bits/wordsize.h>
2626
......@@ -34,7 +34,7 @@
3434
3535#if defined __USE_FILE_OFFSET64
3636# define __field64(type, type64, name) type64 name
37#elif __WORDSIZE == 64
37#elif __WORDSIZE == 64 || __STATFS_MATCHES_STATFS64
3838# define __field64(type, type64, name) type name
3939#elif __BYTE_ORDER == __LITTLE_ENDIAN
4040# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44 Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _BITS_TYPES_H
2121# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
......@@ -73,10 +73,14 @@
7373
7474/* And for __rlim_t and __rlim64_t. */
7575# 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
7679#else
7780# define __RLIM_T_MATCHES_RLIM64_T 0
78#endif
7981
82# define __STATFS_MATCHES_STATFS64 0
83#endif
8084/* Number of descriptors that can fit in an `fd_set'. */
8185#define __FD_SETSIZE 1024
8286
lib/libc/include/riscv64-linux-gnu/bits/wordsize.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if __riscv_xlen == (__SIZEOF_POINTER__ * 8)
2020# define __WORDSIZE __riscv_xlen
lib/libc/include/riscv64-linux-gnu/fpu_control.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FPU_CONTROL_H
2020#define _FPU_CONTROL_H
lib/libc/include/riscv64-linux-gnu/ieee754.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,14 +13,14 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#include <features.h>
2222
23#include <endian.h>
23#include <bits/endian.h>
2424
2525__BEGIN_DECLS
2626
lib/libc/include/riscv64-linux-gnu/sys/asm.h+2-2
......@@ -1,5 +1,5 @@
11/* Miscellaneous macros.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.
2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_ASM_H
2020#define _SYS_ASM_H
lib/libc/include/riscv64-linux-gnu/sys/cachectl.h+2-2
......@@ -1,5 +1,5 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_CACHECTL_H
2121#define _SYS_CACHECTL_H 1
lib/libc/include/riscv64-linux-gnu/sys/ucontext.h+2-2
......@@ -1,5 +1,5 @@
11/* struct ucontext definition, RISC-V version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.
2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* Don't rely on this, the interface is currently messed up and may need to
2020 be broken to be fixed. */
lib/libc/include/riscv64-linux-gnu/sys/user.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_USER_H
1919#define _SYS_USER_H 1
lib/libc/include/s390x-linux-gnu/bits/elfclass.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* This file specifies the native word size of the machine, which indicates
2020 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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _UNISTD_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 2000-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Denis Joseph Barrow <djbarrow@de.ibm.com>.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FENV_H
2020# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -91,7 +91,7 @@ typedef struct
9191# define FE_NOMASK_ENV ((const fenv_t *) -2)
9292#endif
9393
94#if __GLIBC_USE (IEC_60559_BFP_EXT)
94#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
9595/* Type representing floating-point control modes. */
9696typedef unsigned int femode_t;
9797
lib/libc/include/s390x-linux-gnu/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/s390x-linux-gnu/bits/flt-eval-method.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* Defines for bits in AT_HWCAP.
2 Copyright (C) 2012-2019 Free Software Foundation, Inc.
2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_AUXV_H
2020# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _LINK_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,11 +14,12 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef __NO_LONG_DOUBLE_MATH
2020# define __LONG_DOUBLE_MATH_OPTIONAL 1
2121# ifndef __LONG_DOUBLE_128__
2222# define __NO_LONG_DOUBLE_MATH 1
2323# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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/* Copyright (C) 2003-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2003-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Martin Schwidefsky <schwidefsky@de.ibm.com>, 2003.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SEMAPHORE_H
2020# 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/* Copyright (C) 2000-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGACTION_H
2020#define _BITS_SIGACTION_H 1
lib/libc/include/s390x-linux-gnu/bits/stat.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_STATFS_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_TYPES_H
2020# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
......@@ -78,8 +78,13 @@
7878
7979/* And for __rlim_t and __rlim64_t. */
8080# 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
8184#else
8285# define __RLIM_T_MATCHES_RLIM64_T 0
86
87# define __STATFS_MATCHES_STATFS64 0
8388#endif
8489
8590/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _UTMP_H
2020# error "Never include <bits/utmp.h> directly; use <utmp.h> instead."
......@@ -61,7 +61,8 @@ struct utmp
6161 pid_t ut_pid; /* Process ID of login process. */
6262 char ut_line[UT_LINESIZE]
6363 __attribute_nonstring__; /* Devicename. */
64 char ut_id[4]; /* Inittab ID. */
64 char ut_id[4]
65 __attribute_nonstring__; /* Inittab ID. */
6566 char ut_user[UT_NAMESIZE]
6667 __attribute_nonstring__; /* Username. */
6768 char ut_host[UT_HOSTSIZE]
lib/libc/include/s390x-linux-gnu/bits/utmpx.h+10-6
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _UTMPX_H
2020# error "Never include <bits/utmpx.h> directly; use <utmpx.h> instead."
......@@ -56,10 +56,14 @@ struct utmpx
5656{
5757 short int ut_type; /* Type of login. */
5858 __pid_t ut_pid; /* Process ID of login process. */
59 char ut_line[__UT_LINESIZE]; /* Devicename. */
60 char ut_id[4]; /* Inittab ID. */
61 char ut_user[__UT_NAMESIZE]; /* Username. */
62 char ut_host[__UT_HOSTSIZE]; /* Hostname for remote login. */
59 char ut_line[__UT_LINESIZE]
60 __attribute_nonstring__; /* Devicename. */
61 char ut_id[4]
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. */
6367 struct __exit_status ut_exit; /* Exit status of a process marked
6468 as DEAD_PROCESS. */
6569
lib/libc/include/s390x-linux-gnu/fpu_control.h+2-2
......@@ -1,5 +1,5 @@
11/* FPU control word definitions. Stub version.
2 Copyright (C) 2000-2019 Free Software Foundation, Inc.
2 Copyright (C) 2000-2020 Free Software Foundation, Inc.
33 Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com) and
44 Martin Schwidefsky (schwidefsky@de.ibm.com).
55 This file is part of the GNU C Library.
......@@ -16,7 +16,7 @@
1616
1717 You should have received a copy of the GNU Lesser General Public
1818 License along with the GNU C Library; if not, see
19 <http://www.gnu.org/licenses/>. */
19 <https://www.gnu.org/licenses/>. */
2020
2121#ifndef _FPU_CONTROL_H
2222#define _FPU_CONTROL_H
lib/libc/include/s390x-linux-gnu/ieee754.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,14 +13,14 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#include <features.h>
2222
23#include <endian.h>
23#include <bits/endian.h>
2424
2525__BEGIN_DECLS
2626
lib/libc/include/s390x-linux-gnu/sys/elf.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_ELF_H
1919#define _SYS_ELF_H 1
lib/libc/include/s390x-linux-gnu/sys/ptrace.h+11-2
......@@ -1,5 +1,5 @@
11/* `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.
33 Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com).
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PTRACE_H
2121#define _SYS_PTRACE_H 1
......@@ -79,6 +79,11 @@ __BEGIN_DECLS
7979# undef PTRACE_EVENT_SECCOMP
8080# undef PTRACE_EVENT_STOP
8181# 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
8287#endif
8388/* Type of the REQUEST argument to `ptrace.' */
8489enum __ptrace_request
......@@ -198,6 +203,10 @@ enum __ptrace_request
198203 PTRACE_SECCOMP_GET_METADATA = 0x420d,
199204#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
201210 PTRACE_PEEKUSR_AREA = 0x5000,
202211#define PTRACE_PEEKUSR_AREA PTRACE_PEEKUSR_AREA
203212
lib/libc/include/s390x-linux-gnu/sys/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
22 Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com).
33 This file is part of the GNU C Library.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_UCONTEXT_H
2020#define _SYS_UCONTEXT_H 1
lib/libc/include/s390x-linux-gnu/sys/user.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_USER_H
1919#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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _UNISTD_H
1919# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EPOLL_H
1919# 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 @@
11/* Error constants. Linux/Sparc specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_ERRNO_H
2020#define _BITS_ERRNO_H 1
lib/libc/include/sparc-linux-gnu/bits/eventfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EVENTFD_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -92,7 +92,7 @@ typedef unsigned long int fenv_t;
9292# define __fenv_ldfsr(X) __asm__ __volatile__ ("ld %0,%%fsr" : : "m" (X))
9393#endif
9494
95#if __GLIBC_USE (IEC_60559_BFP_EXT)
95#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
9696/* Type representing floating-point control modes. */
9797typedef unsigned long int femode_t;
9898
lib/libc/include/sparc-linux-gnu/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/sparc-linux-gnu/bits/hwcap.h+2-2
......@@ -1,5 +1,5 @@
11/* Defines for bits in AT_HWCAP.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.
2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
2020# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_INOTIFY_H
1919# 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/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_IOCTL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _LINK_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Library General Public
1616 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
1919/* The kernel header pollutes the namespace with the NR_OPEN symbol
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#include <bits/wordsize.h>
2020
......@@ -23,4 +23,5 @@
2323# ifndef __LONG_DOUBLE_128__
2424# define __NO_LONG_DOUBLE_MATH 1
2525# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
......@@ -36,6 +36,8 @@
3636# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
3737# define MAP_STACK 0x20000 /* Allocation is for a stack. */
3838# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
39# define MAP_SYNC 0x80000 /* Perform synchronous page
40 faults for the mapping. */
3941# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
4042 underlying mapping. */
4143#endif
lib/libc/include/sparc-linux-gnu/bits/msq-pad.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MSG_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_POLL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_RESOURCE_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44 Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SEMAPHORE_H
2121# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_SETJMP_H
1919#define _BITS_SETJMP_H 1
lib/libc/include/sparc-linux-gnu/bits/shm-pad.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* Define SHMLBA. SPARC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGACTION_H
2020#define _BITS_SIGACTION_H 1
lib/libc/include/sparc-linux-gnu/bits/sigcontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_SIGCONTEXT_H
1919#define _BITS_SIGCONTEXT_H 1
lib/libc/include/sparc-linux-gnu/bits/signalfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SIGNALFD_H
1919# 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 @@
11/* Signal number definitions. Linux/SPARC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGNUM_H
2020#define _BITS_SIGNUM_H 1
lib/libc/include/sparc-linux-gnu/bits/sigstack.h+2-2
......@@ -1,5 +1,5 @@
11/* sigstack, sigaltstack definitions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGSTACK_H
2020#define _BITS_SIGSTACK_H 1
lib/libc/include/sparc-linux-gnu/bits/socket-constants.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios output mode definitions. Linux/sparc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* struct termios definition. Linux/sparc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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/* Copyright (C) 2008-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIMERFD_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_TYPES_H
2020# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
......@@ -72,8 +72,13 @@
7272
7373/* And for __rlim_t and __rlim64_t. */
7474# 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
7578#else
7679# define __RLIM_T_MATCHES_RLIM64_T 0
80
81# define __STATFS_MATCHES_STATFS64 0
7782#endif
7883
7984/* 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 @@
11/* FPU control word bits. SPARC version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.
2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44 Contributed by Miguel de Icaza
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _FPU_CONTROL_H
2121#define _FPU_CONTROL_H 1
lib/libc/include/sparc-linux-gnu/ieee754.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,14 +13,14 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#include <features.h>
2222
23#include <endian.h>
23#include <bits/endian.h>
2424
2525__BEGIN_DECLS
2626
lib/libc/include/sparc-linux-gnu/sys/ptrace.h+7-3
......@@ -1,5 +1,5 @@
11/* `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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PTRACE_H
2020#define _SYS_PTRACE_H 1
......@@ -217,8 +217,12 @@ enum __ptrace_request
217217#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
218218
219219 /* Get seccomp BPF filter metadata. */
220 PTRACE_SECCOMP_GET_METADATA = 0x420d
220 PTRACE_SECCOMP_GET_METADATA = 0x420d,
221221#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
222226};
223227
224228
lib/libc/include/sparc-linux-gnu/sys/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_UCONTEXT_H
1919#define _SYS_UCONTEXT_H 1
lib/libc/include/sparc-linux-gnu/sys/user.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2003-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2003-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_USER_H
1919#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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _UNISTD_H
1919# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EPOLL_H
1919# 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 @@
11/* Error constants. Linux/Sparc specific version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_ERRNO_H
2020#define _BITS_ERRNO_H 1
lib/libc/include/sparcv9-linux-gnu/bits/eventfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EVENTFD_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -92,7 +92,7 @@ typedef unsigned long int fenv_t;
9292# define __fenv_ldfsr(X) __asm__ __volatile__ ("ld %0,%%fsr" : : "m" (X))
9393#endif
9494
95#if __GLIBC_USE (IEC_60559_BFP_EXT)
95#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
9696/* Type representing floating-point control modes. */
9797typedef unsigned long int femode_t;
9898
lib/libc/include/sparcv9-linux-gnu/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/sparcv9-linux-gnu/bits/hwcap.h+2-2
......@@ -1,5 +1,5 @@
11/* Defines for bits in AT_HWCAP.
2 Copyright (C) 2011-2019 Free Software Foundation, Inc.
2 Copyright (C) 2011-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
2020# 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/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2005-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_INOTIFY_H
1919# 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/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_IOCTL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _LINK_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Library General Public
1616 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
1919/* The kernel header pollutes the namespace with the NR_OPEN symbol
2020 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#include <bits/wordsize.h>
2020
......@@ -23,4 +23,5 @@
2323# ifndef __LONG_DOUBLE_128__
2424# define __NO_LONG_DOUBLE_MATH 1
2525# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
......@@ -36,6 +36,8 @@
3636# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
3737# define MAP_STACK 0x20000 /* Allocation is for a stack. */
3838# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
39# define MAP_SYNC 0x80000 /* Perform synchronous page
40 faults for the mapping. */
3941# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
4042 underlying mapping. */
4143#endif
lib/libc/include/sparcv9-linux-gnu/bits/msq-pad.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MSG_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_POLL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_RESOURCE_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44 Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SEMAPHORE_H
2121# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_SETJMP_H
1919#define _BITS_SETJMP_H 1
lib/libc/include/sparcv9-linux-gnu/bits/shm-pad.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* Define SHMLBA. SPARC version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SHM_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGACTION_H
2020#define _BITS_SIGACTION_H 1
lib/libc/include/sparcv9-linux-gnu/bits/sigcontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2000-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2000-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_SIGCONTEXT_H
1919#define _BITS_SIGCONTEXT_H 1
lib/libc/include/sparcv9-linux-gnu/bits/signalfd.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2007-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SIGNALFD_H
1919# 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 @@
11/* Signal number definitions. Linux/SPARC version.
2 Copyright (C) 1996-2019 Free Software Foundation, Inc.
2 Copyright (C) 1996-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGNUM_H
2020#define _BITS_SIGNUM_H 1
lib/libc/include/sparcv9-linux-gnu/bits/sigstack.h+2-2
......@@ -1,5 +1,5 @@
11/* sigstack, sigaltstack definitions.
2 Copyright (C) 1998-2019 Free Software Foundation, Inc.
2 Copyright (C) 1998-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_SIGSTACK_H
2020#define _BITS_SIGSTACK_H 1
lib/libc/include/sparcv9-linux-gnu/bits/socket-constants.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SOCKET_H
2020# 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/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* termios output mode definitions. Linux/sparc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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 @@
11/* struct termios definition. Linux/sparc version.
2 Copyright (C) 2019 Free Software Foundation, Inc.
2 Copyright (C) 2019-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _TERMIOS_H
2020# 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/* Copyright (C) 2008-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2008-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_TIMERFD_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_TYPES_H
2020# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
......@@ -72,8 +72,13 @@
7272
7373/* And for __rlim_t and __rlim64_t. */
7474# 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
7578#else
7679# define __RLIM_T_MATCHES_RLIM64_T 0
80
81# define __STATFS_MATCHES_STATFS64 0
7782#endif
7883
7984/* 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 @@
11/* FPU control word bits. SPARC version.
2 Copyright (C) 1997-2019 Free Software Foundation, Inc.
2 Copyright (C) 1997-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44 Contributed by Miguel de Icaza
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _FPU_CONTROL_H
2121#define _FPU_CONTROL_H 1
lib/libc/include/sparcv9-linux-gnu/ieee754.h+4-4
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,14 +13,14 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _IEEE754_H
19
2019#define _IEEE754_H 1
20
2121#include <features.h>
2222
23#include <endian.h>
23#include <bits/endian.h>
2424
2525__BEGIN_DECLS
2626
lib/libc/include/sparcv9-linux-gnu/sys/ptrace.h+7-3
......@@ -1,5 +1,5 @@
11/* `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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PTRACE_H
2020#define _SYS_PTRACE_H 1
......@@ -217,8 +217,12 @@ enum __ptrace_request
217217#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
218218
219219 /* Get seccomp BPF filter metadata. */
220 PTRACE_SECCOMP_GET_METADATA = 0x420d
220 PTRACE_SECCOMP_GET_METADATA = 0x420d,
221221#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
222226};
223227
224228
lib/libc/include/sparcv9-linux-gnu/sys/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_UCONTEXT_H
1919#define _SYS_UCONTEXT_H 1
lib/libc/include/sparcv9-linux-gnu/sys/user.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2003-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2003-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_USER_H
1919#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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _UNISTD_H
1919# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EPOLL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -101,7 +101,7 @@ fenv_t;
101101# define FE_NOMASK_ENV ((const fenv_t *) -2)
102102#endif
103103
104#if __GLIBC_USE (IEC_60559_BFP_EXT)
104#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
105105/* Type representing floating-point control modes. */
106106typedef struct
107107 {
lib/libc/include/x86_64-linux-gnu/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/x86_64-linux-gnu/bits/flt-eval-method.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* Definition of __INDIRECT_RETURN. x86 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _UCONTEXT_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IPC_H
2020# 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 @@
11/* Define iscanonical macro. ldbl-96 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _LINK_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,8 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# error "Never include <bits/math-vector.h> directly;\
lib/libc/include/x86_64-linux-gnu/bits/mman.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_PTHREADTYPES_ARCH_H
1919#define _BITS_PTHREADTYPES_ARCH_H 1
......@@ -24,20 +24,17 @@
2424# if __WORDSIZE == 64
2525# define __SIZEOF_PTHREAD_MUTEX_T 40
2626# define __SIZEOF_PTHREAD_ATTR_T 56
27# define __SIZEOF_PTHREAD_MUTEX_T 40
2827# define __SIZEOF_PTHREAD_RWLOCK_T 56
2928# define __SIZEOF_PTHREAD_BARRIER_T 32
3029# else
3130# define __SIZEOF_PTHREAD_MUTEX_T 32
3231# define __SIZEOF_PTHREAD_ATTR_T 32
33# define __SIZEOF_PTHREAD_MUTEX_T 32
3432# define __SIZEOF_PTHREAD_RWLOCK_T 44
3533# define __SIZEOF_PTHREAD_BARRIER_T 20
3634# endif
3735#else
3836# define __SIZEOF_PTHREAD_MUTEX_T 24
3937# define __SIZEOF_PTHREAD_ATTR_T 36
40# define __SIZEOF_PTHREAD_MUTEX_T 24
4138# define __SIZEOF_PTHREAD_RWLOCK_T 32
4239# define __SIZEOF_PTHREAD_BARRIER_T 20
4340#endif
......@@ -47,57 +44,9 @@
4744#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
4845#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
6247#define __LOCK_ALIGNMENT
6348#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
10150#ifndef __x86_64__
10251/* Extra attributes for the cleanup functions. */
10352# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
lib/libc/include/x86_64-linux-gnu/bits/select.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SELECT_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SEMAPHORE_H
2020# 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/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* Define the machine-dependent type `jmp_buf'. x86-64 version. */
1919#ifndef _BITS_SETJMP_H
lib/libc/include/x86_64-linux-gnu/bits/sigcontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_SIGCONTEXT_H
1919#define _BITS_SIGCONTEXT_H 1
lib/libc/include/x86_64-linux-gnu/bits/stat.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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/* Copyright (C) 2012-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2012-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if defined __x86_64__ && defined __ILP32__
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if defined __x86_64__ && defined __ILP32__
2020/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_TYPES_H
2020# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
......@@ -84,8 +84,13 @@
8484
8585/* And for __rlim_t and __rlim64_t. */
8686# 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
8790#else
8891# define __RLIM_T_MATCHES_RLIM64_T 0
92
93# define __STATFS_MATCHES_STATFS64 0
8994#endif
9095
9196/* 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 @@
11! 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.
33! This file is part of the GNU C Library.
44!
55! The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414!
1515! You should have received a copy of the GNU Lesser General Public
1616! License along with the GNU C Library; if not, see
17! <http://www.gnu.org/licenses/>.
17! <https://www.gnu.org/licenses/>.
1818
1919!GCC$ builtin (cos) attributes simd (notinbranch) if('x86_64')
2020!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 @@
11/* FPU control word bits. x86 version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.
2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44 Contributed by Olaf Flebbe.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _FPU_CONTROL_H
2121#define _FPU_CONTROL_H 1
lib/libc/include/x86_64-linux-gnu/sys/elf.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_ELF_H
1919#define _SYS_ELF_H 1
lib/libc/include/x86_64-linux-gnu/sys/ptrace.h+7-3
......@@ -1,5 +1,5 @@
11/* `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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PTRACE_H
2121#define _SYS_PTRACE_H 1
......@@ -186,8 +186,12 @@ enum __ptrace_request
186186#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
187187
188188 /* Get seccomp BPF filter metadata. */
189 PTRACE_SECCOMP_GET_METADATA = 0x420d
189 PTRACE_SECCOMP_GET_METADATA = 0x420d,
190190#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
191195};
192196
193197
lib/libc/include/x86_64-linux-gnu/sys/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_UCONTEXT_H
1919#define _SYS_UCONTEXT_H 1
lib/libc/include/x86_64-linux-gnu/sys/user.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_USER_H
1919#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/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _UNISTD_H
1919# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_EPOLL_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _FCNTL_H
2020# 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/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _FENV_H
1919# error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
......@@ -101,7 +101,7 @@ fenv_t;
101101# define FE_NOMASK_ENV ((const fenv_t *) -2)
102102#endif
103103
104#if __GLIBC_USE (IEC_60559_BFP_EXT)
104#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
105105/* Type representing floating-point control modes. */
106106typedef struct
107107 {
lib/libc/include/x86_64-linux-gnux32/bits/floatn.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_FLOATN_H
2020#define _BITS_FLOATN_H
lib/libc/include/x86_64-linux-gnux32/bits/flt-eval-method.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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 @@
11/* Definition of __INDIRECT_RETURN. x86 version.
2 Copyright (C) 2018-2019 Free Software Foundation, Inc.
2 Copyright (C) 2018-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _UCONTEXT_H
2020# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_IPC_H
2020# 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 @@
11/* Define iscanonical macro. ldbl-96 version.
2 Copyright (C) 2016-2019 Free Software Foundation, Inc.
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# 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/* Copyright (C) 2004-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2004-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _LINK_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,8 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _MATH_H
2020# error "Never include <bits/math-vector.h> directly;\
lib/libc/include/x86_64-linux-gnux32/bits/mman.h+2-2
......@@ -1,5 +1,5 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_MMAN_H
2020# 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 @@
11/* 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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PROCFS_H
2121# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_PROCFS_H
2020# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_PTHREADTYPES_ARCH_H
1919#define _BITS_PTHREADTYPES_ARCH_H 1
......@@ -24,20 +24,17 @@
2424# if __WORDSIZE == 64
2525# define __SIZEOF_PTHREAD_MUTEX_T 40
2626# define __SIZEOF_PTHREAD_ATTR_T 56
27# define __SIZEOF_PTHREAD_MUTEX_T 40
2827# define __SIZEOF_PTHREAD_RWLOCK_T 56
2928# define __SIZEOF_PTHREAD_BARRIER_T 32
3029# else
3130# define __SIZEOF_PTHREAD_MUTEX_T 32
3231# define __SIZEOF_PTHREAD_ATTR_T 32
33# define __SIZEOF_PTHREAD_MUTEX_T 32
3432# define __SIZEOF_PTHREAD_RWLOCK_T 44
3533# define __SIZEOF_PTHREAD_BARRIER_T 20
3634# endif
3735#else
3836# define __SIZEOF_PTHREAD_MUTEX_T 24
3937# define __SIZEOF_PTHREAD_ATTR_T 36
40# define __SIZEOF_PTHREAD_MUTEX_T 24
4138# define __SIZEOF_PTHREAD_RWLOCK_T 32
4239# define __SIZEOF_PTHREAD_BARRIER_T 20
4340#endif
......@@ -47,57 +44,9 @@
4744#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
4845#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
6247#define __LOCK_ALIGNMENT
6348#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
10150#ifndef __x86_64__
10251/* Extra attributes for the cleanup functions. */
10352# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1)))
lib/libc/include/x86_64-linux-gnux32/bits/select.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1997-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_SELECT_H
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SYS_SEM_H
2020# 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/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33 Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
44
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _SEMAPHORE_H
2020# 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/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818/* Define the machine-dependent type `jmp_buf'. x86-64 version. */
1919#ifndef _BITS_SETJMP_H
lib/libc/include/x86_64-linux-gnux32/bits/sigcontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2002-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _BITS_SIGCONTEXT_H
1919#define _BITS_SIGCONTEXT_H 1
lib/libc/include/x86_64-linux-gnux32/bits/stat.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1999-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1999-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if !defined _SYS_STAT_H && !defined _FCNTL_H
1919# 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/* Copyright (C) 2012-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2012-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#if defined __x86_64__ && defined __ILP32__
1919# 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#if defined __x86_64__ && defined __ILP32__
2020/* 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 @@
11/* 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.
33 This file is part of the GNU C Library.
44
55 The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414
1515 You should have received a copy of the GNU Lesser General Public
1616 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
17 <https://www.gnu.org/licenses/>. */
1818
1919#ifndef _BITS_TYPES_H
2020# error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
......@@ -84,8 +84,13 @@
8484
8585/* And for __rlim_t and __rlim64_t. */
8686# 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
8790#else
8891# define __RLIM_T_MATCHES_RLIM64_T 0
92
93# define __STATFS_MATCHES_STATFS64 0
8994#endif
9095
9196/* 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 @@
11! 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.
33! This file is part of the GNU C Library.
44!
55! The GNU C Library is free software; you can redistribute it and/or
......@@ -14,7 +14,7 @@
1414!
1515! You should have received a copy of the GNU Lesser General Public
1616! License along with the GNU C Library; if not, see
17! <http://www.gnu.org/licenses/>.
17! <https://www.gnu.org/licenses/>.
1818
1919!GCC$ builtin (cos) attributes simd (notinbranch) if('x86_64')
2020!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 @@
11/* FPU control word bits. x86 version.
2 Copyright (C) 1993-2019 Free Software Foundation, Inc.
2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
33 This file is part of the GNU C Library.
44 Contributed by Olaf Flebbe.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _FPU_CONTROL_H
2121#define _FPU_CONTROL_H 1
lib/libc/include/x86_64-linux-gnux32/sys/elf.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 1998-2019 Free Software Foundation, Inc.
1/* Copyright (C) 1998-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_ELF_H
1919#define _SYS_ELF_H 1
lib/libc/include/x86_64-linux-gnux32/sys/ptrace.h+7-3
......@@ -1,5 +1,5 @@
11/* `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
44 This file is part of the GNU C Library.
55
......@@ -15,7 +15,7 @@
1515
1616 You should have received a copy of the GNU Lesser General Public
1717 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
18 <https://www.gnu.org/licenses/>. */
1919
2020#ifndef _SYS_PTRACE_H
2121#define _SYS_PTRACE_H 1
......@@ -186,8 +186,12 @@ enum __ptrace_request
186186#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
187187
188188 /* Get seccomp BPF filter metadata. */
189 PTRACE_SECCOMP_GET_METADATA = 0x420d
189 PTRACE_SECCOMP_GET_METADATA = 0x420d,
190190#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
191195};
192196
193197
lib/libc/include/x86_64-linux-gnux32/sys/ucontext.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_UCONTEXT_H
1919#define _SYS_UCONTEXT_H 1
lib/libc/include/x86_64-linux-gnux32/sys/user.h+2-2
......@@ -1,4 +1,4 @@
1/* Copyright (C) 2001-2019 Free Software Foundation, Inc.
1/* Copyright (C) 2001-2020 Free Software Foundation, Inc.
22 This file is part of the GNU C Library.
33
44 The GNU C Library is free software; you can redistribute it and/or
......@@ -13,7 +13,7 @@
1313
1414 You should have received a copy of the GNU Lesser General Public
1515 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
16 <https://www.gnu.org/licenses/>. */
1717
1818#ifndef _SYS_USER_H
1919#define _SYS_USER_H 1
lib/std/fs.zig+8-5
......@@ -663,11 +663,14 @@ pub const Dir = struct {
663663 return self.openFileW(&path_w, flags);
664664 }
665665 const path_c = try os.toPosixPath(sub_path);
666 return self.openFileC(&path_c, flags);
666 return self.openFileZ(&path_c, flags);
667667 }
668668
669 /// Deprecated; use `openFileZ`.
670 pub const openFileC = openFileZ;
671
669672 /// 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 {
671674 if (builtin.os.tag == .windows) {
672675 const path_w = try os.windows.cStrToPrefixedFileW(sub_path);
673676 return self.openFileW(&path_w, flags);
......@@ -753,9 +756,9 @@ pub const Dir = struct {
753756 return self.openFile(sub_path, .{});
754757 }
755758
756 /// Deprecated; call `openFileC` directly.
759 /// Deprecated; call `openFileZ` directly.
757760 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, .{});
759762 }
760763
761764 /// Deprecated; call `openFileW` directly.
......@@ -1403,7 +1406,7 @@ pub fn openFileAbsolute(absolute_path: []const u8, flags: File.OpenFlags) File.O
14031406/// Same as `openFileAbsolute` but the path parameter is null-terminated.
14041407pub fn openFileAbsoluteC(absolute_path_c: [*:0]const u8, flags: File.OpenFlags) File.OpenError!File {
14051408 assert(path.isAbsoluteC(absolute_path_c));
1406 return cwd().openFileC(absolute_path_c, flags);
1409 return cwd().openFileZ(absolute_path_c, flags);
14071410}
14081411
14091412/// 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;
88
99/// Caller must free result
1010pub 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" });
1231 errdefer allocator.free(test_zig_dir);
1332
1433 const test_index_file = try fs.path.join(allocator, &[_][]const u8{ test_zig_dir, "std", "std.zig" });
1534 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, .{});
1837 file.close();
1938
2039 return test_zig_dir;
src-self-hosted/print_targets.zig+35-46
......@@ -4,6 +4,9 @@ const io = std.io;
44const mem = std.mem;
55const Allocator = mem.Allocator;
66const Target = std.Target;
7const assert = std.debug.assert;
8
9const introspect = @import("introspect.zig");
710
811// TODO this is hard-coded until self-hosted gains this information canonically
912const available_libcs = [_][]const u8{
......@@ -55,57 +58,40 @@ const available_libcs = [_][]const u8{
5558 "x86_64-windows-gnu",
5659};
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
10361pub fn cmdTargets(
10462 allocator: *Allocator,
10563 args: []const []const u8,
10664 stdout: *io.OutStream(fs.File.WriteError),
10765 native_target: Target,
10866) !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
10995 const BOS = io.BufferedOutStream(fs.File.WriteError);
11096 var bos = BOS.init(stdout);
11197 var jws = std.json.WriteStream(BOS.Stream, 6).init(&bos.stream);
......@@ -150,7 +136,10 @@ pub fn cmdTargets(
150136 try jws.beginArray();
151137 for (available_glibcs) |glibc| {
152138 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);
154143 }
155144 try jws.endArray();
156145
tools/process_headers.zig+20-19
......@@ -11,10 +11,9 @@
1111// You'll then have to manually update Zig source repo with these new files.
1212
1313const std = @import("std");
14const builtin = @import("builtin");
15const Arch = builtin.Arch;
16const Abi = builtin.Abi;
17const Os = builtin.Os;
14const Arch = std.Target.Cpu.Arch;
15const Abi = std.Target.Abi;
16const OsTag = std.Target.Os.Tag;
1817const assert = std.debug.assert;
1918
2019const LibCTarget = struct {
......@@ -29,12 +28,12 @@ const MultiArch = union(enum) {
2928 mips,
3029 mips64,
3130 powerpc64,
32 specific: @TagType(Arch),
31 specific: Arch,
3332
3433 fn eql(a: MultiArch, b: MultiArch) bool {
3534 if (@enumToInt(a) != @enumToInt(b))
3635 return false;
37 if (@TagType(MultiArch)(a) != .specific)
36 if (a != .specific)
3837 return true;
3938 return a.specific == b.specific;
4039 }
......@@ -221,7 +220,7 @@ const musl_targets = [_]LibCTarget{
221220
222221const DestTarget = struct {
223222 arch: MultiArch,
224 os: Os,
223 os: OsTag,
225224 abi: Abi,
226225
227226 fn hash(a: DestTarget) u32 {
......@@ -305,8 +304,8 @@ pub fn main() !void {
305304 // TODO compiler crashed when I wrote this the canonical way
306305 var libc_targets: []const LibCTarget = undefined;
307306 switch (vendor) {
308 .musl => libc_targets = musl_targets,
309 .glibc => libc_targets = glibc_targets,
307 .musl => libc_targets = &musl_targets,
308 .glibc => libc_targets = &glibc_targets,
310309 }
311310
312311 var path_table = PathTable.init(allocator);
......@@ -340,15 +339,17 @@ pub fn main() !void {
340339 try dir_stack.append(target_include_dir);
341340
342341 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) {
344343 error.FileNotFound => continue :search,
345344 error.AccessDenied => continue :search,
346345 else => return err,
347346 };
348347 defer dir.close();
349348
350 while (try dir.next()) |entry| {
351 const full_path = try std.fs.path.join(allocator, [_][]const u8{ full_dir_name, entry.name });
349 var dir_it = dir.iterate();
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 });
352353 switch (entry.kind) {
353354 .Directory => try dir_stack.append(full_path),
354355 .File => {
......@@ -396,8 +397,8 @@ pub fn main() !void {
396397 std.debug.warn("warning: libc target not found: {}\n", .{libc_target.name});
397398 }
398399 }
399 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);
400 std.debug.warn("summary: {Bi:2} could be reduced to {Bi:2}\n", .{ total_bytes, total_bytes - max_bytes_saved });
401 try std.fs.cwd().makePath(out_dir);
401402
402403 var missed_opportunity_bytes: usize = 0;
403404 // 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 {
417418 var best_contents = contents_list.popOrNull().?;
418419 if (best_contents.hit_count > 1) {
419420 // 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 try std.fs.makePath(allocator, std.fs.path.dirname(full_path).?);
421 const full_path = try std.fs.path.join(allocator, &[_][]const u8{ out_dir, generic_name, path_kv.key });
422 try std.fs.cwd().makePath(std.fs.path.dirname(full_path).?);
422423 try std.io.writeFile(full_path, best_contents.bytes);
423424 best_contents.is_generic = true;
424425 while (contents_list.popOrNull()) |contender| {
425426 if (contender.hit_count > 1) {
426427 const this_missed_bytes = contender.hit_count * contender.bytes.len;
427428 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 });
429430 } else break;
430431 }
431432 }
......@@ -444,8 +445,8 @@ pub fn main() !void {
444445 @tagName(dest_target.os),
445446 @tagName(dest_target.abi),
446447 });
447 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).?);
448 const full_path = try std.fs.path.join(allocator, &[_][]const u8{ out_dir, out_subpath, path_kv.key });
449 try std.fs.cwd().makePath(std.fs.path.dirname(full_path).?);
449450 try std.io.writeFile(full_path, contents.bytes);
450451 }
451452 }
tools/update_glibc.zig+38-35
......@@ -1,5 +1,4 @@
11const std = @import("std");
2const builtin = @import("builtin");
32const fs = std.fs;
43const fmt = std.fmt;
54const assert = std.debug.assert;
......@@ -11,8 +10,8 @@ const AbiList = struct {
1110 path: []const u8,
1211};
1312const ZigTarget = struct {
14 arch: @TagType(builtin.Arch),
15 abi: builtin.Abi,
13 arch: std.Target.Cpu.Arch,
14 abi: std.Target.Abi,
1615};
1716
1817const lib_names = [_][]const u8{
......@@ -27,18 +26,18 @@ const lib_names = [_][]const u8{
2726// n64/n32 are hardcoded elsewhere, based on .gnuabi64/.gnuabin32
2827const abi_lists = [_]AbiList{
2928 AbiList{
30 .targets = [_]ZigTarget{
29 .targets = &[_]ZigTarget{
3130 ZigTarget{ .arch = .aarch64, .abi = .gnu },
3231 ZigTarget{ .arch = .aarch64_be, .abi = .gnu },
3332 },
3433 .path = "aarch64",
3534 },
3635 AbiList{
37 .targets = [_]ZigTarget{ZigTarget{ .arch = .s390x, .abi = .gnu }},
36 .targets = &[_]ZigTarget{ZigTarget{ .arch = .s390x, .abi = .gnu }},
3837 .path = "s390/s390-64",
3938 },
4039 AbiList{
41 .targets = [_]ZigTarget{
40 .targets = &[_]ZigTarget{
4241 ZigTarget{ .arch = .arm, .abi = .gnueabi },
4342 ZigTarget{ .arch = .armeb, .abi = .gnueabi },
4443 ZigTarget{ .arch = .arm, .abi = .gnueabihf },
......@@ -47,66 +46,66 @@ const abi_lists = [_]AbiList{
4746 .path = "arm",
4847 },
4948 AbiList{
50 .targets = [_]ZigTarget{
49 .targets = &[_]ZigTarget{
5150 ZigTarget{ .arch = .sparc, .abi = .gnu },
5251 ZigTarget{ .arch = .sparcel, .abi = .gnu },
5352 },
5453 .path = "sparc/sparc32",
5554 },
5655 AbiList{
57 .targets = [_]ZigTarget{ZigTarget{ .arch = .sparcv9, .abi = .gnu }},
56 .targets = &[_]ZigTarget{ZigTarget{ .arch = .sparcv9, .abi = .gnu }},
5857 .path = "sparc/sparc64",
5958 },
6059 AbiList{
61 .targets = [_]ZigTarget{
60 .targets = &[_]ZigTarget{
6261 ZigTarget{ .arch = .mips64el, .abi = .gnuabi64 },
6362 ZigTarget{ .arch = .mips64, .abi = .gnuabi64 },
6463 },
6564 .path = "mips/mips64",
6665 },
6766 AbiList{
68 .targets = [_]ZigTarget{
67 .targets = &[_]ZigTarget{
6968 ZigTarget{ .arch = .mips64el, .abi = .gnuabin32 },
7069 ZigTarget{ .arch = .mips64, .abi = .gnuabin32 },
7170 },
7271 .path = "mips/mips64",
7372 },
7473 AbiList{
75 .targets = [_]ZigTarget{
74 .targets = &[_]ZigTarget{
7675 ZigTarget{ .arch = .mipsel, .abi = .gnueabihf },
7776 ZigTarget{ .arch = .mips, .abi = .gnueabihf },
7877 },
7978 .path = "mips/mips32",
8079 },
8180 AbiList{
82 .targets = [_]ZigTarget{
81 .targets = &[_]ZigTarget{
8382 ZigTarget{ .arch = .mipsel, .abi = .gnueabi },
8483 ZigTarget{ .arch = .mips, .abi = .gnueabi },
8584 },
8685 .path = "mips/mips32",
8786 },
8887 AbiList{
89 .targets = [_]ZigTarget{ZigTarget{ .arch = .x86_64, .abi = .gnu }},
88 .targets = &[_]ZigTarget{ZigTarget{ .arch = .x86_64, .abi = .gnu }},
9089 .path = "x86_64/64",
9190 },
9291 AbiList{
93 .targets = [_]ZigTarget{ZigTarget{ .arch = .x86_64, .abi = .gnux32 }},
92 .targets = &[_]ZigTarget{ZigTarget{ .arch = .x86_64, .abi = .gnux32 }},
9493 .path = "x86_64/x32",
9594 },
9695 AbiList{
97 .targets = [_]ZigTarget{ZigTarget{ .arch = .i386, .abi = .gnu }},
96 .targets = &[_]ZigTarget{ZigTarget{ .arch = .i386, .abi = .gnu }},
9897 .path = "i386",
9998 },
10099 AbiList{
101 .targets = [_]ZigTarget{ZigTarget{ .arch = .powerpc64le, .abi = .gnu }},
100 .targets = &[_]ZigTarget{ZigTarget{ .arch = .powerpc64le, .abi = .gnu }},
102101 .path = "powerpc/powerpc64/le",
103102 },
104103 AbiList{
105 .targets = [_]ZigTarget{ZigTarget{ .arch = .powerpc64, .abi = .gnu }},
104 .targets = &[_]ZigTarget{ZigTarget{ .arch = .powerpc64, .abi = .gnu }},
106105 .path = "powerpc/powerpc64/be",
107106 },
108107 AbiList{
109 .targets = [_]ZigTarget{
108 .targets = &[_]ZigTarget{
110109 ZigTarget{ .arch = .powerpc, .abi = .gnueabi },
111110 ZigTarget{ .arch = .powerpc, .abi = .gnueabihf },
112111 },
......@@ -137,8 +136,8 @@ pub fn main() !void {
137136 const in_glibc_dir = args[1]; // path to the unzipped tarball of glibc, e.g. ~/downloads/glibc-2.25
138137 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" });
141 const glibc_out_dir = try fs.path.join(allocator, [_][]const u8{ zig_src_dir, "libc", "glibc" });
139 const prefix = try fs.path.join(allocator, &[_][]const u8{ in_glibc_dir, "sysdeps", "unix", "sysv", "linux" });
140 const glibc_out_dir = try fs.path.join(allocator, &[_][]const u8{ zig_src_dir, "libc", "glibc" });
142141
143142 var global_fn_set = std.StringHashMap(Function).init(allocator);
144143 var global_ver_set = std.StringHashMap(usize).init(allocator);
......@@ -158,26 +157,30 @@ pub fn main() !void {
158157 const basename = try fmt.allocPrint(allocator, "lib{}.abilist", .{lib_name});
159158 const abi_list_filename = blk: {
160159 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 });
162161 } 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 });
164163 } else if (abi_list.targets[0].arch != .arm and
165164 abi_list.targets[0].abi == .gnueabihf and
166165 (std.mem.eql(u8, lib_name, "c") or
167166 (std.mem.eql(u8, lib_name, "m") and abi_list.targets[0].arch == .powerpc)))
168167 {
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 });
170169 } else if (abi_list.targets[0].arch != .arm and
171170 abi_list.targets[0].abi == .gnueabi and
172171 (std.mem.eql(u8, lib_name, "c") or
173172 (std.mem.eql(u8, lib_name, "m") and abi_list.targets[0].arch == .powerpc)))
174173 {
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 });
176179 }
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 });
178181 };
179182 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 });
181184 std.process.exit(1);
182185 };
183186 var lines_it = std.mem.tokenize(contents, "\n");
......@@ -228,8 +231,8 @@ pub fn main() !void {
228231 break :blk list.toSliceConst();
229232 };
230233 {
231 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);
234 const vers_txt_path = try fs.path.join(allocator, &[_][]const u8{ glibc_out_dir, "vers.txt" });
235 const vers_txt_file = try fs.cwd().createFile(vers_txt_path, .{});
233236 defer vers_txt_file.close();
234237 var buffered = std.io.BufferedOutStream(fs.File.WriteError).init(&vers_txt_file.outStream().stream);
235238 const vers_txt = &buffered.stream;
......@@ -240,15 +243,15 @@ pub fn main() !void {
240243 try buffered.flush();
241244 }
242245 {
243 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);
246 const fns_txt_path = try fs.path.join(allocator, &[_][]const u8{ glibc_out_dir, "fns.txt" });
247 const fns_txt_file = try fs.cwd().createFile(fns_txt_path, .{});
245248 defer fns_txt_file.close();
246249 var buffered = std.io.BufferedOutStream(fs.File.WriteError).init(&fns_txt_file.outStream().stream);
247250 const fns_txt = &buffered.stream;
248251 for (global_fn_list) |name, i| {
249252 const kv = global_fn_set.get(name).?;
250253 kv.value.index = i;
251 try fns_txt.print("{} {}\n", .{name, kv.value.lib});
254 try fns_txt.print("{} {}\n", .{ name, kv.value.lib });
252255 }
253256 try buffered.flush();
254257 }
......@@ -271,8 +274,8 @@ pub fn main() !void {
271274 }
272275
273276 {
274 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);
277 const abilist_txt_path = try fs.path.join(allocator, &[_][]const u8{ glibc_out_dir, "abi.txt" });
278 const abilist_txt_file = try fs.cwd().createFile(abilist_txt_path, .{});
276279 defer abilist_txt_file.close();
277280 var buffered = std.io.BufferedOutStream(fs.File.WriteError).init(&abilist_txt_file.outStream().stream);
278281 const abilist_txt = &buffered.stream;
......@@ -282,7 +285,7 @@ pub fn main() !void {
282285 const fn_vers_list = &target_functions.get(@ptrToInt(abi_list)).?.value.fn_vers_list;
283286 for (abi_list.targets) |target, it_i| {
284287 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) });
286289 }
287290 try abilist_txt.writeByte('\n');
288291 // next, each line implicitly corresponds to a function
......@@ -304,7 +307,7 @@ pub fn main() !void {
304307}
305308
306309pub 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;
308311}
309312
310313pub fn versionLessThan(a: []const u8, b: []const u8) bool {